@hybridcore/ui 1.5.90 → 1.6.1

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 (325) hide show
  1. package/dist/{AccordionDetails-DhriPVPP.js → AccordionSummary-CMg08YSA.js} +91 -95
  2. package/dist/{Add-CMz4N2zT.js → Add-DuVVJeQU.js} +35 -36
  3. package/dist/AnimatedTheme-jnasw6rT.js +11305 -0
  4. package/dist/AxisRenderer-DTyLLA6c.js +3579 -0
  5. package/dist/AxisRendererY-C_ItLPNV.js +445 -0
  6. package/dist/Bullet-DVczI2TD.js +41 -0
  7. package/dist/Button-CcsPEIDh.js +35 -0
  8. package/dist/{ButtonBase-DsX-jMQJ.js → ButtonBase-sObABYY2.js} +62 -58
  9. package/dist/CategoryAxis-CwnfaGc8.js +458 -0
  10. package/dist/Circle-Cy5s-pVc.js +27 -0
  11. package/dist/ColorSet-C7vpNXhM.js +2957 -0
  12. package/dist/{ColumnSeries-BTcqshjB.js → ColumnSeries-CjgdJ2QL.js} +129 -126
  13. package/dist/DataProcessor-CHDO51q4.js +83 -0
  14. package/dist/DateAxis-YX3QNIB-.js +569 -0
  15. package/dist/{Delete-86TO0fMo.js → Delete-fBLhTHbF.js} +1 -1
  16. package/dist/{DialogContent-CqTojymQ.js → DialogContent-CGJ7alb8.js} +10 -13
  17. package/dist/FormControl-BCurCxRj.js +1294 -0
  18. package/dist/FormControlLabel-BkRfrhNy.js +601 -0
  19. package/dist/Hierarchy-Bihj0S61.js +925 -0
  20. package/dist/{IconButton-DJ-31-Fd.js → IconButton-_opV1iNK.js} +18 -19
  21. package/dist/IconPlus-yPkff_Vj.js +19 -0
  22. package/dist/{InputAdornment-B7qEA4kN.js → InputAdornment-C7PEvvYr.js} +17 -19
  23. package/dist/InputLabel-rEwwnD4_.js +354 -0
  24. package/dist/Legend-Dp_MKfS4.js +178 -0
  25. package/dist/LineSeries-Uiv5o56b.js +472 -0
  26. package/dist/{MenuItem-C6qlUyV3.js → MenuItem-DrE50M_p.js} +92 -69
  27. package/dist/Modal-DlB6GH-f.js +1659 -0
  28. package/dist/Paper-q9kKjAKx.js +527 -0
  29. package/dist/PieSeries-B2fW3z0s.js +693 -0
  30. package/dist/RoundedRectangle-CWLi2PXn.js +34 -0
  31. package/dist/Scrollbar-D86MJyr2.js +171 -0
  32. package/dist/Slice-B19rbYDZ.js +261 -0
  33. package/dist/{Source-BESIjd9X.js → Source-BSZST_GH.js} +2472 -2445
  34. package/dist/{Text-Cl1H4b0h.js → Text-ChJRuaD8.js} +398 -397
  35. package/dist/TextField-DSDIEEKu.js +3161 -0
  36. package/dist/Tick-2bcLyHpF.js +162 -0
  37. package/dist/{Typography-D1t7XuLN.js → Typography-B-Z5Y0Xq.js} +48 -50
  38. package/dist/Vector-BmuhQO4p.js +3606 -0
  39. package/dist/Vector-DfTqQEln.js +1735 -0
  40. package/dist/WKT-2wsDT-nq.js +2310 -0
  41. package/dist/XYCursor-C8WktvKM.js +362 -0
  42. package/dist/ZoomableContainer-DYyqwaMb.js +220 -0
  43. package/dist/_commonjsHelpers-BVfed4GL.js +28 -0
  44. package/dist/capitalize-quqpGCFu.js +9 -0
  45. package/dist/components/access/helpers.js +1 -1
  46. package/dist/components/access/index.js +8 -15
  47. package/dist/components/access/logic.js +25 -0
  48. package/dist/components/card/index.js +158 -498
  49. package/dist/components/card/logic.js +24 -0
  50. package/dist/components/card/styled.js +226 -51
  51. package/dist/components/card-alternate/index.js +111 -139
  52. package/dist/components/card-alternate/logic.js +17 -0
  53. package/dist/components/card-alternate/styled.js +113 -19
  54. package/dist/components/charts/_common/utils.js +20 -0
  55. package/dist/components/charts/candlestick/logic.js +170 -140
  56. package/dist/components/charts/chart-wrapper/helpers.js +27 -0
  57. package/dist/components/charts/chart-wrapper/index.js +44 -0
  58. package/dist/components/charts/chart-wrapper/logic.js +47 -0
  59. package/dist/components/charts/chart-wrapper/styled.js +44 -0
  60. package/dist/components/charts/column-line-mix/index.js +10 -0
  61. package/dist/components/charts/column-line-mix/logic.js +162 -0
  62. package/dist/components/charts/column-line-mix/styled.js +12 -0
  63. package/dist/components/charts/drill-down-treemap/index.js +10 -0
  64. package/dist/components/charts/drill-down-treemap/logic.js +391 -0
  65. package/dist/components/charts/drill-down-treemap/styled.js +12 -0
  66. package/dist/components/charts/drill-down-voronoi-treemap/index.js +10 -0
  67. package/dist/components/charts/drill-down-voronoi-treemap/logic.js +1527 -0
  68. package/dist/components/charts/drill-down-voronoi-treemap/styled.js +12 -0
  69. package/dist/components/charts/heatmap/index.js +10 -0
  70. package/dist/components/charts/heatmap/logic.js +361 -0
  71. package/dist/components/charts/heatmap/styled.js +12 -0
  72. package/dist/components/charts/highlighting-line-data/logic.js +89 -256
  73. package/dist/components/charts/line/index.js +10 -0
  74. package/dist/components/charts/line/logic.js +148 -0
  75. package/dist/components/charts/line/styled.js +12 -0
  76. package/dist/components/charts/logaritmic-scale/index.js +10 -0
  77. package/dist/components/charts/logaritmic-scale/logic.js +119 -0
  78. package/dist/components/charts/logaritmic-scale/styled.js +12 -0
  79. package/dist/components/charts/multiple-value-axes/index.js +10 -0
  80. package/dist/components/charts/multiple-value-axes/logic.js +191 -0
  81. package/dist/components/charts/multiple-value-axes/styled.js +12 -0
  82. package/dist/components/charts/nested-pie/index.js +10 -0
  83. package/dist/components/charts/nested-pie/logic.js +110 -0
  84. package/dist/components/charts/nested-pie/styled.js +12 -0
  85. package/dist/components/charts/packed-circles/index.js +10 -0
  86. package/dist/components/charts/packed-circles/logic.js +423 -0
  87. package/dist/components/charts/packed-circles/styled.js +12 -0
  88. package/dist/components/charts/pie-chart/index.js +10 -0
  89. package/dist/components/charts/pie-chart/logic.js +70 -0
  90. package/dist/components/charts/pie-chart/styled.js +12 -0
  91. package/dist/components/charts/stacked-area-radar/index.js +10 -0
  92. package/dist/components/charts/stacked-area-radar/logic.js +868 -0
  93. package/dist/components/charts/stacked-area-radar/styled.js +12 -0
  94. package/dist/components/charts/stacked-column-chart/index.js +10 -0
  95. package/dist/components/charts/stacked-column-chart/logic.js +148 -0
  96. package/dist/components/charts/stacked-column-chart/styled.js +12 -0
  97. package/dist/components/charts/xy-chart/index.js +10 -0
  98. package/dist/components/charts/xy-chart/logic.js +170 -0
  99. package/dist/components/charts/xy-chart/styled.js +12 -0
  100. package/dist/components/collapsible-card/index.js +58 -32
  101. package/dist/components/collapsible-card/logic.js +20 -0
  102. package/dist/components/collapsible-card/styled.js +52 -0
  103. package/dist/components/confirm/dialog.js +3 -3
  104. package/dist/components/confirm/index.js +1 -1
  105. package/dist/components/container/index.js +28 -269
  106. package/dist/components/container/logic.js +12 -0
  107. package/dist/components/container/styled.js +29 -0
  108. package/dist/components/context-menu/index.js +25 -557
  109. package/dist/components/context-menu/logic.js +14 -0
  110. package/dist/components/context-menu/styled.js +40 -0
  111. package/dist/components/data-map/components/controls/index.js +12 -0
  112. package/dist/components/data-map/components/controls/styled.js +34 -0
  113. package/dist/components/data-map/index.js +51 -0
  114. package/dist/components/data-map/logic.js +108 -0
  115. package/dist/components/data-map/styled.js +32 -0
  116. package/dist/components/data-security-selectors/security-level/index.js +36 -91
  117. package/dist/components/data-security-selectors/security-level/logic.js +73 -0
  118. package/dist/components/data-security-selectors/security-level/styled.js +47 -0
  119. package/dist/components/date-picker-with-custom-range/index.js +9 -0
  120. package/dist/components/date-picker-with-custom-range/logic.js +66 -0
  121. package/dist/components/date-picker-with-custom-range/styled.js +43 -0
  122. package/dist/components/divider/index.js +18 -0
  123. package/dist/components/divider/logic.js +13 -0
  124. package/dist/components/divider/styled.js +14 -0
  125. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  126. package/dist/components/geometry-picker/edit/index.js +1 -1
  127. package/dist/components/geometry-picker/geometry/index.js +1 -1
  128. package/dist/components/geometry-picker/index.js +8 -8
  129. package/dist/components/geometry-picker/kml/index.js +1 -1
  130. package/dist/components/geometry-picker/map/index.js +1 -1
  131. package/dist/components/geometry-picker/map/logic.js +65 -62
  132. package/dist/components/geometry-picker/map/style.js +1 -1
  133. package/dist/components/heat-map/components/controls/index.js +12 -0
  134. package/dist/components/heat-map/components/controls/styled.js +34 -0
  135. package/dist/components/heat-map/components/legend/index.js +26 -0
  136. package/dist/components/heat-map/components/legend/styled.js +14 -0
  137. package/dist/components/heat-map/index.js +37 -0
  138. package/dist/components/heat-map/logic.js +1945 -0
  139. package/dist/components/heat-map/styled.js +32 -0
  140. package/dist/components/icon-button/index.js +22 -15
  141. package/dist/components/icon-button/logic.js +15 -0
  142. package/dist/components/icon-button/styled.js +22 -10
  143. package/dist/components/instance-form/components/composite-list/index.js +1 -1
  144. package/dist/components/instance-form/components/composite-matrix/components/json-editor/index.js +8 -7
  145. package/dist/components/instance-form/components/variable/index.js +7 -9
  146. package/dist/components/instance-form/components/variables/index.js +1 -1
  147. package/dist/components/instance-form/index.js +1 -1
  148. package/dist/components/instance-hierarchy-table/index.js +32 -37
  149. package/dist/components/instance-hierarchy-table/logic.js +16 -0
  150. package/dist/components/instance-hierarchy-table/styled.js +53 -12
  151. package/dist/components/instance-table/index.js +30 -135
  152. package/dist/components/instance-table/logic.js +122 -0
  153. package/dist/components/instance-table/styled.js +53 -11
  154. package/dist/components/instance-variable-list/index.js +34 -29
  155. package/dist/components/instance-variable-list/styled.js +21 -21
  156. package/dist/components/instance-variable-list/variable.js +44 -74
  157. package/dist/components/key-protection/index.js +45 -2
  158. package/dist/components/key-protection/logic.js +40 -0
  159. package/dist/components/key-protection/styled.js +45 -0
  160. package/dist/components/key-protection/utils.js +1 -1
  161. package/dist/components/linear-indicator/index.js +10 -67
  162. package/dist/components/linear-indicator/logic.js +47 -0
  163. package/dist/components/linear-indicator/styled.js +39 -40
  164. package/dist/components/loading/index.js +15 -9
  165. package/dist/components/loading/logic.js +15 -0
  166. package/dist/components/loading/styled.js +26 -19
  167. package/dist/components/map/helpers/kml.js +1 -1
  168. package/dist/components/map/helpers/mapbox.js +14 -14
  169. package/dist/components/map/helpers/ol.js +23 -19
  170. package/dist/components/map/helpers/wkt.js +26 -1314
  171. package/dist/components/map/index.js +1 -1
  172. package/dist/components/map/logic.js +113 -101
  173. package/dist/components/map/styled.js +39 -31
  174. package/dist/components/metric-card/MetricChart.js +50 -498
  175. package/dist/components/metric-card/index.js +94 -115
  176. package/dist/components/metric-card/logic.js +70 -131
  177. package/dist/components/object-profile-card/components/avatar/index.js +44 -0
  178. package/dist/components/object-profile-card/components/avatar/logic.js +19 -0
  179. package/dist/components/object-profile-card/components/avatar/styled.js +41 -0
  180. package/dist/components/object-profile-card/index.js +90 -0
  181. package/dist/components/object-profile-card/logic.js +33 -0
  182. package/dist/components/object-profile-card/styled.js +48 -0
  183. package/dist/components/paginated-list/index.js +93 -89
  184. package/dist/components/paginated-list/logic.js +51 -40
  185. package/dist/components/paginated-list/styled.js +25 -21
  186. package/dist/components/phone-input/index.js +18 -22
  187. package/dist/components/phone-input/logic.js +14 -0
  188. package/dist/components/phone-input/styled.js +12 -4
  189. package/dist/components/property-mapping/index.js +2 -2
  190. package/dist/components/prr-map/components/controls/index.js +12 -0
  191. package/dist/components/prr-map/components/controls/styled.js +34 -0
  192. package/dist/components/prr-map/components/legend/index.js +36 -0
  193. package/dist/components/prr-map/components/legend/styled.js +21 -0
  194. package/dist/components/prr-map/index.js +38 -0
  195. package/dist/components/prr-map/logic.js +104 -0
  196. package/dist/components/prr-map/styled.js +32 -0
  197. package/dist/components/range-selector/components/composite-list-range/index.js +42 -50
  198. package/dist/components/range-selector/components/date-range/index.js +148 -7
  199. package/dist/components/range-selector/components/geometry-range/index.js +11 -17
  200. package/dist/components/range-selector/components/number-range/index.js +48 -53
  201. package/dist/components/range-selector/components/string-range/index.js +15 -17
  202. package/dist/components/range-selector/index.js +63 -57
  203. package/dist/components/range-selector/logic.js +12 -0
  204. package/dist/components/range-selector/styled.js +4222 -0
  205. package/dist/components/raster-grid-map/components/controls/index.js +12 -0
  206. package/dist/components/raster-grid-map/components/controls/styled.js +34 -0
  207. package/dist/components/raster-grid-map/components/legend/index.js +14 -0
  208. package/dist/components/raster-grid-map/components/legend/styled.js +21 -0
  209. package/dist/components/raster-grid-map/helpers.js +190 -0
  210. package/dist/components/raster-grid-map/index.js +38 -0
  211. package/dist/components/raster-grid-map/logic.js +172 -0
  212. package/dist/components/raster-grid-map/styled.js +32 -0
  213. package/dist/components/search-input/index.js +62 -140
  214. package/dist/components/search-input/logic.js +43 -0
  215. package/dist/components/search-input/styled.js +33 -0
  216. package/dist/components/simple-pivot-table/index.js +66 -0
  217. package/dist/components/simple-pivot-table/logic.js +51 -0
  218. package/dist/components/simple-pivot-table/styled.js +45 -0
  219. package/dist/components/static-text/index.js +18 -0
  220. package/dist/components/static-text/logic.js +13 -0
  221. package/dist/components/static-text/styled.js +45 -0
  222. package/dist/components/tabs/index.js +56 -2160
  223. package/dist/components/tabs/logic.js +36 -0
  224. package/dist/components/tabs/styled.js +94 -16
  225. package/dist/components/tabs/tab-panel.js +11 -10
  226. package/dist/components/template-filters/components/filter/index.js +13 -18
  227. package/dist/components/template-filters/components/tab-panel/index.js +8 -16
  228. package/dist/components/template-filters/index.js +21 -29
  229. package/dist/components/template-filters/logic.js +18 -0
  230. package/dist/components/template-filters/styled.js +44 -1
  231. package/dist/components/template-form/components/property-list/index.js +8 -8
  232. package/dist/components/template-form/components/property-list/property-list-columns.js +3 -3
  233. package/dist/components/template-form/components/property-list/property-list-form.js +8 -10
  234. package/dist/components/template-form/components/recognition-property-list/index.js +6 -6
  235. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +2 -2
  236. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +8 -9
  237. package/dist/components/template-form/index.js +32 -33
  238. package/dist/components/template-property-filters/index.js +45 -95
  239. package/dist/components/template-property-filters/logic.js +27 -0
  240. package/dist/components/template-property-filters/property.js +105 -165
  241. package/dist/components/template-property-filters/styled.js +121 -20
  242. package/dist/components/timeline/index.js +61 -0
  243. package/dist/components/timeline/logic.js +40 -0
  244. package/dist/components/timeline/styled.js +48 -0
  245. package/dist/components/tree-select/index.js +52 -67
  246. package/dist/components/tree-select/logic.js +59 -0
  247. package/dist/components/tree-select/styled.js +45 -62
  248. package/dist/components/treeview-filter/index.js +43 -65
  249. package/dist/components/treeview-filter/item/index.js +43 -42
  250. package/dist/components/treeview-filter/item-label/index.js +17 -37
  251. package/dist/components/treeview-filter/logic.js +28 -0
  252. package/dist/components/treeview-filter/styled.js +86 -0
  253. package/dist/components/uploader/index.js +532 -567
  254. package/dist/components/uploader/logic.js +74 -0
  255. package/dist/components/uploader/styled.js +93 -46
  256. package/dist/constant-BiOGvlZc.js +21 -0
  257. package/dist/createReactComponent-C7L-DMHj.js +60 -0
  258. package/dist/{createSvgIcon-DLPYMuH1.js → createSvgIcon-BM3-TsGy.js} +33 -36
  259. package/dist/{createSvgIcon-OuwzpcaC.js → createSvgIcon-DX-SqL8M.js} +24 -26
  260. package/dist/{dialog-BE4D6swf.js → dialog-cf4HUXXl.js} +27 -28
  261. package/dist/{helpers-DaCoWmi2.js → helpers-B4UL9NMD.js} +3 -3
  262. package/dist/index-BMS1Otro.js +183 -0
  263. package/dist/index-C8C3YXle.js +1932 -0
  264. package/dist/index-C__OZmYy.js +663 -0
  265. package/dist/{index-CGNxsLVm.js → index-DPKUmQnz.js} +11 -13
  266. package/dist/{index-JrtqxUdI.js → index-kCJ_Zvl8.js} +5 -5
  267. package/dist/index.es-CHNMhaMi.js +2067 -0
  268. package/dist/index.esm-BLLrbTzY.js +318 -0
  269. package/dist/isMuiElement-BkJ72LB3.js +26 -0
  270. package/dist/main.d.ts +1869 -565
  271. package/dist/main.js +141 -443
  272. package/dist/{has-DNclCIDV.js → math-Bvt2Ubuz.js} +220 -222
  273. package/dist/ol-yOE-NV0X.js +7465 -0
  274. package/dist/path-CNVruS--.js +84 -0
  275. package/dist/{property-list-form-C5hcK2y2.js → property-list-form-DL_dEoNn.js} +57 -62
  276. package/dist/{createTheme-CNnKNxwL.js → styled-Bsjp3kFh.js} +275 -278
  277. package/dist/useId-B4-oF9Mq.js +34 -0
  278. package/dist/useMobilePicker-B-M3dnTn.js +7993 -0
  279. package/dist/{utils-Bq0ye5vf.js → utils-Cxu-fHjQ.js} +7 -7
  280. package/package.json +11 -2
  281. package/dist/AxisRendererY-kADUad00.js +0 -18370
  282. package/dist/Box-B1AVyJ_s.js +0 -71
  283. package/dist/Button-eqWvpDuh.js +0 -356
  284. package/dist/CardContent-DsYqqPeJ.js +0 -74
  285. package/dist/Checkbox-CrU2hpWB.js +0 -420
  286. package/dist/DateAxis-CMum47iz.js +0 -924
  287. package/dist/FormControlLabel-BrdX4R71.js +0 -195
  288. package/dist/Input-CoIrGZAh.js +0 -326
  289. package/dist/InputLabel-CBuAYyuT.js +0 -1367
  290. package/dist/LineSeries-CfcpoYla.js +0 -549
  291. package/dist/List-DOD5kSk3.js +0 -121
  292. package/dist/ListItem-r8PbsvCz.js +0 -429
  293. package/dist/Modal-CkcFEpHa.js +0 -1284
  294. package/dist/OutlinedInput-B-iZoc9l.js +0 -450
  295. package/dist/Paper-CjqLScHA.js +0 -163
  296. package/dist/Select-t3ewnSdf.js +0 -2180
  297. package/dist/Tabs-Cn42Z5QI.js +0 -789
  298. package/dist/TextField-BQ8a50fA.js +0 -459
  299. package/dist/components/collapsible-card/style.js +0 -49
  300. package/dist/components/key-protection/menu.js +0 -85
  301. package/dist/components/profile-card/index.js +0 -80
  302. package/dist/components/profile-card/logic.js +0 -33
  303. package/dist/components/profile-card/styled.js +0 -43
  304. package/dist/components/tabs/appleTabs.style.js +0 -55
  305. package/dist/components/treeview-filter/item/styled.js +0 -39
  306. package/dist/createStyled-BGx1I94c.js +0 -352
  307. package/dist/createTheme-CyC5HawC.js +0 -879
  308. package/dist/debounce-46wSf_lW.js +0 -15
  309. package/dist/exactProp-cjT0t_Pt.js +0 -36
  310. package/dist/extendSxProp-FEpqY5_S.js +0 -30
  311. package/dist/index-DMSHuq6l.js +0 -688
  312. package/dist/index-SpeaLUQD.js +0 -10963
  313. package/dist/isHostComponent-kiaBvYVo.js +0 -6
  314. package/dist/isMuiElement-CxT3_ACP.js +0 -13
  315. package/dist/listItemTextClasses-CNjn41Of.js +0 -16
  316. package/dist/ol-lGwSyEIV.js +0 -15050
  317. package/dist/ownerDocument-CUrv0DIK.js +0 -6
  318. package/dist/ownerWindow-niciwP7I.js +0 -7
  319. package/dist/styled-B8ugzvji.js +0 -12
  320. package/dist/useFormControl-CatNKXAi.js +0 -10
  321. package/dist/useId-BHG98T5I.js +0 -26
  322. package/dist/useTheme-C15Eq8KG.js +0 -18
  323. package/dist/useTheme-D-uii9iX.js +0 -10
  324. package/dist/useThemeProps-DRP1dikX.js +0 -95
  325. package/dist/utils-CsOZUsQj.js +0 -365
