@zealicsolutions/web-ui 1.0.87-beta.17 → 1.0.87-beta.19

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 (844) hide show
  1. package/dist/cjs/index.js +1621 -1589
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/esm/_virtual/index10.js +2 -0
  4. package/dist/esm/_virtual/index10.js.map +1 -0
  5. package/dist/esm/_virtual/index11.js +2 -0
  6. package/dist/esm/_virtual/index11.js.map +1 -0
  7. package/dist/esm/_virtual/index6.js +1 -1
  8. package/dist/esm/_virtual/index7.js +1 -1
  9. package/dist/esm/_virtual/index8.js +1 -1
  10. package/dist/esm/_virtual/index9.js +2 -0
  11. package/dist/esm/_virtual/index9.js.map +1 -0
  12. package/dist/esm/_virtual/react-is.development4.js +2 -0
  13. package/dist/esm/_virtual/react-is.development4.js.map +1 -0
  14. package/dist/esm/_virtual/react-is.development5.js +2 -0
  15. package/dist/esm/_virtual/react-is.development5.js.map +1 -0
  16. package/dist/esm/_virtual/react-is.development6.js +2 -0
  17. package/dist/esm/_virtual/react-is.development6.js.map +1 -0
  18. package/dist/esm/_virtual/react-is.production2.js +2 -0
  19. package/dist/esm/_virtual/react-is.production2.js.map +1 -0
  20. package/dist/esm/_virtual/react-is.production3.js +2 -0
  21. package/dist/esm/_virtual/react-is.production3.js.map +1 -0
  22. package/dist/esm/_virtual/react-is.production4.js +2 -0
  23. package/dist/esm/_virtual/react-is.production4.js.map +1 -0
  24. package/dist/esm/containers/utils.js +1 -1
  25. package/dist/esm/containers/utils.js.map +1 -1
  26. package/dist/esm/molecules/BaseMolecule.js +1 -1
  27. package/dist/esm/molecules/BaseMolecule.js.map +1 -1
  28. package/dist/esm/node_modules/@mui/material/Accordion/Accordion.js +1 -1
  29. package/dist/esm/node_modules/@mui/material/Accordion/Accordion.js.map +1 -1
  30. package/dist/esm/node_modules/@mui/material/Accordion/accordionClasses.js +1 -1
  31. package/dist/esm/node_modules/@mui/material/Accordion/accordionClasses.js.map +1 -1
  32. package/dist/esm/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +1 -1
  33. package/dist/esm/node_modules/@mui/material/AccordionDetails/AccordionDetails.js.map +1 -1
  34. package/dist/esm/node_modules/@mui/material/AccordionDetails/accordionDetailsClasses.js +1 -1
  35. package/dist/esm/node_modules/@mui/material/AccordionDetails/accordionDetailsClasses.js.map +1 -1
  36. package/dist/esm/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +1 -1
  37. package/dist/esm/node_modules/@mui/material/AccordionSummary/AccordionSummary.js.map +1 -1
  38. package/dist/esm/node_modules/@mui/material/AccordionSummary/accordionSummaryClasses.js +1 -1
  39. package/dist/esm/node_modules/@mui/material/AccordionSummary/accordionSummaryClasses.js.map +1 -1
  40. package/dist/esm/node_modules/@mui/material/Alert/Alert.js +1 -1
  41. package/dist/esm/node_modules/@mui/material/Alert/Alert.js.map +1 -1
  42. package/dist/esm/node_modules/@mui/material/Alert/alertClasses.js +1 -1
  43. package/dist/esm/node_modules/@mui/material/Alert/alertClasses.js.map +1 -1
  44. package/dist/esm/node_modules/@mui/material/AlertTitle/AlertTitle.js +1 -1
  45. package/dist/esm/node_modules/@mui/material/AlertTitle/AlertTitle.js.map +1 -1
  46. package/dist/esm/node_modules/@mui/material/AlertTitle/alertTitleClasses.js +1 -1
  47. package/dist/esm/node_modules/@mui/material/AlertTitle/alertTitleClasses.js.map +1 -1
  48. package/dist/esm/node_modules/@mui/material/Avatar/Avatar.js +1 -1
  49. package/dist/esm/node_modules/@mui/material/Avatar/Avatar.js.map +1 -1
  50. package/dist/esm/node_modules/@mui/material/Avatar/avatarClasses.js +1 -1
  51. package/dist/esm/node_modules/@mui/material/Avatar/avatarClasses.js.map +1 -1
  52. package/dist/esm/node_modules/@mui/material/Backdrop/Backdrop.js +1 -1
  53. package/dist/esm/node_modules/@mui/material/Backdrop/Backdrop.js.map +1 -1
  54. package/dist/esm/node_modules/@mui/material/Backdrop/backdropClasses.js +1 -1
  55. package/dist/esm/node_modules/@mui/material/Backdrop/backdropClasses.js.map +1 -1
  56. package/dist/esm/node_modules/@mui/material/Badge/Badge.js +1 -1
  57. package/dist/esm/node_modules/@mui/material/Badge/Badge.js.map +1 -1
  58. package/dist/esm/node_modules/@mui/material/Badge/badgeClasses.js +1 -1
  59. package/dist/esm/node_modules/@mui/material/Badge/badgeClasses.js.map +1 -1
  60. package/dist/esm/node_modules/@mui/material/Badge/useBadge.js +1 -1
  61. package/dist/esm/node_modules/@mui/material/Badge/useBadge.js.map +1 -1
  62. package/dist/esm/node_modules/@mui/material/Box/Box.js +1 -1
  63. package/dist/esm/node_modules/@mui/material/Box/Box.js.map +1 -1
  64. package/dist/esm/node_modules/@mui/material/Box/boxClasses.js +1 -1
  65. package/dist/esm/node_modules/@mui/material/Box/boxClasses.js.map +1 -1
  66. package/dist/esm/node_modules/@mui/material/Button/Button.js +1 -1
  67. package/dist/esm/node_modules/@mui/material/Button/Button.js.map +1 -1
  68. package/dist/esm/node_modules/@mui/material/Button/buttonClasses.js +1 -1
  69. package/dist/esm/node_modules/@mui/material/Button/buttonClasses.js.map +1 -1
  70. package/dist/esm/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
  71. package/dist/esm/node_modules/@mui/material/ButtonBase/ButtonBase.js.map +1 -1
  72. package/dist/esm/node_modules/@mui/material/ButtonBase/Ripple.js +1 -1
  73. package/dist/esm/node_modules/@mui/material/ButtonBase/TouchRipple.js +2 -2
  74. package/dist/esm/node_modules/@mui/material/ButtonBase/TouchRipple.js.map +1 -1
  75. package/dist/esm/node_modules/@mui/material/ButtonBase/buttonBaseClasses.js +1 -1
  76. package/dist/esm/node_modules/@mui/material/ButtonBase/buttonBaseClasses.js.map +1 -1
  77. package/dist/esm/node_modules/@mui/material/ButtonBase/touchRippleClasses.js +1 -1
  78. package/dist/esm/node_modules/@mui/material/ButtonBase/touchRippleClasses.js.map +1 -1
  79. package/dist/esm/node_modules/@mui/material/Card/Card.js +1 -1
  80. package/dist/esm/node_modules/@mui/material/Card/Card.js.map +1 -1
  81. package/dist/esm/node_modules/@mui/material/Card/cardClasses.js +1 -1
  82. package/dist/esm/node_modules/@mui/material/Card/cardClasses.js.map +1 -1
  83. package/dist/esm/node_modules/@mui/material/CardMedia/CardMedia.js +1 -1
  84. package/dist/esm/node_modules/@mui/material/CardMedia/CardMedia.js.map +1 -1
  85. package/dist/esm/node_modules/@mui/material/CardMedia/cardMediaClasses.js +1 -1
  86. package/dist/esm/node_modules/@mui/material/CardMedia/cardMediaClasses.js.map +1 -1
  87. package/dist/esm/node_modules/@mui/material/Checkbox/Checkbox.js +1 -1
  88. package/dist/esm/node_modules/@mui/material/Checkbox/Checkbox.js.map +1 -1
  89. package/dist/esm/node_modules/@mui/material/Checkbox/checkboxClasses.js +1 -1
  90. package/dist/esm/node_modules/@mui/material/Checkbox/checkboxClasses.js.map +1 -1
  91. package/dist/esm/node_modules/@mui/material/Chip/Chip.js +1 -1
  92. package/dist/esm/node_modules/@mui/material/Chip/Chip.js.map +1 -1
  93. package/dist/esm/node_modules/@mui/material/Chip/chipClasses.js +1 -1
  94. package/dist/esm/node_modules/@mui/material/Chip/chipClasses.js.map +1 -1
  95. package/dist/esm/node_modules/@mui/material/CircularProgress/CircularProgress.js +4 -4
  96. package/dist/esm/node_modules/@mui/material/CircularProgress/CircularProgress.js.map +1 -1
  97. package/dist/esm/node_modules/@mui/material/CircularProgress/circularProgressClasses.js +1 -1
  98. package/dist/esm/node_modules/@mui/material/CircularProgress/circularProgressClasses.js.map +1 -1
  99. package/dist/esm/node_modules/@mui/material/Collapse/Collapse.js +1 -1
  100. package/dist/esm/node_modules/@mui/material/Collapse/Collapse.js.map +1 -1
  101. package/dist/esm/node_modules/@mui/material/Collapse/collapseClasses.js +1 -1
  102. package/dist/esm/node_modules/@mui/material/Collapse/collapseClasses.js.map +1 -1
  103. package/dist/esm/node_modules/@mui/material/CssBaseline/CssBaseline.js +1 -1
  104. package/dist/esm/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  105. package/dist/esm/node_modules/@mui/material/Dialog/Dialog.js +1 -1
  106. package/dist/esm/node_modules/@mui/material/Dialog/Dialog.js.map +1 -1
  107. package/dist/esm/node_modules/@mui/material/Dialog/dialogClasses.js +1 -1
  108. package/dist/esm/node_modules/@mui/material/Dialog/dialogClasses.js.map +1 -1
  109. package/dist/esm/node_modules/@mui/material/DialogActions/DialogActions.js +1 -1
  110. package/dist/esm/node_modules/@mui/material/DialogActions/DialogActions.js.map +1 -1
  111. package/dist/esm/node_modules/@mui/material/DialogActions/dialogActionsClasses.js +1 -1
  112. package/dist/esm/node_modules/@mui/material/DialogActions/dialogActionsClasses.js.map +1 -1
  113. package/dist/esm/node_modules/@mui/material/DialogContent/DialogContent.js +1 -1
  114. package/dist/esm/node_modules/@mui/material/DialogContent/DialogContent.js.map +1 -1
  115. package/dist/esm/node_modules/@mui/material/DialogContent/dialogContentClasses.js +1 -1
  116. package/dist/esm/node_modules/@mui/material/DialogContent/dialogContentClasses.js.map +1 -1
  117. package/dist/esm/node_modules/@mui/material/DialogTitle/dialogTitleClasses.js +1 -1
  118. package/dist/esm/node_modules/@mui/material/DialogTitle/dialogTitleClasses.js.map +1 -1
  119. package/dist/esm/node_modules/@mui/material/Divider/Divider.js +1 -1
  120. package/dist/esm/node_modules/@mui/material/Divider/Divider.js.map +1 -1
  121. package/dist/esm/node_modules/@mui/material/Divider/dividerClasses.js +1 -1
  122. package/dist/esm/node_modules/@mui/material/Divider/dividerClasses.js.map +1 -1
  123. package/dist/esm/node_modules/@mui/material/Drawer/Drawer.js +1 -1
  124. package/dist/esm/node_modules/@mui/material/Drawer/Drawer.js.map +1 -1
  125. package/dist/esm/node_modules/@mui/material/Drawer/drawerClasses.js +1 -1
  126. package/dist/esm/node_modules/@mui/material/Drawer/drawerClasses.js.map +1 -1
  127. package/dist/esm/node_modules/@mui/material/Fab/Fab.js +1 -1
  128. package/dist/esm/node_modules/@mui/material/Fab/Fab.js.map +1 -1
  129. package/dist/esm/node_modules/@mui/material/Fab/fabClasses.js +1 -1
  130. package/dist/esm/node_modules/@mui/material/Fab/fabClasses.js.map +1 -1
  131. package/dist/esm/node_modules/@mui/material/Fade/Fade.js +1 -1
  132. package/dist/esm/node_modules/@mui/material/Fade/Fade.js.map +1 -1
  133. package/dist/esm/node_modules/@mui/material/FilledInput/FilledInput.js +1 -1
  134. package/dist/esm/node_modules/@mui/material/FilledInput/FilledInput.js.map +1 -1
  135. package/dist/esm/node_modules/@mui/material/FilledInput/filledInputClasses.js +1 -1
  136. package/dist/esm/node_modules/@mui/material/FilledInput/filledInputClasses.js.map +1 -1
  137. package/dist/esm/node_modules/@mui/material/FormControl/FormControl.js +1 -1
  138. package/dist/esm/node_modules/@mui/material/FormControl/FormControl.js.map +1 -1
  139. package/dist/esm/node_modules/@mui/material/FormControl/formControlClasses.js +1 -1
  140. package/dist/esm/node_modules/@mui/material/FormControl/formControlClasses.js.map +1 -1
  141. package/dist/esm/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +1 -1
  142. package/dist/esm/node_modules/@mui/material/FormControlLabel/FormControlLabel.js.map +1 -1
  143. package/dist/esm/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.js +1 -1
  144. package/dist/esm/node_modules/@mui/material/FormControlLabel/formControlLabelClasses.js.map +1 -1
  145. package/dist/esm/node_modules/@mui/material/FormGroup/FormGroup.js +1 -1
  146. package/dist/esm/node_modules/@mui/material/FormGroup/FormGroup.js.map +1 -1
  147. package/dist/esm/node_modules/@mui/material/FormGroup/formGroupClasses.js +1 -1
  148. package/dist/esm/node_modules/@mui/material/FormGroup/formGroupClasses.js.map +1 -1
  149. package/dist/esm/node_modules/@mui/material/FormHelperText/FormHelperText.js +1 -1
  150. package/dist/esm/node_modules/@mui/material/FormHelperText/FormHelperText.js.map +1 -1
  151. package/dist/esm/node_modules/@mui/material/FormHelperText/formHelperTextClasses.js +1 -1
  152. package/dist/esm/node_modules/@mui/material/FormHelperText/formHelperTextClasses.js.map +1 -1
  153. package/dist/esm/node_modules/@mui/material/FormLabel/FormLabel.js +1 -1
  154. package/dist/esm/node_modules/@mui/material/FormLabel/FormLabel.js.map +1 -1
  155. package/dist/esm/node_modules/@mui/material/FormLabel/formLabelClasses.js +1 -1
  156. package/dist/esm/node_modules/@mui/material/FormLabel/formLabelClasses.js.map +1 -1
  157. package/dist/esm/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
  158. package/dist/esm/node_modules/@mui/material/GlobalStyles/GlobalStyles.js.map +1 -1
  159. package/dist/esm/node_modules/@mui/material/Grow/Grow.js +1 -1
  160. package/dist/esm/node_modules/@mui/material/Grow/Grow.js.map +1 -1
  161. package/dist/esm/node_modules/@mui/material/IconButton/IconButton.js +1 -1
  162. package/dist/esm/node_modules/@mui/material/IconButton/IconButton.js.map +1 -1
  163. package/dist/esm/node_modules/@mui/material/IconButton/iconButtonClasses.js +1 -1
  164. package/dist/esm/node_modules/@mui/material/IconButton/iconButtonClasses.js.map +1 -1
  165. package/dist/esm/node_modules/@mui/material/Input/Input.js +1 -1
  166. package/dist/esm/node_modules/@mui/material/Input/Input.js.map +1 -1
  167. package/dist/esm/node_modules/@mui/material/Input/inputClasses.js +1 -1
  168. package/dist/esm/node_modules/@mui/material/Input/inputClasses.js.map +1 -1
  169. package/dist/esm/node_modules/@mui/material/InputAdornment/InputAdornment.js +1 -1
  170. package/dist/esm/node_modules/@mui/material/InputAdornment/InputAdornment.js.map +1 -1
  171. package/dist/esm/node_modules/@mui/material/InputAdornment/inputAdornmentClasses.js +1 -1
  172. package/dist/esm/node_modules/@mui/material/InputAdornment/inputAdornmentClasses.js.map +1 -1
  173. package/dist/esm/node_modules/@mui/material/InputBase/InputBase.js +1 -1
  174. package/dist/esm/node_modules/@mui/material/InputBase/InputBase.js.map +1 -1
  175. package/dist/esm/node_modules/@mui/material/InputBase/inputBaseClasses.js +1 -1
  176. package/dist/esm/node_modules/@mui/material/InputBase/inputBaseClasses.js.map +1 -1
  177. package/dist/esm/node_modules/@mui/material/InputLabel/InputLabel.js +1 -1
  178. package/dist/esm/node_modules/@mui/material/InputLabel/InputLabel.js.map +1 -1
  179. package/dist/esm/node_modules/@mui/material/InputLabel/inputLabelClasses.js +1 -1
  180. package/dist/esm/node_modules/@mui/material/InputLabel/inputLabelClasses.js.map +1 -1
  181. package/dist/esm/node_modules/@mui/material/Link/Link.js +1 -1
  182. package/dist/esm/node_modules/@mui/material/Link/Link.js.map +1 -1
  183. package/dist/esm/node_modules/@mui/material/Link/linkClasses.js +1 -1
  184. package/dist/esm/node_modules/@mui/material/Link/linkClasses.js.map +1 -1
  185. package/dist/esm/node_modules/@mui/material/List/List.js +1 -1
  186. package/dist/esm/node_modules/@mui/material/List/List.js.map +1 -1
  187. package/dist/esm/node_modules/@mui/material/List/listClasses.js +1 -1
  188. package/dist/esm/node_modules/@mui/material/List/listClasses.js.map +1 -1
  189. package/dist/esm/node_modules/@mui/material/ListItem/ListItem.js +1 -1
  190. package/dist/esm/node_modules/@mui/material/ListItem/ListItem.js.map +1 -1
  191. package/dist/esm/node_modules/@mui/material/ListItem/listItemClasses.js +1 -1
  192. package/dist/esm/node_modules/@mui/material/ListItem/listItemClasses.js.map +1 -1
  193. package/dist/esm/node_modules/@mui/material/ListItemButton/ListItemButton.js +1 -1
  194. package/dist/esm/node_modules/@mui/material/ListItemButton/ListItemButton.js.map +1 -1
  195. package/dist/esm/node_modules/@mui/material/ListItemButton/listItemButtonClasses.js +1 -1
  196. package/dist/esm/node_modules/@mui/material/ListItemButton/listItemButtonClasses.js.map +1 -1
  197. package/dist/esm/node_modules/@mui/material/ListItemIcon/listItemIconClasses.js +1 -1
  198. package/dist/esm/node_modules/@mui/material/ListItemIcon/listItemIconClasses.js.map +1 -1
  199. package/dist/esm/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
  200. package/dist/esm/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
  201. package/dist/esm/node_modules/@mui/material/ListItemSecondaryAction/listItemSecondaryActionClasses.js +1 -1
  202. package/dist/esm/node_modules/@mui/material/ListItemSecondaryAction/listItemSecondaryActionClasses.js.map +1 -1
  203. package/dist/esm/node_modules/@mui/material/ListItemText/ListItemText.js +1 -1
  204. package/dist/esm/node_modules/@mui/material/ListItemText/ListItemText.js.map +1 -1
  205. package/dist/esm/node_modules/@mui/material/ListItemText/listItemTextClasses.js +1 -1
  206. package/dist/esm/node_modules/@mui/material/ListItemText/listItemTextClasses.js.map +1 -1
  207. package/dist/esm/node_modules/@mui/material/Menu/Menu.js +1 -1
  208. package/dist/esm/node_modules/@mui/material/Menu/Menu.js.map +1 -1
  209. package/dist/esm/node_modules/@mui/material/Menu/menuClasses.js +1 -1
  210. package/dist/esm/node_modules/@mui/material/Menu/menuClasses.js.map +1 -1
  211. package/dist/esm/node_modules/@mui/material/MenuItem/MenuItem.js +1 -1
  212. package/dist/esm/node_modules/@mui/material/MenuItem/MenuItem.js.map +1 -1
  213. package/dist/esm/node_modules/@mui/material/MenuItem/menuItemClasses.js +1 -1
  214. package/dist/esm/node_modules/@mui/material/MenuItem/menuItemClasses.js.map +1 -1
  215. package/dist/esm/node_modules/@mui/material/MenuList/MenuList.js +1 -1
  216. package/dist/esm/node_modules/@mui/material/MenuList/MenuList.js.map +1 -1
  217. package/dist/esm/node_modules/@mui/material/Modal/Modal.js +1 -1
  218. package/dist/esm/node_modules/@mui/material/Modal/Modal.js.map +1 -1
  219. package/dist/esm/node_modules/@mui/material/Modal/ModalManager.js +1 -1
  220. package/dist/esm/node_modules/@mui/material/Modal/ModalManager.js.map +1 -1
  221. package/dist/esm/node_modules/@mui/material/Modal/modalClasses.js +1 -1
  222. package/dist/esm/node_modules/@mui/material/Modal/modalClasses.js.map +1 -1
  223. package/dist/esm/node_modules/@mui/material/Modal/useModal.js +1 -1
  224. package/dist/esm/node_modules/@mui/material/Modal/useModal.js.map +1 -1
  225. package/dist/esm/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +1 -1
  226. package/dist/esm/node_modules/@mui/material/NativeSelect/NativeSelectInput.js.map +1 -1
  227. package/dist/esm/node_modules/@mui/material/NativeSelect/nativeSelectClasses.js +1 -1
  228. package/dist/esm/node_modules/@mui/material/NativeSelect/nativeSelectClasses.js.map +1 -1
  229. package/dist/esm/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +1 -1
  230. package/dist/esm/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -1
  231. package/dist/esm/node_modules/@mui/material/OutlinedInput/OutlinedInput.js.map +1 -1
  232. package/dist/esm/node_modules/@mui/material/OutlinedInput/outlinedInputClasses.js +1 -1
  233. package/dist/esm/node_modules/@mui/material/OutlinedInput/outlinedInputClasses.js.map +1 -1
  234. package/dist/esm/node_modules/@mui/material/Paper/Paper.js +1 -1
  235. package/dist/esm/node_modules/@mui/material/Paper/Paper.js.map +1 -1
  236. package/dist/esm/node_modules/@mui/material/Paper/paperClasses.js +1 -1
  237. package/dist/esm/node_modules/@mui/material/Paper/paperClasses.js.map +1 -1
  238. package/dist/esm/node_modules/@mui/material/Popover/Popover.js +1 -1
  239. package/dist/esm/node_modules/@mui/material/Popover/Popover.js.map +1 -1
  240. package/dist/esm/node_modules/@mui/material/Popover/popoverClasses.js +1 -1
  241. package/dist/esm/node_modules/@mui/material/Popover/popoverClasses.js.map +1 -1
  242. package/dist/esm/node_modules/@mui/material/Popper/BasePopper.js +1 -1
  243. package/dist/esm/node_modules/@mui/material/Popper/BasePopper.js.map +1 -1
  244. package/dist/esm/node_modules/@mui/material/Popper/Popper.js +1 -1
  245. package/dist/esm/node_modules/@mui/material/Popper/Popper.js.map +1 -1
  246. package/dist/esm/node_modules/@mui/material/Popper/popperClasses.js +1 -1
  247. package/dist/esm/node_modules/@mui/material/Popper/popperClasses.js.map +1 -1
  248. package/dist/esm/node_modules/@mui/material/Portal/Portal.js +1 -1
  249. package/dist/esm/node_modules/@mui/material/Portal/Portal.js.map +1 -1
  250. package/dist/esm/node_modules/@mui/material/Radio/Radio.js +1 -1
  251. package/dist/esm/node_modules/@mui/material/Radio/Radio.js.map +1 -1
  252. package/dist/esm/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
  253. package/dist/esm/node_modules/@mui/material/Radio/radioClasses.js +1 -1
  254. package/dist/esm/node_modules/@mui/material/Radio/radioClasses.js.map +1 -1
  255. package/dist/esm/node_modules/@mui/material/RadioGroup/RadioGroup.js +1 -1
  256. package/dist/esm/node_modules/@mui/material/RadioGroup/RadioGroup.js.map +1 -1
  257. package/dist/esm/node_modules/@mui/material/RadioGroup/radioGroupClasses.js +1 -1
  258. package/dist/esm/node_modules/@mui/material/RadioGroup/radioGroupClasses.js.map +1 -1
  259. package/dist/esm/node_modules/@mui/material/Rating/Rating.js +1 -1
  260. package/dist/esm/node_modules/@mui/material/Rating/Rating.js.map +1 -1
  261. package/dist/esm/node_modules/@mui/material/Rating/ratingClasses.js +1 -1
  262. package/dist/esm/node_modules/@mui/material/Rating/ratingClasses.js.map +1 -1
  263. package/dist/esm/node_modules/@mui/material/Select/Select.js +1 -1
  264. package/dist/esm/node_modules/@mui/material/Select/Select.js.map +1 -1
  265. package/dist/esm/node_modules/@mui/material/Select/SelectInput.js +1 -1
  266. package/dist/esm/node_modules/@mui/material/Select/SelectInput.js.map +1 -1
  267. package/dist/esm/node_modules/@mui/material/Select/selectClasses.js +1 -1
  268. package/dist/esm/node_modules/@mui/material/Select/selectClasses.js.map +1 -1
  269. package/dist/esm/node_modules/@mui/material/Slide/Slide.js +1 -1
  270. package/dist/esm/node_modules/@mui/material/Slide/Slide.js.map +1 -1
  271. package/dist/esm/node_modules/@mui/material/Slider/Slider.js +1 -1
  272. package/dist/esm/node_modules/@mui/material/Slider/Slider.js.map +1 -1
  273. package/dist/esm/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -1
  274. package/dist/esm/node_modules/@mui/material/Slider/sliderClasses.js +1 -1
  275. package/dist/esm/node_modules/@mui/material/Slider/sliderClasses.js.map +1 -1
  276. package/dist/esm/node_modules/@mui/material/Slider/useSlider.js +1 -1
  277. package/dist/esm/node_modules/@mui/material/Slider/useSlider.js.map +1 -1
  278. package/dist/esm/node_modules/@mui/material/SpeedDial/SpeedDial.js +1 -1
  279. package/dist/esm/node_modules/@mui/material/SpeedDial/SpeedDial.js.map +1 -1
  280. package/dist/esm/node_modules/@mui/material/SpeedDial/speedDialClasses.js +1 -1
  281. package/dist/esm/node_modules/@mui/material/SpeedDial/speedDialClasses.js.map +1 -1
  282. package/dist/esm/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +1 -1
  283. package/dist/esm/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js.map +1 -1
  284. package/dist/esm/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses.js +1 -1
  285. package/dist/esm/node_modules/@mui/material/SpeedDialAction/speedDialActionClasses.js.map +1 -1
  286. package/dist/esm/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js +1 -1
  287. package/dist/esm/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js.map +1 -1
  288. package/dist/esm/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses.js +1 -1
  289. package/dist/esm/node_modules/@mui/material/SpeedDialIcon/speedDialIconClasses.js.map +1 -1
  290. package/dist/esm/node_modules/@mui/material/Stack/Stack.js +1 -1
  291. package/dist/esm/node_modules/@mui/material/Stack/Stack.js.map +1 -1
  292. package/dist/esm/node_modules/@mui/material/Step/Step.js +1 -1
  293. package/dist/esm/node_modules/@mui/material/Step/Step.js.map +1 -1
  294. package/dist/esm/node_modules/@mui/material/Step/stepClasses.js +1 -1
  295. package/dist/esm/node_modules/@mui/material/Step/stepClasses.js.map +1 -1
  296. package/dist/esm/node_modules/@mui/material/StepConnector/StepConnector.js +1 -1
  297. package/dist/esm/node_modules/@mui/material/StepConnector/StepConnector.js.map +1 -1
  298. package/dist/esm/node_modules/@mui/material/StepConnector/stepConnectorClasses.js +1 -1
  299. package/dist/esm/node_modules/@mui/material/StepConnector/stepConnectorClasses.js.map +1 -1
  300. package/dist/esm/node_modules/@mui/material/StepContent/StepContent.js +1 -1
  301. package/dist/esm/node_modules/@mui/material/StepContent/StepContent.js.map +1 -1
  302. package/dist/esm/node_modules/@mui/material/StepContent/stepContentClasses.js +1 -1
  303. package/dist/esm/node_modules/@mui/material/StepContent/stepContentClasses.js.map +1 -1
  304. package/dist/esm/node_modules/@mui/material/StepIcon/StepIcon.js +1 -1
  305. package/dist/esm/node_modules/@mui/material/StepIcon/StepIcon.js.map +1 -1
  306. package/dist/esm/node_modules/@mui/material/StepIcon/stepIconClasses.js +1 -1
  307. package/dist/esm/node_modules/@mui/material/StepIcon/stepIconClasses.js.map +1 -1
  308. package/dist/esm/node_modules/@mui/material/StepLabel/StepLabel.js +1 -1
  309. package/dist/esm/node_modules/@mui/material/StepLabel/StepLabel.js.map +1 -1
  310. package/dist/esm/node_modules/@mui/material/StepLabel/stepLabelClasses.js +1 -1
  311. package/dist/esm/node_modules/@mui/material/StepLabel/stepLabelClasses.js.map +1 -1
  312. package/dist/esm/node_modules/@mui/material/Stepper/Stepper.js +1 -1
  313. package/dist/esm/node_modules/@mui/material/Stepper/Stepper.js.map +1 -1
  314. package/dist/esm/node_modules/@mui/material/Stepper/stepperClasses.js +1 -1
  315. package/dist/esm/node_modules/@mui/material/Stepper/stepperClasses.js.map +1 -1
  316. package/dist/esm/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -1
  317. package/dist/esm/node_modules/@mui/material/SvgIcon/SvgIcon.js.map +1 -1
  318. package/dist/esm/node_modules/@mui/material/SvgIcon/svgIconClasses.js +1 -1
  319. package/dist/esm/node_modules/@mui/material/SvgIcon/svgIconClasses.js.map +1 -1
  320. package/dist/esm/node_modules/@mui/material/Switch/Switch.js +1 -1
  321. package/dist/esm/node_modules/@mui/material/Switch/Switch.js.map +1 -1
  322. package/dist/esm/node_modules/@mui/material/Switch/switchClasses.js +1 -1
  323. package/dist/esm/node_modules/@mui/material/Switch/switchClasses.js.map +1 -1
  324. package/dist/esm/node_modules/@mui/material/Tab/Tab.js +1 -1
  325. package/dist/esm/node_modules/@mui/material/Tab/Tab.js.map +1 -1
  326. package/dist/esm/node_modules/@mui/material/Tab/tabClasses.js +1 -1
  327. package/dist/esm/node_modules/@mui/material/Tab/tabClasses.js.map +1 -1
  328. package/dist/esm/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +1 -1
  329. package/dist/esm/node_modules/@mui/material/TabScrollButton/TabScrollButton.js.map +1 -1
  330. package/dist/esm/node_modules/@mui/material/TabScrollButton/tabScrollButtonClasses.js +1 -1
  331. package/dist/esm/node_modules/@mui/material/TabScrollButton/tabScrollButtonClasses.js.map +1 -1
  332. package/dist/esm/node_modules/@mui/material/Tabs/ScrollbarSize.js +1 -1
  333. package/dist/esm/node_modules/@mui/material/Tabs/ScrollbarSize.js.map +1 -1
  334. package/dist/esm/node_modules/@mui/material/Tabs/Tabs.js +1 -1
  335. package/dist/esm/node_modules/@mui/material/Tabs/Tabs.js.map +1 -1
  336. package/dist/esm/node_modules/@mui/material/Tabs/tabsClasses.js +1 -1
  337. package/dist/esm/node_modules/@mui/material/Tabs/tabsClasses.js.map +1 -1
  338. package/dist/esm/node_modules/@mui/material/TextField/TextField.js +1 -1
  339. package/dist/esm/node_modules/@mui/material/TextField/TextField.js.map +1 -1
  340. package/dist/esm/node_modules/@mui/material/TextField/textFieldClasses.js +1 -1
  341. package/dist/esm/node_modules/@mui/material/TextField/textFieldClasses.js.map +1 -1
  342. package/dist/esm/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +1 -1
  343. package/dist/esm/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js.map +1 -1
  344. package/dist/esm/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
  345. package/dist/esm/node_modules/@mui/material/Tooltip/Tooltip.js.map +1 -1
  346. package/dist/esm/node_modules/@mui/material/Tooltip/tooltipClasses.js +1 -1
  347. package/dist/esm/node_modules/@mui/material/Tooltip/tooltipClasses.js.map +1 -1
  348. package/dist/esm/node_modules/@mui/material/Typography/Typography.js +1 -1
  349. package/dist/esm/node_modules/@mui/material/Typography/Typography.js.map +1 -1
  350. package/dist/esm/node_modules/@mui/material/Typography/typographyClasses.js +1 -1
  351. package/dist/esm/node_modules/@mui/material/Typography/typographyClasses.js.map +1 -1
  352. package/dist/esm/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +1 -1
  353. package/dist/esm/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js.map +1 -1
  354. package/dist/esm/node_modules/@mui/material/Zoom/Zoom.js +1 -1
  355. package/dist/esm/node_modules/@mui/material/Zoom/Zoom.js.map +1 -1
  356. package/dist/esm/node_modules/@mui/material/internal/SwitchBase.js +1 -1
  357. package/dist/esm/node_modules/@mui/material/internal/SwitchBase.js.map +1 -1
  358. package/dist/esm/node_modules/@mui/material/internal/switchBaseClasses.js +1 -1
  359. package/dist/esm/node_modules/@mui/material/internal/switchBaseClasses.js.map +1 -1
  360. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
  361. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js.map +1 -0
  362. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js.map +1 -0
  363. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -0
  364. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +1 -0
  365. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/clamp/clamp.js.map +1 -0
  366. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +1 -0
  367. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js.map +1 -0
  368. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/debounce/debounce.js.map +1 -0
  369. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +2 -0
  370. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +1 -0
  371. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +2 -0
  372. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -0
  373. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +2 -0
  374. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -0
  375. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -0
  376. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js.map +1 -0
  377. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
  378. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -0
  379. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +1 -0
  380. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js.map +1 -0
  381. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js.map +1 -0
  382. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +1 -0
  383. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js.map +1 -0
  384. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js.map +1 -0
  385. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +1 -0
  386. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +2 -0
  387. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js.map +1 -0
  388. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js.map +1 -0
  389. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js.map +1 -0
  390. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js.map +1 -0
  391. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js.map +1 -0
  392. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/refType/refType.js +2 -0
  393. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/refType/refType.js.map +1 -0
  394. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js.map +1 -0
  395. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -0
  396. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/setRef/setRef.js.map +1 -0
  397. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp.js.map +1 -0
  398. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useControlled/useControlled.js.map +1 -0
  399. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +1 -0
  400. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js.map +1 -0
  401. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useForkRef/useForkRef.js.map +1 -0
  402. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useId/useId.js.map +1 -0
  403. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js.map +1 -0
  404. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useOnMount/useOnMount.js.map +1 -0
  405. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js.map +1 -0
  406. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js.map +1 -0
  407. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/useTimeout/useTimeout.js.map +1 -0
  408. package/dist/esm/node_modules/@mui/material/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js.map +1 -0
  409. package/dist/esm/node_modules/@mui/material/node_modules/react-is/cjs/react-is.development.js +1 -1
  410. package/dist/esm/node_modules/@mui/material/node_modules/react-is/index.js +1 -1
  411. package/dist/esm/node_modules/@mui/material/styles/ThemeProviderNoVars.js +1 -1
  412. package/dist/esm/node_modules/@mui/material/styles/ThemeProviderNoVars.js.map +1 -1
  413. package/dist/esm/node_modules/@mui/material/styles/ThemeProviderWithVars.js +1 -1
  414. package/dist/esm/node_modules/@mui/material/styles/ThemeProviderWithVars.js.map +1 -1
  415. package/dist/esm/node_modules/@mui/material/styles/createPalette.js +1 -1
  416. package/dist/esm/node_modules/@mui/material/styles/createPalette.js.map +1 -1
  417. package/dist/esm/node_modules/@mui/material/styles/createThemeNoVars.js +1 -1
  418. package/dist/esm/node_modules/@mui/material/styles/createThemeNoVars.js.map +1 -1
  419. package/dist/esm/node_modules/@mui/material/styles/createThemeWithVars.js +1 -1
  420. package/dist/esm/node_modules/@mui/material/styles/createThemeWithVars.js.map +1 -1
  421. package/dist/esm/node_modules/@mui/material/styles/createTypography.js +1 -1
  422. package/dist/esm/node_modules/@mui/material/styles/createTypography.js.map +1 -1
  423. package/dist/esm/node_modules/@mui/material/styles/stringifyTheme.js +1 -1
  424. package/dist/esm/node_modules/@mui/material/styles/stringifyTheme.js.map +1 -1
  425. package/dist/esm/node_modules/@mui/material/styles/useTheme.js +1 -1
  426. package/dist/esm/node_modules/@mui/material/styles/useTheme.js.map +1 -1
  427. package/dist/esm/node_modules/@mui/material/useLazyRipple/useLazyRipple.js +1 -1
  428. package/dist/esm/node_modules/@mui/material/useLazyRipple/useLazyRipple.js.map +1 -1
  429. package/dist/esm/node_modules/@mui/material/utils/capitalize.js +1 -1
  430. package/dist/esm/node_modules/@mui/material/utils/createChainedFunction.js +1 -1
  431. package/dist/esm/node_modules/@mui/material/utils/debounce.js +1 -1
  432. package/dist/esm/node_modules/@mui/material/utils/getScrollbarSize.js +1 -1
  433. package/dist/esm/node_modules/@mui/material/utils/isMuiElement.js +1 -1
  434. package/dist/esm/node_modules/@mui/material/utils/memoTheme.js +1 -1
  435. package/dist/esm/node_modules/@mui/material/utils/memoTheme.js.map +1 -1
  436. package/dist/esm/node_modules/@mui/material/utils/ownerDocument.js +1 -1
  437. package/dist/esm/node_modules/@mui/material/utils/ownerWindow.js +1 -1
  438. package/dist/esm/node_modules/@mui/material/utils/unsupportedProp.js +1 -1
  439. package/dist/esm/node_modules/@mui/material/utils/useControlled.js +1 -1
  440. package/dist/esm/node_modules/@mui/material/utils/useEnhancedEffect.js +1 -1
  441. package/dist/esm/node_modules/@mui/material/utils/useEventCallback.js +1 -1
  442. package/dist/esm/node_modules/@mui/material/utils/useForkRef.js +1 -1
  443. package/dist/esm/node_modules/@mui/material/utils/useId.js +1 -1
  444. package/dist/esm/node_modules/@mui/material/utils/useSlot.js +1 -1
  445. package/dist/esm/node_modules/@mui/material/utils/useSlot.js.map +1 -1
  446. package/dist/esm/node_modules/@mui/material/zero-styled/index.js +1 -1
  447. package/dist/esm/node_modules/@mui/material/zero-styled/index.js.map +1 -1
  448. package/dist/esm/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +1 -1
  449. package/dist/esm/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js.map +1 -1
  450. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +2 -0
  451. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +1 -0
  452. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +2 -0
  453. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -0
  454. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +2 -0
  455. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -0
  456. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/exactProp/exactProp.js +2 -0
  457. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -0
  458. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/integerPropType/integerPropType.js +2 -0
  459. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +1 -0
  460. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js +2 -0
  461. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js.map +1 -0
  462. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/refType/refType.js +2 -0
  463. package/dist/esm/node_modules/@mui/private-theming/node_modules/@mui/utils/esm/refType/refType.js.map +1 -0
  464. package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/cjs/react-is.development.js +11 -0
  465. package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  466. package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/cjs/react-is.production.js +11 -0
  467. package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/cjs/react-is.production.js.map +1 -0
  468. package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/index.js +2 -0
  469. package/dist/esm/node_modules/@mui/private-theming/node_modules/react-is/index.js.map +1 -0
  470. package/dist/esm/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
  471. package/dist/esm/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +1 -1
  472. package/dist/esm/node_modules/@mui/system/esm/Box/Box.js +1 -1
  473. package/dist/esm/node_modules/@mui/system/esm/Box/Box.js.map +1 -1
  474. package/dist/esm/node_modules/@mui/system/esm/Box/boxClasses.js +1 -1
  475. package/dist/esm/node_modules/@mui/system/esm/Box/boxClasses.js.map +1 -1
  476. package/dist/esm/node_modules/@mui/system/esm/Container/Container.js +1 -1
  477. package/dist/esm/node_modules/@mui/system/esm/Container/containerClasses.js +1 -1
  478. package/dist/esm/node_modules/@mui/system/esm/Container/containerClasses.js.map +1 -1
  479. package/dist/esm/node_modules/@mui/system/esm/Container/createContainer.js +1 -1
  480. package/dist/esm/node_modules/@mui/system/esm/Container/createContainer.js.map +1 -1
  481. package/dist/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
  482. package/dist/esm/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
  483. package/dist/esm/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
  484. package/dist/esm/node_modules/@mui/system/esm/Grid/Grid.js +1 -1
  485. package/dist/esm/node_modules/@mui/system/esm/Grid/createGrid.js +1 -1
  486. package/dist/esm/node_modules/@mui/system/esm/Grid/createGrid.js.map +1 -1
  487. package/dist/esm/node_modules/@mui/system/esm/Grid/gridClasses.js +1 -1
  488. package/dist/esm/node_modules/@mui/system/esm/Grid/gridClasses.js.map +1 -1
  489. package/dist/esm/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
  490. package/dist/esm/node_modules/@mui/system/esm/Stack/Stack.js +1 -1
  491. package/dist/esm/node_modules/@mui/system/esm/Stack/createStack.js +1 -1
  492. package/dist/esm/node_modules/@mui/system/esm/Stack/createStack.js.map +1 -1
  493. package/dist/esm/node_modules/@mui/system/esm/Stack/stackClasses.js +1 -1
  494. package/dist/esm/node_modules/@mui/system/esm/Stack/stackClasses.js.map +1 -1
  495. package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
  496. package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -1
  497. package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js +1 -1
  498. package/dist/esm/node_modules/@mui/system/esm/ThemeProvider/useLayerOrder.js.map +1 -1
  499. package/dist/esm/node_modules/@mui/system/esm/breakpoints/breakpoints.js +1 -1
  500. package/dist/esm/node_modules/@mui/system/esm/breakpoints/breakpoints.js.map +1 -1
  501. package/dist/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js +1 -1
  502. package/dist/esm/node_modules/@mui/system/esm/colorManipulator/colorManipulator.js.map +1 -1
  503. package/dist/esm/node_modules/@mui/system/esm/createStyled/createStyled.js +1 -1
  504. package/dist/esm/node_modules/@mui/system/esm/createStyled/createStyled.js.map +1 -1
  505. package/dist/esm/node_modules/@mui/system/esm/createTheme/createTheme.js +1 -1
  506. package/dist/esm/node_modules/@mui/system/esm/createTheme/createTheme.js.map +1 -1
  507. package/dist/esm/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js +1 -1
  508. package/dist/esm/node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js.map +1 -1
  509. package/dist/esm/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
  510. package/dist/esm/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js.map +1 -1
  511. package/dist/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js +1 -1
  512. package/dist/esm/node_modules/@mui/system/esm/cssVars/prepareCssVars.js.map +1 -1
  513. package/dist/esm/node_modules/@mui/system/esm/merge/merge.js +1 -1
  514. package/dist/esm/node_modules/@mui/system/esm/merge/merge.js.map +1 -1
  515. package/dist/esm/node_modules/@mui/system/esm/responsivePropType/responsivePropType.js +1 -1
  516. package/dist/esm/node_modules/@mui/system/esm/style/style.js +1 -1
  517. package/dist/esm/node_modules/@mui/system/esm/style/style.js.map +1 -1
  518. package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js +1 -1
  519. package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js.map +1 -1
  520. package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +1 -1
  521. package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js.map +1 -1
  522. package/dist/esm/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js +1 -1
  523. package/dist/esm/node_modules/@mui/system/esm/useMediaQuery/useMediaQuery.js.map +1 -1
  524. package/dist/esm/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +1 -1
  525. package/dist/esm/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js.map +1 -1
  526. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +2 -0
  527. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
  528. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/capitalize.js +2 -0
  529. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -0
  530. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/clamp.js +2 -0
  531. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/clamp/clamp.js.map +1 -0
  532. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +2 -0
  533. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +1 -0
  534. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +2 -0
  535. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/deepmerge/deepmerge.js.map +1 -0
  536. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/exactProp/exactProp.js +2 -0
  537. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +1 -0
  538. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +2 -0
  539. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
  540. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +2 -0
  541. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -0
  542. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +2 -0
  543. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +1 -0
  544. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +2 -0
  545. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +1 -0
  546. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js +2 -0
  547. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +1 -0
  548. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/resolveProps/resolveProps.js +2 -0
  549. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +1 -0
  550. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +2 -0
  551. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +1 -0
  552. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/useId/useId.js +2 -0
  553. package/dist/esm/node_modules/@mui/system/node_modules/@mui/utils/esm/useId/useId.js.map +1 -0
  554. package/dist/esm/node_modules/@mui/system/node_modules/react-is/cjs/react-is.development.js +11 -0
  555. package/dist/esm/node_modules/@mui/system/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  556. package/dist/esm/node_modules/@mui/system/node_modules/react-is/cjs/react-is.production.js +11 -0
  557. package/dist/esm/node_modules/@mui/system/node_modules/react-is/cjs/react-is.production.js.map +1 -0
  558. package/dist/esm/node_modules/@mui/system/node_modules/react-is/index.js +2 -0
  559. package/dist/esm/node_modules/@mui/system/node_modules/react-is/index.js.map +1 -0
  560. package/dist/esm/node_modules/@mui/utils/esm/deepmerge/deepmerge.js +1 -1
  561. package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +1 -1
  562. package/dist/esm/node_modules/@mui/utils/node_modules/react-is/index.js +1 -1
  563. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar.js +1 -1
  564. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar.js.map +1 -1
  565. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/DayCalendar.js +1 -1
  566. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/DayCalendar.js.map +1 -1
  567. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/PickersFadeTransitionGroup.js +1 -1
  568. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/PickersFadeTransitionGroup.js.map +1 -1
  569. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/PickersSlideTransition.js +1 -1
  570. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/PickersSlideTransition.js.map +1 -1
  571. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/dateCalendarClasses.js +1 -1
  572. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/dateCalendarClasses.js.map +1 -1
  573. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/dayCalendarClasses.js +1 -1
  574. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/dayCalendarClasses.js.map +1 -1
  575. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/pickersFadeTransitionGroupClasses.js +1 -1
  576. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/pickersFadeTransitionGroupClasses.js.map +1 -1
  577. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/pickersSlideTransitionClasses.js +1 -1
  578. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/pickersSlideTransitionClasses.js.map +1 -1
  579. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/useCalendarState.js +1 -1
  580. package/dist/esm/node_modules/@mui/x-date-pickers/DateCalendar/useCalendarState.js.map +1 -1
  581. package/dist/esm/node_modules/@mui/x-date-pickers/DateField/DateField.js +1 -1
  582. package/dist/esm/node_modules/@mui/x-date-pickers/DateField/DateField.js.map +1 -1
  583. package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePicker.js +1 -1
  584. package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePicker.js.map +1 -1
  585. package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar.js +1 -1
  586. package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar.js.map +1 -1
  587. package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/datePickerToolbarClasses.js +1 -1
  588. package/dist/esm/node_modules/@mui/x-date-pickers/DatePicker/datePickerToolbarClasses.js.map +1 -1
  589. package/dist/esm/node_modules/@mui/x-date-pickers/DesktopDatePicker/DesktopDatePicker.js +1 -1
  590. package/dist/esm/node_modules/@mui/x-date-pickers/DesktopDatePicker/DesktopDatePicker.js.map +1 -1
  591. package/dist/esm/node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider.js +1 -1
  592. package/dist/esm/node_modules/@mui/x-date-pickers/MobileDatePicker/MobileDatePicker.js +1 -1
  593. package/dist/esm/node_modules/@mui/x-date-pickers/MobileDatePicker/MobileDatePicker.js.map +1 -1
  594. package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar.js +1 -1
  595. package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar.js.map +1 -1
  596. package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/PickersMonth.js +1 -1
  597. package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/PickersMonth.js.map +1 -1
  598. package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/monthCalendarClasses.js +1 -1
  599. package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/monthCalendarClasses.js.map +1 -1
  600. package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/pickersMonthClasses.js +1 -1
  601. package/dist/esm/node_modules/@mui/x-date-pickers/MonthCalendar/pickersMonthClasses.js.map +1 -1
  602. package/dist/esm/node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar.js +1 -1
  603. package/dist/esm/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader.js +1 -1
  604. package/dist/esm/node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader.js.map +1 -1
  605. package/dist/esm/node_modules/@mui/x-date-pickers/PickersCalendarHeader/pickersCalendarHeaderClasses.js +1 -1
  606. package/dist/esm/node_modules/@mui/x-date-pickers/PickersCalendarHeader/pickersCalendarHeaderClasses.js.map +1 -1
  607. package/dist/esm/node_modules/@mui/x-date-pickers/PickersDay/PickersDay.js +1 -1
  608. package/dist/esm/node_modules/@mui/x-date-pickers/PickersDay/PickersDay.js.map +1 -1
  609. package/dist/esm/node_modules/@mui/x-date-pickers/PickersDay/pickersDayClasses.js +1 -1
  610. package/dist/esm/node_modules/@mui/x-date-pickers/PickersDay/pickersDayClasses.js.map +1 -1
  611. package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout.js +1 -1
  612. package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout.js.map +1 -1
  613. package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/pickersLayoutClasses.js +1 -1
  614. package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/pickersLayoutClasses.js.map +1 -1
  615. package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/usePickerLayout.js +1 -1
  616. package/dist/esm/node_modules/@mui/x-date-pickers/PickersLayout/usePickerLayout.js.map +1 -1
  617. package/dist/esm/node_modules/@mui/x-date-pickers/PickersSectionList/PickersSectionList.js +1 -1
  618. package/dist/esm/node_modules/@mui/x-date-pickers/PickersSectionList/PickersSectionList.js.map +1 -1
  619. package/dist/esm/node_modules/@mui/x-date-pickers/PickersSectionList/pickersSectionListClasses.js +1 -1
  620. package/dist/esm/node_modules/@mui/x-date-pickers/PickersSectionList/pickersSectionListClasses.js.map +1 -1
  621. package/dist/esm/node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts.js +1 -1
  622. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/PickersFilledInput.js +1 -1
  623. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/PickersFilledInput.js.map +1 -1
  624. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js +1 -1
  625. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js.map +1 -1
  626. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/PickersInput.js +1 -1
  627. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/PickersInput.js.map +1 -1
  628. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/pickersInputClasses.js +1 -1
  629. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/pickersInputClasses.js.map +1 -1
  630. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/PickersInputBase.js +1 -1
  631. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/PickersInputBase.js.map +1 -1
  632. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/pickersInputBaseClasses.js +1 -1
  633. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/pickersInputBaseClasses.js.map +1 -1
  634. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js +1 -1
  635. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js.map +1 -1
  636. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js +1 -1
  637. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js.map +1 -1
  638. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersTextField.js +1 -1
  639. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/PickersTextField.js.map +1 -1
  640. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/pickersTextFieldClasses.js +1 -1
  641. package/dist/esm/node_modules/@mui/x-date-pickers/PickersTextField/pickersTextFieldClasses.js.map +1 -1
  642. package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/PickersYear.js +1 -1
  643. package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/PickersYear.js.map +1 -1
  644. package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar.js +1 -1
  645. package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar.js.map +1 -1
  646. package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/pickersYearClasses.js +1 -1
  647. package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/pickersYearClasses.js.map +1 -1
  648. package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/yearCalendarClasses.js +1 -1
  649. package/dist/esm/node_modules/@mui/x-date-pickers/YearCalendar/yearCalendarClasses.js.map +1 -1
  650. package/dist/esm/node_modules/@mui/x-date-pickers/hooks/useClearableField.js +1 -1
  651. package/dist/esm/node_modules/@mui/x-date-pickers/hooks/useClearableField.js.map +1 -1
  652. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js +1 -1
  653. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js.map +1 -1
  654. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js +1 -1
  655. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js.map +1 -1
  656. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersPopper.js +1 -1
  657. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersPopper.js.map +1 -1
  658. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersToolbar.js +1 -1
  659. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/PickersToolbar.js.map +1 -1
  660. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/pickersPopperClasses.js +1 -1
  661. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/pickersPopperClasses.js.map +1 -1
  662. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/pickersToolbarClasses.js +1 -1
  663. package/dist/esm/node_modules/@mui/x-date-pickers/internals/components/pickersToolbarClasses.js.map +1 -1
  664. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useDesktopPicker/useDesktopPicker.js +1 -1
  665. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useDesktopPicker/useDesktopPicker.js.map +1 -1
  666. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.js +1 -1
  667. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.js.map +1 -1
  668. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldCharacterEditing.js +1 -1
  669. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldCharacterEditing.js.map +1 -1
  670. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldState.js +1 -1
  671. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldState.js.map +1 -1
  672. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV6TextField.js +1 -1
  673. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV6TextField.js.map +1 -1
  674. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV7TextField.js +1 -1
  675. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV7TextField.js.map +1 -1
  676. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useIsLandscape.js +1 -1
  677. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useIsLandscape.js.map +1 -1
  678. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useMobilePicker/useMobilePicker.js +1 -1
  679. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useMobilePicker/useMobilePicker.js.map +1 -1
  680. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue.js +1 -1
  681. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue.js.map +1 -1
  682. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerViews.js +1 -1
  683. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerViews.js.map +1 -1
  684. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useValueWithTimezone.js +1 -1
  685. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useValueWithTimezone.js.map +1 -1
  686. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useViews.js +1 -1
  687. package/dist/esm/node_modules/@mui/x-date-pickers/internals/hooks/useViews.js.map +1 -1
  688. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +2 -0
  689. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +1 -0
  690. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js +2 -0
  691. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js.map +1 -0
  692. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/capitalize/capitalize.js +2 -0
  693. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +1 -0
  694. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +2 -0
  695. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +1 -0
  696. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +2 -0
  697. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +1 -0
  698. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +2 -0
  699. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -0
  700. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +2 -0
  701. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -0
  702. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js +2 -0
  703. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js.map +1 -0
  704. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +2 -0
  705. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +1 -0
  706. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +2 -0
  707. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +1 -0
  708. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +2 -0
  709. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +1 -0
  710. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/integerPropType/integerPropType.js +2 -0
  711. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +1 -0
  712. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js +2 -0
  713. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js.map +1 -0
  714. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +2 -0
  715. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js.map +1 -0
  716. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js +2 -0
  717. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js.map +1 -0
  718. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +2 -0
  719. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js.map +1 -0
  720. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js +2 -0
  721. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js.map +1 -0
  722. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/refType/refType.js +2 -0
  723. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/refType/refType.js.map +1 -0
  724. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js +2 -0
  725. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js.map +1 -0
  726. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useControlled/useControlled.js +2 -0
  727. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useControlled/useControlled.js.map +1 -0
  728. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +2 -0
  729. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +1 -0
  730. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +2 -0
  731. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js.map +1 -0
  732. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +2 -0
  733. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useForkRef/useForkRef.js.map +1 -0
  734. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useId/useId.js +2 -0
  735. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useId/useId.js.map +1 -0
  736. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js +2 -0
  737. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js.map +1 -0
  738. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js +2 -0
  739. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js.map +1 -0
  740. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/cjs/react-is.development.js +11 -0
  741. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  742. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/cjs/react-is.production.js +11 -0
  743. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/cjs/react-is.production.js.map +1 -0
  744. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/index.js +2 -0
  745. package/dist/esm/node_modules/@mui/x-date-pickers/node_modules/react-is/index.js.map +1 -0
  746. package/dist/esm/node_modules/@mui/x-date-pickers/validation/useValidation.js +1 -1
  747. package/dist/esm/node_modules/@mui/x-date-pickers/validation/useValidation.js.map +1 -1
  748. package/dist/esm/node_modules/prop-types/index.js +1 -1
  749. package/dist/esm/node_modules/react-slick/lib/index.js +1 -1
  750. package/dist/esm/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
  751. package/dist/esm/node_modules/react-transition-group/esm/ReplaceTransition.js +1 -1
  752. package/dist/esm/node_modules/react-transition-group/esm/SwitchTransition.js +1 -1
  753. package/dist/esm/node_modules/react-transition-group/esm/Transition.js +1 -1
  754. package/dist/esm/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
  755. package/dist/esm/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
  756. package/package.json +2 -1
  757. package/dist/esm/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js.map +0 -1
  758. package/dist/esm/node_modules/@mui/utils/esm/HTMLElementType/HTMLElementType.js.map +0 -1
  759. package/dist/esm/node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js.map +0 -1
  760. package/dist/esm/node_modules/@mui/utils/esm/capitalize/capitalize.js.map +0 -1
  761. package/dist/esm/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js.map +0 -1
  762. package/dist/esm/node_modules/@mui/utils/esm/clamp/clamp.js.map +0 -1
  763. package/dist/esm/node_modules/@mui/utils/esm/composeClasses/composeClasses.js.map +0 -1
  764. package/dist/esm/node_modules/@mui/utils/esm/createChainedFunction/createChainedFunction.js.map +0 -1
  765. package/dist/esm/node_modules/@mui/utils/esm/debounce/debounce.js.map +0 -1
  766. package/dist/esm/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +0 -2
  767. package/dist/esm/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +0 -1
  768. package/dist/esm/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +0 -2
  769. package/dist/esm/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +0 -1
  770. package/dist/esm/node_modules/@mui/utils/esm/exactProp/exactProp.js.map +0 -1
  771. package/dist/esm/node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js.map +0 -1
  772. package/dist/esm/node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js.map +0 -1
  773. package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js.map +0 -1
  774. package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js.map +0 -1
  775. package/dist/esm/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +0 -2
  776. package/dist/esm/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js.map +0 -1
  777. package/dist/esm/node_modules/@mui/utils/esm/getReactElementRef/getReactElementRef.js.map +0 -1
  778. package/dist/esm/node_modules/@mui/utils/esm/getScrollbarSize/getScrollbarSize.js.map +0 -1
  779. package/dist/esm/node_modules/@mui/utils/esm/integerPropType/integerPropType.js.map +0 -1
  780. package/dist/esm/node_modules/@mui/utils/esm/isFocusVisible/isFocusVisible.js.map +0 -1
  781. package/dist/esm/node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js.map +0 -1
  782. package/dist/esm/node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js.map +0 -1
  783. package/dist/esm/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js +0 -2
  784. package/dist/esm/node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js.map +0 -1
  785. package/dist/esm/node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js.map +0 -1
  786. package/dist/esm/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js.map +0 -1
  787. package/dist/esm/node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js.map +0 -1
  788. package/dist/esm/node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js.map +0 -1
  789. package/dist/esm/node_modules/@mui/utils/esm/refType/refType.js +0 -2
  790. package/dist/esm/node_modules/@mui/utils/esm/refType/refType.js.map +0 -1
  791. package/dist/esm/node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js.map +0 -1
  792. package/dist/esm/node_modules/@mui/utils/esm/resolveProps/resolveProps.js.map +0 -1
  793. package/dist/esm/node_modules/@mui/utils/esm/setRef/setRef.js.map +0 -1
  794. package/dist/esm/node_modules/@mui/utils/esm/unsupportedProp/unsupportedProp.js.map +0 -1
  795. package/dist/esm/node_modules/@mui/utils/esm/useControlled/useControlled.js.map +0 -1
  796. package/dist/esm/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js.map +0 -1
  797. package/dist/esm/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js.map +0 -1
  798. package/dist/esm/node_modules/@mui/utils/esm/useForkRef/useForkRef.js.map +0 -1
  799. package/dist/esm/node_modules/@mui/utils/esm/useId/useId.js.map +0 -1
  800. package/dist/esm/node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js.map +0 -1
  801. package/dist/esm/node_modules/@mui/utils/esm/useOnMount/useOnMount.js.map +0 -1
  802. package/dist/esm/node_modules/@mui/utils/esm/usePreviousProps/usePreviousProps.js.map +0 -1
  803. package/dist/esm/node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js.map +0 -1
  804. package/dist/esm/node_modules/@mui/utils/esm/useTimeout/useTimeout.js.map +0 -1
  805. package/dist/esm/node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js.map +0 -1
  806. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/ClassNameGenerator/ClassNameGenerator.js +0 -0
  807. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/HTMLElementType/HTMLElementType.js +0 -0
  808. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/appendOwnerState/appendOwnerState.js +0 -0
  809. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/capitalize/capitalize.js +0 -0
  810. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/chainPropTypes/chainPropTypes.js +0 -0
  811. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/clamp/clamp.js +0 -0
  812. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/composeClasses/composeClasses.js +0 -0
  813. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/createChainedFunction/createChainedFunction.js +0 -0
  814. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/debounce/debounce.js +0 -0
  815. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/exactProp/exactProp.js +0 -0
  816. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/extractEventHandlers/extractEventHandlers.js +0 -0
  817. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/formatMuiErrorMessage/formatMuiErrorMessage.js +0 -0
  818. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/generateUtilityClass/generateUtilityClass.js +0 -0
  819. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/generateUtilityClasses/generateUtilityClasses.js +0 -0
  820. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/getReactElementRef/getReactElementRef.js +0 -0
  821. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/getScrollbarSize/getScrollbarSize.js +0 -0
  822. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/integerPropType/integerPropType.js +0 -0
  823. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/isFocusVisible/isFocusVisible.js +0 -0
  824. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/isHostComponent/isHostComponent.js +0 -0
  825. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/isMuiElement/isMuiElement.js +0 -0
  826. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/omitEventHandlers/omitEventHandlers.js +0 -0
  827. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/ownerDocument/ownerDocument.js +0 -0
  828. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/ownerWindow/ownerWindow.js +0 -0
  829. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/ponyfillGlobal/ponyfillGlobal.js +0 -0
  830. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/resolveComponentProps/resolveComponentProps.js +0 -0
  831. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/resolveProps/resolveProps.js +0 -0
  832. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/setRef/setRef.js +0 -0
  833. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/unsupportedProp/unsupportedProp.js +0 -0
  834. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useControlled/useControlled.js +0 -0
  835. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useEnhancedEffect/useEnhancedEffect.js +0 -0
  836. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useEventCallback/useEventCallback.js +0 -0
  837. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useForkRef/useForkRef.js +0 -0
  838. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useId/useId.js +0 -0
  839. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useLazyRef/useLazyRef.js +0 -0
  840. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useOnMount/useOnMount.js +0 -0
  841. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/usePreviousProps/usePreviousProps.js +0 -0
  842. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useSlotProps/useSlotProps.js +0 -0
  843. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/useTimeout/useTimeout.js +0 -0
  844. /package/dist/esm/node_modules/@mui/{utils → material/node_modules/@mui/utils}/esm/visuallyHidden/visuallyHidden.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"useFieldV6TextField.js","sources":["../../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV6TextField.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { getActiveElement } from \"../../utils/utils.js\";\nimport { getSectionVisibleValue, isAndroid } from \"./useField.utils.js\";\nconst cleanString = dirtyString => dirtyString.replace(/[\\u2066\\u2067\\u2068\\u2069]/g, '');\nexport const addPositionPropertiesToSections = (sections, localizedDigits, isRtl) => {\n let position = 0;\n let positionInInput = isRtl ? 1 : 0;\n const newSections = [];\n for (let i = 0; i < sections.length; i += 1) {\n const section = sections[i];\n const renderedValue = getSectionVisibleValue(section, isRtl ? 'input-rtl' : 'input-ltr', localizedDigits);\n const sectionStr = `${section.startSeparator}${renderedValue}${section.endSeparator}`;\n const sectionLength = cleanString(sectionStr).length;\n const sectionLengthInInput = sectionStr.length;\n\n // The ...InInput values consider the unicode characters but do include them in their indexes\n const cleanedValue = cleanString(renderedValue);\n const startInInput = positionInInput + (cleanedValue === '' ? 0 : renderedValue.indexOf(cleanedValue[0])) + section.startSeparator.length;\n const endInInput = startInInput + cleanedValue.length;\n newSections.push(_extends({}, section, {\n start: position,\n end: position + sectionLength,\n startInInput,\n endInInput\n }));\n position += sectionLength;\n // Move position to the end of string associated to the current section\n positionInInput += sectionLengthInInput;\n }\n return newSections;\n};\nexport const useFieldV6TextField = params => {\n const isRtl = useRtl();\n const focusTimeoutRef = React.useRef(undefined);\n const selectionSyncTimeoutRef = React.useRef(undefined);\n const {\n forwardedProps: {\n onFocus,\n onClick,\n onPaste,\n onBlur,\n inputRef: inputRefProp,\n placeholder: inPlaceholder\n },\n internalProps: {\n readOnly = false,\n disabled = false\n },\n parsedSelectedSections,\n activeSectionIndex,\n state,\n fieldValueManager,\n valueManager,\n applyCharacterEditing,\n resetCharacterQuery,\n updateSectionValue,\n updateValueFromValueStr,\n clearActiveSection,\n clearValue,\n setTempAndroidValueStr,\n setSelectedSections,\n getSectionsFromValue,\n areAllSectionsEmpty,\n localizedDigits\n } = params;\n const inputRef = React.useRef(null);\n const handleRef = useForkRef(inputRefProp, inputRef);\n const sections = React.useMemo(() => addPositionPropertiesToSections(state.sections, localizedDigits, isRtl), [state.sections, localizedDigits, isRtl]);\n const interactions = React.useMemo(() => ({\n syncSelectionToDOM: () => {\n if (!inputRef.current) {\n return;\n }\n if (parsedSelectedSections == null) {\n if (inputRef.current.scrollLeft) {\n // Ensure that input content is not marked as selected.\n // setting selection range to 0 causes issues in Safari.\n // https://bugs.webkit.org/show_bug.cgi?id=224425\n inputRef.current.scrollLeft = 0;\n }\n return;\n }\n\n // On multi input range pickers we want to update selection range only for the active input\n // This helps to avoid the focus jumping on Safari https://github.com/mui/mui-x/issues/9003\n // because WebKit implements the `setSelectionRange` based on the spec: https://bugs.webkit.org/show_bug.cgi?id=224425\n if (inputRef.current !== getActiveElement(document)) {\n return;\n }\n\n // Fix scroll jumping on iOS browser: https://github.com/mui/mui-x/issues/8321\n const currentScrollTop = inputRef.current.scrollTop;\n if (parsedSelectedSections === 'all') {\n inputRef.current.select();\n } else {\n const selectedSection = sections[parsedSelectedSections];\n const selectionStart = selectedSection.type === 'empty' ? selectedSection.startInInput - selectedSection.startSeparator.length : selectedSection.startInInput;\n const selectionEnd = selectedSection.type === 'empty' ? selectedSection.endInInput + selectedSection.endSeparator.length : selectedSection.endInInput;\n if (selectionStart !== inputRef.current.selectionStart || selectionEnd !== inputRef.current.selectionEnd) {\n if (inputRef.current === getActiveElement(document)) {\n inputRef.current.setSelectionRange(selectionStart, selectionEnd);\n }\n }\n clearTimeout(selectionSyncTimeoutRef.current);\n selectionSyncTimeoutRef.current = setTimeout(() => {\n // handle case when the selection is not updated correctly\n // could happen on Android\n if (inputRef.current && inputRef.current === getActiveElement(document) &&\n // The section might loose all selection, where `selectionStart === selectionEnd`\n // https://github.com/mui/mui-x/pull/13652\n inputRef.current.selectionStart === inputRef.current.selectionEnd && (inputRef.current.selectionStart !== selectionStart || inputRef.current.selectionEnd !== selectionEnd)) {\n interactions.syncSelectionToDOM();\n }\n });\n }\n\n // Even reading this variable seems to do the trick, but also setting it just to make use of it\n inputRef.current.scrollTop = currentScrollTop;\n },\n getActiveSectionIndexFromDOM: () => {\n const browserStartIndex = inputRef.current.selectionStart ?? 0;\n const browserEndIndex = inputRef.current.selectionEnd ?? 0;\n if (browserStartIndex === 0 && browserEndIndex === 0) {\n return null;\n }\n const nextSectionIndex = browserStartIndex <= sections[0].startInInput ? 1 // Special case if browser index is in invisible characters at the beginning.\n : sections.findIndex(section => section.startInInput - section.startSeparator.length > browserStartIndex);\n return nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;\n },\n focusField: (newSelectedSection = 0) => {\n if (getActiveElement(document) === inputRef.current) {\n return;\n }\n inputRef.current?.focus();\n setSelectedSections(newSelectedSection);\n },\n setSelectedSections: newSelectedSections => setSelectedSections(newSelectedSections),\n isFieldFocused: () => inputRef.current === getActiveElement(document)\n }), [inputRef, parsedSelectedSections, sections, setSelectedSections]);\n const syncSelectionFromDOM = () => {\n const browserStartIndex = inputRef.current.selectionStart ?? 0;\n let nextSectionIndex;\n if (browserStartIndex <= sections[0].startInInput) {\n // Special case if browser index is in invisible characters at the beginning\n nextSectionIndex = 1;\n } else if (browserStartIndex >= sections[sections.length - 1].endInInput) {\n // If the click is after the last character of the input, then we want to select the 1st section.\n nextSectionIndex = 1;\n } else {\n nextSectionIndex = sections.findIndex(section => section.startInInput - section.startSeparator.length > browserStartIndex);\n }\n const sectionIndex = nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;\n setSelectedSections(sectionIndex);\n };\n const handleInputFocus = useEventCallback((...args) => {\n onFocus?.(...args);\n // The ref is guaranteed to be resolved at this point.\n const input = inputRef.current;\n clearTimeout(focusTimeoutRef.current);\n focusTimeoutRef.current = setTimeout(() => {\n // The ref changed, the component got remounted, the focus event is no longer relevant.\n if (!input || input !== inputRef.current) {\n return;\n }\n if (activeSectionIndex != null) {\n return;\n }\n if (\n // avoid selecting all sections when focusing empty field without value\n input.value.length && Number(input.selectionEnd) - Number(input.selectionStart) === input.value.length) {\n setSelectedSections('all');\n } else {\n syncSelectionFromDOM();\n }\n });\n });\n const handleInputClick = useEventCallback((event, ...args) => {\n // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.\n // We avoid this by checking if the call of `handleInputClick` is actually intended, or a side effect.\n if (event.isDefaultPrevented()) {\n return;\n }\n onClick?.(event, ...args);\n syncSelectionFromDOM();\n });\n const handleInputPaste = useEventCallback(event => {\n onPaste?.(event);\n\n // prevent default to avoid the input `onChange` handler being called\n event.preventDefault();\n if (readOnly || disabled) {\n return;\n }\n const pastedValue = event.clipboardData.getData('text');\n if (typeof parsedSelectedSections === 'number') {\n const activeSection = state.sections[parsedSelectedSections];\n const lettersOnly = /^[a-zA-Z]+$/.test(pastedValue);\n const digitsOnly = /^[0-9]+$/.test(pastedValue);\n const digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);\n const isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;\n if (isValidPastedValue) {\n resetCharacterQuery();\n updateSectionValue({\n activeSection,\n newSectionValue: pastedValue,\n shouldGoToNextSection: true\n });\n return;\n }\n if (lettersOnly || digitsOnly) {\n // The pasted value corresponds to a single section, but not the expected type,\n // skip the modification\n return;\n }\n }\n resetCharacterQuery();\n updateValueFromValueStr(pastedValue);\n });\n const handleContainerBlur = useEventCallback((...args) => {\n onBlur?.(...args);\n setSelectedSections(null);\n });\n const handleInputChange = useEventCallback(event => {\n if (readOnly) {\n return;\n }\n const targetValue = event.target.value;\n if (targetValue === '') {\n resetCharacterQuery();\n clearValue();\n return;\n }\n const eventData = event.nativeEvent.data;\n // Calling `.fill(04/11/2022)` in playwright will trigger a change event with the requested content to insert in `event.nativeEvent.data`\n // usual changes have only the currently typed character in the `event.nativeEvent.data`\n const shouldUseEventData = eventData && eventData.length > 1;\n const valueStr = shouldUseEventData ? eventData : targetValue;\n const cleanValueStr = cleanString(valueStr);\n if (parsedSelectedSections === 'all') {\n setSelectedSections(activeSectionIndex);\n }\n\n // If no section is selected or eventData should be used, we just try to parse the new value\n // This line is mostly triggered by imperative code / application tests.\n if (activeSectionIndex == null || shouldUseEventData) {\n updateValueFromValueStr(shouldUseEventData ? eventData : cleanValueStr);\n return;\n }\n let keyPressed;\n if (parsedSelectedSections === 'all' && cleanValueStr.length === 1) {\n keyPressed = cleanValueStr;\n } else {\n const prevValueStr = cleanString(fieldValueManager.getV6InputValueFromSections(sections, localizedDigits, isRtl));\n let startOfDiffIndex = -1;\n let endOfDiffIndex = -1;\n for (let i = 0; i < prevValueStr.length; i += 1) {\n if (startOfDiffIndex === -1 && prevValueStr[i] !== cleanValueStr[i]) {\n startOfDiffIndex = i;\n }\n if (endOfDiffIndex === -1 && prevValueStr[prevValueStr.length - i - 1] !== cleanValueStr[cleanValueStr.length - i - 1]) {\n endOfDiffIndex = i;\n }\n }\n const activeSection = sections[activeSectionIndex];\n const hasDiffOutsideOfActiveSection = startOfDiffIndex < activeSection.start || prevValueStr.length - endOfDiffIndex - 1 > activeSection.end;\n if (hasDiffOutsideOfActiveSection) {\n // TODO: Support if the new date is valid\n return;\n }\n\n // The active section being selected, the browser has replaced its value with the key pressed by the user.\n const activeSectionEndRelativeToNewValue = cleanValueStr.length - prevValueStr.length + activeSection.end - cleanString(activeSection.endSeparator || '').length;\n keyPressed = cleanValueStr.slice(activeSection.start + cleanString(activeSection.startSeparator || '').length, activeSectionEndRelativeToNewValue);\n }\n if (keyPressed.length === 0) {\n if (isAndroid()) {\n setTempAndroidValueStr(valueStr);\n }\n resetCharacterQuery();\n clearActiveSection();\n return;\n }\n applyCharacterEditing({\n keyPressed,\n sectionIndex: activeSectionIndex\n });\n });\n const placeholder = React.useMemo(() => {\n if (inPlaceholder !== undefined) {\n return inPlaceholder;\n }\n return fieldValueManager.getV6InputValueFromSections(getSectionsFromValue(valueManager.emptyValue), localizedDigits, isRtl);\n }, [inPlaceholder, fieldValueManager, getSectionsFromValue, valueManager.emptyValue, localizedDigits, isRtl]);\n const valueStr = React.useMemo(() => state.tempValueStrAndroid ?? fieldValueManager.getV6InputValueFromSections(state.sections, localizedDigits, isRtl), [state.sections, fieldValueManager, state.tempValueStrAndroid, localizedDigits, isRtl]);\n React.useEffect(() => {\n // Select all the sections when focused on mount (`autoFocus = true` on the input)\n if (inputRef.current && inputRef.current === getActiveElement(document)) {\n setSelectedSections('all');\n }\n return () => {\n clearTimeout(focusTimeoutRef.current);\n clearTimeout(selectionSyncTimeoutRef.current);\n };\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n const inputMode = React.useMemo(() => {\n if (activeSectionIndex == null) {\n return 'text';\n }\n if (state.sections[activeSectionIndex].contentType === 'letter') {\n return 'text';\n }\n return 'numeric';\n }, [activeSectionIndex, state.sections]);\n const inputHasFocus = inputRef.current && inputRef.current === getActiveElement(document);\n const shouldShowPlaceholder = !inputHasFocus && areAllSectionsEmpty;\n return {\n interactions,\n returnedValue: {\n // Forwarded\n readOnly,\n onBlur: handleContainerBlur,\n onClick: handleInputClick,\n onFocus: handleInputFocus,\n onPaste: handleInputPaste,\n inputRef: handleRef,\n // Additional\n enableAccessibleFieldDOMStructure: false,\n placeholder,\n inputMode,\n autoComplete: 'off',\n value: shouldShowPlaceholder ? '' : valueStr,\n onChange: handleInputChange\n }\n };\n};"],"names":["cleanString","dirtyString","replace","addPositionPropertiesToSections","sections","localizedDigits","isRtl","position","positionInInput","newSections","i","length","section","renderedValue","getSectionVisibleValue","sectionStr","startSeparator","endSeparator","sectionLength","sectionLengthInInput","cleanedValue","startInInput","indexOf","endInInput","push","_extends","start","end","useFieldV6TextField","params","useRtl","focusTimeoutRef","React","useRef","undefined","selectionSyncTimeoutRef","forwardedProps","onFocus","onClick","onPaste","onBlur","inputRef","inputRefProp","placeholder","inPlaceholder","internalProps","readOnly","disabled","parsedSelectedSections","activeSectionIndex","state","fieldValueManager","valueManager","applyCharacterEditing","resetCharacterQuery","updateSectionValue","updateValueFromValueStr","clearActiveSection","clearValue","setTempAndroidValueStr","setSelectedSections","getSectionsFromValue","areAllSectionsEmpty","handleRef","useForkRef","useMemo","interactions","syncSelectionToDOM","current","scrollLeft","getActiveElement","document","currentScrollTop","scrollTop","select","selectedSection","selectionStart","type","selectionEnd","setSelectionRange","clearTimeout","setTimeout","getActiveSectionIndexFromDOM","browserStartIndex","browserEndIndex","nextSectionIndex","findIndex","focusField","newSelectedSection","focus","newSelectedSections","isFieldFocused","syncSelectionFromDOM","sectionIndex","handleInputFocus","useEventCallback","args","input","value","Number","handleInputClick","event","isDefaultPrevented","handleInputPaste","preventDefault","pastedValue","clipboardData","getData","activeSection","lettersOnly","test","digitsOnly","digitsAndLetterOnly","contentType","newSectionValue","shouldGoToNextSection","handleContainerBlur","handleInputChange","targetValue","target","eventData","nativeEvent","data","shouldUseEventData","valueStr","cleanValueStr","keyPressed","prevValueStr","getV6InputValueFromSections","startOfDiffIndex","endOfDiffIndex","activeSectionEndRelativeToNewValue","slice","isAndroid","emptyValue","tempValueStrAndroid","useEffect","inputMode","inputHasFocus","returnedValue","enableAccessibleFieldDOMStructure","autoComplete","onChange"],"mappings":"6aAOA,MAAMA,EAAcC,GAAeA,EAAYC,QAAQ,8BAA+B,IACzEC,EAAkC,CAACC,EAAUC,EAAiBC,KACzE,IAAIC,EAAW,EACXC,EAAkBF,EAAQ,EAAI,EAClC,MAAMG,EAAc,GACpB,IAAK,IAAIC,EAAI,EAAGA,EAAIN,EAASO,OAAQD,GAAK,EAAG,CAC3C,MAAME,EAAUR,EAASM,GACnBG,EAAgBC,EAAuBF,EAASN,EAAQ,YAAc,YAAaD,GACnFU,EAAa,GAAGH,EAAQI,iBAAiBH,IAAgBD,EAAQK,eACjEC,EAAgBlB,EAAYe,GAAYJ,OACxCQ,EAAuBJ,EAAWJ,OAGlCS,EAAepB,EAAYa,GAC3BQ,EAAeb,GAAoC,KAAjBY,EAAsB,EAAIP,EAAcS,QAAQF,EAAa,KAAOR,EAAQI,eAAeL,OAC7HY,EAAaF,EAAeD,EAAaT,OAC/CF,EAAYe,KAAKC,EAAS,CAAA,EAAIb,EAAS,CACrCc,MAAOnB,EACPoB,IAAKpB,EAAWW,EAChBG,eACAE,gBAEFhB,GAAYW,EAEZV,GAAmBW,CACpB,CACD,OAAOV,GAEImB,EAAsBC,IACjC,MAAMvB,EAAQwB,IACRC,EAAkBC,EAAMC,YAAOC,GAC/BC,EAA0BH,EAAMC,YAAOC,IAE3CE,gBAAgBC,QACdA,EAAOC,QACPA,EAAOC,QACPA,EAAOC,OACPA,EACAC,SAAUC,EACVC,YAAaC,GAEfC,eAAeC,SACbA,GAAW,EAAKC,SAChBA,GAAW,GACZC,uBACDA,EAAsBC,mBACtBA,EAAkBC,MAClBA,EAAKC,kBACLA,EAAiBC,aACjBA,EAAYC,sBACZA,EAAqBC,oBACrBA,EAAmBC,mBACnBA,EAAkBC,wBAClBA,EAAuBC,mBACvBA,EAAkBC,WAClBA,EAAUC,uBACVA,EAAsBC,oBACtBA,EAAmBC,qBACnBA,EAAo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C,UAEhF,MAAO,CACLL,eACAyE,cAAe,CAEb7F,WACAN,OAAQ4E,EACR9E,QAAS8D,EACT/D,QAASyD,EACTvD,QAASgE,EACT9D,SAAUsB,EAEV6E,mCAAmC,EACnCjG,cACA8F,YACAI,aAAc,MACd3C,OAhB2BwC,GAAiB5E,EAgBb,GAAK8D,EACpCkB,SAAUzB"}
1
+ {"version":3,"file":"useFieldV6TextField.js","sources":["../../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV6TextField.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { getActiveElement } from \"../../utils/utils.js\";\nimport { getSectionVisibleValue, isAndroid } from \"./useField.utils.js\";\nconst cleanString = dirtyString => dirtyString.replace(/[\\u2066\\u2067\\u2068\\u2069]/g, '');\nexport const addPositionPropertiesToSections = (sections, localizedDigits, isRtl) => {\n let position = 0;\n let positionInInput = isRtl ? 1 : 0;\n const newSections = [];\n for (let i = 0; i < sections.length; i += 1) {\n const section = sections[i];\n const renderedValue = getSectionVisibleValue(section, isRtl ? 'input-rtl' : 'input-ltr', localizedDigits);\n const sectionStr = `${section.startSeparator}${renderedValue}${section.endSeparator}`;\n const sectionLength = cleanString(sectionStr).length;\n const sectionLengthInInput = sectionStr.length;\n\n // The ...InInput values consider the unicode characters but do include them in their indexes\n const cleanedValue = cleanString(renderedValue);\n const startInInput = positionInInput + (cleanedValue === '' ? 0 : renderedValue.indexOf(cleanedValue[0])) + section.startSeparator.length;\n const endInInput = startInInput + cleanedValue.length;\n newSections.push(_extends({}, section, {\n start: position,\n end: position + sectionLength,\n startInInput,\n endInInput\n }));\n position += sectionLength;\n // Move position to the end of string associated to the current section\n positionInInput += sectionLengthInInput;\n }\n return newSections;\n};\nexport const useFieldV6TextField = params => {\n const isRtl = useRtl();\n const focusTimeoutRef = React.useRef(undefined);\n const selectionSyncTimeoutRef = React.useRef(undefined);\n const {\n forwardedProps: {\n onFocus,\n onClick,\n onPaste,\n onBlur,\n inputRef: inputRefProp,\n placeholder: inPlaceholder\n },\n internalProps: {\n readOnly = false,\n disabled = false\n },\n parsedSelectedSections,\n activeSectionIndex,\n state,\n fieldValueManager,\n valueManager,\n applyCharacterEditing,\n resetCharacterQuery,\n updateSectionValue,\n updateValueFromValueStr,\n clearActiveSection,\n clearValue,\n setTempAndroidValueStr,\n setSelectedSections,\n getSectionsFromValue,\n areAllSectionsEmpty,\n localizedDigits\n } = params;\n const inputRef = React.useRef(null);\n const handleRef = useForkRef(inputRefProp, inputRef);\n const sections = React.useMemo(() => addPositionPropertiesToSections(state.sections, localizedDigits, isRtl), [state.sections, localizedDigits, isRtl]);\n const interactions = React.useMemo(() => ({\n syncSelectionToDOM: () => {\n if (!inputRef.current) {\n return;\n }\n if (parsedSelectedSections == null) {\n if (inputRef.current.scrollLeft) {\n // Ensure that input content is not marked as selected.\n // setting selection range to 0 causes issues in Safari.\n // https://bugs.webkit.org/show_bug.cgi?id=224425\n inputRef.current.scrollLeft = 0;\n }\n return;\n }\n\n // On multi input range pickers we want to update selection range only for the active input\n // This helps to avoid the focus jumping on Safari https://github.com/mui/mui-x/issues/9003\n // because WebKit implements the `setSelectionRange` based on the spec: https://bugs.webkit.org/show_bug.cgi?id=224425\n if (inputRef.current !== getActiveElement(document)) {\n return;\n }\n\n // Fix scroll jumping on iOS browser: https://github.com/mui/mui-x/issues/8321\n const currentScrollTop = inputRef.current.scrollTop;\n if (parsedSelectedSections === 'all') {\n inputRef.current.select();\n } else {\n const selectedSection = sections[parsedSelectedSections];\n const selectionStart = selectedSection.type === 'empty' ? selectedSection.startInInput - selectedSection.startSeparator.length : selectedSection.startInInput;\n const selectionEnd = selectedSection.type === 'empty' ? selectedSection.endInInput + selectedSection.endSeparator.length : selectedSection.endInInput;\n if (selectionStart !== inputRef.current.selectionStart || selectionEnd !== inputRef.current.selectionEnd) {\n if (inputRef.current === getActiveElement(document)) {\n inputRef.current.setSelectionRange(selectionStart, selectionEnd);\n }\n }\n clearTimeout(selectionSyncTimeoutRef.current);\n selectionSyncTimeoutRef.current = setTimeout(() => {\n // handle case when the selection is not updated correctly\n // could happen on Android\n if (inputRef.current && inputRef.current === getActiveElement(document) &&\n // The section might loose all selection, where `selectionStart === selectionEnd`\n // https://github.com/mui/mui-x/pull/13652\n inputRef.current.selectionStart === inputRef.current.selectionEnd && (inputRef.current.selectionStart !== selectionStart || inputRef.current.selectionEnd !== selectionEnd)) {\n interactions.syncSelectionToDOM();\n }\n });\n }\n\n // Even reading this variable seems to do the trick, but also setting it just to make use of it\n inputRef.current.scrollTop = currentScrollTop;\n },\n getActiveSectionIndexFromDOM: () => {\n const browserStartIndex = inputRef.current.selectionStart ?? 0;\n const browserEndIndex = inputRef.current.selectionEnd ?? 0;\n if (browserStartIndex === 0 && browserEndIndex === 0) {\n return null;\n }\n const nextSectionIndex = browserStartIndex <= sections[0].startInInput ? 1 // Special case if browser index is in invisible characters at the beginning.\n : sections.findIndex(section => section.startInInput - section.startSeparator.length > browserStartIndex);\n return nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;\n },\n focusField: (newSelectedSection = 0) => {\n if (getActiveElement(document) === inputRef.current) {\n return;\n }\n inputRef.current?.focus();\n setSelectedSections(newSelectedSection);\n },\n setSelectedSections: newSelectedSections => setSelectedSections(newSelectedSections),\n isFieldFocused: () => inputRef.current === getActiveElement(document)\n }), [inputRef, parsedSelectedSections, sections, setSelectedSections]);\n const syncSelectionFromDOM = () => {\n const browserStartIndex = inputRef.current.selectionStart ?? 0;\n let nextSectionIndex;\n if (browserStartIndex <= sections[0].startInInput) {\n // Special case if browser index is in invisible characters at the beginning\n nextSectionIndex = 1;\n } else if (browserStartIndex >= sections[sections.length - 1].endInInput) {\n // If the click is after the last character of the input, then we want to select the 1st section.\n nextSectionIndex = 1;\n } else {\n nextSectionIndex = sections.findIndex(section => section.startInInput - section.startSeparator.length > browserStartIndex);\n }\n const sectionIndex = nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;\n setSelectedSections(sectionIndex);\n };\n const handleInputFocus = useEventCallback((...args) => {\n onFocus?.(...args);\n // The ref is guaranteed to be resolved at this point.\n const input = inputRef.current;\n clearTimeout(focusTimeoutRef.current);\n focusTimeoutRef.current = setTimeout(() => {\n // The ref changed, the component got remounted, the focus event is no longer relevant.\n if (!input || input !== inputRef.current) {\n return;\n }\n if (activeSectionIndex != null) {\n return;\n }\n if (\n // avoid selecting all sections when focusing empty field without value\n input.value.length && Number(input.selectionEnd) - Number(input.selectionStart) === input.value.length) {\n setSelectedSections('all');\n } else {\n syncSelectionFromDOM();\n }\n });\n });\n const handleInputClick = useEventCallback((event, ...args) => {\n // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.\n // We avoid this by checking if the call of `handleInputClick` is actually intended, or a side effect.\n if (event.isDefaultPrevented()) {\n return;\n }\n onClick?.(event, ...args);\n syncSelectionFromDOM();\n });\n const handleInputPaste = useEventCallback(event => {\n onPaste?.(event);\n\n // prevent default to avoid the input `onChange` handler being called\n event.preventDefault();\n if (readOnly || disabled) {\n return;\n }\n const pastedValue = event.clipboardData.getData('text');\n if (typeof parsedSelectedSections === 'number') {\n const activeSection = state.sections[parsedSelectedSections];\n const lettersOnly = /^[a-zA-Z]+$/.test(pastedValue);\n const digitsOnly = /^[0-9]+$/.test(pastedValue);\n const digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);\n const isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;\n if (isValidPastedValue) {\n resetCharacterQuery();\n updateSectionValue({\n activeSection,\n newSectionValue: pastedValue,\n shouldGoToNextSection: true\n });\n return;\n }\n if (lettersOnly || digitsOnly) {\n // The pasted value corresponds to a single section, but not the expected type,\n // skip the modification\n return;\n }\n }\n resetCharacterQuery();\n updateValueFromValueStr(pastedValue);\n });\n const handleContainerBlur = useEventCallback((...args) => {\n onBlur?.(...args);\n setSelectedSections(null);\n });\n const handleInputChange = useEventCallback(event => {\n if (readOnly) {\n return;\n }\n const targetValue = event.target.value;\n if (targetValue === '') {\n resetCharacterQuery();\n clearValue();\n return;\n }\n const eventData = event.nativeEvent.data;\n // Calling `.fill(04/11/2022)` in playwright will trigger a change event with the requested content to insert in `event.nativeEvent.data`\n // usual changes have only the currently typed character in the `event.nativeEvent.data`\n const shouldUseEventData = eventData && eventData.length > 1;\n const valueStr = shouldUseEventData ? eventData : targetValue;\n const cleanValueStr = cleanString(valueStr);\n if (parsedSelectedSections === 'all') {\n setSelectedSections(activeSectionIndex);\n }\n\n // If no section is selected or eventData should be used, we just try to parse the new value\n // This line is mostly triggered by imperative code / application tests.\n if (activeSectionIndex == null || shouldUseEventData) {\n updateValueFromValueStr(shouldUseEventData ? eventData : cleanValueStr);\n return;\n }\n let keyPressed;\n if (parsedSelectedSections === 'all' && cleanValueStr.length === 1) {\n keyPressed = cleanValueStr;\n } else {\n const prevValueStr = cleanString(fieldValueManager.getV6InputValueFromSections(sections, localizedDigits, isRtl));\n let startOfDiffIndex = -1;\n let endOfDiffIndex = -1;\n for (let i = 0; i < prevValueStr.length; i += 1) {\n if (startOfDiffIndex === -1 && prevValueStr[i] !== cleanValueStr[i]) {\n startOfDiffIndex = i;\n }\n if (endOfDiffIndex === -1 && prevValueStr[prevValueStr.length - i - 1] !== cleanValueStr[cleanValueStr.length - i - 1]) {\n endOfDiffIndex = i;\n }\n }\n const activeSection = sections[activeSectionIndex];\n const hasDiffOutsideOfActiveSection = startOfDiffIndex < activeSection.start || prevValueStr.length - endOfDiffIndex - 1 > activeSection.end;\n if (hasDiffOutsideOfActiveSection) {\n // TODO: Support if the new date is valid\n return;\n }\n\n // The active section being selected, the browser has replaced its value with the key pressed by the user.\n const activeSectionEndRelativeToNewValue = cleanValueStr.length - prevValueStr.length + activeSection.end - cleanString(activeSection.endSeparator || '').length;\n keyPressed = cleanValueStr.slice(activeSection.start + cleanString(activeSection.startSeparator || '').length, activeSectionEndRelativeToNewValue);\n }\n if (keyPressed.length === 0) {\n if (isAndroid()) {\n setTempAndroidValueStr(valueStr);\n }\n resetCharacterQuery();\n clearActiveSection();\n return;\n }\n applyCharacterEditing({\n keyPressed,\n sectionIndex: activeSectionIndex\n });\n });\n const placeholder = React.useMemo(() => {\n if (inPlaceholder !== undefined) {\n return inPlaceholder;\n }\n return fieldValueManager.getV6InputValueFromSections(getSectionsFromValue(valueManager.emptyValue), localizedDigits, isRtl);\n }, [inPlaceholder, fieldValueManager, getSectionsFromValue, valueManager.emptyValue, localizedDigits, isRtl]);\n const valueStr = React.useMemo(() => state.tempValueStrAndroid ?? fieldValueManager.getV6InputValueFromSections(state.sections, localizedDigits, isRtl), [state.sections, fieldValueManager, state.tempValueStrAndroid, localizedDigits, isRtl]);\n React.useEffect(() => {\n // Select all the sections when focused on mount (`autoFocus = true` on the input)\n if (inputRef.current && inputRef.current === getActiveElement(document)) {\n setSelectedSections('all');\n }\n return () => {\n clearTimeout(focusTimeoutRef.current);\n clearTimeout(selectionSyncTimeoutRef.current);\n };\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n const inputMode = React.useMemo(() => {\n if (activeSectionIndex == null) {\n return 'text';\n }\n if (state.sections[activeSectionIndex].contentType === 'letter') {\n return 'text';\n }\n return 'numeric';\n }, [activeSectionIndex, state.sections]);\n const inputHasFocus = inputRef.current && inputRef.current === getActiveElement(document);\n const shouldShowPlaceholder = !inputHasFocus && areAllSectionsEmpty;\n return {\n interactions,\n returnedValue: {\n // Forwarded\n readOnly,\n onBlur: handleContainerBlur,\n onClick: handleInputClick,\n onFocus: handleInputFocus,\n onPaste: handleInputPaste,\n inputRef: handleRef,\n // Additional\n enableAccessibleFieldDOMStructure: false,\n placeholder,\n inputMode,\n autoComplete: 'off',\n value: shouldShowPlaceholder ? '' : valueStr,\n onChange: handleInputChange\n }\n };\n};"],"names":["cleanString","dirtyString","replace","addPositionPropertiesToSections","sections","localizedDigits","isRtl","position","positionInInput","newSections","i","length","section","renderedValue","getSectionVisibleValue","sectionStr","startSeparator","endSeparator","sectionLength","sectionLengthInInput","cleanedValue","startInInput","indexOf","endInInput","push","_extends","start","end","useFieldV6TextField","params","useRtl","focusTimeoutRef","React","useRef","undefined","selectionSyncTimeoutRef","forwardedProps","onFocus","onClick","onPaste","onBlur","inputRef","inputRefProp","placeholder","inPlaceholder","internalProps","readOnly","disabled","parsedSelectedSections","activeSectionIndex","state","fieldValueManager","valueManager","applyCharacterEditing","resetCharacterQuery","updateSectionValue","updateValueFromValueStr","clearActiveSection","clearValue","setTempAndroidValueStr","setSelectedSections","getSectionsFromValue","areAllSectionsEmpty","handleRef","useForkRef","useMemo","interactions","syncSelectionToDOM","current","scrollLeft","getActiveElement","document","currentScrollTop","scrollTop","select","selectedSection","selectionStart","type","selectionEnd","setSelectionRange","clearTimeout","setTimeout","getActiveSectionIndexFromDOM","browserStartIndex","browserEndIndex","nextSectionIndex","findIndex","focusField","newSelectedSection","focus","newSelectedSections","isFieldFocused","syncSelectionFromDOM","sectionIndex","handleInputFocus","useEventCallback","args","input","value","Number","handleInputClick","event","isDefaultPrevented","handleInputPaste","preventDefault","pastedValue","clipboardData","getData","activeSection","lettersOnly","test","digitsOnly","digitsAndLetterOnly","contentType","newSectionValue","shouldGoToNextSection","handleContainerBlur","handleInputChange","targetValue","target","eventData","nativeEvent","data","shouldUseEventData","valueStr","cleanValueStr","keyPressed","prevValueStr","getV6InputValueFromSections","startOfDiffIndex","endOfDiffIndex","activeSectionEndRelativeToNewValue","slice","isAndroid","emptyValue","tempValueStrAndroid","useEffect","inputMode","inputHasFocus","returnedValue","enableAccessibleFieldDOMStructure","autoComplete","onChange"],"mappings":"2cAOA,MAAMA,EAAcC,GAAeA,EAAYC,QAAQ,8BAA+B,IACzEC,EAA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mC,EACnCjG,cACA8F,YACAI,aAAc,MACd3C,OAhB2BwC,GAAiB5E,EAgBb,GAAK8D,EACpCkB,SAAUzB"}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import t from"../../../../utils/esm/useForkRef/useForkRef.js";import n from"../../../../utils/esm/useEventCallback/useEventCallback.js";import o from"../../../../utils/esm/useEnhancedEffect/useEnhancedEffect.js";import r from"../../../../utils/esm/useId/useId.js";import{parseSelectedSections as i,getSectionValueNow as s,getSectionValueText as a}from"./useField.utils.js";import{getActiveElement as c}from"../../utils/utils.js";import{usePickersTranslations as u}from"../../../hooks/usePickersTranslations.js";import{useUtils as l}from"../useUtils.js";const d=d=>{const{internalProps:{disabled:f,readOnly:p=!1},forwardedProps:{sectionListRef:m,onBlur:g,onClick:v,onFocus:S,onInput:y,onPaste:h,focused:x,autoFocus:b=!1},fieldValueManager:D,applyCharacterEditing:C,resetCharacterQuery:I,setSelectedSections:M,parsedSelectedSections:F,state:R,clearActiveSection:k,clearValue:T,updateSectionValue:E,updateValueFromValueStr:O,sectionOrder:A,areAllSectionsEmpty:P,sectionsValueBoundaries:$}=d,j=e.useRef(null),w=t(m,j),L=u(),V=l(),z=r(),[H,B]=e.useState(!1),U=e.useMemo(()=>({syncSelectionToDOM:()=>{if(!j.current)return;const e=document.getSelection();if(!e)return;if(null==F)return e.rangeCount>0&&j.current.getRoot().contains(e.getRangeAt(0).startContainer)&&e.removeAllRanges(),void(H&&j.current.getRoot().blur());if(!j.current.getRoot().contains(c(document)))return;const t=new window.Range;let n;if("all"===F)n=j.current.getRoot();else{n="empty"===R.sections[F].type?j.current.getSectionContainer(F):j.current.getSectionContent(F)}t.selectNodeContents(n),n.focus(),e.removeAllRanges(),e.addRange(t)},getActiveSectionIndexFromDOM:()=>{const e=c(document);return e&&j.current&&j.current.getRoot().contains(e)?j.current.getSectionIndexFromDOMElement(e):null},focusField:(e=0)=>{if(!j.current||null!=U.getActiveSectionIndexFromDOM())return;const t=i(e,R.sections);B(!0),j.current.getSectionContent(t).focus()},setSelectedSections:e=>{if(!j.current)return;const t=i(e,R.sections);B(null!==("all"===t?0:t)),M(e)},isFieldFocused:()=>{const e=c(document);return!!j.current&&j.current.getRoot().contains(e)}}),[F,M,R.sections,H]),Z=n(e=>{if(!j.current)return;const t=R.sections[e];j.current.getSectionContent(e).innerHTML=t.value||t.placeholder,U.syncSelectionToDOM()}),N=n((e,...t)=>{if(!e.isDefaultPrevented()&&j.current)if(B(!0),v?.(e,...t),"all"===F)setTimeout(()=>{const e=document.getSelection().getRangeAt(0).startOffset;if(0===e)return void M(A.startIndex);let t=0,n=0;for(;n<e&&t<R.sections.length;){const e=R.sections[t];t+=1,n+=`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`.length}M(t-1)});else if(H){j.current.getRoot().contains(e.target)||M(A.startIndex)}else B(!0),M(A.startIndex)}),G=n(e=>{if(y?.(e),!j.current||"all"!==F)return;const t=e.target.textContent??"";j.current.getRoot().innerHTML=R.sections.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),U.syncSelectionToDOM(),0===t.length||10===t.charCodeAt(0)?(I(),T(),M("all")):t.length>1?O(t):("all"===F&&M(0),C({keyPressed:t,sectionIndex:0}))}),K=n(e=>{if(h?.(e),p||"all"!==F)return void e.preventDefault();const t=e.clipboardData.getData("text");e.preventDefault(),I(),O(t)}),Q=n((...e)=>{if(S?.(...e),H||!j.current)return;B(!0);null!=j.current.getSectionIndexFromDOMElement(c(document))||M(A.startIndex)}),X=n((...e)=>{g?.(...e),setTimeout(()=>{if(!j.current)return;const e=c(document);!j.current.getRoot().contains(e)&&(B(!1),M(null))})}),Y=n(e=>t=>{t.isDefaultPrevented()||M(e)}),q=n(e=>{e.preventDefault()}),J=n(e=>()=>{M(e)}),W=n(e=>{if(e.preventDefault(),p||f||"number"!=typeof F)return;const t=R.sections[F],n=e.clipboardData.getData("text"),o=/^[a-zA-Z]+$/.test(n),r=/^[0-9]+$/.test(n),i=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(n);"letter"===t.contentType&&o||"digit"===t.contentType&&r||"digit-with-letter"===t.contentType&&i?(I(),E({activeSection:t,newSectionValue:n,shouldGoToNextSection:!0})):o||r||(I(),O(n))}),_=n(e=>{e.preventDefault(),e.dataTransfer.dropEffect="none"}),ee=n(e=>{if(!j.current)return;const t=e.target,n=t.textContent??"",o=j.current.getSectionIndexFromDOMElement(t),r=R.sections[o];if(!p&&j.current){if(0===n.length){if(""===r.value)return void Z(o);const t=e.nativeEvent.inputType;return"insertParagraph"===t||"insertLineBreak"===t?void Z(o):(I(),void k())}C({keyPressed:n,sectionIndex:o}),Z(o)}else Z(o)});o(()=>{if(H&&j.current)if("all"===F)j.current.getRoot().focus();else if("number"==typeof F){const e=j.current.getSectionContent(F);e&&e.focus()}},[F,H]);const te=e.useMemo(()=>R.sections.reduce((e,t)=>(e[t.type]=$[t.type]({currentDate:null,contentType:t.contentType,format:t.format}),e),{}),[$,R.sections]),ne="all"===F,oe=e.useMemo(()=>R.sections.map((t,n)=>{const o=!ne&&!f&&!p;return{container:{"data-sectionindex":n,onClick:Y(n)},content:{tabIndex:ne||n>0?-1:0,contentEditable:!ne&&!f&&!p,role:"spinbutton",id:`${z}-${t.type}`,"aria-labelledby":`${z}-${t.type}`,"aria-readonly":p,"aria-valuenow":s(t,V),"aria-valuemin":te[t.type].minimum,"aria-valuemax":te[t.type].maximum,"aria-valuetext":t.value?a(t,V):L.empty,"aria-label":L[t.type],"aria-disabled":f,spellCheck:!o&&void 0,autoCapitalize:o?"off":void 0,autoCorrect:o?"off":void 0,[parseInt(e.version,10)>=17?"enterKeyHint":"enterkeyhint"]:o?"next":void 0,children:t.value||t.placeholder,onInput:ee,onPaste:W,onFocus:J(n),onDragOver:_,onMouseUp:q,inputMode:"letter"===t.contentType?"text":"numeric"},before:{children:t.startSeparator},after:{children:t.endSeparator}}}),[R.sections,J,W,_,ee,Y,q,f,p,ne,L,V,te,z]),re=n(e=>{O(e.target.value)}),ie=e.useMemo(()=>P?"":D.getV7HiddenInputValueFromSections(R.sections),[P,R.sections,D]);return e.useEffect(()=>{if(null==j.current)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join("\n"));b&&j.current&&j.current.getSectionContent(A.startIndex).focus()},[]),{interactions:U,returnedValue:{autoFocus:b,readOnly:p,focused:x??H,sectionListRef:w,onBlur:X,onClick:N,onFocus:Q,onInput:G,onPaste:K,enableAccessibleFieldDOMStructure:!0,elements:oe,tabIndex:0===F?-1:0,contentEditable:ne,value:ie,onChange:re,areAllSectionsEmpty:P}}};export{d as useFieldV7TextField};
1
+ import*as e from"react";import t from"../../../node_modules/@mui/utils/esm/useForkRef/useForkRef.js";import n from"../../../node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js";import o from"../../../node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js";import r from"../../../node_modules/@mui/utils/esm/useId/useId.js";import{parseSelectedSections as i,getSectionValueNow as s,getSectionValueText as a}from"./useField.utils.js";import{getActiveElement as c}from"../../utils/utils.js";import{usePickersTranslations as u}from"../../../hooks/usePickersTranslations.js";import{useUtils as l}from"../useUtils.js";const d=d=>{const{internalProps:{disabled:f,readOnly:m=!1},forwardedProps:{sectionListRef:p,onBlur:g,onClick:v,onFocus:S,onInput:y,onPaste:h,focused:x,autoFocus:b=!1},fieldValueManager:D,applyCharacterEditing:C,resetCharacterQuery:I,setSelectedSections:M,parsedSelectedSections:F,state:R,clearActiveSection:k,clearValue:T,updateSectionValue:E,updateValueFromValueStr:O,sectionOrder:A,areAllSectionsEmpty:P,sectionsValueBoundaries:$}=d,j=e.useRef(null),w=t(p,j),L=u(),V=l(),z=r(),[H,B]=e.useState(!1),U=e.useMemo(()=>({syncSelectionToDOM:()=>{if(!j.current)return;const e=document.getSelection();if(!e)return;if(null==F)return e.rangeCount>0&&j.current.getRoot().contains(e.getRangeAt(0).startContainer)&&e.removeAllRanges(),void(H&&j.current.getRoot().blur());if(!j.current.getRoot().contains(c(document)))return;const t=new window.Range;let n;if("all"===F)n=j.current.getRoot();else{n="empty"===R.sections[F].type?j.current.getSectionContainer(F):j.current.getSectionContent(F)}t.selectNodeContents(n),n.focus(),e.removeAllRanges(),e.addRange(t)},getActiveSectionIndexFromDOM:()=>{const e=c(document);return e&&j.current&&j.current.getRoot().contains(e)?j.current.getSectionIndexFromDOMElement(e):null},focusField:(e=0)=>{if(!j.current||null!=U.getActiveSectionIndexFromDOM())return;const t=i(e,R.sections);B(!0),j.current.getSectionContent(t).focus()},setSelectedSections:e=>{if(!j.current)return;const t=i(e,R.sections);B(null!==("all"===t?0:t)),M(e)},isFieldFocused:()=>{const e=c(document);return!!j.current&&j.current.getRoot().contains(e)}}),[F,M,R.sections,H]),_=n(e=>{if(!j.current)return;const t=R.sections[e];j.current.getSectionContent(e).innerHTML=t.value||t.placeholder,U.syncSelectionToDOM()}),Z=n((e,...t)=>{if(!e.isDefaultPrevented()&&j.current)if(B(!0),v?.(e,...t),"all"===F)setTimeout(()=>{const e=document.getSelection().getRangeAt(0).startOffset;if(0===e)return void M(A.startIndex);let t=0,n=0;for(;n<e&&t<R.sections.length;){const e=R.sections[t];t+=1,n+=`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`.length}M(t-1)});else if(H){j.current.getRoot().contains(e.target)||M(A.startIndex)}else B(!0),M(A.startIndex)}),N=n(e=>{if(y?.(e),!j.current||"all"!==F)return;const t=e.target.textContent??"";j.current.getRoot().innerHTML=R.sections.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),U.syncSelectionToDOM(),0===t.length||10===t.charCodeAt(0)?(I(),T(),M("all")):t.length>1?O(t):("all"===F&&M(0),C({keyPressed:t,sectionIndex:0}))}),G=n(e=>{if(h?.(e),m||"all"!==F)return void e.preventDefault();const t=e.clipboardData.getData("text");e.preventDefault(),I(),O(t)}),K=n((...e)=>{if(S?.(...e),H||!j.current)return;B(!0);null!=j.current.getSectionIndexFromDOMElement(c(document))||M(A.startIndex)}),Q=n((...e)=>{g?.(...e),setTimeout(()=>{if(!j.current)return;const e=c(document);!j.current.getRoot().contains(e)&&(B(!1),M(null))})}),X=n(e=>t=>{t.isDefaultPrevented()||M(e)}),Y=n(e=>{e.preventDefault()}),q=n(e=>()=>{M(e)}),J=n(e=>{if(e.preventDefault(),m||f||"number"!=typeof F)return;const t=R.sections[F],n=e.clipboardData.getData("text"),o=/^[a-zA-Z]+$/.test(n),r=/^[0-9]+$/.test(n),i=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(n);"letter"===t.contentType&&o||"digit"===t.contentType&&r||"digit-with-letter"===t.contentType&&i?(I(),E({activeSection:t,newSectionValue:n,shouldGoToNextSection:!0})):o||r||(I(),O(n))}),W=n(e=>{e.preventDefault(),e.dataTransfer.dropEffect="none"}),ee=n(e=>{if(!j.current)return;const t=e.target,n=t.textContent??"",o=j.current.getSectionIndexFromDOMElement(t),r=R.sections[o];if(!m&&j.current){if(0===n.length){if(""===r.value)return void _(o);const t=e.nativeEvent.inputType;return"insertParagraph"===t||"insertLineBreak"===t?void _(o):(I(),void k())}C({keyPressed:n,sectionIndex:o}),_(o)}else _(o)});o(()=>{if(H&&j.current)if("all"===F)j.current.getRoot().focus();else if("number"==typeof F){const e=j.current.getSectionContent(F);e&&e.focus()}},[F,H]);const te=e.useMemo(()=>R.sections.reduce((e,t)=>(e[t.type]=$[t.type]({currentDate:null,contentType:t.contentType,format:t.format}),e),{}),[$,R.sections]),ne="all"===F,oe=e.useMemo(()=>R.sections.map((t,n)=>{const o=!ne&&!f&&!m;return{container:{"data-sectionindex":n,onClick:X(n)},content:{tabIndex:ne||n>0?-1:0,contentEditable:!ne&&!f&&!m,role:"spinbutton",id:`${z}-${t.type}`,"aria-labelledby":`${z}-${t.type}`,"aria-readonly":m,"aria-valuenow":s(t,V),"aria-valuemin":te[t.type].minimum,"aria-valuemax":te[t.type].maximum,"aria-valuetext":t.value?a(t,V):L.empty,"aria-label":L[t.type],"aria-disabled":f,spellCheck:!o&&void 0,autoCapitalize:o?"off":void 0,autoCorrect:o?"off":void 0,[parseInt(e.version,10)>=17?"enterKeyHint":"enterkeyhint"]:o?"next":void 0,children:t.value||t.placeholder,onInput:ee,onPaste:J,onFocus:q(n),onDragOver:W,onMouseUp:Y,inputMode:"letter"===t.contentType?"text":"numeric"},before:{children:t.startSeparator},after:{children:t.endSeparator}}}),[R.sections,q,J,W,ee,X,Y,f,m,ne,L,V,te,z]),re=n(e=>{O(e.target.value)}),ie=e.useMemo(()=>P?"":D.getV7HiddenInputValueFromSections(R.sections),[P,R.sections,D]);return e.useEffect(()=>{if(null==j.current)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join("\n"));b&&j.current&&j.current.getSectionContent(A.startIndex).focus()},[]),{interactions:U,returnedValue:{autoFocus:b,readOnly:m,focused:x??H,sectionListRef:w,onBlur:Q,onClick:Z,onFocus:K,onInput:N,onPaste:G,enableAccessibleFieldDOMStructure:!0,elements:oe,tabIndex:0===F?-1:0,contentEditable:ne,value:ie,onChange:re,areAllSectionsEmpty:P}}};export{d as useFieldV7TextField};
2
2
  //# sourceMappingURL=useFieldV7TextField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useFieldV7TextField.js","sources":["../../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV7TextField.js"],"sourcesContent":["import * as React from 'react';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useId from '@mui/utils/useId';\nimport { getSectionValueNow, getSectionValueText, parseSelectedSections } from \"./useField.utils.js\";\nimport { getActiveElement } from \"../../utils/utils.js\";\nimport { usePickersTranslations } from \"../../../hooks/usePickersTranslations.js\";\nimport { useUtils } from \"../useUtils.js\";\nexport const useFieldV7TextField = params => {\n const {\n internalProps: {\n disabled,\n readOnly = false\n },\n forwardedProps: {\n sectionListRef: inSectionListRef,\n onBlur,\n onClick,\n onFocus,\n onInput,\n onPaste,\n focused: focusedProp,\n autoFocus = false\n },\n fieldValueManager,\n applyCharacterEditing,\n resetCharacterQuery,\n setSelectedSections,\n parsedSelectedSections,\n state,\n clearActiveSection,\n clearValue,\n updateSectionValue,\n updateValueFromValueStr,\n sectionOrder,\n areAllSectionsEmpty,\n sectionsValueBoundaries\n } = params;\n const sectionListRef = React.useRef(null);\n const handleSectionListRef = useForkRef(inSectionListRef, sectionListRef);\n const translations = usePickersTranslations();\n const utils = useUtils();\n const id = useId();\n const [focused, setFocused] = React.useState(false);\n const interactions = React.useMemo(() => ({\n syncSelectionToDOM: () => {\n if (!sectionListRef.current) {\n return;\n }\n const selection = document.getSelection();\n if (!selection) {\n return;\n }\n if (parsedSelectedSections == null) {\n // If the selection contains an element inside the field, we reset it.\n if (selection.rangeCount > 0 && sectionListRef.current.getRoot().contains(selection.getRangeAt(0).startContainer)) {\n selection.removeAllRanges();\n }\n if (focused) {\n sectionListRef.current.getRoot().blur();\n }\n return;\n }\n\n // On multi input range pickers we want to update selection range only for the active input\n if (!sectionListRef.current.getRoot().contains(getActiveElement(document))) {\n return;\n }\n const range = new window.Range();\n let target;\n if (parsedSelectedSections === 'all') {\n target = sectionListRef.current.getRoot();\n } else {\n const section = state.sections[parsedSelectedSections];\n if (section.type === 'empty') {\n target = sectionListRef.current.getSectionContainer(parsedSelectedSections);\n } else {\n target = sectionListRef.current.getSectionContent(parsedSelectedSections);\n }\n }\n range.selectNodeContents(target);\n target.focus();\n selection.removeAllRanges();\n selection.addRange(range);\n },\n getActiveSectionIndexFromDOM: () => {\n const activeElement = getActiveElement(document);\n if (!activeElement || !sectionListRef.current || !sectionListRef.current.getRoot().contains(activeElement)) {\n return null;\n }\n return sectionListRef.current.getSectionIndexFromDOMElement(activeElement);\n },\n focusField: (newSelectedSections = 0) => {\n if (!sectionListRef.current ||\n // if the field is already focused, we don't need to focus it again\n interactions.getActiveSectionIndexFromDOM() != null) {\n return;\n }\n const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);\n setFocused(true);\n sectionListRef.current.getSectionContent(newParsedSelectedSections).focus();\n },\n setSelectedSections: newSelectedSections => {\n if (!sectionListRef.current) {\n return;\n }\n const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);\n const newActiveSectionIndex = newParsedSelectedSections === 'all' ? 0 : newParsedSelectedSections;\n setFocused(newActiveSectionIndex !== null);\n setSelectedSections(newSelectedSections);\n },\n isFieldFocused: () => {\n const activeElement = getActiveElement(document);\n return !!sectionListRef.current && sectionListRef.current.getRoot().contains(activeElement);\n }\n }), [parsedSelectedSections, setSelectedSections, state.sections, focused]);\n\n /**\n * If a section content has been updated with a value we don't want to keep,\n * Then we need to imperatively revert it (we can't let React do it because the value did not change in his internal representation).\n */\n const revertDOMSectionChange = useEventCallback(sectionIndex => {\n if (!sectionListRef.current) {\n return;\n }\n const section = state.sections[sectionIndex];\n sectionListRef.current.getSectionContent(sectionIndex).innerHTML = section.value || section.placeholder;\n interactions.syncSelectionToDOM();\n });\n const handleContainerClick = useEventCallback((event, ...args) => {\n // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.\n // We avoid this by checking if the call of `handleContainerClick` is actually intended, or a side effect.\n if (event.isDefaultPrevented() || !sectionListRef.current) {\n return;\n }\n setFocused(true);\n onClick?.(event, ...args);\n if (parsedSelectedSections === 'all') {\n setTimeout(() => {\n const cursorPosition = document.getSelection().getRangeAt(0).startOffset;\n if (cursorPosition === 0) {\n setSelectedSections(sectionOrder.startIndex);\n return;\n }\n let sectionIndex = 0;\n let cursorOnStartOfSection = 0;\n while (cursorOnStartOfSection < cursorPosition && sectionIndex < state.sections.length) {\n const section = state.sections[sectionIndex];\n sectionIndex += 1;\n cursorOnStartOfSection += `${section.startSeparator}${section.value || section.placeholder}${section.endSeparator}`.length;\n }\n setSelectedSections(sectionIndex - 1);\n });\n } else if (!focused) {\n setFocused(true);\n setSelectedSections(sectionOrder.startIndex);\n } else {\n const hasClickedOnASection = sectionListRef.current.getRoot().contains(event.target);\n if (!hasClickedOnASection) {\n setSelectedSections(sectionOrder.startIndex);\n }\n }\n });\n const handleContainerInput = useEventCallback(event => {\n onInput?.(event);\n if (!sectionListRef.current || parsedSelectedSections !== 'all') {\n return;\n }\n const target = event.target;\n const keyPressed = target.textContent ?? '';\n sectionListRef.current.getRoot().innerHTML = state.sections.map(section => `${section.startSeparator}${section.value || section.placeholder}${section.endSeparator}`).join('');\n interactions.syncSelectionToDOM();\n if (keyPressed.length === 0 || keyPressed.charCodeAt(0) === 10) {\n resetCharacterQuery();\n clearValue();\n setSelectedSections('all');\n } else if (keyPressed.length > 1) {\n updateValueFromValueStr(keyPressed);\n } else {\n if (parsedSelectedSections === 'all') {\n setSelectedSections(0);\n }\n applyCharacterEditing({\n keyPressed,\n sectionIndex: 0\n });\n }\n });\n const handleContainerPaste = useEventCallback(event => {\n onPaste?.(event);\n if (readOnly || parsedSelectedSections !== 'all') {\n event.preventDefault();\n return;\n }\n const pastedValue = event.clipboardData.getData('text');\n event.preventDefault();\n resetCharacterQuery();\n updateValueFromValueStr(pastedValue);\n });\n const handleContainerFocus = useEventCallback((...args) => {\n onFocus?.(...args);\n if (focused || !sectionListRef.current) {\n return;\n }\n setFocused(true);\n const isFocusInsideASection = sectionListRef.current.getSectionIndexFromDOMElement(getActiveElement(document)) != null;\n if (!isFocusInsideASection) {\n setSelectedSections(sectionOrder.startIndex);\n }\n });\n const handleContainerBlur = useEventCallback((...args) => {\n onBlur?.(...args);\n setTimeout(() => {\n if (!sectionListRef.current) {\n return;\n }\n const activeElement = getActiveElement(document);\n const shouldBlur = !sectionListRef.current.getRoot().contains(activeElement);\n if (shouldBlur) {\n setFocused(false);\n setSelectedSections(null);\n }\n });\n });\n const getInputContainerClickHandler = useEventCallback(sectionIndex => event => {\n // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.\n // We avoid this by checking if the call to this function is actually intended, or a side effect.\n if (event.isDefaultPrevented()) {\n return;\n }\n setSelectedSections(sectionIndex);\n });\n const handleInputContentMouseUp = useEventCallback(event => {\n // Without this, the browser will remove the selected when clicking inside an already-selected section.\n event.preventDefault();\n });\n const getInputContentFocusHandler = useEventCallback(sectionIndex => () => {\n setSelectedSections(sectionIndex);\n });\n const handleInputContentPaste = useEventCallback(event => {\n // prevent default to avoid the input `onInput` handler being called\n event.preventDefault();\n if (readOnly || disabled || typeof parsedSelectedSections !== 'number') {\n return;\n }\n const activeSection = state.sections[parsedSelectedSections];\n const pastedValue = event.clipboardData.getData('text');\n const lettersOnly = /^[a-zA-Z]+$/.test(pastedValue);\n const digitsOnly = /^[0-9]+$/.test(pastedValue);\n const digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);\n const isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;\n if (isValidPastedValue) {\n resetCharacterQuery();\n updateSectionValue({\n activeSection,\n newSectionValue: pastedValue,\n shouldGoToNextSection: true\n });\n }\n // If the pasted value corresponds to a single section, but not the expected type, we skip the modification\n else if (!lettersOnly && !digitsOnly) {\n resetCharacterQuery();\n updateValueFromValueStr(pastedValue);\n }\n });\n const handleInputContentDragOver = useEventCallback(event => {\n event.preventDefault();\n event.dataTransfer.dropEffect = 'none';\n });\n const handleInputContentInput = useEventCallback(event => {\n if (!sectionListRef.current) {\n return;\n }\n const target = event.target;\n const keyPressed = target.textContent ?? '';\n const sectionIndex = sectionListRef.current.getSectionIndexFromDOMElement(target);\n const section = state.sections[sectionIndex];\n if (readOnly || !sectionListRef.current) {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n if (keyPressed.length === 0) {\n if (section.value === '') {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n const inputType = event.nativeEvent.inputType;\n if (inputType === 'insertParagraph' || inputType === 'insertLineBreak') {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n resetCharacterQuery();\n clearActiveSection();\n return;\n }\n applyCharacterEditing({\n keyPressed,\n sectionIndex\n });\n\n // The DOM value needs to remain the one React is expecting.\n revertDOMSectionChange(sectionIndex);\n });\n useEnhancedEffect(() => {\n if (!focused || !sectionListRef.current) {\n return;\n }\n if (parsedSelectedSections === 'all') {\n sectionListRef.current.getRoot().focus();\n } else if (typeof parsedSelectedSections === 'number') {\n const domElement = sectionListRef.current.getSectionContent(parsedSelectedSections);\n if (domElement) {\n domElement.focus();\n }\n }\n }, [parsedSelectedSections, focused]);\n const sectionBoundaries = React.useMemo(() => {\n return state.sections.reduce((acc, next) => {\n acc[next.type] = sectionsValueBoundaries[next.type]({\n currentDate: null,\n contentType: next.contentType,\n format: next.format\n });\n return acc;\n }, {});\n }, [sectionsValueBoundaries, state.sections]);\n const isContainerEditable = parsedSelectedSections === 'all';\n const elements = React.useMemo(() => {\n return state.sections.map((section, index) => {\n const isEditable = !isContainerEditable && !disabled && !readOnly;\n return {\n container: {\n 'data-sectionindex': index,\n onClick: getInputContainerClickHandler(index)\n },\n content: {\n tabIndex: isContainerEditable || index > 0 ? -1 : 0,\n contentEditable: !isContainerEditable && !disabled && !readOnly,\n role: 'spinbutton',\n id: `${id}-${section.type}`,\n 'aria-labelledby': `${id}-${section.type}`,\n 'aria-readonly': readOnly,\n 'aria-valuenow': getSectionValueNow(section, utils),\n 'aria-valuemin': sectionBoundaries[section.type].minimum,\n 'aria-valuemax': sectionBoundaries[section.type].maximum,\n 'aria-valuetext': section.value ? getSectionValueText(section, utils) : translations.empty,\n 'aria-label': translations[section.type],\n 'aria-disabled': disabled,\n spellCheck: isEditable ? false : undefined,\n autoCapitalize: isEditable ? 'off' : undefined,\n autoCorrect: isEditable ? 'off' : undefined,\n [parseInt(React.version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,\n children: section.value || section.placeholder,\n onInput: handleInputContentInput,\n onPaste: handleInputContentPaste,\n onFocus: getInputContentFocusHandler(index),\n onDragOver: handleInputContentDragOver,\n onMouseUp: handleInputContentMouseUp,\n inputMode: section.contentType === 'letter' ? 'text' : 'numeric'\n },\n before: {\n children: section.startSeparator\n },\n after: {\n children: section.endSeparator\n }\n };\n });\n }, [state.sections, getInputContentFocusHandler, handleInputContentPaste, handleInputContentDragOver, handleInputContentInput, getInputContainerClickHandler, handleInputContentMouseUp, disabled, readOnly, isContainerEditable, translations, utils, sectionBoundaries, id]);\n const handleValueStrChange = useEventCallback(event => {\n updateValueFromValueStr(event.target.value);\n });\n const valueStr = React.useMemo(() => areAllSectionsEmpty ? '' : fieldValueManager.getV7HiddenInputValueFromSections(state.sections), [areAllSectionsEmpty, state.sections, fieldValueManager]);\n React.useEffect(() => {\n if (sectionListRef.current == null) {\n throw new Error(['MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`', 'You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.', '', 'If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:', '', '<DatePicker slots={{ textField: MyCustomTextField }} />', '', 'Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element'].join('\\n'));\n }\n if (autoFocus && sectionListRef.current) {\n sectionListRef.current.getSectionContent(sectionOrder.startIndex).focus();\n }\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n return {\n interactions,\n returnedValue: {\n // Forwarded\n autoFocus,\n readOnly,\n focused: focusedProp ?? focused,\n sectionListRef: handleSectionListRef,\n onBlur: handleContainerBlur,\n onClick: handleContainerClick,\n onFocus: handleContainerFocus,\n onInput: handleContainerInput,\n onPaste: handleContainerPaste,\n // Additional\n enableAccessibleFieldDOMStructure: true,\n elements,\n // TODO v7: Try to set to undefined when there is a section selected.\n tabIndex: parsedSelectedSections === 0 ? -1 : 0,\n contentEditable: isContainerEditable,\n value: valueStr,\n onChange: handleValueStrChange,\n areAllSectionsEmpty\n }\n };\n};"],"names":["useFieldV7TextField","params","internalProps","disabled","readOnly","forwardedProps","sectionListRef","inSectionListRef","onBlur","onClick","onFocus","onInput","onPaste","focused","focusedProp","autoFocus","fieldValueManager","applyCharacterEditing","resetCharacterQuery","setSelectedSections","parsedSelectedSections","state","clearActiveSection","clearValue","updateSectionValue","updateValueFromValueStr","sectionOrder","areAllSectionsEmpty","sectionsValueBoundaries","React","useRef","handleSectionListRef","useForkRef","translations","usePickersTranslations","utils","useUtils","id","useId","setFocused","useState","interactions","useMemo","syncSelectionToDOM","current","selection","document","getSelection","rangeCount","getRoot","contains","getRangeAt","startContainer","removeAllRanges","blur","getActiveElement","range","window","Range","target","sections","type","getSectionContainer","getSectionContent","selectNodeContents","focus","addRange","getActiveSectionIndexFromDOM","activeElement","getSectionIndexFromDOMElement","focusField","newSelectedSections","newParsedSelectedSections","parseSelectedSections","isFieldFocused","revertDOMSectionChange","useEventCallback","sectionIndex","section","innerHTML","value","placeholder","handleContainerClick","event","args","isDefaultPrevented","setTimeout","cursorPosition","startOffset","startIndex","cursorOnStartOfSection","length","startSeparator","endSeparator","handleContainerInput","keyPressed","textContent","map","join","charCodeAt","handleContainerPaste","preventDefault","pastedValue","clipboardData","getData","handleContainerFocus","handleContainerBlur","getInputContainerClickHandler","handleInputContentMouseUp","getInputContentFocusHandler","handleInputContentPaste","activeSection","lettersOnly","test","digitsOnly","digitsAndLetterOnly","contentType","newSectionValue","shouldGoToNextSection","handleInputContentDragOver","dataTransfer","dropEffect","handleInputContentInput","inputType","nativeEvent","useEnhancedEffect","domElement","sectionBoundaries","reduce","acc","next","currentDate","format","isContainerEditable","elements","index","isEditable","container","content","tabIndex","contentEditable","role","getSectionValueNow","minimum","maximum","getSectionValueText","empty","spellCheck","undefined","autoCapitalize","autoCorrect","parseInt","version","children","onDragOver","onMouseUp","inputMode","before","after","handleValueStrChange","valueStr","getV7HiddenInputValueFromSections","useEffect","Error","returnedValue","enableAccessibleFieldDOMStructure","onChange"],"mappings":"ikBASY,MAACA,EAAsBC,IACjC,MACEC,eAAeC,SACbA,EAAQC,SACRA,GAAW,GAEbC,gBACEC,eAAgBC,EAAgBC,OAChCA,EAAMC,QACNA,EAAOC,QACPA,EAAOC,QACPA,EAAOC,QACPA,EACAC,QAASC,EAAWC,UACpBA,GAAY,GACbC,kBACDA,EAAiBC,sBACjBA,EAAqBC,oBACrBA,EAAmBC,oBACnBA,EAAmBC,uBACnBA,EAAsBC,MACtBA,EAAKC,mBACLA,EAAkBC,WAClBA,EAAUC,mBACVA,EAAkBC,wBAClBA,EAAuBC,aACvBA,EAAYC,oBACZA,EAAmBC,wBACnBA,GACE3B,EACEK,EAAiBuB,EAAMC,OAAO,MAC9BC,EAAuBC,EAAWzB,EAAkBD,GACpD2B,EAAeC,IACfC,EAAQC,IACRC,EAAKC,KACJzB,EAAS0B,GAAcV,EAAMW,UAAS,GACvCC,EAAeZ,EAAMa,QAAQ,KAAO,CACxCC,mBAAoB,KAClB,IAAKrC,EAAesC,QAClB,OAEF,MAAMC,EAAYC,SAASC,eAC3B,IAAKF,EACH,OAEF,GAA8B,MAA1BzB,EAQF,OANIyB,EAAUG,WAAa,GAAK1C,EAAesC,QAAQK,UAAUC,SAAS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9BtC,EAAesC,QAAQmB,kBAAkBrC,EAAa+D,YAAYxB,SAEnE,IAEI,CACLxB,eACA2H,cAAe,CAEbrJ,YACAX,WACAS,QAASC,GAAeD,EACxBP,eAAgByB,EAChBvB,OAAQkG,EACRjG,QAASyE,EACTxE,QAAS+F,EACT9F,QAASmF,EACTlF,QAASwF,EAETiE,mCAAmC,EACnC/B,YAEAK,SAAqC,IAA3BvH,GAAgC,EAAI,EAC9CwH,gBAAiBP,GACjBrD,MAAOgF,GACPM,SAAUP,GACVpI"}