@@ -0,0 +1,1932 @@
1
+ import { jsx as M, jsxs as E } from "react/jsx-runtime";
2
+ import { ToggleButton as me, Box as ye, Typography as be } from "@mui/material";
3
+ import { LocalizationProvider as Ie } from "@mui/x-date-pickers";
4
+ import { useDatePickerWithCustomRangeLogic as We } from "./components/date-picker-with-custom-range/logic.js";
5
+ import { DatePickerWithCustomRangeRoot as He, DatePickerWithCustomRangeToggle as Ve, PresetGrid as Be, PresetButton as Ee, CustomRow as ze } from "./components/date-picker-with-custom-range/styled.js";
6
+ import { a as y, _ as H } from "./objectWithoutPropertiesLoose-DJteAcBH.js";
7
+ import V from "dayjs";
8
+ import { c as G, a as K } from "./_commonjsHelpers-BVfed4GL.js";
9
+ import { b as Ne, P as qe, u as z, a as ue, i as De, c as Me, d as ge, e as Ue, f as Ze, g as J, h as Qe, s as de, j as Je, v as ce, k as Ge, r as B, C as Ke, l as Te, m as Pe, n as Xe, o as et, p as tt, D as ot } from "./useMobilePicker-B-M3dnTn.js";
10
+ import * as I from "react";
11
+ import { P as e } from "./index-C__OZmYy.js";
12
+ import { g as nt, b as rt, s as Oe, u as X, a as at } from "./styled-Bsjp3kFh.js";
13
+ import { T as st } from "./Typography-B-Z5Y0Xq.js";
14
+ import { T as it } from "./TextField-DSDIEEKu.js";
15
+ var xe = { exports: {} };
16
+ (function(h, d) {
17
+ (function(l, u) {
18
+ h.exports = u();
19
+ })(G, function() {
20
+ var l = "week", u = "year";
21
+ return function(t, o, n) {
22
+ var a = o.prototype;
23
+ a.week = function(r) {
24
+ if (r === void 0 && (r = null), r !== null) return this.add(7 * (r - this.week()), "day");
25
+ var c = this.$locale().yearStart || 1;
26
+ if (this.month() === 11 && this.date() > 25) {
27
+ var s = n(this).startOf(u).add(1, u).date(c), b = n(this).endOf(l);
28
+ if (s.isBefore(b)) return 1;
29
+ }
30
+ var D = n(this).startOf(u).date(c).startOf(l).subtract(1, "millisecond"), O = this.diff(D, l, !0);
31
+ return O < 0 ? n(this).startOf("week").week() : Math.ceil(O);
32
+ }, a.weeks = function(r) {
33
+ return r === void 0 && (r = null), this.week(r);
34
+ };
35
+ };
36
+ });
37
+ })(xe);
38
+ var lt = xe.exports;
39
+ const ut = /* @__PURE__ */ K(lt);
40
+ var ve = { exports: {} };
41
+ (function(h, d) {
42
+ (function(l, u) {
43
+ h.exports = u();
44
+ })(G, function() {
45
+ var l = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, u = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, t = /\d/, o = /\d\d/, n = /\d\d?/, a = /\d*[^-_:/,()\s\d]+/, r = {}, c = function(i) {
46
+ return (i = +i) + (i > 68 ? 1900 : 2e3);
47
+ }, s = function(i) {
48
+ return function(f) {
49
+ this[i] = +f;
50
+ };
51
+ }, b = [/[+-]\d\d:?(\d\d)?|Z/, function(i) {
52
+ (this.zone || (this.zone = {})).offset = function(f) {
53
+ if (!f || f === "Z") return 0;
54
+ var p = f.match(/([+-]|\d\d)/g), m = 60 * p[1] + (+p[2] || 0);
55
+ return m === 0 ? 0 : p[0] === "+" ? -m : m;
56
+ }(i);
57
+ }], D = function(i) {
58
+ var f = r[i];
59
+ return f && (f.indexOf ? f : f.s.concat(f.f));
60
+ }, O = function(i, f) {
61
+ var p, m = r.meridiem;
62
+ if (m) {
63
+ for (var g = 1; g <= 24; g += 1) if (i.indexOf(m(g, 0, f)) > -1) {
64
+ p = g > 12;
65
+ break;
66
+ }
67
+ } else p = i === (f ? "pm" : "PM");
68
+ return p;
69
+ }, Y = { A: [a, function(i) {
70
+ this.afternoon = O(i, !1);
71
+ }], a: [a, function(i) {
72
+ this.afternoon = O(i, !0);
73
+ }], Q: [t, function(i) {
74
+ this.month = 3 * (i - 1) + 1;
75
+ }], S: [t, function(i) {
76
+ this.milliseconds = 100 * +i;
77
+ }], SS: [o, function(i) {
78
+ this.milliseconds = 10 * +i;
79
+ }], SSS: [/\d{3}/, function(i) {
80
+ this.milliseconds = +i;
81
+ }], s: [n, s("seconds")], ss: [n, s("seconds")], m: [n, s("minutes")], mm: [n, s("minutes")], H: [n, s("hours")], h: [n, s("hours")], HH: [n, s("hours")], hh: [n, s("hours")], D: [n, s("day")], DD: [o, s("day")], Do: [a, function(i) {
82
+ var f = r.ordinal, p = i.match(/\d+/);
83
+ if (this.day = p[0], f) for (var m = 1; m <= 31; m += 1) f(m).replace(/\[|\]/g, "") === i && (this.day = m);
84
+ }], w: [n, s("week")], ww: [o, s("week")], M: [n, s("month")], MM: [o, s("month")], MMM: [a, function(i) {
85
+ var f = D("months"), p = (D("monthsShort") || f.map(function(m) {
86
+ return m.slice(0, 3);
87
+ })).indexOf(i) + 1;
88
+ if (p < 1) throw new Error();
89
+ this.month = p % 12 || p;
90
+ }], MMMM: [a, function(i) {
91
+ var f = D("months").indexOf(i) + 1;
92
+ if (f < 1) throw new Error();
93
+ this.month = f % 12 || f;
94
+ }], Y: [/[+-]?\d+/, s("year")], YY: [o, function(i) {
95
+ this.year = c(i);
96
+ }], YYYY: [/\d{4}/, s("year")], Z: b, ZZ: b };
97
+ function v(i) {
98
+ var f, p;
99
+ f = i, p = r && r.formats;
100
+ for (var m = (i = f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(A, S, k) {
101
+ var w = k && k.toUpperCase();
102
+ return S || p[k] || l[k] || p[w].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(C, R, _) {
103
+ return R || _.slice(1);
104
+ });
105
+ })).match(u), g = m.length, T = 0; T < g; T += 1) {
106
+ var j = m[T], L = Y[j], P = L && L[0], F = L && L[1];
107
+ m[T] = F ? { regex: P, parser: F } : j.replace(/^\[|\]$/g, "");
108
+ }
109
+ return function(A) {
110
+ for (var S = {}, k = 0, w = 0; k < g; k += 1) {
111
+ var C = m[k];
112
+ if (typeof C == "string") w += C.length;
113
+ else {
114
+ var R = C.regex, _ = C.parser, N = A.slice(w), W = R.exec(N)[0];
115
+ _.call(S, W), A = A.replace(W, "");
116
+ }
117
+ }
118
+ return function($) {
119
+ var q = $.afternoon;
120
+ if (q !== void 0) {
121
+ var x = $.hours;
122
+ q ? x < 12 && ($.hours += 12) : x === 12 && ($.hours = 0), delete $.afternoon;
123
+ }
124
+ }(S), S;
125
+ };
126
+ }
127
+ return function(i, f, p) {
128
+ p.p.customParseFormat = !0, i && i.parseTwoDigitYear && (c = i.parseTwoDigitYear);
129
+ var m = f.prototype, g = m.parse;
130
+ m.parse = function(T) {
131
+ var j = T.date, L = T.utc, P = T.args;
132
+ this.$u = L;
133
+ var F = P[1];
134
+ if (typeof F == "string") {
135
+ var A = P[2] === !0, S = P[3] === !0, k = A || S, w = P[2];
136
+ S && (w = P[2]), r = this.$locale(), !A && w && (r = p.Ls[w]), this.$d = function(N, W, $, q) {
137
+ try {
138
+ if (["x", "X"].indexOf(W) > -1) return new Date((W === "X" ? 1e3 : 1) * N);
139
+ var x = v(W)(N), ee = x.year, U = x.month, Re = x.day, je = x.hours, Ae = x.minutes, _e = x.seconds, $e = x.milliseconds, fe = x.zone, pe = x.week, te = /* @__PURE__ */ new Date(), oe = Re || (ee || U ? 1 : te.getDate()), ne = ee || te.getFullYear(), Z = 0;
140
+ ee && !U || (Z = U > 0 ? U - 1 : te.getMonth());
141
+ var Q, re = je || 0, ae = Ae || 0, se = _e || 0, ie = $e || 0;
142
+ return fe ? new Date(Date.UTC(ne, Z, oe, re, ae, se, ie + 60 * fe.offset * 1e3)) : $ ? new Date(Date.UTC(ne, Z, oe, re, ae, se, ie)) : (Q = new Date(ne, Z, oe, re, ae, se, ie), pe && (Q = q(Q).week(pe).toDate()), Q);
143
+ } catch {
144
+ return /* @__PURE__ */ new Date("");
145
+ }
146
+ }(j, F, L, p), this.init(), w && w !== !0 && (this.$L = this.locale(w).$L), k && j != this.format(F) && (this.$d = /* @__PURE__ */ new Date("")), r = {};
147
+ } else if (F instanceof Array) for (var C = F.length, R = 1; R <= C; R += 1) {
148
+ P[1] = F[R - 1];
149
+ var _ = p.apply(this, P);
150
+ if (_.isValid()) {
151
+ this.$d = _.$d, this.$L = _.$L, this.init();
152
+ break;
153
+ }
154
+ R === C && (this.$d = /* @__PURE__ */ new Date(""));
155
+ }
156
+ else g.call(this, T);
157
+ };
158
+ };
159
+ });
160
+ })(ve);
161
+ var dt = ve.exports;
162
+ const ct = /* @__PURE__ */ K(dt);
163
+ var we = { exports: {} };
164
+ (function(h, d) {
165
+ (function(l, u) {
166
+ h.exports = u();
167
+ })(G, function() {
168
+ var l = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
169
+ return function(u, t, o) {
170
+ var n = t.prototype, a = n.format;
171
+ o.en.formats = l, n.format = function(r) {
172
+ r === void 0 && (r = "YYYY-MM-DDTHH:mm:ssZ");
173
+ var c = this.$locale().formats, s = function(b, D) {
174
+ return b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(O, Y, v) {
175
+ var i = v && v.toUpperCase();
176
+ return Y || D[v] || l[v] || D[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(f, p, m) {
177
+ return p || m.slice(1);
178
+ });
179
+ });
180
+ }(r, c === void 0 ? {} : c);
181
+ return a.call(this, s);
182
+ };
183
+ };
184
+ });
185
+ })(we);
186
+ var ht = we.exports;
187
+ const ft = /* @__PURE__ */ K(ht);
188
+ var ke = { exports: {} };
189
+ (function(h, d) {
190
+ (function(l, u) {
191
+ h.exports = u();
192
+ })(G, function() {
193
+ return function(l, u, t) {
194
+ u.prototype.isBetween = function(o, n, a, r) {
195
+ var c = t(o), s = t(n), b = (r = r || "()")[0] === "(", D = r[1] === ")";
196
+ return (b ? this.isAfter(c, a) : !this.isBefore(c, a)) && (D ? this.isBefore(s, a) : !this.isAfter(s, a)) || (b ? this.isBefore(c, a) : !this.isAfter(c, a)) && (D ? this.isAfter(s, a) : !this.isBefore(s, a));
197
+ };
198
+ };
199
+ });
200
+ })(ke);
201
+ var pt = ke.exports;
202
+ const mt = /* @__PURE__ */ K(pt);
203
+ V.extend(ct);
204
+ V.extend(ft);
205
+ V.extend(mt);
206
+ const yt = Ne(["Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale", "Or you forget to import the locale with `require('dayjs/locale/{localeUsed}')`", "fallback on English locale"]), bt = {
207
+ // Year
208
+ YY: "year",
209
+ YYYY: {
210
+ sectionType: "year",
211
+ contentType: "digit",
212
+ maxLength: 4
213
+ },
214
+ // Month
215
+ M: {
216
+ sectionType: "month",
217
+ contentType: "digit",
218
+ maxLength: 2
219
+ },
220
+ MM: "month",
221
+ MMM: {
222
+ sectionType: "month",
223
+ contentType: "letter"
224
+ },
225
+ MMMM: {
226
+ sectionType: "month",
227
+ contentType: "letter"
228
+ },
229
+ // Day of the month
230
+ D: {
231
+ sectionType: "day",
232
+ contentType: "digit",
233
+ maxLength: 2
234
+ },
235
+ DD: "day",
236
+ Do: {
237
+ sectionType: "day",
238
+ contentType: "digit-with-letter"
239
+ },
240
+ // Day of the week
241
+ d: {
242
+ sectionType: "weekDay",
243
+ contentType: "digit",
244
+ maxLength: 2
245
+ },
246
+ dd: {
247
+ sectionType: "weekDay",
248
+ contentType: "letter"
249
+ },
250
+ ddd: {
251
+ sectionType: "weekDay",
252
+ contentType: "letter"
253
+ },
254
+ dddd: {
255
+ sectionType: "weekDay",
256
+ contentType: "letter"
257
+ },
258
+ // Meridiem
259
+ A: "meridiem",
260
+ a: "meridiem",
261
+ // Hours
262
+ H: {
263
+ sectionType: "hours",
264
+ contentType: "digit",
265
+ maxLength: 2
266
+ },
267
+ HH: "hours",
268
+ h: {
269
+ sectionType: "hours",
270
+ contentType: "digit",
271
+ maxLength: 2
272
+ },
273
+ hh: "hours",
274
+ // Minutes
275
+ m: {
276
+ sectionType: "minutes",
277
+ contentType: "digit",
278
+ maxLength: 2
279
+ },
280
+ mm: "minutes",
281
+ // Seconds
282
+ s: {
283
+ sectionType: "seconds",
284
+ contentType: "digit",
285
+ maxLength: 2
286
+ },
287
+ ss: "seconds"
288
+ }, Dt = {
289
+ normalDateWithWeekday: "ddd, MMM D",
290
+ normalDate: "D MMMM",
291
+ shortDate: "MMM D",
292
+ monthAndDate: "MMMM D",
293
+ dayOfMonth: "D",
294
+ year: "YYYY",
295
+ month: "MMMM",
296
+ monthShort: "MMM",
297
+ monthAndYear: "MMMM YYYY",
298
+ weekday: "dddd",
299
+ weekdayShort: "ddd",
300
+ minutes: "mm",
301
+ hours12h: "hh",
302
+ hours24h: "HH",
303
+ seconds: "ss",
304
+ fullTime: "LT",
305
+ fullTime12h: "hh:mm A",
306
+ fullTime24h: "HH:mm",
307
+ fullDate: "ll",
308
+ fullDateWithWeekday: "dddd, LL",
309
+ fullDateTime: "lll",
310
+ fullDateTime12h: "ll hh:mm A",
311
+ fullDateTime24h: "ll HH:mm",
312
+ keyboardDate: "L",
313
+ keyboardDateTime: "L LT",
314
+ keyboardDateTime12h: "L hh:mm A",
315
+ keyboardDateTime24h: "L HH:mm"
316
+ }, Mt = (h, d) => d ? (...l) => h(...l).locale(d) : h;
317
+ class gt {
318
+ constructor({
319
+ locale: d,
320
+ formats: l,
321
+ instance: u
322
+ } = {}) {
323
+ this.isMUIAdapter = !0, this.lib = "dayjs", this.rawDayJsInstance = void 0, this.dayjs = void 0, this.locale = void 0, this.formats = void 0, this.escapedCharacters = {
324
+ start: "[",
325
+ end: "]"
326
+ }, this.formatTokenMap = bt, this.getLocaleFormats = () => {
327
+ var t;
328
+ const o = (t = this.rawDayJsInstance.Ls) != null ? t : V.Ls, n = this.locale || "en";
329
+ let a = o[n];
330
+ return a === void 0 && (yt(), a = o.en), a.formats;
331
+ }, this.date = (t) => t === null ? null : this.dayjs(t), this.toJsDate = (t) => t.toDate(), this.parseISO = (t) => this.dayjs(t), this.toISO = (t) => t.toISOString(), this.parse = (t, o) => t === "" ? null : this.dayjs(t, o, this.locale, !0), this.getCurrentLocaleCode = () => this.locale || "en", this.is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || ""), this.expandFormat = (t) => {
332
+ const o = this.getLocaleFormats(), n = (a) => a.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (r, c, s) => c || s.slice(1));
333
+ return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (a, r, c) => {
334
+ const s = c && c.toUpperCase();
335
+ return r || o[c] || n(o[s]);
336
+ });
337
+ }, this.getFormatHelperText = (t) => this.expandFormat(t).replace(/a/gi, "(a|p)m").toLocaleLowerCase(), this.isNull = (t) => t === null, this.isValid = (t) => this.dayjs(t).isValid(), this.format = (t, o) => this.formatByString(t, this.formats[o]), this.formatByString = (t, o) => this.dayjs(t).format(o), this.formatNumber = (t) => t, this.getDiff = (t, o, n) => t.diff(o, n), this.isEqual = (t, o) => t === null && o === null ? !0 : this.dayjs(t).isSame(o), this.isSameYear = (t, o) => t.isSame(o, "year"), this.isSameMonth = (t, o) => t.isSame(o, "month"), this.isSameDay = (t, o) => t.isSame(o, "day"), this.isSameHour = (t, o) => t.isSame(o, "hour"), this.isAfter = (t, o) => t.isAfter(o), this.isAfterYear = (t, o) => t.isAfter(o, "year"), this.isAfterDay = (t, o) => t.isAfter(o, "day"), this.isBefore = (t, o) => t.isBefore(o), this.isBeforeYear = (t, o) => t.isBefore(o, "year"), this.isBeforeDay = (t, o) => t.isBefore(o, "day"), this.isWithinRange = (t, [o, n]) => t.isBetween(o, n, null, "[]"), this.startOfYear = (t) => t.startOf("year"), this.startOfMonth = (t) => t.startOf("month"), this.startOfWeek = (t) => t.startOf("week"), this.startOfDay = (t) => t.startOf("day"), this.endOfYear = (t) => t.endOf("year"), this.endOfMonth = (t) => t.endOf("month"), this.endOfWeek = (t) => t.endOf("week"), this.endOfDay = (t) => t.endOf("day"), this.addYears = (t, o) => o < 0 ? t.subtract(Math.abs(o), "year") : t.add(o, "year"), this.addMonths = (t, o) => o < 0 ? t.subtract(Math.abs(o), "month") : t.add(o, "month"), this.addWeeks = (t, o) => o < 0 ? t.subtract(Math.abs(o), "week") : t.add(o, "week"), this.addDays = (t, o) => o < 0 ? t.subtract(Math.abs(o), "day") : t.add(o, "day"), this.addHours = (t, o) => o < 0 ? t.subtract(Math.abs(o), "hour") : t.add(o, "hour"), this.addMinutes = (t, o) => o < 0 ? t.subtract(Math.abs(o), "minute") : t.add(o, "minute"), this.addSeconds = (t, o) => o < 0 ? t.subtract(Math.abs(o), "second") : t.add(o, "second"), this.getYear = (t) => t.year(), this.getMonth = (t) => t.month(), this.getDate = (t) => t.date(), this.getHours = (t) => t.hour(), this.getMinutes = (t) => t.minute(), this.getSeconds = (t) => t.second(), this.setYear = (t, o) => t.set("year", o), this.setMonth = (t, o) => t.set("month", o), this.setDate = (t, o) => t.set("date", o), this.setHours = (t, o) => t.set("hour", o), this.setMinutes = (t, o) => t.set("minute", o), this.setSeconds = (t, o) => t.set("second", o), this.getDaysInMonth = (t) => t.daysInMonth(), this.getNextMonth = (t) => t.add(1, "month"), this.getPreviousMonth = (t) => t.subtract(1, "month"), this.getMonthArray = (t) => {
338
+ const n = [t.startOf("year")];
339
+ for (; n.length < 12; ) {
340
+ const a = n[n.length - 1];
341
+ n.push(this.getNextMonth(a));
342
+ }
343
+ return n;
344
+ }, this.mergeDateAndTime = (t, o) => t.hour(o.hour()).minute(o.minute()).second(o.second()), this.getWeekdays = () => {
345
+ const t = this.dayjs().startOf("week");
346
+ return [0, 1, 2, 3, 4, 5, 6].map((o) => this.formatByString(t.add(o, "day"), "dd"));
347
+ }, this.getWeekArray = (t) => {
348
+ const o = t.startOf("month").startOf("week"), n = t.endOf("month").endOf("week");
349
+ let a = 0, r = o;
350
+ const c = [];
351
+ for (; r.isBefore(n); ) {
352
+ const s = Math.floor(a / 7);
353
+ c[s] = c[s] || [], c[s].push(r), r = r.add(1, "day"), a += 1;
354
+ }
355
+ return c;
356
+ }, this.getWeekNumber = (t) => t.week(), this.getYearRange = (t, o) => {
357
+ const n = t.startOf("year"), a = o.endOf("year"), r = [];
358
+ let c = n;
359
+ for (; c.isBefore(a); )
360
+ r.push(c), c = c.add(1, "year");
361
+ return r;
362
+ }, this.getMeridiemText = (t) => t === "am" ? "AM" : "PM", this.rawDayJsInstance = u || V, this.dayjs = Mt(this.rawDayJsInstance, d), this.locale = d, this.formats = y({}, Dt, l), V.extend(ut);
363
+ }
364
+ }
365
+ function Tt(h) {
366
+ return rt("MuiDatePickerToolbar", h);
367
+ }
368
+ nt("MuiDatePickerToolbar", ["root", "title"]);
369
+ const Pt = ["value", "isLandscape", "onChange", "toolbarFormat", "toolbarPlaceholder", "views"], Ot = (h) => {
370
+ const {
371
+ classes: d
372
+ } = h;
373
+ return at({
374
+ root: ["root"],
375
+ title: ["title"]
376
+ }, Tt, d);
377
+ }, xt = Oe(qe, {
378
+ name: "MuiDatePickerToolbar",
379
+ slot: "Root",
380
+ overridesResolver: (h, d) => d.root
381
+ })({}), vt = Oe(st, {
382
+ name: "MuiDatePickerToolbar",
383
+ slot: "Title",
384
+ overridesResolver: (h, d) => d.title
385
+ })(({
386
+ ownerState: h
387
+ }) => y({}, h.isLandscape && {
388
+ margin: "auto 16px auto auto"
389
+ })), Ye = /* @__PURE__ */ I.forwardRef(function(d, l) {
390
+ const u = X({
391
+ props: d,
392
+ name: "MuiDatePickerToolbar"
393
+ }), {
394
+ value: t,
395
+ isLandscape: o,
396
+ toolbarFormat: n,
397
+ toolbarPlaceholder: a = "––",
398
+ views: r
399
+ } = u, c = H(u, Pt), s = z(), b = ue(), D = Ot(u), O = I.useMemo(() => t ? n ? s.formatByString(t, n) : De(r) ? s.format(t, "year") : Me(r) ? s.format(t, "month") : /en/.test(s.getCurrentLocaleCode()) ? s.format(t, "normalDateWithWeekday") : s.format(t, "normalDate") : a, [t, n, a, s, r]), Y = u;
400
+ return /* @__PURE__ */ M(xt, y({
401
+ ref: l,
402
+ toolbarTitle: b.datePickerToolbarTitle,
403
+ isLandscape: o,
404
+ className: D.root
405
+ }, c, {
406
+ children: /* @__PURE__ */ M(vt, {
407
+ variant: "h4",
408
+ align: o ? "left" : "center",
409
+ ownerState: Y,
410
+ className: D.title,
411
+ children: O
412
+ })
413
+ }));
414
+ });
415
+ process.env.NODE_ENV !== "production" && (Ye.propTypes = {
416
+ // ----------------------------- Warning --------------------------------
417
+ // | These PropTypes are generated from the TypeScript type definitions |
418
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
419
+ // ----------------------------------------------------------------------
420
+ classes: e.object,
421
+ /**
422
+ * className applied to the root component.
423
+ */
424
+ className: e.string,
425
+ disabled: e.bool,
426
+ /**
427
+ * If `true`, show the toolbar even in desktop mode.
428
+ * @default `true` for Desktop, `false` for Mobile.
429
+ */
430
+ hidden: e.bool,
431
+ isLandscape: e.bool.isRequired,
432
+ onChange: e.func.isRequired,
433
+ /**
434
+ * Callback called when a toolbar is clicked
435
+ * @template TView
436
+ * @param {TView} view The view to open
437
+ */
438
+ onViewChange: e.func.isRequired,
439
+ readOnly: e.bool,
440
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
441
+ titleId: e.string,
442
+ /**
443
+ * Toolbar date format.
444
+ */
445
+ toolbarFormat: e.string,
446
+ /**
447
+ * Toolbar value placeholder—it is displayed when the value is empty.
448
+ * @default "––"
449
+ */
450
+ toolbarPlaceholder: e.node,
451
+ value: e.any,
452
+ /**
453
+ * Currently visible picker view.
454
+ */
455
+ view: e.oneOf(["day", "month", "year"]).isRequired,
456
+ views: e.arrayOf(e.oneOf(["day", "month", "year"]).isRequired).isRequired
457
+ });
458
+ const Le = (h, {
459
+ format: d,
460
+ views: l
461
+ }) => {
462
+ if (d != null)
463
+ return d;
464
+ if (De(l))
465
+ return h.formats.year;
466
+ if (Me(l))
467
+ return h.formats.monthAndYear;
468
+ };
469
+ function Fe(h, d) {
470
+ var l, u, t, o;
471
+ const n = z(), a = ge(), r = X({
472
+ props: h,
473
+ name: d
474
+ }), c = I.useMemo(() => {
475
+ var b;
476
+ return ((b = r.localeText) == null ? void 0 : b.toolbarTitle) == null ? r.localeText : y({}, r.localeText, {
477
+ datePickerToolbarTitle: r.localeText.toolbarTitle
478
+ });
479
+ }, [r.localeText]), s = (l = r.slots) != null ? l : Ue(r.components);
480
+ return y({}, r, {
481
+ localeText: c
482
+ }, Ze({
483
+ views: r.views,
484
+ openTo: r.openTo,
485
+ defaultViews: ["year", "day"],
486
+ defaultOpenTo: "day"
487
+ }), {
488
+ disableFuture: (u = r.disableFuture) != null ? u : !1,
489
+ disablePast: (t = r.disablePast) != null ? t : !1,
490
+ minDate: J(n, r.minDate, a.minDate),
491
+ maxDate: J(n, r.maxDate, a.maxDate),
492
+ slots: y({
493
+ toolbar: Ye
494
+ }, s),
495
+ slotProps: (o = r.slotProps) != null ? o : r.componentsProps
496
+ });
497
+ }
498
+ const wt = ["value", "defaultValue", "format", "formatDensity", "shouldRespectLeadingZeros", "onChange", "readOnly", "onError", "shouldDisableDate", "shouldDisableMonth", "shouldDisableYear", "minDate", "maxDate", "disableFuture", "disablePast", "selectedSections", "onSelectedSectionsChange", "unstableFieldRef"], kt = (h) => {
499
+ var d, l, u;
500
+ const t = z(), o = ge();
501
+ return y({}, h, {
502
+ disablePast: (d = h.disablePast) != null ? d : !1,
503
+ disableFuture: (l = h.disableFuture) != null ? l : !1,
504
+ format: (u = h.format) != null ? u : t.formats.keyboardDate,
505
+ minDate: J(t, h.minDate, o.minDate),
506
+ maxDate: J(t, h.maxDate, o.maxDate)
507
+ });
508
+ }, Yt = ({
509
+ props: h,
510
+ inputRef: d
511
+ }) => {
512
+ const l = kt(h), {
513
+ value: u,
514
+ defaultValue: t,
515
+ format: o,
516
+ formatDensity: n,
517
+ shouldRespectLeadingZeros: a,
518
+ onChange: r,
519
+ readOnly: c,
520
+ onError: s,
521
+ shouldDisableDate: b,
522
+ shouldDisableMonth: D,
523
+ shouldDisableYear: O,
524
+ minDate: Y,
525
+ maxDate: v,
526
+ disableFuture: i,
527
+ disablePast: f,
528
+ selectedSections: p,
529
+ onSelectedSectionsChange: m,
530
+ unstableFieldRef: g
531
+ } = l, T = H(l, wt);
532
+ return Qe({
533
+ inputRef: d,
534
+ forwardedProps: T,
535
+ internalProps: {
536
+ value: u,
537
+ defaultValue: t,
538
+ format: o,
539
+ formatDensity: n,
540
+ shouldRespectLeadingZeros: a,
541
+ onChange: r,
542
+ readOnly: c,
543
+ onError: s,
544
+ shouldDisableDate: b,
545
+ shouldDisableMonth: D,
546
+ shouldDisableYear: O,
547
+ minDate: Y,
548
+ maxDate: v,
549
+ disableFuture: i,
550
+ disablePast: f,
551
+ selectedSections: p,
552
+ onSelectedSectionsChange: m,
553
+ unstableFieldRef: g
554
+ },
555
+ valueManager: de,
556
+ fieldValueManager: Je,
557
+ validator: ce,
558
+ valueType: "date"
559
+ });
560
+ }, Lt = ["components", "componentsProps", "slots", "slotProps", "InputProps", "inputProps"], Ft = ["inputRef"], St = ["ref", "onPaste", "inputMode", "readOnly"], he = /* @__PURE__ */ I.forwardRef(function(d, l) {
561
+ var u, t, o;
562
+ const n = X({
563
+ props: d,
564
+ name: "MuiDateField"
565
+ }), {
566
+ components: a,
567
+ componentsProps: r,
568
+ slots: c,
569
+ slotProps: s,
570
+ InputProps: b,
571
+ inputProps: D
572
+ } = n, O = H(n, Lt), Y = n, v = (u = (t = c == null ? void 0 : c.textField) != null ? t : a == null ? void 0 : a.TextField) != null ? u : it, i = Ge({
573
+ elementType: v,
574
+ externalSlotProps: (o = s == null ? void 0 : s.textField) != null ? o : r == null ? void 0 : r.textField,
575
+ externalForwardedProps: O,
576
+ ownerState: Y
577
+ }), {
578
+ inputRef: f
579
+ } = i, p = H(i, Ft);
580
+ p.inputProps = y({}, p.inputProps, D), p.InputProps = y({}, p.InputProps, b);
581
+ const m = Yt({
582
+ props: p,
583
+ inputRef: f
584
+ }), {
585
+ ref: g,
586
+ onPaste: T,
587
+ inputMode: j,
588
+ readOnly: L
589
+ } = m, P = H(m, St);
590
+ return /* @__PURE__ */ M(v, y({
591
+ ref: l
592
+ }, P, {
593
+ InputProps: y({}, P.InputProps, {
594
+ readOnly: L
595
+ }),
596
+ inputProps: y({}, P.inputProps, {
597
+ inputMode: j,
598
+ onPaste: T,
599
+ ref: g
600
+ })
601
+ }));
602
+ });
603
+ process.env.NODE_ENV !== "production" && (he.propTypes = {
604
+ // ----------------------------- Warning --------------------------------
605
+ // | These PropTypes are generated from the TypeScript type definitions |
606
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
607
+ // ----------------------------------------------------------------------
608
+ /**
609
+ * If `true`, the `input` element is focused during the first mount.
610
+ * @default false
611
+ */
612
+ autoFocus: e.bool,
613
+ className: e.string,
614
+ /**
615
+ * The color of the component.
616
+ * It supports both default and custom theme colors, which can be added as shown in the
617
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#adding-new-colors).
618
+ * @default 'primary'
619
+ */
620
+ color: e.oneOf(["error", "info", "primary", "secondary", "success", "warning"]),
621
+ /**
622
+ * Overridable components.
623
+ * @default {}
624
+ * @deprecated Please use `slots`.
625
+ */
626
+ components: e.object,
627
+ /**
628
+ * The props used for each component slot.
629
+ * @default {}
630
+ * @deprecated Please use `slotProps`.
631
+ */
632
+ componentsProps: e.object,
633
+ /**
634
+ * The default value. Use when the component is not controlled.
635
+ */
636
+ defaultValue: e.any,
637
+ /**
638
+ * If `true`, the component is disabled.
639
+ * @default false
640
+ */
641
+ disabled: e.bool,
642
+ /**
643
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
644
+ * @default false
645
+ */
646
+ disableFuture: e.bool,
647
+ /**
648
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
649
+ * @default false
650
+ */
651
+ disablePast: e.bool,
652
+ /**
653
+ * If `true`, the component is displayed in focused state.
654
+ */
655
+ focused: e.bool,
656
+ /**
657
+ * Format of the date when rendered in the input(s).
658
+ */
659
+ format: e.string,
660
+ /**
661
+ * Density of the format when rendered in the input.
662
+ * Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
663
+ * @default "dense"
664
+ */
665
+ formatDensity: e.oneOf(["dense", "spacious"]),
666
+ /**
667
+ * Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.
668
+ */
669
+ FormHelperTextProps: e.object,
670
+ /**
671
+ * If `true`, the input will take up the full width of its container.
672
+ * @default false
673
+ */
674
+ fullWidth: e.bool,
675
+ /**
676
+ * The helper text content.
677
+ */
678
+ helperText: e.node,
679
+ /**
680
+ * If `true`, the label is hidden.
681
+ * This is used to increase density for a `FilledInput`.
682
+ * Be sure to add `aria-label` to the `input` element.
683
+ * @default false
684
+ */
685
+ hiddenLabel: e.bool,
686
+ /**
687
+ * The id of the `input` element.
688
+ * Use this prop to make `label` and `helperText` accessible for screen readers.
689
+ */
690
+ id: e.string,
691
+ /**
692
+ * Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.
693
+ * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.
694
+ */
695
+ InputLabelProps: e.object,
696
+ /**
697
+ * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.
698
+ */
699
+ inputProps: e.object,
700
+ /**
701
+ * Props applied to the Input element.
702
+ * It will be a [`FilledInput`](/material-ui/api/filled-input/),
703
+ * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)
704
+ * component depending on the `variant` prop value.
705
+ */
706
+ InputProps: e.object,
707
+ /**
708
+ * Pass a ref to the `input` element.
709
+ */
710
+ inputRef: e.oneOfType([e.func, e.shape({
711
+ current: e.any.isRequired
712
+ })]),
713
+ /**
714
+ * The label content.
715
+ */
716
+ label: e.node,
717
+ /**
718
+ * If `dense` or `normal`, will adjust vertical spacing of this and contained components.
719
+ * @default 'none'
720
+ */
721
+ margin: e.oneOf(["dense", "none", "normal"]),
722
+ /**
723
+ * Maximal selectable date.
724
+ */
725
+ maxDate: e.any,
726
+ /**
727
+ * Minimal selectable date.
728
+ */
729
+ minDate: e.any,
730
+ /**
731
+ * Name attribute of the `input` element.
732
+ */
733
+ name: e.string,
734
+ onBlur: e.func,
735
+ /**
736
+ * Callback fired when the value changes.
737
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
738
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
739
+ * @param {TValue} value The new value.
740
+ * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
741
+ */
742
+ onChange: e.func,
743
+ /**
744
+ * Callback fired when the error associated to the current value changes.
745
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
746
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
747
+ * @param {TError} error The new error.
748
+ * @param {TValue} value The value associated to the error.
749
+ */
750
+ onError: e.func,
751
+ onFocus: e.func,
752
+ /**
753
+ * Callback fired when the selected sections change.
754
+ * @param {FieldSelectedSections} newValue The new selected sections.
755
+ */
756
+ onSelectedSectionsChange: e.func,
757
+ /**
758
+ * It prevents the user from changing the value of the field
759
+ * (not from interacting with the field).
760
+ * @default false
761
+ */
762
+ readOnly: e.bool,
763
+ /**
764
+ * If `true`, the label is displayed as required and the `input` element is required.
765
+ * @default false
766
+ */
767
+ required: e.bool,
768
+ /**
769
+ * The currently selected sections.
770
+ * This prop accept four formats:
771
+ * 1. If a number is provided, the section at this index will be selected.
772
+ * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
773
+ * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
774
+ * 4. If `null` is provided, no section will be selected
775
+ * If not provided, the selected sections will be handled internally.
776
+ */
777
+ selectedSections: e.oneOfType([e.oneOf(["all", "day", "hours", "meridiem", "minutes", "month", "seconds", "weekDay", "year"]), e.number, e.shape({
778
+ endIndex: e.number.isRequired,
779
+ startIndex: e.number.isRequired
780
+ })]),
781
+ /**
782
+ * Disable specific date.
783
+ * @template TDate
784
+ * @param {TDate} day The date to test.
785
+ * @returns {boolean} If `true` the date will be disabled.
786
+ */
787
+ shouldDisableDate: e.func,
788
+ /**
789
+ * Disable specific month.
790
+ * @template TDate
791
+ * @param {TDate} month The month to test.
792
+ * @returns {boolean} If `true`, the month will be disabled.
793
+ */
794
+ shouldDisableMonth: e.func,
795
+ /**
796
+ * Disable specific year.
797
+ * @template TDate
798
+ * @param {TDate} year The year to test.
799
+ * @returns {boolean} If `true`, the year will be disabled.
800
+ */
801
+ shouldDisableYear: e.func,
802
+ /**
803
+ * If `true`, the format will respect the leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `8/16/2018`)
804
+ * If `false`, the format will always add leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `08/16/2018`)
805
+ *
806
+ * Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (e.g: "DD"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.
807
+ *
808
+ * Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.
809
+ * If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\u200e/g, '')`.
810
+ *
811
+ * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.
812
+ * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.
813
+ *
814
+ * @default `false`
815
+ */
816
+ shouldRespectLeadingZeros: e.bool,
817
+ /**
818
+ * The size of the component.
819
+ */
820
+ size: e.oneOf(["medium", "small"]),
821
+ /**
822
+ * The props used for each component slot.
823
+ * @default {}
824
+ */
825
+ slotProps: e.object,
826
+ /**
827
+ * Overridable component slots.
828
+ * @default {}
829
+ */
830
+ slots: e.object,
831
+ style: e.object,
832
+ /**
833
+ * The system prop that allows defining system overrides as well as additional CSS styles.
834
+ */
835
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
836
+ /**
837
+ * The ref object used to imperatively interact with the field.
838
+ */
839
+ unstableFieldRef: e.oneOfType([e.func, e.object]),
840
+ /**
841
+ * The selected value.
842
+ * Used when the component is controlled.
843
+ */
844
+ value: e.any,
845
+ /**
846
+ * The variant to use.
847
+ * @default 'outlined'
848
+ */
849
+ variant: e.oneOf(["filled", "outlined", "standard"])
850
+ });
851
+ const Se = /* @__PURE__ */ I.forwardRef(function(d, l) {
852
+ var u, t;
853
+ const o = ue(), n = z(), a = Fe(d, "MuiDesktopDatePicker"), r = y({
854
+ day: B,
855
+ month: B,
856
+ year: B
857
+ }, a.viewRenderers), c = y({}, a, {
858
+ viewRenderers: r,
859
+ format: Le(n, a),
860
+ yearsPerRow: (u = a.yearsPerRow) != null ? u : 4,
861
+ slots: y({
862
+ openPickerIcon: Ke,
863
+ field: he
864
+ }, a.slots),
865
+ slotProps: y({}, a.slotProps, {
866
+ field: (b) => {
867
+ var D;
868
+ return y({}, Te((D = a.slotProps) == null ? void 0 : D.field, b), Pe(a), {
869
+ ref: l
870
+ });
871
+ },
872
+ toolbar: y({
873
+ hidden: !0
874
+ }, (t = a.slotProps) == null ? void 0 : t.toolbar)
875
+ })
876
+ }), {
877
+ renderPicker: s
878
+ } = Xe({
879
+ props: c,
880
+ valueManager: de,
881
+ valueType: "date",
882
+ getOpenDialogAriaText: o.openDatePickerDialogue,
883
+ validator: ce
884
+ });
885
+ return s();
886
+ });
887
+ Se.propTypes = {
888
+ // ----------------------------- Warning --------------------------------
889
+ // | These PropTypes are generated from the TypeScript type definitions |
890
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
891
+ // ----------------------------------------------------------------------
892
+ /**
893
+ * If `true`, the main element is focused during the first mount.
894
+ * This main element is:
895
+ * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).
896
+ * - the `input` element if there is a field rendered.
897
+ */
898
+ autoFocus: e.bool,
899
+ /**
900
+ * Class name applied to the root element.
901
+ */
902
+ className: e.string,
903
+ /**
904
+ * If `true`, the popover or modal will close after submitting the full date.
905
+ * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).
906
+ */
907
+ closeOnSelect: e.bool,
908
+ /**
909
+ * Overridable components.
910
+ * @default {}
911
+ * @deprecated Please use `slots`.
912
+ */
913
+ components: e.object,
914
+ /**
915
+ * The props used for each component slot.
916
+ * @default {}
917
+ * @deprecated Please use `slotProps`.
918
+ */
919
+ componentsProps: e.object,
920
+ /**
921
+ * Formats the day of week displayed in the calendar header.
922
+ * @param {string} day The day of week provided by the adapter's method `getWeekdays`.
923
+ * @returns {string} The name to display.
924
+ * @default (day) => day.charAt(0).toUpperCase()
925
+ */
926
+ dayOfWeekFormatter: e.func,
927
+ /**
928
+ * Default calendar month displayed when `value={null}`.
929
+ */
930
+ defaultCalendarMonth: e.any,
931
+ /**
932
+ * The default value.
933
+ * Used when the component is not controlled.
934
+ */
935
+ defaultValue: e.any,
936
+ /**
937
+ * If `true`, the picker and text field are disabled.
938
+ * @default false
939
+ */
940
+ disabled: e.bool,
941
+ /**
942
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
943
+ * @default false
944
+ */
945
+ disableFuture: e.bool,
946
+ /**
947
+ * If `true`, today's date is rendering without highlighting with circle.
948
+ * @default false
949
+ */
950
+ disableHighlightToday: e.bool,
951
+ /**
952
+ * If `true`, the open picker button will not be rendered (renders only the field).
953
+ * @default false
954
+ */
955
+ disableOpenPicker: e.bool,
956
+ /**
957
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
958
+ * @default false
959
+ */
960
+ disablePast: e.bool,
961
+ /**
962
+ * If `true`, the week number will be display in the calendar.
963
+ */
964
+ displayWeekNumber: e.bool,
965
+ /**
966
+ * Calendar will show more weeks in order to match this value.
967
+ * Put it to 6 for having fix number of week in Gregorian calendars
968
+ * @default undefined
969
+ */
970
+ fixedWeekNumber: e.number,
971
+ /**
972
+ * Format of the date when rendered in the input(s).
973
+ * Defaults to localized format based on the used `views`.
974
+ */
975
+ format: e.string,
976
+ /**
977
+ * Density of the format when rendered in the input.
978
+ * Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
979
+ * @default "dense"
980
+ */
981
+ formatDensity: e.oneOf(["dense", "spacious"]),
982
+ /**
983
+ * Pass a ref to the `input` element.
984
+ */
985
+ inputRef: e.oneOfType([e.func, e.shape({
986
+ current: e.object
987
+ })]),
988
+ /**
989
+ * The label content.
990
+ */
991
+ label: e.node,
992
+ /**
993
+ * If `true`, calls `renderLoading` instead of rendering the day calendar.
994
+ * Can be used to preload information and show it in calendar.
995
+ * @default false
996
+ */
997
+ loading: e.bool,
998
+ /**
999
+ * Locale for components texts.
1000
+ * Allows overriding texts coming from `LocalizationProvider` and `theme`.
1001
+ */
1002
+ localeText: e.object,
1003
+ /**
1004
+ * Maximal selectable date.
1005
+ */
1006
+ maxDate: e.any,
1007
+ /**
1008
+ * Minimal selectable date.
1009
+ */
1010
+ minDate: e.any,
1011
+ /**
1012
+ * Months rendered per row.
1013
+ * @default 3
1014
+ */
1015
+ monthsPerRow: e.oneOf([3, 4]),
1016
+ /**
1017
+ * Callback fired when the value is accepted.
1018
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1019
+ * @param {TValue} value The value that was just accepted.
1020
+ */
1021
+ onAccept: e.func,
1022
+ /**
1023
+ * Callback fired when the value changes.
1024
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1025
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
1026
+ * @param {TValue} value The new value.
1027
+ * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
1028
+ */
1029
+ onChange: e.func,
1030
+ /**
1031
+ * Callback fired when the popup requests to be closed.
1032
+ * Use in controlled mode (see `open`).
1033
+ */
1034
+ onClose: e.func,
1035
+ /**
1036
+ * Callback fired when the error associated to the current value changes.
1037
+ * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
1038
+ *
1039
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1040
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
1041
+ * @param {TError} error The new error describing why the current value is not valid.
1042
+ * @param {TValue} value The value associated to the error.
1043
+ */
1044
+ onError: e.func,
1045
+ /**
1046
+ * Callback fired on month change.
1047
+ * @template TDate
1048
+ * @param {TDate} month The new month.
1049
+ */
1050
+ onMonthChange: e.func,
1051
+ /**
1052
+ * Callback fired when the popup requests to be opened.
1053
+ * Use in controlled mode (see `open`).
1054
+ */
1055
+ onOpen: e.func,
1056
+ /**
1057
+ * Callback fired when the selected sections change.
1058
+ * @param {FieldSelectedSections} newValue The new selected sections.
1059
+ */
1060
+ onSelectedSectionsChange: e.func,
1061
+ /**
1062
+ * Callback fired on view change.
1063
+ * @template TView
1064
+ * @param {TView} view The new view.
1065
+ */
1066
+ onViewChange: e.func,
1067
+ /**
1068
+ * Callback fired on year change.
1069
+ * @template TDate
1070
+ * @param {TDate} year The new year.
1071
+ */
1072
+ onYearChange: e.func,
1073
+ /**
1074
+ * Control the popup or dialog open state.
1075
+ * @default false
1076
+ */
1077
+ open: e.bool,
1078
+ /**
1079
+ * The default visible view.
1080
+ * Used when the component view is not controlled.
1081
+ * Must be a valid option from `views` list.
1082
+ */
1083
+ openTo: e.oneOf(["day", "month", "year"]),
1084
+ /**
1085
+ * Force rendering in particular orientation.
1086
+ */
1087
+ orientation: e.oneOf(["landscape", "portrait"]),
1088
+ readOnly: e.bool,
1089
+ /**
1090
+ * Disable heavy animations.
1091
+ * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
1092
+ */
1093
+ reduceAnimations: e.bool,
1094
+ /**
1095
+ * Component displaying when passed `loading` true.
1096
+ * @returns {React.ReactNode} The node to render when loading.
1097
+ * @default () => <span data-mui-test="loading-progress">...</span>
1098
+ */
1099
+ renderLoading: e.func,
1100
+ /**
1101
+ * The currently selected sections.
1102
+ * This prop accept four formats:
1103
+ * 1. If a number is provided, the section at this index will be selected.
1104
+ * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
1105
+ * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
1106
+ * 4. If `null` is provided, no section will be selected
1107
+ * If not provided, the selected sections will be handled internally.
1108
+ */
1109
+ selectedSections: e.oneOfType([e.oneOf(["all", "day", "hours", "meridiem", "minutes", "month", "seconds", "weekDay", "year"]), e.number, e.shape({
1110
+ endIndex: e.number.isRequired,
1111
+ startIndex: e.number.isRequired
1112
+ })]),
1113
+ /**
1114
+ * Disable specific date.
1115
+ * @template TDate
1116
+ * @param {TDate} day The date to test.
1117
+ * @returns {boolean} If `true` the date will be disabled.
1118
+ */
1119
+ shouldDisableDate: e.func,
1120
+ /**
1121
+ * Disable specific month.
1122
+ * @template TDate
1123
+ * @param {TDate} month The month to test.
1124
+ * @returns {boolean} If `true`, the month will be disabled.
1125
+ */
1126
+ shouldDisableMonth: e.func,
1127
+ /**
1128
+ * Disable specific year.
1129
+ * @template TDate
1130
+ * @param {TDate} year The year to test.
1131
+ * @returns {boolean} If `true`, the year will be disabled.
1132
+ */
1133
+ shouldDisableYear: e.func,
1134
+ /**
1135
+ * If `true`, days outside the current month are rendered:
1136
+ *
1137
+ * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.
1138
+ *
1139
+ * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.
1140
+ *
1141
+ * - ignored if `calendars` equals more than `1` on range pickers.
1142
+ * @default false
1143
+ */
1144
+ showDaysOutsideCurrentMonth: e.bool,
1145
+ /**
1146
+ * The props used for each component slot.
1147
+ * @default {}
1148
+ */
1149
+ slotProps: e.object,
1150
+ /**
1151
+ * Overridable component slots.
1152
+ * @default {}
1153
+ */
1154
+ slots: e.object,
1155
+ /**
1156
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1157
+ */
1158
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1159
+ /**
1160
+ * The selected value.
1161
+ * Used when the component is controlled.
1162
+ */
1163
+ value: e.any,
1164
+ /**
1165
+ * The visible view.
1166
+ * Used when the component view is controlled.
1167
+ * Must be a valid option from `views` list.
1168
+ */
1169
+ view: e.oneOf(["day", "month", "year"]),
1170
+ /**
1171
+ * Define custom view renderers for each section.
1172
+ * If `null`, the section will only have field editing.
1173
+ * If `undefined`, internally defined view will be the used.
1174
+ */
1175
+ viewRenderers: e.shape({
1176
+ day: e.func,
1177
+ month: e.func,
1178
+ year: e.func
1179
+ }),
1180
+ /**
1181
+ * Available views.
1182
+ */
1183
+ views: e.arrayOf(e.oneOf(["day", "month", "year"]).isRequired),
1184
+ /**
1185
+ * Years rendered per row.
1186
+ * @default 4
1187
+ */
1188
+ yearsPerRow: e.oneOf([3, 4])
1189
+ };
1190
+ const Ce = /* @__PURE__ */ I.forwardRef(function(d, l) {
1191
+ var u;
1192
+ const t = ue(), o = z(), n = Fe(d, "MuiMobileDatePicker"), a = y({
1193
+ day: B,
1194
+ month: B,
1195
+ year: B
1196
+ }, n.viewRenderers), r = y({}, n, {
1197
+ viewRenderers: a,
1198
+ format: Le(o, n),
1199
+ slots: y({
1200
+ field: he
1201
+ }, n.slots),
1202
+ slotProps: y({}, n.slotProps, {
1203
+ field: (s) => {
1204
+ var b;
1205
+ return y({}, Te((b = n.slotProps) == null ? void 0 : b.field, s), Pe(n), {
1206
+ ref: l
1207
+ });
1208
+ },
1209
+ toolbar: y({
1210
+ hidden: !1
1211
+ }, (u = n.slotProps) == null ? void 0 : u.toolbar)
1212
+ })
1213
+ }), {
1214
+ renderPicker: c
1215
+ } = et({
1216
+ props: r,
1217
+ valueManager: de,
1218
+ valueType: "date",
1219
+ getOpenDialogAriaText: t.openDatePickerDialogue,
1220
+ validator: ce
1221
+ });
1222
+ return c();
1223
+ });
1224
+ Ce.propTypes = {
1225
+ // ----------------------------- Warning --------------------------------
1226
+ // | These PropTypes are generated from the TypeScript type definitions |
1227
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
1228
+ // ----------------------------------------------------------------------
1229
+ /**
1230
+ * If `true`, the main element is focused during the first mount.
1231
+ * This main element is:
1232
+ * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).
1233
+ * - the `input` element if there is a field rendered.
1234
+ */
1235
+ autoFocus: e.bool,
1236
+ /**
1237
+ * Class name applied to the root element.
1238
+ */
1239
+ className: e.string,
1240
+ /**
1241
+ * If `true`, the popover or modal will close after submitting the full date.
1242
+ * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).
1243
+ */
1244
+ closeOnSelect: e.bool,
1245
+ /**
1246
+ * Overridable components.
1247
+ * @default {}
1248
+ * @deprecated Please use `slots`.
1249
+ */
1250
+ components: e.object,
1251
+ /**
1252
+ * The props used for each component slot.
1253
+ * @default {}
1254
+ * @deprecated Please use `slotProps`.
1255
+ */
1256
+ componentsProps: e.object,
1257
+ /**
1258
+ * Formats the day of week displayed in the calendar header.
1259
+ * @param {string} day The day of week provided by the adapter's method `getWeekdays`.
1260
+ * @returns {string} The name to display.
1261
+ * @default (day) => day.charAt(0).toUpperCase()
1262
+ */
1263
+ dayOfWeekFormatter: e.func,
1264
+ /**
1265
+ * Default calendar month displayed when `value={null}`.
1266
+ */
1267
+ defaultCalendarMonth: e.any,
1268
+ /**
1269
+ * The default value.
1270
+ * Used when the component is not controlled.
1271
+ */
1272
+ defaultValue: e.any,
1273
+ /**
1274
+ * If `true`, the picker and text field are disabled.
1275
+ * @default false
1276
+ */
1277
+ disabled: e.bool,
1278
+ /**
1279
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
1280
+ * @default false
1281
+ */
1282
+ disableFuture: e.bool,
1283
+ /**
1284
+ * If `true`, today's date is rendering without highlighting with circle.
1285
+ * @default false
1286
+ */
1287
+ disableHighlightToday: e.bool,
1288
+ /**
1289
+ * If `true`, the open picker button will not be rendered (renders only the field).
1290
+ * @default false
1291
+ */
1292
+ disableOpenPicker: e.bool,
1293
+ /**
1294
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
1295
+ * @default false
1296
+ */
1297
+ disablePast: e.bool,
1298
+ /**
1299
+ * If `true`, the week number will be display in the calendar.
1300
+ */
1301
+ displayWeekNumber: e.bool,
1302
+ /**
1303
+ * Calendar will show more weeks in order to match this value.
1304
+ * Put it to 6 for having fix number of week in Gregorian calendars
1305
+ * @default undefined
1306
+ */
1307
+ fixedWeekNumber: e.number,
1308
+ /**
1309
+ * Format of the date when rendered in the input(s).
1310
+ * Defaults to localized format based on the used `views`.
1311
+ */
1312
+ format: e.string,
1313
+ /**
1314
+ * Density of the format when rendered in the input.
1315
+ * Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
1316
+ * @default "dense"
1317
+ */
1318
+ formatDensity: e.oneOf(["dense", "spacious"]),
1319
+ /**
1320
+ * Pass a ref to the `input` element.
1321
+ */
1322
+ inputRef: e.oneOfType([e.func, e.shape({
1323
+ current: e.object
1324
+ })]),
1325
+ /**
1326
+ * The label content.
1327
+ */
1328
+ label: e.node,
1329
+ /**
1330
+ * If `true`, calls `renderLoading` instead of rendering the day calendar.
1331
+ * Can be used to preload information and show it in calendar.
1332
+ * @default false
1333
+ */
1334
+ loading: e.bool,
1335
+ /**
1336
+ * Locale for components texts.
1337
+ * Allows overriding texts coming from `LocalizationProvider` and `theme`.
1338
+ */
1339
+ localeText: e.object,
1340
+ /**
1341
+ * Maximal selectable date.
1342
+ */
1343
+ maxDate: e.any,
1344
+ /**
1345
+ * Minimal selectable date.
1346
+ */
1347
+ minDate: e.any,
1348
+ /**
1349
+ * Months rendered per row.
1350
+ * @default 3
1351
+ */
1352
+ monthsPerRow: e.oneOf([3, 4]),
1353
+ /**
1354
+ * Callback fired when the value is accepted.
1355
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1356
+ * @param {TValue} value The value that was just accepted.
1357
+ */
1358
+ onAccept: e.func,
1359
+ /**
1360
+ * Callback fired when the value changes.
1361
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1362
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
1363
+ * @param {TValue} value The new value.
1364
+ * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
1365
+ */
1366
+ onChange: e.func,
1367
+ /**
1368
+ * Callback fired when the popup requests to be closed.
1369
+ * Use in controlled mode (see `open`).
1370
+ */
1371
+ onClose: e.func,
1372
+ /**
1373
+ * Callback fired when the error associated to the current value changes.
1374
+ * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
1375
+ *
1376
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1377
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
1378
+ * @param {TError} error The new error describing why the current value is not valid.
1379
+ * @param {TValue} value The value associated to the error.
1380
+ */
1381
+ onError: e.func,
1382
+ /**
1383
+ * Callback fired on month change.
1384
+ * @template TDate
1385
+ * @param {TDate} month The new month.
1386
+ */
1387
+ onMonthChange: e.func,
1388
+ /**
1389
+ * Callback fired when the popup requests to be opened.
1390
+ * Use in controlled mode (see `open`).
1391
+ */
1392
+ onOpen: e.func,
1393
+ /**
1394
+ * Callback fired when the selected sections change.
1395
+ * @param {FieldSelectedSections} newValue The new selected sections.
1396
+ */
1397
+ onSelectedSectionsChange: e.func,
1398
+ /**
1399
+ * Callback fired on view change.
1400
+ * @template TView
1401
+ * @param {TView} view The new view.
1402
+ */
1403
+ onViewChange: e.func,
1404
+ /**
1405
+ * Callback fired on year change.
1406
+ * @template TDate
1407
+ * @param {TDate} year The new year.
1408
+ */
1409
+ onYearChange: e.func,
1410
+ /**
1411
+ * Control the popup or dialog open state.
1412
+ * @default false
1413
+ */
1414
+ open: e.bool,
1415
+ /**
1416
+ * The default visible view.
1417
+ * Used when the component view is not controlled.
1418
+ * Must be a valid option from `views` list.
1419
+ */
1420
+ openTo: e.oneOf(["day", "month", "year"]),
1421
+ /**
1422
+ * Force rendering in particular orientation.
1423
+ */
1424
+ orientation: e.oneOf(["landscape", "portrait"]),
1425
+ readOnly: e.bool,
1426
+ /**
1427
+ * Disable heavy animations.
1428
+ * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
1429
+ */
1430
+ reduceAnimations: e.bool,
1431
+ /**
1432
+ * Component displaying when passed `loading` true.
1433
+ * @returns {React.ReactNode} The node to render when loading.
1434
+ * @default () => <span data-mui-test="loading-progress">...</span>
1435
+ */
1436
+ renderLoading: e.func,
1437
+ /**
1438
+ * The currently selected sections.
1439
+ * This prop accept four formats:
1440
+ * 1. If a number is provided, the section at this index will be selected.
1441
+ * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
1442
+ * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
1443
+ * 4. If `null` is provided, no section will be selected
1444
+ * If not provided, the selected sections will be handled internally.
1445
+ */
1446
+ selectedSections: e.oneOfType([e.oneOf(["all", "day", "hours", "meridiem", "minutes", "month", "seconds", "weekDay", "year"]), e.number, e.shape({
1447
+ endIndex: e.number.isRequired,
1448
+ startIndex: e.number.isRequired
1449
+ })]),
1450
+ /**
1451
+ * Disable specific date.
1452
+ * @template TDate
1453
+ * @param {TDate} day The date to test.
1454
+ * @returns {boolean} If `true` the date will be disabled.
1455
+ */
1456
+ shouldDisableDate: e.func,
1457
+ /**
1458
+ * Disable specific month.
1459
+ * @template TDate
1460
+ * @param {TDate} month The month to test.
1461
+ * @returns {boolean} If `true`, the month will be disabled.
1462
+ */
1463
+ shouldDisableMonth: e.func,
1464
+ /**
1465
+ * Disable specific year.
1466
+ * @template TDate
1467
+ * @param {TDate} year The year to test.
1468
+ * @returns {boolean} If `true`, the year will be disabled.
1469
+ */
1470
+ shouldDisableYear: e.func,
1471
+ /**
1472
+ * If `true`, days outside the current month are rendered:
1473
+ *
1474
+ * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.
1475
+ *
1476
+ * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.
1477
+ *
1478
+ * - ignored if `calendars` equals more than `1` on range pickers.
1479
+ * @default false
1480
+ */
1481
+ showDaysOutsideCurrentMonth: e.bool,
1482
+ /**
1483
+ * The props used for each component slot.
1484
+ * @default {}
1485
+ */
1486
+ slotProps: e.object,
1487
+ /**
1488
+ * Overridable component slots.
1489
+ * @default {}
1490
+ */
1491
+ slots: e.object,
1492
+ /**
1493
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1494
+ */
1495
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1496
+ /**
1497
+ * The selected value.
1498
+ * Used when the component is controlled.
1499
+ */
1500
+ value: e.any,
1501
+ /**
1502
+ * The visible view.
1503
+ * Used when the component view is controlled.
1504
+ * Must be a valid option from `views` list.
1505
+ */
1506
+ view: e.oneOf(["day", "month", "year"]),
1507
+ /**
1508
+ * Define custom view renderers for each section.
1509
+ * If `null`, the section will only have field editing.
1510
+ * If `undefined`, internally defined view will be the used.
1511
+ */
1512
+ viewRenderers: e.shape({
1513
+ day: e.func,
1514
+ month: e.func,
1515
+ year: e.func
1516
+ }),
1517
+ /**
1518
+ * Available views.
1519
+ */
1520
+ views: e.arrayOf(e.oneOf(["day", "month", "year"]).isRequired),
1521
+ /**
1522
+ * Years rendered per row.
1523
+ * @default 3
1524
+ */
1525
+ yearsPerRow: e.oneOf([3, 4])
1526
+ };
1527
+ const Ct = ["desktopModeMediaQuery"], le = /* @__PURE__ */ I.forwardRef(function(d, l) {
1528
+ const u = X({
1529
+ props: d,
1530
+ name: "MuiDatePicker"
1531
+ }), {
1532
+ desktopModeMediaQuery: t = ot
1533
+ } = u, o = H(u, Ct);
1534
+ return tt(t, {
1535
+ defaultMatches: !0
1536
+ }) ? /* @__PURE__ */ M(Se, y({
1537
+ ref: l
1538
+ }, o)) : /* @__PURE__ */ M(Ce, y({
1539
+ ref: l
1540
+ }, o));
1541
+ });
1542
+ process.env.NODE_ENV !== "production" && (le.propTypes = {
1543
+ // ----------------------------- Warning --------------------------------
1544
+ // | These PropTypes are generated from the TypeScript type definitions |
1545
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
1546
+ // ----------------------------------------------------------------------
1547
+ /**
1548
+ * If `true`, the main element is focused during the first mount.
1549
+ * This main element is:
1550
+ * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).
1551
+ * - the `input` element if there is a field rendered.
1552
+ */
1553
+ autoFocus: e.bool,
1554
+ /**
1555
+ * Class name applied to the root element.
1556
+ */
1557
+ className: e.string,
1558
+ /**
1559
+ * If `true`, the popover or modal will close after submitting the full date.
1560
+ * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).
1561
+ */
1562
+ closeOnSelect: e.bool,
1563
+ /**
1564
+ * Overridable components.
1565
+ * @default {}
1566
+ * @deprecated Please use `slots`.
1567
+ */
1568
+ components: e.object,
1569
+ /**
1570
+ * The props used for each component slot.
1571
+ * @default {}
1572
+ * @deprecated Please use `slotProps`.
1573
+ */
1574
+ componentsProps: e.object,
1575
+ /**
1576
+ * Formats the day of week displayed in the calendar header.
1577
+ * @param {string} day The day of week provided by the adapter's method `getWeekdays`.
1578
+ * @returns {string} The name to display.
1579
+ * @default (day) => day.charAt(0).toUpperCase()
1580
+ */
1581
+ dayOfWeekFormatter: e.func,
1582
+ /**
1583
+ * Default calendar month displayed when `value={null}`.
1584
+ */
1585
+ defaultCalendarMonth: e.any,
1586
+ /**
1587
+ * The default value.
1588
+ * Used when the component is not controlled.
1589
+ */
1590
+ defaultValue: e.any,
1591
+ /**
1592
+ * CSS media query when `Mobile` mode will be changed to `Desktop`.
1593
+ * @default '@media (pointer: fine)'
1594
+ * @example '@media (min-width: 720px)' or theme.breakpoints.up("sm")
1595
+ */
1596
+ desktopModeMediaQuery: e.string,
1597
+ /**
1598
+ * If `true`, the picker and text field are disabled.
1599
+ * @default false
1600
+ */
1601
+ disabled: e.bool,
1602
+ /**
1603
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
1604
+ * @default false
1605
+ */
1606
+ disableFuture: e.bool,
1607
+ /**
1608
+ * If `true`, today's date is rendering without highlighting with circle.
1609
+ * @default false
1610
+ */
1611
+ disableHighlightToday: e.bool,
1612
+ /**
1613
+ * If `true`, the open picker button will not be rendered (renders only the field).
1614
+ * @default false
1615
+ */
1616
+ disableOpenPicker: e.bool,
1617
+ /**
1618
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
1619
+ * @default false
1620
+ */
1621
+ disablePast: e.bool,
1622
+ /**
1623
+ * If `true`, the week number will be display in the calendar.
1624
+ */
1625
+ displayWeekNumber: e.bool,
1626
+ /**
1627
+ * Calendar will show more weeks in order to match this value.
1628
+ * Put it to 6 for having fix number of week in Gregorian calendars
1629
+ * @default undefined
1630
+ */
1631
+ fixedWeekNumber: e.number,
1632
+ /**
1633
+ * Format of the date when rendered in the input(s).
1634
+ * Defaults to localized format based on the used `views`.
1635
+ */
1636
+ format: e.string,
1637
+ /**
1638
+ * Density of the format when rendered in the input.
1639
+ * Setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character.
1640
+ * @default "dense"
1641
+ */
1642
+ formatDensity: e.oneOf(["dense", "spacious"]),
1643
+ /**
1644
+ * Pass a ref to the `input` element.
1645
+ */
1646
+ inputRef: e.oneOfType([e.func, e.shape({
1647
+ current: e.object
1648
+ })]),
1649
+ /**
1650
+ * The label content.
1651
+ */
1652
+ label: e.node,
1653
+ /**
1654
+ * If `true`, calls `renderLoading` instead of rendering the day calendar.
1655
+ * Can be used to preload information and show it in calendar.
1656
+ * @default false
1657
+ */
1658
+ loading: e.bool,
1659
+ /**
1660
+ * Locale for components texts.
1661
+ * Allows overriding texts coming from `LocalizationProvider` and `theme`.
1662
+ */
1663
+ localeText: e.object,
1664
+ /**
1665
+ * Maximal selectable date.
1666
+ */
1667
+ maxDate: e.any,
1668
+ /**
1669
+ * Minimal selectable date.
1670
+ */
1671
+ minDate: e.any,
1672
+ /**
1673
+ * Months rendered per row.
1674
+ * @default 3
1675
+ */
1676
+ monthsPerRow: e.oneOf([3, 4]),
1677
+ /**
1678
+ * Callback fired when the value is accepted.
1679
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1680
+ * @param {TValue} value The value that was just accepted.
1681
+ */
1682
+ onAccept: e.func,
1683
+ /**
1684
+ * Callback fired when the value changes.
1685
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1686
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
1687
+ * @param {TValue} value The new value.
1688
+ * @param {FieldChangeHandlerContext<TError>} context The context containing the validation result of the current value.
1689
+ */
1690
+ onChange: e.func,
1691
+ /**
1692
+ * Callback fired when the popup requests to be closed.
1693
+ * Use in controlled mode (see `open`).
1694
+ */
1695
+ onClose: e.func,
1696
+ /**
1697
+ * Callback fired when the error associated to the current value changes.
1698
+ * If the error has a non-null value, then the `TextField` will be rendered in `error` state.
1699
+ *
1700
+ * @template TValue The value type. Will be either the same type as `value` or `null`. Can be in `[start, end]` format in case of range value.
1701
+ * @template TError The validation error type. Will be either `string` or a `null`. Can be in `[start, end]` format in case of range value.
1702
+ * @param {TError} error The new error describing why the current value is not valid.
1703
+ * @param {TValue} value The value associated to the error.
1704
+ */
1705
+ onError: e.func,
1706
+ /**
1707
+ * Callback fired on month change.
1708
+ * @template TDate
1709
+ * @param {TDate} month The new month.
1710
+ */
1711
+ onMonthChange: e.func,
1712
+ /**
1713
+ * Callback fired when the popup requests to be opened.
1714
+ * Use in controlled mode (see `open`).
1715
+ */
1716
+ onOpen: e.func,
1717
+ /**
1718
+ * Callback fired when the selected sections change.
1719
+ * @param {FieldSelectedSections} newValue The new selected sections.
1720
+ */
1721
+ onSelectedSectionsChange: e.func,
1722
+ /**
1723
+ * Callback fired on view change.
1724
+ * @template TView
1725
+ * @param {TView} view The new view.
1726
+ */
1727
+ onViewChange: e.func,
1728
+ /**
1729
+ * Callback fired on year change.
1730
+ * @template TDate
1731
+ * @param {TDate} year The new year.
1732
+ */
1733
+ onYearChange: e.func,
1734
+ /**
1735
+ * Control the popup or dialog open state.
1736
+ * @default false
1737
+ */
1738
+ open: e.bool,
1739
+ /**
1740
+ * The default visible view.
1741
+ * Used when the component view is not controlled.
1742
+ * Must be a valid option from `views` list.
1743
+ */
1744
+ openTo: e.oneOf(["day", "month", "year"]),
1745
+ /**
1746
+ * Force rendering in particular orientation.
1747
+ */
1748
+ orientation: e.oneOf(["landscape", "portrait"]),
1749
+ readOnly: e.bool,
1750
+ /**
1751
+ * Disable heavy animations.
1752
+ * @default typeof navigator !== 'undefined' && /(android)/i.test(navigator.userAgent)
1753
+ */
1754
+ reduceAnimations: e.bool,
1755
+ /**
1756
+ * Component displaying when passed `loading` true.
1757
+ * @returns {React.ReactNode} The node to render when loading.
1758
+ * @default () => <span data-mui-test="loading-progress">...</span>
1759
+ */
1760
+ renderLoading: e.func,
1761
+ /**
1762
+ * The currently selected sections.
1763
+ * This prop accept four formats:
1764
+ * 1. If a number is provided, the section at this index will be selected.
1765
+ * 2. If an object with a `startIndex` and `endIndex` properties are provided, the sections between those two indexes will be selected.
1766
+ * 3. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.
1767
+ * 4. If `null` is provided, no section will be selected
1768
+ * If not provided, the selected sections will be handled internally.
1769
+ */
1770
+ selectedSections: e.oneOfType([e.oneOf(["all", "day", "hours", "meridiem", "minutes", "month", "seconds", "weekDay", "year"]), e.number, e.shape({
1771
+ endIndex: e.number.isRequired,
1772
+ startIndex: e.number.isRequired
1773
+ })]),
1774
+ /**
1775
+ * Disable specific date.
1776
+ * @template TDate
1777
+ * @param {TDate} day The date to test.
1778
+ * @returns {boolean} If `true` the date will be disabled.
1779
+ */
1780
+ shouldDisableDate: e.func,
1781
+ /**
1782
+ * Disable specific month.
1783
+ * @template TDate
1784
+ * @param {TDate} month The month to test.
1785
+ * @returns {boolean} If `true`, the month will be disabled.
1786
+ */
1787
+ shouldDisableMonth: e.func,
1788
+ /**
1789
+ * Disable specific year.
1790
+ * @template TDate
1791
+ * @param {TDate} year The year to test.
1792
+ * @returns {boolean} If `true`, the year will be disabled.
1793
+ */
1794
+ shouldDisableYear: e.func,
1795
+ /**
1796
+ * If `true`, days outside the current month are rendered:
1797
+ *
1798
+ * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.
1799
+ *
1800
+ * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.
1801
+ *
1802
+ * - ignored if `calendars` equals more than `1` on range pickers.
1803
+ * @default false
1804
+ */
1805
+ showDaysOutsideCurrentMonth: e.bool,
1806
+ /**
1807
+ * The props used for each component slot.
1808
+ * @default {}
1809
+ */
1810
+ slotProps: e.object,
1811
+ /**
1812
+ * Overridable component slots.
1813
+ * @default {}
1814
+ */
1815
+ slots: e.object,
1816
+ /**
1817
+ * The system prop that allows defining system overrides as well as additional CSS styles.
1818
+ */
1819
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object]),
1820
+ /**
1821
+ * The selected value.
1822
+ * Used when the component is controlled.
1823
+ */
1824
+ value: e.any,
1825
+ /**
1826
+ * The visible view.
1827
+ * Used when the component view is controlled.
1828
+ * Must be a valid option from `views` list.
1829
+ */
1830
+ view: e.oneOf(["day", "month", "year"]),
1831
+ /**
1832
+ * Define custom view renderers for each section.
1833
+ * If `null`, the section will only have field editing.
1834
+ * If `undefined`, internally defined view will be the used.
1835
+ */
1836
+ viewRenderers: e.shape({
1837
+ day: e.func,
1838
+ month: e.func,
1839
+ year: e.func
1840
+ }),
1841
+ /**
1842
+ * Available views.
1843
+ */
1844
+ views: e.arrayOf(e.oneOf(["day", "month", "year"]).isRequired),
1845
+ /**
1846
+ * Years rendered per row.
1847
+ * @default 4 on desktop, 3 on mobile
1848
+ */
1849
+ yearsPerRow: e.oneOf([3, 4])
1850
+ });
1851
+ function Ut(h) {
1852
+ const { state: d, actions: l, ownerState: u, sx: t, other: o } = We(h);
1853
+ return /* @__PURE__ */ M(Ie, { dateAdapter: gt, children: /* @__PURE__ */ E(
1854
+ He,
1855
+ {
1856
+ ownerState: u,
1857
+ sx: t,
1858
+ ...o,
1859
+ children: [
1860
+ /* @__PURE__ */ E(
1861
+ Ve,
1862
+ {
1863
+ value: d.filterType,
1864
+ exclusive: !0,
1865
+ onChange: l.handleTypeChange,
1866
+ size: "small",
1867
+ children: [
1868
+ /* @__PURE__ */ M(me, { value: "relative", children: "Relative" }),
1869
+ /* @__PURE__ */ M(me, { value: "custom", children: "Custom" })
1870
+ ]
1871
+ }
1872
+ ),
1873
+ d.filterType === "relative" && /* @__PURE__ */ M(Be, { children: d.presets.map(([n, a]) => /* @__PURE__ */ M(
1874
+ Ee,
1875
+ {
1876
+ size: "small",
1877
+ variant: "outlined",
1878
+ active: d.activePreset === n,
1879
+ onClick: () => l.handlePresetSelect(n),
1880
+ children: a
1881
+ },
1882
+ n
1883
+ )) }),
1884
+ d.filterType === "custom" && /* @__PURE__ */ E(ze, { children: [
1885
+ /* @__PURE__ */ E(ye, { flex: 1, children: [
1886
+ /* @__PURE__ */ M(be, { fontSize: 14, mb: 1, children: "From" }),
1887
+ /* @__PURE__ */ M(
1888
+ le,
1889
+ {
1890
+ value: d.minValue,
1891
+ onChange: l.handleMinDateChange,
1892
+ format: "DD/MM/YYYY",
1893
+ slotProps: {
1894
+ textField: {
1895
+ size: "small",
1896
+ fullWidth: !0,
1897
+ placeholder: "Select start date"
1898
+ },
1899
+ popper: { placement: "right-start" }
1900
+ }
1901
+ }
1902
+ )
1903
+ ] }),
1904
+ /* @__PURE__ */ E(ye, { flex: 1, children: [
1905
+ /* @__PURE__ */ M(be, { fontSize: 14, mb: 1, children: "To" }),
1906
+ /* @__PURE__ */ M(
1907
+ le,
1908
+ {
1909
+ value: d.maxValue,
1910
+ onChange: l.handleMaxDateChange,
1911
+ minDate: d.minValue || void 0,
1912
+ format: "DD/MM/YYYY",
1913
+ slotProps: {
1914
+ textField: {
1915
+ size: "small",
1916
+ fullWidth: !0,
1917
+ placeholder: "Select end date"
1918
+ },
1919
+ popper: { placement: "right-start" }
1920
+ }
1921
+ }
1922
+ )
1923
+ ] })
1924
+ ] })
1925
+ ]
1926
+ }
1927
+ ) });
1928
+ }
1929
+ export {
1930
+ gt as A,
1931
+ Ut as D
1932
+ };