1
+ {"version":3,"file":"useFieldV7TextField.js","sources":["../../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV7TextField.js"],"sourcesContent":["import * as React from 'react';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useId from '@mui/utils/useId';\nimport { getSectionValueNow, getSectionValueText, parseSelectedSections } from \"./useField.utils.js\";\nimport { getActiveElement } from \"../../utils/utils.js\";\nimport { usePickersTranslations } from \"../../../hooks/usePickersTranslations.js\";\nimport { useUtils } from \"../useUtils.js\";\nexport const useFieldV7TextField = params => {\n const {\n internalProps: {\n disabled,\n readOnly = false\n },\n forwardedProps: {\n sectionListRef: inSectionListRef,\n onBlur,\n onClick,\n onFocus,\n onInput,\n onPaste,\n focused: focusedProp,\n autoFocus = false\n },\n fieldValueManager,\n applyCharacterEditing,\n resetCharacterQuery,\n setSelectedSections,\n parsedSelectedSections,\n state,\n clearActiveSection,\n clearValue,\n updateSectionValue,\n updateValueFromValueStr,\n sectionOrder,\n areAllSectionsEmpty,\n sectionsValueBoundaries\n } = params;\n const sectionListRef = React.useRef(null);\n const handleSectionListRef = useForkRef(inSectionListRef, sectionListRef);\n const translations = usePickersTranslations();\n const utils = useUtils();\n const id = useId();\n const [focused, setFocused] = React.useState(false);\n const interactions = React.useMemo(() => ({\n syncSelectionToDOM: () => {\n if (!sectionListRef.current) {\n return;\n }\n const selection = document.getSelection();\n if (!selection) {\n return;\n }\n if (parsedSelectedSections == null) {\n // If the selection contains an element inside the field, we reset it.\n if (selection.rangeCount > 0 && sectionListRef.current.getRoot().contains(selection.getRangeAt(0).startContainer)) {\n selection.removeAllRanges();\n }\n if (focused) {\n sectionListRef.current.getRoot().blur();\n }\n return;\n }\n\n // On multi input range pickers we want to update selection range only for the active input\n if (!sectionListRef.current.getRoot().contains(getActiveElement(document))) {\n return;\n }\n const range = new window.Range();\n let target;\n if (parsedSelectedSections === 'all') {\n target = sectionListRef.current.getRoot();\n } else {\n const section = state.sections[parsedSelectedSections];\n if (section.type === 'empty') {\n target = sectionListRef.current.getSectionContainer(parsedSelectedSections);\n } else {\n target = sectionListRef.current.getSectionContent(parsedSelectedSections);\n }\n }\n range.selectNodeContents(target);\n target.focus();\n selection.removeAllRanges();\n selection.addRange(range);\n },\n getActiveSectionIndexFromDOM: () => {\n const activeElement = getActiveElement(document);\n if (!activeElement || !sectionListRef.current || !sectionListRef.current.getRoot().contains(activeElement)) {\n return null;\n }\n return sectionListRef.current.getSectionIndexFromDOMElement(activeElement);\n },\n focusField: (newSelectedSections = 0) => {\n if (!sectionListRef.current ||\n // if the field is already focused, we don't need to focus it again\n interactions.getActiveSectionIndexFromDOM() != null) {\n return;\n }\n const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);\n setFocused(true);\n sectionListRef.current.getSectionContent(newParsedSelectedSections).focus();\n },\n setSelectedSections: newSelectedSections => {\n if (!sectionListRef.current) {\n return;\n }\n const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);\n const newActiveSectionIndex = newParsedSelectedSections === 'all' ? 0 : newParsedSelectedSections;\n setFocused(newActiveSectionIndex !== null);\n setSelectedSections(newSelectedSections);\n },\n isFieldFocused: () => {\n const activeElement = getActiveElement(document);\n return !!sectionListRef.current && sectionListRef.current.getRoot().contains(activeElement);\n }\n }), [parsedSelectedSections, setSelectedSections, state.sections, focused]);\n\n /**\n * If a section content has been updated with a value we don't want to keep,\n * Then we need to imperatively revert it (we can't let React do it because the value did not change in his internal representation).\n */\n const revertDOMSectionChange = useEventCallback(sectionIndex => {\n if (!sectionListRef.current) {\n return;\n }\n const section = state.sections[sectionIndex];\n sectionListRef.current.getSectionContent(sectionIndex).innerHTML = section.value || section.placeholder;\n interactions.syncSelectionToDOM();\n });\n const handleContainerClick = useEventCallback((event, ...args) => {\n // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.\n // We avoid this by checking if the call of `handleContainerClick` is actually intended, or a side effect.\n if (event.isDefaultPrevented() || !sectionListRef.current) {\n return;\n }\n setFocused(true);\n onClick?.(event, ...args);\n if (parsedSelectedSections === 'all') {\n setTimeout(() => {\n const cursorPosition = document.getSelection().getRangeAt(0).startOffset;\n if (cursorPosition === 0) {\n setSelectedSections(sectionOrder.startIndex);\n return;\n }\n let sectionIndex = 0;\n let cursorOnStartOfSection = 0;\n while (cursorOnStartOfSection < cursorPosition && sectionIndex < state.sections.length) {\n const section = state.sections[sectionIndex];\n sectionIndex += 1;\n cursorOnStartOfSection += `${section.startSeparator}${section.value || section.placeholder}${section.endSeparator}`.length;\n }\n setSelectedSections(sectionIndex - 1);\n });\n } else if (!focused) {\n setFocused(true);\n setSelectedSections(sectionOrder.startIndex);\n } else {\n const hasClickedOnASection = sectionListRef.current.getRoot().contains(event.target);\n if (!hasClickedOnASection) {\n setSelectedSections(sectionOrder.startIndex);\n }\n }\n });\n const handleContainerInput = useEventCallback(event => {\n onInput?.(event);\n if (!sectionListRef.current || parsedSelectedSections !== 'all') {\n return;\n }\n const target = event.target;\n const keyPressed = target.textContent ?? '';\n sectionListRef.current.getRoot().innerHTML = state.sections.map(section => `${section.startSeparator}${section.value || section.placeholder}${section.endSeparator}`).join('');\n interactions.syncSelectionToDOM();\n if (keyPressed.length === 0 || keyPressed.charCodeAt(0) === 10) {\n resetCharacterQuery();\n clearValue();\n setSelectedSections('all');\n } else if (keyPressed.length > 1) {\n updateValueFromValueStr(keyPressed);\n } else {\n if (parsedSelectedSections === 'all') {\n setSelectedSections(0);\n }\n applyCharacterEditing({\n keyPressed,\n sectionIndex: 0\n });\n }\n });\n const handleContainerPaste = useEventCallback(event => {\n onPaste?.(event);\n if (readOnly || parsedSelectedSections !== 'all') {\n event.preventDefault();\n return;\n }\n const pastedValue = event.clipboardData.getData('text');\n event.preventDefault();\n resetCharacterQuery();\n updateValueFromValueStr(pastedValue);\n });\n const handleContainerFocus = useEventCallback((...args) => {\n onFocus?.(...args);\n if (focused || !sectionListRef.current) {\n return;\n }\n setFocused(true);\n const isFocusInsideASection = sectionListRef.current.getSectionIndexFromDOMElement(getActiveElement(document)) != null;\n if (!isFocusInsideASection) {\n setSelectedSections(sectionOrder.startIndex);\n }\n });\n const handleContainerBlur = useEventCallback((...args) => {\n onBlur?.(...args);\n setTimeout(() => {\n if (!sectionListRef.current) {\n return;\n }\n const activeElement = getActiveElement(document);\n const shouldBlur = !sectionListRef.current.getRoot().contains(activeElement);\n if (shouldBlur) {\n setFocused(false);\n setSelectedSections(null);\n }\n });\n });\n const getInputContainerClickHandler = useEventCallback(sectionIndex => event => {\n // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.\n // We avoid this by checking if the call to this function is actually intended, or a side effect.\n if (event.isDefaultPrevented()) {\n return;\n }\n setSelectedSections(sectionIndex);\n });\n const handleInputContentMouseUp = useEventCallback(event => {\n // Without this, the browser will remove the selected when clicking inside an already-selected section.\n event.preventDefault();\n });\n const getInputContentFocusHandler = useEventCallback(sectionIndex => () => {\n setSelectedSections(sectionIndex);\n });\n const handleInputContentPaste = useEventCallback(event => {\n // prevent default to avoid the input `onInput` handler being called\n event.preventDefault();\n if (readOnly || disabled || typeof parsedSelectedSections !== 'number') {\n return;\n }\n const activeSection = state.sections[parsedSelectedSections];\n const pastedValue = event.clipboardData.getData('text');\n const lettersOnly = /^[a-zA-Z]+$/.test(pastedValue);\n const digitsOnly = /^[0-9]+$/.test(pastedValue);\n const digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);\n const isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;\n if (isValidPastedValue) {\n resetCharacterQuery();\n updateSectionValue({\n activeSection,\n newSectionValue: pastedValue,\n shouldGoToNextSection: true\n });\n }\n // If the pasted value corresponds to a single section, but not the expected type, we skip the modification\n else if (!lettersOnly && !digitsOnly) {\n resetCharacterQuery();\n updateValueFromValueStr(pastedValue);\n }\n });\n const handleInputContentDragOver = useEventCallback(event => {\n event.preventDefault();\n event.dataTransfer.dropEffect = 'none';\n });\n const handleInputContentInput = useEventCallback(event => {\n if (!sectionListRef.current) {\n return;\n }\n const target = event.target;\n const keyPressed = target.textContent ?? '';\n const sectionIndex = sectionListRef.current.getSectionIndexFromDOMElement(target);\n const section = state.sections[sectionIndex];\n if (readOnly || !sectionListRef.current) {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n if (keyPressed.length === 0) {\n if (section.value === '') {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n const inputType = event.nativeEvent.inputType;\n if (inputType === 'insertParagraph' || inputType === 'insertLineBreak') {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n resetCharacterQuery();\n clearActiveSection();\n return;\n }\n applyCharacterEditing({\n keyPressed,\n sectionIndex\n });\n\n // The DOM value needs to remain the one React is expecting.\n revertDOMSectionChange(sectionIndex);\n });\n useEnhancedEffect(() => {\n if (!focused || !sectionListRef.current) {\n return;\n }\n if (parsedSelectedSections === 'all') {\n sectionListRef.current.getRoot().focus();\n } else if (typeof parsedSelectedSections === 'number') {\n const domElement = sectionListRef.current.getSectionContent(parsedSelectedSections);\n if (domElement) {\n domElement.focus();\n }\n }\n }, [parsedSelectedSections, focused]);\n const sectionBoundaries = React.useMemo(() => {\n return state.sections.reduce((acc, next) => {\n acc[next.type] = sectionsValueBoundaries[next.type]({\n currentDate: null,\n contentType: next.contentType,\n format: next.format\n });\n return acc;\n }, {});\n }, [sectionsValueBoundaries, state.sections]);\n const isContainerEditable = parsedSelectedSections === 'all';\n const elements = React.useMemo(() => {\n return state.sections.map((section, index) => {\n const isEditable = !isContainerEditable && !disabled && !readOnly;\n return {\n container: {\n 'data-sectionindex': index,\n onClick: getInputContainerClickHandler(index)\n },\n content: {\n tabIndex: isContainerEditable || index > 0 ? -1 : 0,\n contentEditable: !isContainerEditable && !disabled && !readOnly,\n role: 'spinbutton',\n id: `${id}-${section.type}`,\n 'aria-labelledby': `${id}-${section.type}`,\n 'aria-readonly': readOnly,\n 'aria-valuenow': getSectionValueNow(section, utils),\n 'aria-valuemin': sectionBoundaries[section.type].minimum,\n 'aria-valuemax': sectionBoundaries[section.type].maximum,\n 'aria-valuetext': section.value ? getSectionValueText(section, utils) : translations.empty,\n 'aria-label': translations[section.type],\n 'aria-disabled': disabled,\n spellCheck: isEditable ? false : undefined,\n autoCapitalize: isEditable ? 'off' : undefined,\n autoCorrect: isEditable ? 'off' : undefined,\n [parseInt(React.version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,\n children: section.value || section.placeholder,\n onInput: handleInputContentInput,\n onPaste: handleInputContentPaste,\n onFocus: getInputContentFocusHandler(index),\n onDragOver: handleInputContentDragOver,\n onMouseUp: handleInputContentMouseUp,\n inputMode: section.contentType === 'letter' ? 'text' : 'numeric'\n },\n before: {\n children: section.startSeparator\n },\n after: {\n children: section.endSeparator\n }\n };\n });\n }, [state.sections, getInputContentFocusHandler, handleInputContentPaste, handleInputContentDragOver, handleInputContentInput, getInputContainerClickHandler, handleInputContentMouseUp, disabled, readOnly, isContainerEditable, translations, utils, sectionBoundaries, id]);\n const handleValueStrChange = useEventCallback(event => {\n updateValueFromValueStr(event.target.value);\n });\n const valueStr = React.useMemo(() => areAllSectionsEmpty ? '' : fieldValueManager.getV7HiddenInputValueFromSections(state.sections), [areAllSectionsEmpty, state.sections, fieldValueManager]);\n React.useEffect(() => {\n if (sectionListRef.current == null) {\n throw new Error(['MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`', 'You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.', '', 'If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:', '', '<DatePicker slots={{ textField: MyCustomTextField }} />', '', 'Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element'].join('\\n'));\n }\n if (autoFocus && sectionListRef.current) {\n sectionListRef.current.getSectionContent(sectionOrder.startIndex).focus();\n }\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n return {\n interactions,\n returnedValue: {\n // Forwarded\n autoFocus,\n readOnly,\n focused: focusedProp ?? focused,\n sectionListRef: handleSectionListRef,\n onBlur: handleContainerBlur,\n onClick: handleContainerClick,\n onFocus: handleContainerFocus,\n onInput: handleContainerInput,\n onPaste: handleContainerPaste,\n // Additional\n enableAccessibleFieldDOMStructure: true,\n elements,\n // TODO v7: Try to set to undefined when there is a section selected.\n tabIndex: parsedSelectedSections === 0 ? -1 : 0,\n contentEditable: isContainerEditable,\n value: valueStr,\n onChange: handleValueStrChange,\n areAllSectionsEmpty\n }\n };\n};"],"names":["useFieldV7TextField","params","internalProps","disabled","readOnly","forwardedProps","sectionListRef","inSectionListRef","onBlur","onClick","onFocus","onInput","onPaste","focused","focusedProp","autoFocus","fieldValueManager","applyCharacterEditing","resetCharacterQuery","setSelectedSections","parsedSelectedSections","state","clearActiveSection","clearValue","updateSectionValue","updateValueFromValueStr","sectionOrder","areAllSectionsEmpty","sectionsValueBoundaries","React","useRef","handleSectionListRef","useForkRef","translations","usePickersTranslations","utils","useUtils","id","useId","setFocused","useState","interactions","useMemo","syncSelectionToDOM","current","selection","document","getSelection","rangeCount","getRoot","contains","getRangeAt","startContainer","removeAllRanges","blur","getActiveElement","range","window","Range","target","sections","type","getSectionContainer","getSectionContent","selectNodeContents","focus","addRange","getActiveSectionIndexFromDOM","activeElement","getSectionIndexFromDOMElement","focusField","newSelectedSections","newParsedSelectedSections","parseSelectedSections","isFieldFocused","revertDOMSectionChange","useEventCallback","sectionIndex","section","innerHTML","value","placeholder","handleContainerClick","event","args","isDefaultPrevented","setTimeout","cursorPosition","startOffset","startIndex","cursorOnStartOfSection","length","startSeparator","endSeparator","handleContainerInput","keyPressed","textContent","map","join","charCodeAt","handleContainerPaste","preventDefault","pastedValue","clipboardData","getData","handleContainerFocus","handleContainerBlur","getInputContainerClickHandler","handleInputContentMouseUp","getInputContentFocusHandler","handleInputContentPaste","activeSection","lettersOnly","test","digitsOnly","digitsAndLetterOnly","contentType","newSectionValue","shouldGoToNextSection","handleInputContentDragOver","dataTransfer","dropEffect","handleInputContentInput","inputType","nativeEvent","useEnhancedEffect","domElement","sectionBoundaries","reduce","acc","next","currentDate","format","isContainerEditable","elements","index","isEditable","container","content","tabIndex","contentEditable","role","getSectionValueNow","minimum","maximum","getSectionValueText","empty","spellCheck","undefined","autoCapitalize","autoCorrect","parseInt","version","children","onDragOver","onMouseUp","inputMode","before","after","handleValueStrChange","valueStr","getV7HiddenInputValueFromSections","useEffect","Error","returnedValue","enableAccessibleFieldDOMStructure","onChange"],"mappings":"6nBASY,MAACA,EAAsBC,IACjC,MACEC,eAAeC,SACbA,EAAQC,SACRA,GAAW,GAEbC,gBACEC,eAAgBC,EAAgBC,OAChCA,EAAMC,QACNA,EAAOC,QACPA,EAAOC,QACPA,EAAOC,QACPA,EACAC,QAASC,EAAWC,UACpBA,GAAY,GACbC,kBACDA,EAAiBC,sBACjBA,EAAqBC,oBACrBA,EAAmBC,oBACnBA,EAAmBC,uBACnBA,EAAsBC,MACtBA,EAAKC,mBACLA,EAAkBC,WAClBA,EAAUC,mBACVA,EAAkBC,wBAClBA,EAAuBC,aACvBA,EAAYC,oBACZA,EAAmBC,wBACnBA,GACE3B,EACEK,EAAiBu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,EAAwB0D,EAAMxB,OAAOqB,SAEjCgF,GAAWnI,EAAMa,QAAQ,IAAMf,EAAsB,GAAKX,EAAkBiJ,kCAAkC5I,EAAMuC,UAAW,CAACjC,EAAqBN,EAAMuC,SAAU5C,IAU3K,OATAa,EAAMqI,UAAU,KACd,GAA8B,MAA1B5J,EAAesC,QACjB,MAAM,IAAIuH,MAAM,CAAC,oFAAqF,yIAA0I,GAAI,yKAA0K,GAAI,0DAA2D,GAAI,8JAA8JjE,KAAK,OAEloBnF,GAAaT,EAAesC,SAC9BtC,EAAesC,QAAQmB,kBAAkBrC,EAAa+D,YAAYxB,SAEnE,IAEI,CACLxB,eACA2H,cAAe,CAEbrJ,YACAX,WACAS,QAASC,GAAeD,EACxBP,eAAgByB,EAChBvB,OAAQkG,EACRjG,QAASyE,EACTxE,QAAS+F,EACT9F,QAASmF,EACTlF,QAASwF,EAETiE,mCAAmC,EACnC/B,YAEAK,SAAqC,IAA3BvH,GAAgC,EAAI,EAC9CwH,gBAAiBP,GACjBrD,MAAOgF,GACPM,SAAUP,GACVpI"}
@@ -1,2 +1,2 @@
1
- import*as e from"react";import"../../../utils/node_modules/react-is/index.js";import"../../../utils/esm/elementAcceptingRef/elementAcceptingRef.js";import"../../../utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js";import"../../../utils/esm/ponyfillGlobal/ponyfillGlobal.js";import"../../../utils/esm/refType/refType.js";import t from"../../../utils/esm/useEnhancedEffect/useEnhancedEffect.js";import"../../../utils/esm/integerPropType/integerPropType.js";import{arrayIncludes as n}from"../utils/utils.js";function i(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const o=(o,r)=>{const[s,a]=e.useState(i);if(t(()=>{const e=()=>{a(i())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}},[]),n(o,["hours","minutes","seconds"]))return!1;return"landscape"===(r||s)};export{o as useIsLandscape};
1
+ import*as e from"react";import"../../node_modules/react-is/index.js";import"../../node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js";import"../../node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js";import"../../node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js";import"../../node_modules/@mui/utils/esm/refType/refType.js";import n from"../../node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js";import"../../node_modules/@mui/utils/esm/integerPropType/integerPropType.js";import{arrayIncludes as t}from"../utils/utils.js";function o(){return"undefined"==typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}const i=(i,s)=>{const[r,m]=e.useState(o);if(n(()=>{const e=()=>{m(o())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}},[]),t(i,["hours","minutes","seconds"]))return!1;return"landscape"===(s||r)};export{i as useIsLandscape};
2
2
  //# sourceMappingURL=useIsLandscape.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useIsLandscape.js","sources":["../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/useIsLandscape.js"],"sourcesContent":["import * as React from 'react';\nimport { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { arrayIncludes } from \"../utils/utils.js\";\nfunction getOrientation() {\n if (typeof window === 'undefined') {\n return 'portrait';\n }\n if (window.screen && window.screen.orientation && window.screen.orientation.angle) {\n return Math.abs(window.screen.orientation.angle) === 90 ? 'landscape' : 'portrait';\n }\n\n // Support IOS safari\n if (window.orientation) {\n return Math.abs(Number(window.orientation)) === 90 ? 'landscape' : 'portrait';\n }\n return 'portrait';\n}\nexport const useIsLandscape = (views, customOrientation) => {\n const [orientation, setOrientation] = React.useState(getOrientation);\n useEnhancedEffect(() => {\n const eventHandler = () => {\n setOrientation(getOrientation());\n };\n window.addEventListener('orientationchange', eventHandler);\n return () => {\n window.removeEventListener('orientationchange', eventHandler);\n };\n }, []);\n if (arrayIncludes(views, ['hours', 'minutes', 'seconds'])) {\n // could not display 13:34:44 in landscape mode\n return false;\n }\n const orientationToUse = customOrientation || orientation;\n return orientationToUse === 'landscape';\n};"],"names":["getOrientation","window","screen","orientation","angle","Math","abs","Number","useIsLandscape","views","customOrientation","setOrientation","React","useState","useEnhancedEffect","eventHandler","addEventListener","removeEventListener","arrayIncludes"],"mappings":"qgBAGA,SAASA,IACP,MAAsB,oBAAXC,OACF,WAELA,OAAOC,QAAUD,OAAOC,OAAOC,aAAeF,OAAOC,OAAOC,YAAYC,MACrB,KAA9CC,KAAKC,IAAIL,OAAOC,OAAOC,YAAYC,OAAgB,YAAc,WAItEH,OAAOE,aACuC,KAAzCE,KAAKC,IAAIC,OAAON,OAAOE,cAAuB,YAEhD,UACT,CACY,MAACK,EAAiB,CAACC,EAAOC,KACpC,MAAOP,EAAaQ,GAAkBC,EAAMC,SAASb,GAUrD,GATAc,EAAkB,KAChB,MAAMC,EAAe,KACnBJ,EAAeX,MAGjB,OADAC,OAAOe,iBAAiB,oBAAqBD,GACtC,KACLd,OAAOgB,oBAAoB,oBAAqBF,KAEjD,IACCG,EAAcT,EAAO,CAAC,QAAS,UAAW,YAE5C,OAAO,EAGT,MAA4B,eADHC,GAAqBP"}
1
+ {"version":3,"file":"useIsLandscape.js","sources":["../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/useIsLandscape.js"],"sourcesContent":["import * as React from 'react';\nimport { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { arrayIncludes } from \"../utils/utils.js\";\nfunction getOrientation() {\n if (typeof window === 'undefined') {\n return 'portrait';\n }\n if (window.screen && window.screen.orientation && window.screen.orientation.angle) {\n return Math.abs(window.screen.orientation.angle) === 90 ? 'landscape' : 'portrait';\n }\n\n // Support IOS safari\n if (window.orientation) {\n return Math.abs(Number(window.orientation)) === 90 ? 'landscape' : 'portrait';\n }\n return 'portrait';\n}\nexport const useIsLandscape = (views, customOrientation) => {\n const [orientation, setOrientation] = React.useState(getOrientation);\n useEnhancedEffect(() => {\n const eventHandler = () => {\n setOrientation(getOrientation());\n };\n window.addEventListener('orientationchange', eventHandler);\n return () => {\n window.removeEventListener('orientationchange', eventHandler);\n };\n }, []);\n if (arrayIncludes(views, ['hours', 'minutes', 'seconds'])) {\n // could not display 13:34:44 in landscape mode\n return false;\n }\n const orientationToUse = customOrientation || orientation;\n return orientationToUse === 'landscape';\n};"],"names":["getOrientation","window","screen","orientation","angle","Math","abs","Number","useIsLandscape","views","customOrientation","setOrientation","React","useState","useEnhancedEffect","eventHandler","addEventListener","removeEventListener","arrayIncludes"],"mappings":"slBAGA,SAASA,IACP,MAAsB,oBAAXC,OACF,WAELA,OAAOC,QAAUD,OAAOC,OAAOC,aAAeF,OAAOC,OAAOC,YAAYC,MACrB,KAA9CC,KAAKC,IAAIL,OAAOC,OAAOC,YAAYC,OAAgB,YAAc,WAItEH,OAAOE,aACuC,KAAzCE,KAAKC,IAAIC,OAAON,OAAOE,cAAuB,YAEhD,UACT,CACY,MAACK,EAAiB,CAACC,EAAOC,KACpC,MAAOP,EAAaQ,GAAkBC,EAAMC,SAASb,GAUrD,GATAc,EAAkB,KAChB,MAAMC,EAAe,KACnBJ,EAAeX,MAGjB,OADAC,OAAOe,iBAAiB,oBAAqBD,GACtC,KACLd,OAAOgB,oBAAoB,oBAAqBF,KAEjD,IACCG,EAAcT,EAAO,CAAC,QAAS,UAAW,YAE5C,OAAO,EAGT,MAA4B,eADHC,GAAqBP"}
@@ -1,2 +1,2 @@
1
- import e from"../../../../../@babel/runtime/helpers/esm/extends.js";import o from"../../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import*as t from"react";import s from"../../../../utils/esm/useSlotProps/useSlotProps.js";import r from"../../../../utils/esm/useForkRef/useForkRef.js";import l from"../../../../utils/esm/useId/useId.js";import{PickersModalDialog as i}from"../../components/PickersModalDialog.js";import{onSpaceOrEnter as a}from"../../utils/utils.js";import{PickersProvider as n}from"../../components/PickersProvider.js";import{jsxs as p,jsx as m}from"react/jsx-runtime";import{usePicker as c}from"../usePicker/usePicker.js";import{PickersLayout as u}from"../../../PickersLayout/PickersLayout.js";const d=["props","getOpenDialogAriaText"],f=f=>{let{props:b,getOpenDialogAriaText:P}=f,x=o(f,d);const{slots:j,slotProps:y,className:S,sx:k,format:h,formatDensity:F,enableAccessibleFieldDOMStructure:D,selectedSections:O,onSelectedSectionsChange:R,timezone:g,name:w,label:V,inputRef:T,readOnly:A,disabled:C,localeText:v}=b,I=t.useRef(null),L=l(),M=y?.toolbar?.hidden??!1,{open:z,actions:N,layoutProps:K,renderCurrentView:W,fieldProps:$,contextValue:q}=c(e({},x,{props:b,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),B=j.field,E=s({elementType:B,externalSlotProps:y?.field,additionalProps:e({},$,M&&{id:L},!(C||A)&&{onClick:N.onOpen,onKeyDown:a(N.onOpen)},{readOnly:A??!0,disabled:C,className:S,sx:k,format:h,formatDensity:F,enableAccessibleFieldDOMStructure:D,selectedSections:O,onSelectedSectionsChange:R,timezone:g,label:V,name:w},T?{inputRef:T}:{}),ownerState:b});E.inputProps=e({},E.inputProps,{"aria-label":P($.value)});const G=e({textField:j.textField},E.slots),H=j.layout??u;let J=L;M&&(J=V?`${L}-label`:void 0);const Q=e({},y,{toolbar:e({},y?.toolbar,{titleId:L}),mobilePaper:e({"aria-labelledby":J},y?.mobilePaper)}),U=r(I,E.unstableFieldRef);return{renderPicker:()=>p(n,{contextValue:q,localeText:v,children:[m(B,e({},E,{slots:G,slotProps:Q,unstableFieldRef:U})),m(i,e({},N,{open:z,slots:j,slotProps:Q,children:m(H,e({},K,Q?.layout,{slots:j,slotProps:Q,children:W()}))}))]})}};export{f as useMobilePicker};
1
+ import e from"../../../../../@babel/runtime/helpers/esm/extends.js";import o from"../../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import*as t from"react";import s from"../../../node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js";import r from"../../../node_modules/@mui/utils/esm/useForkRef/useForkRef.js";import l from"../../../node_modules/@mui/utils/esm/useId/useId.js";import{PickersModalDialog as i}from"../../components/PickersModalDialog.js";import{onSpaceOrEnter as n}from"../../utils/utils.js";import{PickersProvider as a}from"../../components/PickersProvider.js";import{jsxs as m,jsx as p}from"react/jsx-runtime";import{usePicker as u}from"../usePicker/usePicker.js";import{PickersLayout as d}from"../../../PickersLayout/PickersLayout.js";const c=["props","getOpenDialogAriaText"],f=f=>{let{props:b,getOpenDialogAriaText:P}=f,x=o(f,c);const{slots:j,slotProps:y,className:S,sx:k,format:h,formatDensity:F,enableAccessibleFieldDOMStructure:D,selectedSections:O,onSelectedSectionsChange:R,timezone:g,name:w,label:V,inputRef:T,readOnly:A,disabled:C,localeText:v}=b,I=t.useRef(null),L=l(),M=y?.toolbar?.hidden??!1,{open:_,actions:z,layoutProps:N,renderCurrentView:K,fieldProps:W,contextValue:$}=u(e({},x,{props:b,fieldRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),q=j.field,B=s({elementType:q,externalSlotProps:y?.field,additionalProps:e({},W,M&&{id:L},!(C||A)&&{onClick:z.onOpen,onKeyDown:n(z.onOpen)},{readOnly:A??!0,disabled:C,className:S,sx:k,format:h,formatDensity:F,enableAccessibleFieldDOMStructure:D,selectedSections:O,onSelectedSectionsChange:R,timezone:g,label:V,name:w},T?{inputRef:T}:{}),ownerState:b});B.inputProps=e({},B.inputProps,{"aria-label":P(W.value)});const E=e({textField:j.textField},B.slots),G=j.layout??d;let H=L;M&&(H=V?`${L}-label`:void 0);const J=e({},y,{toolbar:e({},y?.toolbar,{titleId:L}),mobilePaper:e({"aria-labelledby":H},y?.mobilePaper)}),Q=r(I,B.unstableFieldRef);return{renderPicker:()=>m(a,{contextValue:$,localeText:v,children:[p(q,e({},B,{slots:E,slotProps:J,unstableFieldRef:Q})),p(i,e({},z,{open:_,slots:j,slotProps:J,children:p(G,e({},N,J?.layout,{slots:j,slotProps:J,children:K()}))}))]})}};export{f as useMobilePicker};
2
2
  //# sourceMappingURL=useMobilePicker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useMobilePicker.js","sources":["../../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/useMobilePicker/useMobilePicker.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"props\", \"getOpenDialogAriaText\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useId from '@mui/utils/useId';\nimport { PickersModalDialog } from \"../../components/PickersModalDialog.js\";\nimport { usePicker } from \"../usePicker/index.js\";\nimport { onSpaceOrEnter } from \"../../utils/utils.js\";\nimport { PickersLayout } from \"../../../PickersLayout/index.js\";\nimport { PickersProvider } from \"../../components/PickersProvider.js\";\n\n/**\n * Hook managing all the single-date mobile pickers:\n * - MobileDatePicker\n * - MobileDateTimePicker\n * - MobileTimePicker\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const useMobilePicker = _ref => {\n let {\n props,\n getOpenDialogAriaText\n } = _ref,\n pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);\n const {\n slots,\n slotProps: innerSlotProps,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone,\n name,\n label,\n inputRef,\n readOnly,\n disabled,\n localeText\n } = props;\n const fieldRef = React.useRef(null);\n const labelId = useId();\n const isToolbarHidden = innerSlotProps?.toolbar?.hidden ?? false;\n const {\n open,\n actions,\n layoutProps,\n renderCurrentView,\n fieldProps: pickerFieldProps,\n contextValue\n } = usePicker(_extends({}, pickerParams, {\n props,\n fieldRef,\n autoFocusView: true,\n additionalViewProps: {},\n wrapperVariant: 'mobile'\n }));\n const Field = slots.field;\n const fieldProps = useSlotProps({\n elementType: Field,\n externalSlotProps: innerSlotProps?.field,\n additionalProps: _extends({}, pickerFieldProps, isToolbarHidden && {\n id: labelId\n }, !(disabled || readOnly) && {\n onClick: actions.onOpen,\n onKeyDown: onSpaceOrEnter(actions.onOpen)\n }, {\n readOnly: readOnly ?? true,\n disabled,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone,\n label,\n name\n }, inputRef ? {\n inputRef\n } : {}),\n ownerState: props\n });\n\n // TODO: Move to `useSlotProps` when https://github.com/mui/material-ui/pull/35088 will be merged\n fieldProps.inputProps = _extends({}, fieldProps.inputProps, {\n 'aria-label': getOpenDialogAriaText(pickerFieldProps.value)\n });\n const slotsForField = _extends({\n textField: slots.textField\n }, fieldProps.slots);\n const Layout = slots.layout ?? PickersLayout;\n let labelledById = labelId;\n if (isToolbarHidden) {\n if (label) {\n labelledById = `${labelId}-label`;\n } else {\n labelledById = undefined;\n }\n }\n const slotProps = _extends({}, innerSlotProps, {\n toolbar: _extends({}, innerSlotProps?.toolbar, {\n titleId: labelId\n }),\n mobilePaper: _extends({\n 'aria-labelledby': labelledById\n }, innerSlotProps?.mobilePaper)\n });\n const handleFieldRef = useForkRef(fieldRef, fieldProps.unstableFieldRef);\n const renderPicker = () => /*#__PURE__*/_jsxs(PickersProvider, {\n contextValue: contextValue,\n localeText: localeText,\n children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps, {\n slots: slotsForField,\n slotProps: slotProps,\n unstableFieldRef: handleFieldRef\n })), /*#__PURE__*/_jsx(PickersModalDialog, _extends({}, actions, {\n open: open,\n slots: slots,\n slotProps: slotProps,\n children: /*#__PURE__*/_jsx(Layout, _extends({}, layoutProps, slotProps?.layout, {\n slots: slots,\n slotProps: slotProps,\n children: renderCurrentView()\n }))\n }))]\n });\n return {\n renderPicker\n };\n};"],"names":["_excluded","useMobilePicker","_ref","props","getOpenDialogAriaText","pickerParams","_objectWithoutPropertiesLoose","slots","slotProps","innerSlotProps","className","sx","format","formatDensity","enableAccessibleFieldDOMStructure","selectedSections","onSelectedSectionsChange","timezone","name","label","inputRef","readOnly","disabled","localeText","fieldRef","React","useRef","labelId","useId","isToolbarHidden","toolbar","hidden","open","actions","layoutProps","renderCurrentView","fieldProps","pickerFieldProps","contextValue","usePicker","_extends","autoFocusView","additionalViewProps","wrapperVariant","Field","field","useSlotProps","elementType","externalSlotProps","additionalProps","id","onClick","onOpen","onKeyDown","onSpaceOrEnter","ownerState","inputProps","value","slotsForField","textField","Layout","layout","PickersLayout","labelledById","undefined","titleId","mobilePaper","handleFieldRef","useForkRef","unstableFieldRef","renderPicker","_jsxs","PickersProvider","children","_jsx","PickersModalDialog"],"mappings":"iuBAEA,MAAMA,EAAY,CAAC,QAAS,yBAkBfC,EAAkBC,IAC7B,IAAIC,MACAA,EAAKC,sBACLA,GACEF,EACJG,EAAeC,EAA8BJ,EAAMF,GACrD,MAAMO,MACJA,EACAC,UAAWC,EAAcC,UACzBA,EAASC,GACTA,EAAEC,OACFA,EAAMC,cACNA,EAAaC,kCACbA,EAAiCC,iBACjCA,EAAgBC,yBAChBA,EAAwBC,SACxBA,EAAQC,KACRA,EAAIC,MACJA,EAAKC,SACLA,EAAQC,SACRA,EAAQC,SACRA,EAAQC,WACRA,GACEpB,EACEqB,EAAWC,EAAMC,OAAO,MACxBC,EAAUC,IACVC,EAAkBpB,GAAgBqB,SAASC,SAAU,GACrDC,KACJA,EAAIC,QACJA,EAAOC,YACPA,EAAWC,kBACXA,EACAC,WAAYC,EAAgBC,aAC5BA,GACEC,EAAUC,EAAS,CAAE,EAAEnC,EAAc,CACvCF,QACAqB,WACAiB,eAAe,EACfC,oBAAqB,CAAE,EACvBC,eAAgB,YAEZC,EAAQrC,EAAMsC,MACdT,EAAaU,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.js","sources":["../../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/useMobilePicker/useMobilePicker.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"props\", \"getOpenDialogAriaText\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useId from '@mui/utils/useId';\nimport { PickersModalDialog } from \"../../components/PickersModalDialog.js\";\nimport { usePicker } from \"../usePicker/index.js\";\nimport { onSpaceOrEnter } from \"../../utils/utils.js\";\nimport { PickersLayout } from \"../../../PickersLayout/index.js\";\nimport { PickersProvider } from \"../../components/PickersProvider.js\";\n\n/**\n * Hook managing all the single-date mobile pickers:\n * - MobileDatePicker\n * - MobileDateTimePicker\n * - MobileTimePicker\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const useMobilePicker = _ref => {\n let {\n props,\n getOpenDialogAriaText\n } = _ref,\n pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);\n const {\n slots,\n slotProps: innerSlotProps,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone,\n name,\n label,\n inputRef,\n readOnly,\n disabled,\n localeText\n } = props;\n const fieldRef = React.useRef(null);\n const labelId = useId();\n const isToolbarHidden = innerSlotProps?.toolbar?.hidden ?? false;\n const {\n open,\n actions,\n layoutProps,\n renderCurrentView,\n fieldProps: pickerFieldProps,\n contextValue\n } = usePicker(_extends({}, pickerParams, {\n props,\n fieldRef,\n autoFocusView: true,\n additionalViewProps: {},\n wrapperVariant: 'mobile'\n }));\n const Field = slots.field;\n const fieldProps = useSlotProps({\n elementType: Field,\n externalSlotProps: innerSlotProps?.field,\n additionalProps: _extends({}, pickerFieldProps, isToolbarHidden && {\n id: labelId\n }, !(disabled || readOnly) && {\n onClick: actions.onOpen,\n onKeyDown: onSpaceOrEnter(actions.onOpen)\n }, {\n readOnly: readOnly ?? true,\n disabled,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone,\n label,\n name\n }, inputRef ? {\n inputRef\n } : {}),\n ownerState: props\n });\n\n // TODO: Move to `useSlotProps` when https://github.com/mui/material-ui/pull/35088 will be merged\n fieldProps.inputProps = _extends({}, fieldProps.inputProps, {\n 'aria-label': getOpenDialogAriaText(pickerFieldProps.value)\n });\n const slotsForField = _extends({\n textField: slots.textField\n }, fieldProps.slots);\n const Layout = slots.layout ?? PickersLayout;\n let labelledById = labelId;\n if (isToolbarHidden) {\n if (label) {\n labelledById = `${labelId}-label`;\n } else {\n labelledById = undefined;\n }\n }\n const slotProps = _extends({}, innerSlotProps, {\n toolbar: _extends({}, innerSlotProps?.toolbar, {\n titleId: labelId\n }),\n mobilePaper: _extends({\n 'aria-labelledby': labelledById\n }, innerSlotProps?.mobilePaper)\n });\n const handleFieldRef = useForkRef(fieldRef, fieldProps.unstableFieldRef);\n const renderPicker = () => /*#__PURE__*/_jsxs(PickersProvider, {\n contextValue: contextValue,\n localeText: localeText,\n children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps, {\n slots: slotsForField,\n slotProps: slotProps,\n unstableFieldRef: handleFieldRef\n })), /*#__PURE__*/_jsx(PickersModalDialog, _extends({}, actions, {\n open: open,\n slots: slots,\n slotProps: slotProps,\n children: /*#__PURE__*/_jsx(Layout, _extends({}, layoutProps, slotProps?.layout, {\n slots: slots,\n slotProps: slotProps,\n children: renderCurrentView()\n }))\n }))]\n });\n return {\n renderPicker\n };\n};"],"names":["_excluded","useMobilePicker","_ref","props","getOpenDialogAriaText","pickerParams","_objectWithoutPropertiesLoose","slots","slotProps","innerSlotProps","className","sx","format","formatDensity","enableAccessibleFieldDOMStructure","selectedSections","onSelectedSectionsChange","timezone","name","label","inputRef","readOnly","disabled","localeText","fieldRef","React","useRef","labelId","useId","isToolbarHidden","toolbar","hidden","open","actions","layoutProps","renderCurrentView","fieldProps","pickerFieldProps","contextValue","usePicker","_extends","autoFocusView","additionalViewProps","wrapperVariant","Field","field","useSlotProps","elementType","externalSlotProps","additionalProps","id","onClick","onOpen","onKeyDown","onSpaceOrEnter","ownerState","inputProps","value","slotsForField","textField","Layout","layout","PickersLayout","labelledById","undefined","titleId","mobilePaper","handleFieldRef","useForkRef","unstableFieldRef","renderPicker","_jsxs","PickersProvider","children","_jsx","PickersModalDialog"],"mappings":"8wBAEA,MAAMA,EAAY,CAAC,QAAS,yBAkBfC,EAAkBC,IAC7B,IAAIC,MACAA,EAAKC,sBACLA,GACEF,EACJG,EAAeC,EAA8BJ,EAAMF,GACrD,MAAMO,MACJA,EACAC,UAAWC,EAAcC,UACzBA,EAASC,GACTA,EAAEC,OACFA,EAAMC,cACNA,EAAaC,kCACbA,EAAiCC,iBACjCA,EAAgBC,yBAChBA,EAAwBC,SACxBA,EAAQC,KACRA,EAAIC,MACJA,EAAKC,SACLA,EAAQC,SACRA,EAAQC,SACRA,EAAQC,WACRA,GACEpB,EACEqB,EAAWC,EAAMC,OAAO,MACxBC,EAAUC,IACVC,EAAkBpB,GAAgBqB,SAASC,SAAU,GACrDC,KACJA,EAAIC,QACJA,EAAOC,YACPA,EAAWC,kBACXA,EACAC,WAAYC,EAAgBC,aAC5BA,GACEC,EAAUC,EAAS,CAAE,EAAEnC,EAAc,CACvCF,QACAqB,WACAiB,eAAe,EACfC,oBAAqB,CAAE,EACvBC,eAAgB,YAEZC,EAAQrC,EAAMsC,MACdT,EAAaU,EAAa,CAC9BC,YAAaH,EACbI,kBAAmBvC,GAAgBoC,MACnCI,gBAAiBT,EAAS,GAAIH,EAAkBR,GAAmB,CACjEqB,GAAIvB,KACDL,GAAYD,IAAa,CAC5B8B,QAASlB,EAAQmB,OACjBC,UAAWC,EAAerB,EAAQmB,SACjC,CACD/B,SAAUA,IAAY,EACtBC,WACAZ,YACAC,KACAC,SACAC,gBACAC,oCACAC,mBACAC,2BACAC,WACAE,QACAD,QACCE,EAAW,CACZA,YACE,IACJmC,WAAYpD,IAIdiC,EAAWoB,WAAahB,EAAS,CAAA,EAAIJ,EAAWoB,WAAY,CAC1D,aAAcpD,EAAsBiC,EAAiBoB,SAEvD,MAAMC,EAAgBlB,EAAS,CAC7BmB,UAAWpD,EAAMoD,WAChBvB,EAAW7B,OACRqD,EAASrD,EAAMsD,QAAUC,EAC/B,IAAIC,EAAepC,EACfE,IAEAkC,EADE5C,EACa,GAAGQ,eAEHqC,GAGnB,MAAMxD,EAAYgC,EAAS,CAAE,EAAE/B,EAAgB,CAC7CqB,QAASU,EAAS,GAAI/B,GAAgBqB,QAAS,CAC7CmC,QAAStC,IAEXuC,YAAa1B,EAAS,CACpB,kBAAmBuB,GAClBtD,GAAgByD,eAEfC,EAAiBC,EAAW5C,EAAUY,EAAWiC,kBAmBvD,MAAO,CACLC,aAnBmB,IAAmBC,EAAMC,EAAiB,CAC7DlC,aAAcA,EACdf,WAAYA,EACZkD,SAAU,CAAcC,EAAK9B,EAAOJ,EAAS,CAAA,EAAIJ,EAAY,CAC3D7B,MAAOmD,EACPlD,UAAWA,EACX6D,iBAAkBF,KACFO,EAAKC,EAAoBnC,EAAS,CAAA,EAAIP,EAAS,CAC/DD,KAAMA,EACNzB,MAAOA,EACPC,UAAWA,EACXiE,SAAuBC,EAAKd,EAAQpB,EAAS,CAAA,EAAIN,EAAa1B,GAAWqD,OAAQ,CAC/EtD,MAAOA,EACPC,UAAWA,EACXiE,SAAUtC"}
@@ -1,2 +1,2 @@
1
- import e from"../../../../../@babel/runtime/helpers/esm/extends.js";import*as t from"react";import a from"../../../../utils/esm/useEventCallback/useEventCallback.js";import{useOpenState as o}from"../useOpenState.js";import{useUtils as n,useLocalizationContext as l}from"../useUtils.js";import{useValueWithTimezone as r}from"../useValueWithTimezone.js";import{useValidation as s}from"../../../validation/useValidation.js";const i=({props:i,valueManager:u,valueType:c,wrapperVariant:d,validator:m})=>{const{onAccept:p,onChange:V,value:h,defaultValue:f,closeOnSelect:v="desktop"===d,timezone:C,referenceDate:S}=i,{current:g}=t.useRef(f),{current:F}=t.useRef(void 0!==h),[A,M]=t.useState(C);"production"!==process.env.NODE_ENV&&(t.useEffect(()=>{F!==(void 0!==h)&&console.error([`MUI X: A component is changing the ${F?"":"un"}controlled value of a picker to be ${F?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))},[h]),t.useEffect(()=>{F||g===f||console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join("\n"))},[JSON.stringify(g)]));const b=n(),E=l(),{isOpen:k,setIsOpen:w}=o(i),{timezone:O,value:P,handleValueChange:y}=r({timezone:C,value:h,defaultValue:g,referenceDate:S,onChange:V,valueManager:u}),[z,j]=t.useState(()=>{let e;return e=void 0!==P?P:void 0!==g?g:u.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:h,hasBeenModifiedSinceMount:!1}}),T=u.getTimezone(b,z.draft);A!==C&&(M(C),C&&T&&C!==T&&j(t=>e({},t,{draft:u.setTimezone(b,C,t.draft)})));const{getValidationErrorForNewValue:D}=s({props:i,validator:m,timezone:O,value:z.draft,onError:i.onError}),I=a(t=>{const a={action:t,dateState:z,hasChanged:e=>!u.areValuesEqual(b,t.value,e),isControlled:F,closeOnSelect:v},o=(e=>{const{action:t,hasChanged:a,dateState:o,isControlled:n}=e,l=!n&&!o.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!l||!["accept","today","clear"].includes(t.pickerAction))||a(o.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!l||a(o.lastPublishedValue)))})(a),n=(e=>{const{action:t,hasChanged:a,dateState:o,isControlled:n,closeOnSelect:l}=e,r=!n&&!o.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!r||!["accept","today","clear"].includes(t.pickerAction))||a(o.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&l?!!r||a(o.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&a(o.lastCommittedValue)})(a),l=(e=>{const{action:t,closeOnSelect:a}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&a:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(a);j(a=>e({},a,{draft:t.value,lastPublishedValue:o?t.value:a.lastPublishedValue,lastCommittedValue:n?t.value:a.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let r=null;const s=()=>{if(!r){const e="setValueFromField"===t.name?t.context.validationError:D(t.value);r={validationError:e},"setValueFromShortcut"===t.name&&(r.shortcut=t.shortcut)}return r};o&&y(t.value,s()),n&&p&&p(t.value,s()),l&&w(!1)});if(z.lastControlledValue!==h){const t=u.areValuesEqual(b,z.draft,P);j(a=>e({},a,{lastControlledValue:h},t?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const x=a(()=>{I({value:u.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),B=a(()=>{I({value:z.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),N=a(()=>{I({value:z.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),U=a(()=>{I({value:z.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),q=a(()=>{I({value:u.getTodayValue(b,O,c),name:"setValueFromAction",pickerAction:"today"})}),R=a(e=>{e.preventDefault(),w(!0)}),X=a(e=>{e?.preventDefault(),w(!1)}),$=a((e,t="partial")=>I({name:"setValueFromView",value:e,selectionState:t})),J=a((e,t,a)=>I({name:"setValueFromShortcut",value:e,changeImportance:t,shortcut:a})),W=a((e,t)=>I({name:"setValueFromField",value:e,context:t})),_={onClear:x,onAccept:B,onDismiss:N,onCancel:U,onSetToday:q,onOpen:R,onClose:X},G={value:z.draft,onChange:W},H=t.useMemo(()=>u.cleanValue(b,z.draft),[b,u,z.draft]),K={value:H,onChange:$,onClose:X,open:k},L=e({},_,{value:H,onChange:$,onSelectShortcut:J,isValid:e=>{const t=m({adapter:E,value:e,timezone:O,props:i});return!u.hasError(t)}}),Q=t.useMemo(()=>({onOpen:R,onClose:X,open:k}),[k,X,R]);return{open:k,fieldProps:G,viewProps:K,layoutProps:L,actions:_,contextValue:Q}};export{i as usePickerValue};
1
+ import e from"../../../../../@babel/runtime/helpers/esm/extends.js";import*as t from"react";import a from"../../../node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js";import{useOpenState as o}from"../useOpenState.js";import{useUtils as n,useLocalizationContext as l}from"../useUtils.js";import{useValueWithTimezone as r}from"../useValueWithTimezone.js";import{useValidation as s}from"../../../validation/useValidation.js";const i=({props:i,valueManager:u,valueType:c,wrapperVariant:d,validator:m})=>{const{onAccept:p,onChange:V,value:h,defaultValue:f,closeOnSelect:v="desktop"===d,timezone:C,referenceDate:S}=i,{current:g}=t.useRef(f),{current:F}=t.useRef(void 0!==h),[A,M]=t.useState(C);"production"!==process.env.NODE_ENV&&(t.useEffect(()=>{F!==(void 0!==h)&&console.error([`MUI X: A component is changing the ${F?"":"un"}controlled value of a picker to be ${F?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled valuefor the lifetime of the component.","The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join("\n"))},[h]),t.useEffect(()=>{F||g===f||console.error(["MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. To suppress this warning opt to use a controlled value."].join("\n"))},[JSON.stringify(g)]));const b=n(),E=l(),{isOpen:k,setIsOpen:w}=o(i),{timezone:O,value:P,handleValueChange:y}=r({timezone:C,value:h,defaultValue:g,referenceDate:S,onChange:V,valueManager:u}),[z,j]=t.useState(()=>{let e;return e=void 0!==P?P:void 0!==g?g:u.emptyValue,{draft:e,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:h,hasBeenModifiedSinceMount:!1}}),T=u.getTimezone(b,z.draft);A!==C&&(M(C),C&&T&&C!==T&&j(t=>e({},t,{draft:u.setTimezone(b,C,t.draft)})));const{getValidationErrorForNewValue:D}=s({props:i,validator:m,timezone:O,value:z.draft,onError:i.onError}),I=a(t=>{const a={action:t,dateState:z,hasChanged:e=>!u.areValuesEqual(b,t.value,e),isControlled:F,closeOnSelect:v},o=(e=>{const{action:t,hasChanged:a,dateState:o,isControlled:n}=e,l=!n&&!o.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!(!l||!["accept","today","clear"].includes(t.pickerAction))||a(o.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!l||a(o.lastPublishedValue)))})(a),n=(e=>{const{action:t,hasChanged:a,dateState:o,isControlled:n,closeOnSelect:l}=e,r=!n&&!o.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!(!r||!["accept","today","clear"].includes(t.pickerAction))||a(o.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&l?!!r||a(o.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&a(o.lastCommittedValue)})(a),l=(e=>{const{action:t,closeOnSelect:a}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&a:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(a);j(a=>e({},a,{draft:t.value,lastPublishedValue:o?t.value:a.lastPublishedValue,lastCommittedValue:n?t.value:a.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let r=null;const s=()=>{if(!r){const e="setValueFromField"===t.name?t.context.validationError:D(t.value);r={validationError:e},"setValueFromShortcut"===t.name&&(r.shortcut=t.shortcut)}return r};o&&y(t.value,s()),n&&p&&p(t.value,s()),l&&w(!1)});if(z.lastControlledValue!==h){const t=u.areValuesEqual(b,z.draft,P);j(a=>e({},a,{lastControlledValue:h},t?{}:{lastCommittedValue:P,lastPublishedValue:P,draft:P,hasBeenModifiedSinceMount:!0}))}const x=a(()=>{I({value:u.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),B=a(()=>{I({value:z.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),N=a(()=>{I({value:z.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),U=a(()=>{I({value:z.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),q=a(()=>{I({value:u.getTodayValue(b,O,c),name:"setValueFromAction",pickerAction:"today"})}),R=a(e=>{e.preventDefault(),w(!0)}),X=a(e=>{e?.preventDefault(),w(!1)}),$=a((e,t="partial")=>I({name:"setValueFromView",value:e,selectionState:t})),_=a((e,t,a)=>I({name:"setValueFromShortcut",value:e,changeImportance:t,shortcut:a})),J=a((e,t)=>I({name:"setValueFromField",value:e,context:t})),W={onClear:x,onAccept:B,onDismiss:N,onCancel:U,onSetToday:q,onOpen:R,onClose:X},G={value:z.draft,onChange:J},H=t.useMemo(()=>u.cleanValue(b,z.draft),[b,u,z.draft]),K={value:H,onChange:$,onClose:X,open:k},L=e({},W,{value:H,onChange:$,onSelectShortcut:_,isValid:e=>{const t=m({adapter:E,value:e,timezone:O,props:i});return!u.hasError(t)}}),Q=t.useMemo(()=>({onOpen:R,onClose:X,open:k}),[k,X,R]);return{open:k,fieldProps:G,viewProps:K,layoutProps:L,actions:W,contextValue:Q}};export{i as usePickerValue};
2
2
  //# sourceMappingURL=usePickerValue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePickerValue.js","sources":["../../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useOpenState } from \"../useOpenState.js\";\nimport { useLocalizationContext, useUtils } from \"../useUtils.js\";\nimport { useValidation } from \"../../../validation/index.js\";\nimport { useValueWithTimezone } from \"../useValueWithTimezone.js\";\n/**\n * Decide if the new value should be published\n * The published value will be passed to `onChange` if defined.\n */\nconst shouldPublishValue = params => {\n const {\n action,\n hasChanged,\n dateState,\n isControlled\n } = params;\n const isCurrentValueTheDefaultValue = !isControlled && !dateState.hasBeenModifiedSinceMount;\n\n // The field is responsible for only calling `onChange` when needed.\n if (action.name === 'setValueFromField') {\n return true;\n }\n if (action.name === 'setValueFromAction') {\n // If the component is not controlled, and the value has not been modified since the mount,\n // Then we want to publish the default value whenever the user pressed the \"Accept\", \"Today\" or \"Clear\" button.\n if (isCurrentValueTheDefaultValue && ['accept', 'today', 'clear'].includes(action.pickerAction)) {\n return true;\n }\n return hasChanged(dateState.lastPublishedValue);\n }\n if (action.name === 'setValueFromView' && action.selectionState !== 'shallow') {\n // On the first view,\n // If the value is not controlled, then clicking on any value (including the one equal to `defaultValue`) should call `onChange`\n if (isCurrentValueTheDefaultValue) {\n return true;\n }\n return hasChanged(dateState.lastPublishedValue);\n }\n if (action.name === 'setValueFromShortcut') {\n // On the first view,\n // If the value is not controlled, then clicking on any value (including the one equal to `defaultValue`) should call `onChange`\n if (isCurrentValueTheDefaultValue) {\n return true;\n }\n return hasChanged(dateState.lastPublishedValue);\n }\n return false;\n};\n\n/**\n * Decide if the new value should be committed.\n * The committed value will be passed to `onAccept` if defined.\n * It will also be used as a reset target when calling the `cancel` picker action (when clicking on the \"Cancel\" button).\n */\nconst shouldCommitValue = params => {\n const {\n action,\n hasChanged,\n dateState,\n isControlled,\n closeOnSelect\n } = params;\n const isCurrentValueTheDefaultValue = !isControlled && !dateState.hasBeenModifiedSinceMount;\n if (action.name === 'setValueFromAction') {\n // If the component is not controlled, and the value has not been modified since the mount,\n // Then we want to commit the default value whenever the user pressed the \"Accept\", \"Today\" or \"Clear\" button.\n if (isCurrentValueTheDefaultValue && ['accept', 'today', 'clear'].includes(action.pickerAction)) {\n return true;\n }\n return hasChanged(dateState.lastCommittedValue);\n }\n if (action.name === 'setValueFromView' && action.selectionState === 'finish' && closeOnSelect) {\n // On picker where the 1st view is also the last view,\n // If the value is not controlled, then clicking on any value (including the one equal to `defaultValue`) should call `onAccept`\n if (isCurrentValueTheDefaultValue) {\n return true;\n }\n return hasChanged(dateState.lastCommittedValue);\n }\n if (action.name === 'setValueFromShortcut') {\n return action.changeImportance === 'accept' && hasChanged(dateState.lastCommittedValue);\n }\n return false;\n};\n\n/**\n * Decide if the picker should be closed after the value is updated.\n */\nconst shouldClosePicker = params => {\n const {\n action,\n closeOnSelect\n } = params;\n if (action.name === 'setValueFromAction') {\n return true;\n }\n if (action.name === 'setValueFromView') {\n return action.selectionState === 'finish' && closeOnSelect;\n }\n if (action.name === 'setValueFromShortcut') {\n return action.changeImportance === 'accept';\n }\n return false;\n};\n\n/**\n * Manage the value lifecycle of all the pickers.\n */\nexport const usePickerValue = ({\n props,\n valueManager,\n valueType,\n wrapperVariant,\n validator\n}) => {\n const {\n onAccept,\n onChange,\n value: inValueWithoutRenderTimezone,\n defaultValue: inDefaultValue,\n closeOnSelect = wrapperVariant === 'desktop',\n timezone: timezoneProp,\n referenceDate\n } = props;\n const {\n current: defaultValue\n } = React.useRef(inDefaultValue);\n const {\n current: isControlled\n } = React.useRef(inValueWithoutRenderTimezone !== undefined);\n const [previousTimezoneProp, setPreviousTimezoneProp] = React.useState(timezoneProp);\n\n /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (inValueWithoutRenderTimezone !== undefined)) {\n console.error([`MUI X: A component is changing the ${isControlled ? '' : 'un'}controlled value of a picker to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled value` + 'for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [inValueWithoutRenderTimezone]);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== inDefaultValue) {\n console.error([`MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. ` + `To suppress this warning opt to use a controlled value.`].join('\\n'));\n }\n }, [JSON.stringify(defaultValue)]);\n }\n /* eslint-enable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\n\n const utils = useUtils();\n const adapter = useLocalizationContext();\n const {\n isOpen,\n setIsOpen\n } = useOpenState(props);\n const {\n timezone,\n value: inValueWithTimezoneToRender,\n handleValueChange\n } = useValueWithTimezone({\n timezone: timezoneProp,\n value: inValueWithoutRenderTimezone,\n defaultValue,\n referenceDate,\n onChange,\n valueManager\n });\n const [dateState, setDateState] = React.useState(() => {\n let initialValue;\n if (inValueWithTimezoneToRender !== undefined) {\n initialValue = inValueWithTimezoneToRender;\n } else if (defaultValue !== undefined) {\n initialValue = defaultValue;\n } else {\n initialValue = valueManager.emptyValue;\n }\n return {\n draft: initialValue,\n lastPublishedValue: initialValue,\n lastCommittedValue: initialValue,\n lastControlledValue: inValueWithoutRenderTimezone,\n hasBeenModifiedSinceMount: false\n };\n });\n const timezoneFromDraftValue = valueManager.getTimezone(utils, dateState.draft);\n if (previousTimezoneProp !== timezoneProp) {\n setPreviousTimezoneProp(timezoneProp);\n if (timezoneProp && timezoneFromDraftValue && timezoneProp !== timezoneFromDraftValue) {\n setDateState(prev => _extends({}, prev, {\n draft: valueManager.setTimezone(utils, timezoneProp, prev.draft)\n }));\n }\n }\n const {\n getValidationErrorForNewValue\n } = useValidation({\n props,\n validator,\n timezone,\n value: dateState.draft,\n onError: props.onError\n });\n const updateDate = useEventCallback(action => {\n const updaterParams = {\n action,\n dateState,\n hasChanged: comparison => !valueManager.areValuesEqual(utils, action.value, comparison),\n isControlled,\n closeOnSelect\n };\n const shouldPublish = shouldPublishValue(updaterParams);\n const shouldCommit = shouldCommitValue(updaterParams);\n const shouldClose = shouldClosePicker(updaterParams);\n setDateState(prev => _extends({}, prev, {\n draft: action.value,\n lastPublishedValue: shouldPublish ? action.value : prev.lastPublishedValue,\n lastCommittedValue: shouldCommit ? action.value : prev.lastCommittedValue,\n hasBeenModifiedSinceMount: true\n }));\n let cachedContext = null;\n const getContext = () => {\n if (!cachedContext) {\n const validationError = action.name === 'setValueFromField' ? action.context.validationError : getValidationErrorForNewValue(action.value);\n cachedContext = {\n validationError\n };\n if (action.name === 'setValueFromShortcut') {\n cachedContext.shortcut = action.shortcut;\n }\n }\n return cachedContext;\n };\n if (shouldPublish) {\n handleValueChange(action.value, getContext());\n }\n if (shouldCommit && onAccept) {\n onAccept(action.value, getContext());\n }\n if (shouldClose) {\n setIsOpen(false);\n }\n });\n if (dateState.lastControlledValue !== inValueWithoutRenderTimezone) {\n const isUpdateComingFromPicker = valueManager.areValuesEqual(utils, dateState.draft, inValueWithTimezoneToRender);\n setDateState(prev => _extends({}, prev, {\n lastControlledValue: inValueWithoutRenderTimezone\n }, isUpdateComingFromPicker ? {} : {\n lastCommittedValue: inValueWithTimezoneToRender,\n lastPublishedValue: inValueWithTimezoneToRender,\n draft: inValueWithTimezoneToRender,\n hasBeenModifiedSinceMount: true\n }));\n }\n const handleClear = useEventCallback(() => {\n updateDate({\n value: valueManager.emptyValue,\n name: 'setValueFromAction',\n pickerAction: 'clear'\n });\n });\n const handleAccept = useEventCallback(() => {\n updateDate({\n value: dateState.lastPublishedValue,\n name: 'setValueFromAction',\n pickerAction: 'accept'\n });\n });\n const handleDismiss = useEventCallback(() => {\n updateDate({\n value: dateState.lastPublishedValue,\n name: 'setValueFromAction',\n pickerAction: 'dismiss'\n });\n });\n const handleCancel = useEventCallback(() => {\n updateDate({\n value: dateState.lastCommittedValue,\n name: 'setValueFromAction',\n pickerAction: 'cancel'\n });\n });\n const handleSetToday = useEventCallback(() => {\n updateDate({\n value: valueManager.getTodayValue(utils, timezone, valueType),\n name: 'setValueFromAction',\n pickerAction: 'today'\n });\n });\n const handleOpen = useEventCallback(event => {\n event.preventDefault();\n setIsOpen(true);\n });\n const handleClose = useEventCallback(event => {\n event?.preventDefault();\n setIsOpen(false);\n });\n const handleChange = useEventCallback((newValue, selectionState = 'partial') => updateDate({\n name: 'setValueFromView',\n value: newValue,\n selectionState\n }));\n const handleSelectShortcut = useEventCallback((newValue, changeImportance, shortcut) => updateDate({\n name: 'setValueFromShortcut',\n value: newValue,\n changeImportance,\n shortcut\n }));\n const handleChangeFromField = useEventCallback((newValue, context) => updateDate({\n name: 'setValueFromField',\n value: newValue,\n context\n }));\n const actions = {\n onClear: handleClear,\n onAccept: handleAccept,\n onDismiss: handleDismiss,\n onCancel: handleCancel,\n onSetToday: handleSetToday,\n onOpen: handleOpen,\n onClose: handleClose\n };\n const fieldResponse = {\n value: dateState.draft,\n onChange: handleChangeFromField\n };\n const viewValue = React.useMemo(() => valueManager.cleanValue(utils, dateState.draft), [utils, valueManager, dateState.draft]);\n const viewResponse = {\n value: viewValue,\n onChange: handleChange,\n onClose: handleClose,\n open: isOpen\n };\n const isValid = testedValue => {\n const error = validator({\n adapter,\n value: testedValue,\n timezone,\n props\n });\n return !valueManager.hasError(error);\n };\n const layoutResponse = _extends({}, actions, {\n value: viewValue,\n onChange: handleChange,\n onSelectShortcut: handleSelectShortcut,\n isValid\n });\n const contextValue = React.useMemo(() => ({\n onOpen: handleOpen,\n onClose: handleClose,\n open: isOpen\n }), [isOpen, handleClose, handleOpen]);\n return {\n open: isOpen,\n fieldProps: fieldResponse,\n viewProps: viewResponse,\n layoutProps: layoutResponse,\n actions,\n contextValue\n };\n};"],"names":["usePickerValue","props","valueManager","valueType","wrapperVariant","validator","onAccept","onChange","value","inValueWithoutRenderTimezone","defaultValue","inDefaultValue","closeOnSelect","timezone","timezoneProp","referenceDate","current","React","useRef","isControlled","undefined","previousTimezoneProp","setPreviousTimezoneProp","useState","process","env","NODE_ENV","useEffect","console","error","join","JSON","stringify","utils","useUtils","adapter","useLocalizationContext","isOpen","setIsOpen","useOpenState","inValueWithTimezoneToRender","handleValueChange","useValueWithTimezone","dateState","setDateState","initialValue","emptyValue","draft","lastPublishedValue","lastCommittedValue","lastControlledValue","hasBeenModifiedSinceMount","timezoneFromDraftValue","getTimezone","prev","_extends","setTimezone","getValidationErrorForNewValue","useValidation","onError","updateDate","useEventCallback","action","updaterParams","hasChanged","comparison","areValuesEqual","shouldPublish","params","isCurrentValueTheDefaultValue","name","includes","pickerAction","selectionState","shouldPublishValue","shouldCommit","changeImportance","shouldCommitValue","shouldClose","shouldClosePicker","cachedContext","getContext","validationError","context","shortcut","isUpdateComingFromPicker","handleClear","handleAccept","handleDismiss","handleCancel","handleSetToday","getTodayValue","handleOpen","event","preventDefault","handleClose","handleChange","newValue","handleSelectShortcut","handleChangeFromField","actions","onClear","onDismiss","onCancel","onSetToday","onOpen","onClose","fieldResponse","viewValue","useMemo","cleanValue","viewResponse","open","layoutResponse","onSelectShortcut","isValid","testedValue","hasError","contextValue","fieldProps","viewProps","layoutProps"],"mappings":"qaAWA,MAmGaA,EAAiB,EAC5BC,QACAC,eACAC,YACAC,iBACAC,gBAEA,MAAMC,SACJA,EAAQC,SACRA,EACAC,MAAOC,EACPC,aAAcC,EAAcC,cAC5BA,EAAmC,YAAnBR,EAChBS,SAAUC,EAAYC,cACtBA,GACEd,GAEFe,QAASN,GACPO,EAAMC,OAAOP,IAEfK,QAASG,GACPF,EAAMC,YAAwCE,IAAjCX,IACVY,EAAsBC,GAA2BL,EAAMM,SAAST,GAG1C,eAAzBU,QAAQC,IAAIC,WACdT,EAAMU,UAAU,KACVR,UAAmDC,IAAjCX,IACpBmB,QAAQC,MAAM,CAAC,sCAAsCV,EAAe,GAAK,0CAA0CA,EAAe,KAAO,gBAAiB,8EAA+E,4FAAkG,6HAA8H,wDAAwDW,KAAK,QAEvgB,CAACrB,IACJQ,EAAMU,UAAU,KACTR,GAAgBT,I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Wd,EACXe,SAAUd,EACVe,WAAYd,EACZe,OAAQb,EACRc,QAASX,GAELY,EAAgB,CACpBnG,MAAOmC,EAAUI,MACjBxC,SAAU4F,GAENS,EAAY3F,EAAM4F,QAAQ,IAAM3G,EAAa4G,WAAW7E,EAAOU,EAAUI,OAAQ,CAACd,EAAO/B,EAAcyC,EAAUI,QACjHgE,EAAe,CACnBvG,MAAOoG,EACPrG,SAAUyF,EACVU,QAASX,EACTiB,KAAM3E,GAWF4E,EAAiB1D,EAAS,CAAE,EAAE6C,EAAS,CAC3C5F,MAAOoG,EACPrG,SAAUyF,EACVkB,iBAAkBhB,EAClBiB,QAbcC,IACd,MAAMvF,EAAQxB,EAAU,CACtB8B,UACA3B,MAAO4G,EACPvG,WACAZ,UAEF,OAAQC,EAAamH,SAASxF,MAQ1ByF,EAAerG,EAAM4F,QAAQ,KAAO,CACxCJ,OAAQb,EACRc,QAASX,EACTiB,KAAM3E,IACJ,CAACA,EAAQ0D,EAAaH,IAC1B,MAAO,CACLoB,KAAM3E,EACNkF,WAAYZ,EACZa,UAAWT,EACXU,YAAaR,EACbb,UACAkB"}
1
+ {"version":3,"file":"usePickerValue.js","sources":["../../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useOpenState } from \"../useOpenState.js\";\nimport { useLocalizationContext, useUtils } from \"../useUtils.js\";\nimport { useValidation } from \"../../../validation/index.js\";\nimport { useValueWithTimezone } from \"../useValueWithTimezone.js\";\n/**\n * Decide if the new value should be published\n * The published value will be passed to `onChange` if defined.\n */\nconst shouldPublishValue = params => {\n const {\n action,\n hasChanged,\n dateState,\n isControlled\n } = params;\n const isCurrentValueTheDefaultValue = !isControlled && !dateState.hasBeenModifiedSinceMount;\n\n // The field is responsible for only calling `onChange` when needed.\n if (action.name === 'setValueFromField') {\n return true;\n }\n if (action.name === 'setValueFromAction') {\n // If the component is not controlled, and the value has not been modified since the mount,\n // Then we want to publish the default value whenever the user pressed the \"Accept\", \"Today\" or \"Clear\" button.\n if (isCurrentValueTheDefaultValue && ['accept', 'today', 'clear'].includes(action.pickerAction)) {\n return true;\n }\n return hasChanged(dateState.lastPublishedValue);\n }\n if (action.name === 'setValueFromView' && action.selectionState !== 'shallow') {\n // On the first view,\n // If the value is not controlled, then clicking on any value (including the one equal to `defaultValue`) should call `onChange`\n if (isCurrentValueTheDefaultValue) {\n return true;\n }\n return hasChanged(dateState.lastPublishedValue);\n }\n if (action.name === 'setValueFromShortcut') {\n // On the first view,\n // If the value is not controlled, then clicking on any value (including the one equal to `defaultValue`) should call `onChange`\n if (isCurrentValueTheDefaultValue) {\n return true;\n }\n return hasChanged(dateState.lastPublishedValue);\n }\n return false;\n};\n\n/**\n * Decide if the new value should be committed.\n * The committed value will be passed to `onAccept` if defined.\n * It will also be used as a reset target when calling the `cancel` picker action (when clicking on the \"Cancel\" button).\n */\nconst shouldCommitValue = params => {\n const {\n action,\n hasChanged,\n dateState,\n isControlled,\n closeOnSelect\n } = params;\n const isCurrentValueTheDefaultValue = !isControlled && !dateState.hasBeenModifiedSinceMount;\n if (action.name === 'setValueFromAction') {\n // If the component is not controlled, and the value has not been modified since the mount,\n // Then we want to commit the default value whenever the user pressed the \"Accept\", \"Today\" or \"Clear\" button.\n if (isCurrentValueTheDefaultValue && ['accept', 'today', 'clear'].includes(action.pickerAction)) {\n return true;\n }\n return hasChanged(dateState.lastCommittedValue);\n }\n if (action.name === 'setValueFromView' && action.selectionState === 'finish' && closeOnSelect) {\n // On picker where the 1st view is also the last view,\n // If the value is not controlled, then clicking on any value (including the one equal to `defaultValue`) should call `onAccept`\n if (isCurrentValueTheDefaultValue) {\n return true;\n }\n return hasChanged(dateState.lastCommittedValue);\n }\n if (action.name === 'setValueFromShortcut') {\n return action.changeImportance === 'accept' && hasChanged(dateState.lastCommittedValue);\n }\n return false;\n};\n\n/**\n * Decide if the picker should be closed after the value is updated.\n */\nconst shouldClosePicker = params => {\n const {\n action,\n closeOnSelect\n } = params;\n if (action.name === 'setValueFromAction') {\n return true;\n }\n if (action.name === 'setValueFromView') {\n return action.selectionState === 'finish' && closeOnSelect;\n }\n if (action.name === 'setValueFromShortcut') {\n return action.changeImportance === 'accept';\n }\n return false;\n};\n\n/**\n * Manage the value lifecycle of all the pickers.\n */\nexport const usePickerValue = ({\n props,\n valueManager,\n valueType,\n wrapperVariant,\n validator\n}) => {\n const {\n onAccept,\n onChange,\n value: inValueWithoutRenderTimezone,\n defaultValue: inDefaultValue,\n closeOnSelect = wrapperVariant === 'desktop',\n timezone: timezoneProp,\n referenceDate\n } = props;\n const {\n current: defaultValue\n } = React.useRef(inDefaultValue);\n const {\n current: isControlled\n } = React.useRef(inValueWithoutRenderTimezone !== undefined);\n const [previousTimezoneProp, setPreviousTimezoneProp] = React.useState(timezoneProp);\n\n /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (inValueWithoutRenderTimezone !== undefined)) {\n console.error([`MUI X: A component is changing the ${isControlled ? '' : 'un'}controlled value of a picker to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled value` + 'for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [inValueWithoutRenderTimezone]);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== inDefaultValue) {\n console.error([`MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. ` + `To suppress this warning opt to use a controlled value.`].join('\\n'));\n }\n }, [JSON.stringify(defaultValue)]);\n }\n /* eslint-enable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\n\n const utils = useUtils();\n const adapter = useLocalizationContext();\n const {\n isOpen,\n setIsOpen\n } = useOpenState(props);\n const {\n timezone,\n value: inValueWithTimezoneToRender,\n handleValueChange\n } = useValueWithTimezone({\n timezone: timezoneProp,\n value: inValueWithoutRenderTimezone,\n defaultValue,\n referenceDate,\n onChange,\n valueManager\n });\n const [dateState, setDateState] = React.useState(() => {\n let initialValue;\n if (inValueWithTimezoneToRender !== undefined) {\n initialValue = inValueWithTimezoneToRender;\n } else if (defaultValue !== undefined) {\n initialValue = defaultValue;\n } else {\n initialValue = valueManager.emptyValue;\n }\n return {\n draft: initialValue,\n lastPublishedValue: initialValue,\n lastCommittedValue: initialValue,\n lastControlledValue: inValueWithoutRenderTimezone,\n hasBeenModifiedSinceMount: false\n };\n });\n const timezoneFromDraftValue = valueManager.getTimezone(utils, dateState.draft);\n if (previousTimezoneProp !== timezoneProp) {\n setPreviousTimezoneProp(timezoneProp);\n if (timezoneProp && timezoneFromDraftValue && timezoneProp !== timezoneFromDraftValue) {\n setDateState(prev => _extends({}, prev, {\n draft: valueManager.setTimezone(utils, timezoneProp, prev.draft)\n }));\n }\n }\n const {\n getValidationErrorForNewValue\n } = useValidation({\n props,\n validator,\n timezone,\n value: dateState.draft,\n onError: props.onError\n });\n const updateDate = useEventCallback(action => {\n const updaterParams = {\n action,\n dateState,\n hasChanged: comparison => !valueManager.areValuesEqual(utils, action.value, comparison),\n isControlled,\n closeOnSelect\n };\n const shouldPublish = shouldPublishValue(updaterParams);\n const shouldCommit = shouldCommitValue(updaterParams);\n const shouldClose = shouldClosePicker(updaterParams);\n setDateState(prev => _extends({}, prev, {\n draft: action.value,\n lastPublishedValue: shouldPublish ? action.value : prev.lastPublishedValue,\n lastCommittedValue: shouldCommit ? action.value : prev.lastCommittedValue,\n hasBeenModifiedSinceMount: true\n }));\n let cachedContext = null;\n const getContext = () => {\n if (!cachedContext) {\n const validationError = action.name === 'setValueFromField' ? action.context.validationError : getValidationErrorForNewValue(action.value);\n cachedContext = {\n validationError\n };\n if (action.name === 'setValueFromShortcut') {\n cachedContext.shortcut = action.shortcut;\n }\n }\n return cachedContext;\n };\n if (shouldPublish) {\n handleValueChange(action.value, getContext());\n }\n if (shouldCommit && onAccept) {\n onAccept(action.value, getContext());\n }\n if (shouldClose) {\n setIsOpen(false);\n }\n });\n if (dateState.lastControlledValue !== inValueWithoutRenderTimezone) {\n const isUpdateComingFromPicker = valueManager.areValuesEqual(utils, dateState.draft, inValueWithTimezoneToRender);\n setDateState(prev => _extends({}, prev, {\n lastControlledValue: inValueWithoutRenderTimezone\n }, isUpdateComingFromPicker ? {} : {\n lastCommittedValue: inValueWithTimezoneToRender,\n lastPublishedValue: inValueWithTimezoneToRender,\n draft: inValueWithTimezoneToRender,\n hasBeenModifiedSinceMount: true\n }));\n }\n const handleClear = useEventCallback(() => {\n updateDate({\n value: valueManager.emptyValue,\n name: 'setValueFromAction',\n pickerAction: 'clear'\n });\n });\n const handleAccept = useEventCallback(() => {\n updateDate({\n value: dateState.lastPublishedValue,\n name: 'setValueFromAction',\n pickerAction: 'accept'\n });\n });\n const handleDismiss = useEventCallback(() => {\n updateDate({\n value: dateState.lastPublishedValue,\n name: 'setValueFromAction',\n pickerAction: 'dismiss'\n });\n });\n const handleCancel = useEventCallback(() => {\n updateDate({\n value: dateState.lastCommittedValue,\n name: 'setValueFromAction',\n pickerAction: 'cancel'\n });\n });\n const handleSetToday = useEventCallback(() => {\n updateDate({\n value: valueManager.getTodayValue(utils, timezone, valueType),\n name: 'setValueFromAction',\n pickerAction: 'today'\n });\n });\n const handleOpen = useEventCallback(event => {\n event.preventDefault();\n setIsOpen(true);\n });\n const handleClose = useEventCallback(event => {\n event?.preventDefault();\n setIsOpen(false);\n });\n const handleChange = useEventCallback((newValue, selectionState = 'partial') => updateDate({\n name: 'setValueFromView',\n value: newValue,\n selectionState\n }));\n const handleSelectShortcut = useEventCallback((newValue, changeImportance, shortcut) => updateDate({\n name: 'setValueFromShortcut',\n value: newValue,\n changeImportance,\n shortcut\n }));\n const handleChangeFromField = useEventCallback((newValue, context) => updateDate({\n name: 'setValueFromField',\n value: newValue,\n context\n }));\n const actions = {\n onClear: handleClear,\n onAccept: handleAccept,\n onDismiss: handleDismiss,\n onCancel: handleCancel,\n onSetToday: handleSetToday,\n onOpen: handleOpen,\n onClose: handleClose\n };\n const fieldResponse = {\n value: dateState.draft,\n onChange: handleChangeFromField\n };\n const viewValue = React.useMemo(() => valueManager.cleanValue(utils, dateState.draft), [utils, valueManager, dateState.draft]);\n const viewResponse = {\n value: viewValue,\n onChange: handleChange,\n onClose: handleClose,\n open: isOpen\n };\n const isValid = testedValue => {\n const error = validator({\n adapter,\n value: testedValue,\n timezone,\n props\n });\n return !valueManager.hasError(error);\n };\n const layoutResponse = _extends({}, actions, {\n value: viewValue,\n onChange: handleChange,\n onSelectShortcut: handleSelectShortcut,\n isValid\n });\n const contextValue = React.useMemo(() => ({\n onOpen: handleOpen,\n onClose: handleClose,\n open: isOpen\n }), [isOpen, handleClose, handleOpen]);\n return {\n open: isOpen,\n fieldProps: fieldResponse,\n viewProps: viewResponse,\n layoutProps: layoutResponse,\n actions,\n contextValue\n };\n};"],"names":["usePickerValue","props","valueManager","valueType","wrapperVariant","validator","onAccept","onChange","value","inValueWithoutRenderTimezone","defaultValue","inDefaultValue","closeOnSelect","timezone","timezoneProp","referenceDate","current","React","useRef","isControlled","undefined","previousTimezoneProp","setPreviousTimezoneProp","useState","process","env","NODE_ENV","useEffect","console","error","join","JSON","stringify","utils","useUtils","adapter","useLocalizationContext","isOpen","setIsOpen","useOpenState","inValueWithTimezoneToRender","handleValueChange","useValueWithTimezone","dateState","setDateState","initialValue","emptyValue","draft","lastPublishedValue","lastCommittedValue","lastControlledValue","hasBeenModifiedSinceMount","timezoneFromDraftValue","getTimezone","prev","_extends","setTimezone","getValidationErrorForNewValue","useValidation","onError","updateDate","useEventCallback","action","updaterParams","hasChanged","comparison","areValuesEqual","shouldPublish","params","isCurrentValueTheDefaultValue","name","includes","pickerAction","selectionState","shouldPublishValue","shouldCommit","changeImportance","shouldCommitValue","shouldClose","shouldClosePicker","cachedContext","getContext","validationError","context","shortcut","isUpdateComingFromPicker","handleClear","handleAccept","handleDismiss","handleCancel","handleSetToday","getTodayValue","handleOpen","event","preventDefault","handleClose","handleChange","newValue","handleSelectShortcut","handleChangeFromField","actions","onClear","onDismiss","onCancel","onSetToday","onOpen","onClose","fieldResponse","viewValue","useMemo","cleanValue","viewResponse","open","layoutResponse","onSelectShortcut","isValid","testedValue","hasError","contextValue","fieldProps","viewProps","layoutProps"],"mappings":"obAWA,MAmGaA,EAAiB,EAC5BC,QACAC,eACAC,YACAC,iBACAC,gBAEA,MAAMC,SACJA,EAAQC,SACRA,EACAC,MAAOC,EACPC,aAAcC,EAAcC,cAC5BA,EAAmC,YAAnBR,EAChBS,SAAUC,EAAYC,cACtBA,GACEd,GAEFe,QAASN,GACPO,EAAMC,OAAOP,IAEfK,QAASG,GACPF,EAAMC,YAAwCE,IAAjCX,IACVY,EAAsBC,GAA2BL,EAAMM,SAAST,GAG1C,eAAzBU,QAAQC,IAAIC,WACdT,EAAMU,UAAU,KACVR,UAAmDC,IAAjCX,IACpBmB,QAAQC,MAAM,CAAC,sCAAsCV,EAAe,GAAK,0CAA0CA,EAAe,KAAO,gBAAiB,8EAA+E,4FAAkG,6HAA8H,wDAAwDW,KAAK,QAEvgB,CAACrB,IACJQ,EAAMU,UAAU,KACTR,GAAgBT,IAAiBC,GACpCiB,QAAQC,MAAM,CAAC,8JAAmKC,KAAK,QAExL,CAACC,KAAKC,UAAUtB,MAIrB,MAAMuB,EAAQC,IACRC,EAAUC,KACVC,OACJA,EAAMC,UACNA,GACEC,EAAatC,IACXY,SACJA,EACAL,MAAOgC,EAA2BC,kBAClCA,GACEC,EAAqB,CACvB7B,SAAUC,EACVN,MAAOC,EACPC,eACAK,gBACAR,WACAL,kBAEKyC,EAAWC,GAAgB3B,EAAMM,SAAS,KAC/C,IAAIsB,EAQJ,OANEA,OADkCzB,IAAhCoB,EACaA,OACWpB,IAAjBV,EACMA,EAEA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BhB,EAClBiB,QAbcC,IACd,MAAMvF,EAAQxB,EAAU,CACtB8B,UACA3B,MAAO4G,EACPvG,WACAZ,UAEF,OAAQC,EAAamH,SAASxF,MAQ1ByF,EAAerG,EAAM4F,QAAQ,KAAO,CACxCJ,OAAQb,EACRc,QAASX,EACTiB,KAAM3E,IACJ,CAACA,EAAQ0D,EAAaH,IAC1B,MAAO,CACLoB,KAAM3E,EACNkF,WAAYZ,EACZa,UAAWT,EACXU,YAAaR,EACbb,UACAkB"}
@@ -1,2 +1,2 @@
1
- import e from"../../../../../@babel/runtime/helpers/esm/extends.js";import o from"../../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import*as s from"react";import i from"../../../../utils/esm/useEnhancedEffect/useEnhancedEffect.js";import t from"../../../../utils/esm/useEventCallback/useEventCallback.js";import{useViews as n}from"../useViews.js";import{isTimeView as r}from"../../utils/time-utils.js";const u=["className","sx"],l=({props:l,propsFromPickerValue:w,additionalViewProps:a,autoFocusView:c,rendererInterceptor:m,fieldRef:d})=>{const{onChange:p,open:f,onClose:V}=w,{view:h,views:v,openTo:C,onViewChange:I,viewRenderers:U,timezone:g}=l,b=o(l,u),{view:j,setView:F,defaultView:k,focusedView:E,setFocusedView:M,setValueAndGoToNextView:x}=n({view:h,views:v,openTo:C,onChange:p,onViewChange:I,autoFocus:c}),{hasUIView:L,viewModeLookup:P}=s.useMemo(()=>v.reduce((e,o)=>{let s;return s=null!=U[o]?"UI":"field",e.viewModeLookup[o]=s,"UI"===s&&(e.hasUIView=!0),e},{hasUIView:!1,viewModeLookup:{}}),[U,v]),S=s.useMemo(()=>v.reduce((e,o)=>null!=U[o]&&r(o)?e+1:e,0),[U,v]),T=P[j],R=t(()=>"UI"===T),[z,N]=s.useState("UI"===T?j:null);z!==j&&"UI"===P[j]&&N(j),i(()=>{"field"===T&&f&&(V(),setTimeout(()=>{d?.current?.setSelectedSections(j),d?.current?.focusField(j)}))},[j]),i(()=>{if(!f)return;let e=j;"field"===T&&null!=z&&(e=z),e!==k&&"UI"===P[e]&&"UI"===P[k]&&(e=k),e!==j&&F(e),M(e,!0)},[f]);return{hasUIView:L,shouldRestoreFocus:R,layoutProps:{views:v,view:z,onViewChange:F},renderCurrentView:()=>{if(null==z)return null;const o=U[z];if(null==o)return null;const s=e({},b,a,w,{views:v,timezone:g,onChange:x,view:z,onViewChange:F,focusedView:E,onFocusedViewChange:M,showViewSwitcher:S>1,timeViewsCount:S});return m?m(U,z,s):o(s)}}};export{l as usePickerViews};
1
+ import e from"../../../../../@babel/runtime/helpers/esm/extends.js";import o from"../../../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js";import*as s from"react";import i from"../../../node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js";import t from"../../../node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js";import{useViews as n}from"../useViews.js";import{isTimeView as r}from"../../utils/time-utils.js";const u=["className","sx"],l=({props:l,propsFromPickerValue:w,additionalViewProps:a,autoFocusView:m,rendererInterceptor:c,fieldRef:d})=>{const{onChange:p,open:f,onClose:V}=w,{view:h,views:v,openTo:C,onViewChange:I,viewRenderers:U,timezone:g}=l,b=o(l,u),{view:j,setView:F,defaultView:k,focusedView:E,setFocusedView:M,setValueAndGoToNextView:x}=n({view:h,views:v,openTo:C,onChange:p,onViewChange:I,autoFocus:m}),{hasUIView:L,viewModeLookup:P}=s.useMemo(()=>v.reduce((e,o)=>{let s;return s=null!=U[o]?"UI":"field",e.viewModeLookup[o]=s,"UI"===s&&(e.hasUIView=!0),e},{hasUIView:!1,viewModeLookup:{}}),[U,v]),S=s.useMemo(()=>v.reduce((e,o)=>null!=U[o]&&r(o)?e+1:e,0),[U,v]),T=P[j],R=t(()=>"UI"===T),[z,N]=s.useState("UI"===T?j:null);z!==j&&"UI"===P[j]&&N(j),i(()=>{"field"===T&&f&&(V(),setTimeout(()=>{d?.current?.setSelectedSections(j),d?.current?.focusField(j)}))},[j]),i(()=>{if(!f)return;let e=j;"field"===T&&null!=z&&(e=z),e!==k&&"UI"===P[e]&&"UI"===P[k]&&(e=k),e!==j&&F(e),M(e,!0)},[f]);return{hasUIView:L,shouldRestoreFocus:R,layoutProps:{views:v,view:z,onViewChange:F},renderCurrentView:()=>{if(null==z)return null;const o=U[z];if(null==o)return null;const s=e({},b,a,w,{views:v,timezone:g,onChange:x,view:z,onViewChange:F,focusedView:E,onFocusedViewChange:M,showViewSwitcher:S>1,timeViewsCount:S});return c?c(U,z,s):o(s)}}};export{l as usePickerViews};
2
2
  //# sourceMappingURL=usePickerViews.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"usePickerViews.js","sources":["../../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerViews.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"sx\"];\nimport * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useViews } from \"../useViews.js\";\nimport { isTimeView } from \"../../utils/time-utils.js\";\n\n/**\n * Props used to handle the views that are common to all pickers.\n */\n\n/**\n * Props used to handle the views of the pickers.\n */\n\n/**\n * Props used to handle the value of the pickers.\n */\n\n/**\n * Manage the views of all the pickers:\n * - Handles the view switch\n * - Handles the switch between UI views and field views\n * - Handles the focus management when switching views\n */\nexport const usePickerViews = ({\n props,\n propsFromPickerValue,\n additionalViewProps,\n autoFocusView,\n rendererInterceptor,\n fieldRef\n}) => {\n const {\n onChange,\n open,\n onClose\n } = propsFromPickerValue;\n const {\n view: inView,\n views,\n openTo,\n onViewChange,\n viewRenderers,\n timezone\n } = props;\n const propsToForwardToView = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n view,\n setView,\n defaultView,\n focusedView,\n setFocusedView,\n setValueAndGoToNextView\n } = useViews({\n view: inView,\n views,\n openTo,\n onChange,\n onViewChange,\n autoFocus: autoFocusView\n });\n const {\n hasUIView,\n viewModeLookup\n } = React.useMemo(() => views.reduce((acc, viewForReduce) => {\n let viewMode;\n if (viewRenderers[viewForReduce] != null) {\n viewMode = 'UI';\n } else {\n viewMode = 'field';\n }\n acc.viewModeLookup[viewForReduce] = viewMode;\n if (viewMode === 'UI') {\n acc.hasUIView = true;\n }\n return acc;\n }, {\n hasUIView: false,\n viewModeLookup: {}\n }), [viewRenderers, views]);\n const timeViewsCount = React.useMemo(() => views.reduce((acc, viewForReduce) => {\n if (viewRenderers[viewForReduce] != null && isTimeView(viewForReduce)) {\n return acc + 1;\n }\n return acc;\n }, 0), [viewRenderers, views]);\n const currentViewMode = viewModeLookup[view];\n const shouldRestoreFocus = useEventCallback(() => currentViewMode === 'UI');\n const [popperView, setPopperView] = React.useState(currentViewMode === 'UI' ? view : null);\n if (popperView !== view && viewModeLookup[view] === 'UI') {\n setPopperView(view);\n }\n useEnhancedEffect(() => {\n // Handle case of `DateTimePicker` without time renderers\n if (currentViewMode === 'field' && open) {\n onClose();\n setTimeout(() => {\n fieldRef?.current?.setSelectedSections(view);\n // focusing the input before the range selection is done\n // calling it outside of timeout results in an inconsistent behavior between Safari And Chrome\n fieldRef?.current?.focusField(view);\n });\n }\n }, [view]); // eslint-disable-line react-hooks/exhaustive-deps\n\n useEnhancedEffect(() => {\n if (!open) {\n return;\n }\n let newView = view;\n\n // If the current view is a field view, go to the last popper view\n if (currentViewMode === 'field' && popperView != null) {\n newView = popperView;\n }\n\n // If the current view is not the default view and both are UI views\n if (newView !== defaultView && viewModeLookup[newView] === 'UI' && viewModeLookup[defaultView] === 'UI') {\n newView = defaultView;\n }\n if (newView !== view) {\n setView(newView);\n }\n setFocusedView(newView, true);\n }, [open]); // eslint-disable-line react-hooks/exhaustive-deps\n\n const layoutProps = {\n views,\n view: popperView,\n onViewChange: setView\n };\n return {\n hasUIView,\n shouldRestoreFocus,\n layoutProps,\n renderCurrentView: () => {\n if (popperView == null) {\n return null;\n }\n const renderer = viewRenderers[popperView];\n if (renderer == null) {\n return null;\n }\n const rendererProps = _extends({}, propsToForwardToView, additionalViewProps, propsFromPickerValue, {\n views,\n timezone,\n onChange: setValueAndGoToNextView,\n view: popperView,\n onViewChange: setView,\n focusedView,\n onFocusedViewChange: setFocusedView,\n showViewSwitcher: timeViewsCount > 1,\n timeViewsCount\n });\n if (rendererInterceptor) {\n return rendererInterceptor(viewRenderers, popperView, rendererProps);\n }\n return renderer(rendererProps);\n }\n };\n};"],"names":["_excluded","usePickerViews","props","propsFromPickerValue","additionalViewProps","autoFocusView","rendererInterceptor","fieldRef","onChange","open","onClose","view","inView","views","openTo","onViewChange","viewRenderers","timezone","propsToForwardToView","_objectWithoutPropertiesLoose","setView","defaultView","focusedView","setFocusedView","setValueAndGoToNextView","useViews","autoFocus","hasUIView","viewModeLookup","React","useMemo","reduce","acc","viewForReduce","viewMode","timeViewsCount","isTimeView","currentViewMode","shouldRestoreFocus","useEventCallback","popperView","setPopperView","useState","useEnhancedEffect","setTimeout","current","setSelectedSections","focusField","newView","layoutProps","renderCurrentView","renderer","rendererProps","_extends","onFocusedViewChange","showViewSwitcher"],"mappings":"4aAEA,MAAMA,EAAY,CAAC,YAAa,MAyBnBC,EAAiB,EAC5BC,QACAC,uBACAC,sBACAC,gBACAC,sBACAC,eAEA,MAAMC,SACJA,EAAQC,KACRA,EAAIC,QACJA,GACEP,GAEFQ,KAAMC,EAAMC,MACZA,EAAKC,OACLA,EAAMC,aACNA,EAAYC,cACZA,EAAaC,SACbA,GACEf,EACEgB,EAAuBC,EAA8BjB,EAAOF,IAC5DW,KACJA,EAAIS,QACJA,EAAOC,YACPA,EAAWC,YACXA,EAAWC,eACXA,EAAcC,wBACdA,GACEC,EAAS,CACXd,KAAMC,EACNC,QACAC,SACAN,WACAO,eACAW,UAAWrB,KAEPsB,UACJA,EAASC,eACTA,GACEC,EAAMC,QAAQ,IAAMjB,EAAMkB,OAAO,CAACC,EAAKC,KACzC,IAA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EACrBgC,iBAAkBpB,EAAiB,EACnCA,mBAEF,OAAI7B,EACKA,EAAoBU,EAAewB,EAAYY,GAEjDD,EAASC"}
1
+ {"version":3,"file":"usePickerViews.js","sources":["../../../../../../../../node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerViews.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"sx\"];\nimport * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useViews } from \"../useViews.js\";\nimport { isTimeView } from \"../../utils/time-utils.js\";\n\n/**\n * Props used to handle the views that are common to all pickers.\n */\n\n/**\n * Props used to handle the views of the pickers.\n */\n\n/**\n * Props used to handle the value of the pickers.\n */\n\n/**\n * Manage the views of all the pickers:\n * - Handles the view switch\n * - Handles the switch between UI views and field views\n * - Handles the focus management when switching views\n */\nexport const usePickerViews = ({\n props,\n propsFromPickerValue,\n additionalViewProps,\n autoFocusView,\n rendererInterceptor,\n fieldRef\n}) => {\n const {\n onChange,\n open,\n onClose\n } = propsFromPickerValue;\n const {\n view: inView,\n views,\n openTo,\n onViewChange,\n viewRenderers,\n timezone\n } = props;\n const propsToForwardToView = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n view,\n setView,\n defaultView,\n focusedView,\n setFocusedView,\n setValueAndGoToNextView\n } = useViews({\n view: inView,\n views,\n openTo,\n onChange,\n onViewChange,\n autoFocus: autoFocusView\n });\n const {\n hasUIView,\n viewModeLookup\n } = React.useMemo(() => views.reduce((acc, viewForReduce) => {\n let viewMode;\n if (viewRenderers[viewForReduce] != null) {\n viewMode = 'UI';\n } else {\n viewMode = 'field';\n }\n acc.viewModeLookup[viewForReduce] = viewMode;\n if (viewMode === 'UI') {\n acc.hasUIView = true;\n }\n return acc;\n }, {\n hasUIView: false,\n viewModeLookup: {}\n }), [viewRenderers, views]);\n const timeViewsCount = React.useMemo(() => views.reduce((acc, viewForReduce) => {\n if (viewRenderers[viewForReduce] != null && isTimeView(viewForReduce)) {\n return acc + 1;\n }\n return acc;\n }, 0), [viewRenderers, views]);\n const currentViewMode = viewModeLookup[view];\n const shouldRestoreFocus = useEventCallback(() => currentViewMode === 'UI');\n const [popperView, setPopperView] = React.useState(currentViewMode === 'UI' ? view : null);\n if (popperView !== view && viewModeLookup[view] === 'UI') {\n setPopperView(view);\n }\n useEnhancedEffect(() => {\n // Handle case of `DateTimePicker` without time renderers\n if (currentViewMode === 'field' && open) {\n onClose();\n setTimeout(() => {\n fieldRef?.current?.setSelectedSections(view);\n // focusing the input before the range selection is done\n // calling it outside of timeout results in an inconsistent behavior between Safari And Chrome\n fieldRef?.current?.focusField(view);\n });\n }\n }, [view]); // eslint-disable-line react-hooks/exhaustive-deps\n\n useEnhancedEffect(() => {\n if (!open) {\n return;\n }\n let newView = view;\n\n // If the current view is a field view, go to the last popper view\n if (currentViewMode === 'field' && popperView != null) {\n newView = popperView;\n }\n\n // If the current view is not the default view and both are UI views\n if (newView !== defaultView && viewModeLookup[newView] === 'UI' && viewModeLookup[defaultView] === 'UI') {\n newView = defaultView;\n }\n if (newView !== view) {\n setView(newView);\n }\n setFocusedView(newView, true);\n }, [open]); // eslint-disable-line react-hooks/exhaustive-deps\n\n const layoutProps = {\n views,\n view: popperView,\n onViewChange: setView\n };\n return {\n hasUIView,\n shouldRestoreFocus,\n layoutProps,\n renderCurrentView: () => {\n if (popperView == null) {\n return null;\n }\n const renderer = viewRenderers[popperView];\n if (renderer == null) {\n return null;\n }\n const rendererProps = _extends({}, propsToForwardToView, additionalViewProps, propsFromPickerValue, {\n views,\n timezone,\n onChange: setValueAndGoToNextView,\n view: popperView,\n onViewChange: setView,\n focusedView,\n onFocusedViewChange: setFocusedView,\n showViewSwitcher: timeViewsCount > 1,\n timeViewsCount\n });\n if (rendererInterceptor) {\n return rendererInterceptor(viewRenderers, popperView, rendererProps);\n }\n return renderer(rendererProps);\n }\n };\n};"],"names":["_excluded","usePickerViews","props","propsFromPickerValue","additionalViewProps","autoFocusView","rendererInterceptor","fieldRef","onChange","open","onClose","view","inView","views","openTo","onViewChange","viewRenderers","timezone","propsToForwardToView","_objectWithoutPropertiesLoose","setView","defaultView","focusedView","setFocusedView","setValueAndGoToNextView","useViews","autoFocus","hasUIView","viewModeLookup","React","useMemo","reduce","acc","viewForReduce","viewMode","timeViewsCount","isTimeView","currentViewMode","shouldRestoreFocus","useEventCallback","popperView","setPopperView","useState","useEnhancedEffect","setTimeout","current","setSelectedSections","focusField","newView","layoutProps","renderCurrentView","renderer","rendererProps","_extends","onFocusedViewChange","showViewSwitcher"],"mappings":"0cAEA,MAAMA,EAAY,CAAC,YAAa,MAyBnBC,EAAiB,EAC5BC,QACAC,uBACAC,sBACAC,gBACAC,sBACAC,eAEA,MAAMC,SACJA,EAAQC,KACRA,EAAIC,QACJA,GACEP,GAEFQ,KAAMC,EAAMC,MACZA,EAAKC,OACLA,EAAMC,aACNA,EAAYC,cACZA,EAAaC,SACbA,GACEf,EACEgB,EAAuBC,EAA8BjB,EAAOF,IAC5DW,KACJA,EAAIS,QACJA,EAAOC,YACPA,EAAWC,YACXA,EAAWC,eACXA,EAAcC,wBACdA,GACEC,EAAS,CACXd,KAAMC,EACNC,QACAC,SACAN,WACAO,eACAW,UAAWrB,KAEPsB,UACJA,EAASC,eACTA,GACEC,EAAMC,QAAQ,IAAMjB,EAAMkB,OAAO,CAACC,EAAKC,KACzC,IAAIC,EAUJ,OAREA,EADkC,MAAhClB,EAAciB,GACL,KAEA,QAEbD,EAAIJ,eAAeK,GAAiBC,EACnB,OAAbA,IACFF,EAAIL,WAAY,GAEXK,GACN,CACDL,WAAW,EACXC,eAAgB,CAAE,IAChB,CAACZ,EAAeH,IACdsB,EAAiBN,EAAMC,QAAQ,IAAMjB,EAAMkB,OAAO,CAACC,EAAKC,IACxB,MAAhCjB,EAAciB,IAA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