@cgi-learning-hub/ui 1.7.0 → 1.8.0
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.
- package/dist/{Alert-OeEy_IGc.js → Alert-6yOnGlLE.js} +6 -6
- package/dist/{Alert-rPyl-bqs.cjs → Alert-CWHOYWde.cjs} +1 -1
- package/dist/{Alert-DPSZppEy.cjs → Alert-D4-73fYc.cjs} +1 -1
- package/dist/{Alert-BhLIlUBu.js → Alert-D6SQnjuJ.js} +83 -83
- package/dist/{Autocomplete-WZw_zCjA.js → Autocomplete-B8u-WYi5.js} +680 -664
- package/dist/Autocomplete-BA6NkciB.cjs +6 -0
- package/dist/Backdrop-Dp1hKKfU.cjs +1 -0
- package/dist/{Backdrop-CjZYrxkZ.js → Backdrop-DuOPKUSY.js} +36 -35
- package/dist/{Badge-Bwcsnbsa.js → Badge-BJ4yH_Da.js} +4 -4
- package/dist/{Badge-DFzvdVS-.cjs → Badge-XMr4Ygjv.cjs} +1 -1
- package/dist/{Box-DR3n_po_.cjs → Box-B5E7sstc.cjs} +1 -1
- package/dist/{Box-BI4osO9v.js → Box-BWETzF5p.js} +3 -3
- package/dist/Button-BJB830NI.cjs +1 -0
- package/dist/{Button-DDV5EfwJ.js → Button-C8_HxKFe.js} +95 -95
- package/dist/{ButtonBase-6TF6t2SP.js → ButtonBase-CJYV8wgs.js} +2 -2
- package/dist/{ButtonBase-Dp6sf_dP.cjs → ButtonBase-DPIkh47Q.cjs} +1 -1
- package/dist/{CardContent-COfaU6E0.cjs → CardContent-H0z20SY7.cjs} +1 -1
- package/dist/{CardContent-D3uGcxlr.js → CardContent-V9JMSLmA.js} +3 -3
- package/dist/Checkbox-BZPMiwbF.cjs +1 -0
- package/dist/{Checkbox-BfBDowB2.js → Checkbox-DMMz_IAP.js} +86 -86
- package/dist/Chip-BDVqkZZM.js +573 -0
- package/dist/Chip-DMBSp59F.cjs +1 -0
- package/dist/{CircularProgress-CXXyPavb.cjs → CircularProgress-BMVNeiSf.cjs} +1 -1
- package/dist/{CircularProgress-DZuYTFz-.js → CircularProgress-CrWnCGqN.js} +3 -3
- package/dist/{Close-7S2hSoFB.cjs → Close-2eEmvKPH.cjs} +1 -1
- package/dist/{Close-DEMecSZ6.js → Close-Cr2OT0GV.js} +1 -1
- package/dist/{CloseRounded-DS-4-gMR.cjs → CloseRounded-B6cT7aGi.cjs} +1 -1
- package/dist/{CloseRounded-CioV1GK3.js → CloseRounded-BrGeesu1.js} +1 -1
- package/dist/{CustomTreeItem-Bg8Ub4dn.cjs → CustomTreeItem-BXgsWbl_.cjs} +1 -1
- package/dist/{CustomTreeItem-B9FylIhL.js → CustomTreeItem-DhB3ECa2.js} +12 -12
- package/dist/DatePicker-DtPvvFiK.cjs +16 -0
- package/dist/{DatePicker-DasS2wq6.js → DatePicker-ofISDY8Q.js} +2822 -2821
- package/dist/DefaultPropsProvider-BFTLy05-.cjs +1 -0
- package/dist/DefaultPropsProvider-nxIPd34m.js +312 -0
- package/dist/{Delete-BvkBJXEM.cjs → Delete-BF63Gpr-.cjs} +1 -1
- package/dist/{Delete-B5VTV71K.js → Delete-CwWpjEOT.js} +1 -1
- package/dist/Dialog-Cymf3DJ2.cjs +1 -0
- package/dist/{Dialog-DEWB041V.js → Dialog-eK1zTFBm.js} +10 -10
- package/dist/{DialogContent-C294EkoQ.js → DialogContent-BsPZJR2a.js} +3 -3
- package/dist/{DialogContent-DXfUge3c.cjs → DialogContent-Gy1s3ela.cjs} +1 -1
- package/dist/{DialogTitle-y2PrK6uU.cjs → DialogTitle-BDyrzRXS.cjs} +1 -1
- package/dist/{DialogTitle-BSiId6Q1.js → DialogTitle-CaAd59jN.js} +5 -5
- package/dist/Divider-BzdMIEJJ.cjs +1 -0
- package/dist/{Divider-kKp4VqHh.js → Divider-D_gbcyWE.js} +26 -26
- package/dist/{Folder-BgQP5-Ve.js → Folder-COKXTjZ4.js} +1 -1
- package/dist/{Folder-BfLBqDHM.cjs → Folder-D0fZbyc-.cjs} +1 -1
- package/dist/{FormLabel-JrZR9kt8.cjs → FormLabel-BLySmpkL.cjs} +1 -1
- package/dist/{FormLabel-B3WAnPGP.js → FormLabel-DmLckqyT.js} +3 -3
- package/dist/{Grid-BHYQ3JNy.cjs → Grid-DFaRzlB4.cjs} +1 -1
- package/dist/{Grid-DFk-4jnZ.js → Grid-vM--ojbL.js} +7 -7
- package/dist/{Grow-BfjkXlG8.js → Grow-DE5x7F5S.js} +1 -1
- package/dist/{Grow-BULCy6GX.cjs → Grow-ovNT7Sot.cjs} +1 -1
- package/dist/IconButton-DCQiOq7W.cjs +2 -0
- package/dist/{IconButton-BYvak8Nw.js → IconButton-f9EZgwvD.js} +66 -66
- package/dist/{InputAdornment-BBZXvhZ-.js → InputAdornment-B615VSjF.js} +4 -4
- package/dist/{InputAdornment-DvHQMisT.cjs → InputAdornment-BrrJ8chb.cjs} +1 -1
- package/dist/{InputBase-BS5oknUK.js → InputBase-BCbPPzW1.js} +4 -4
- package/dist/{InputBase-DPdKpmOz.cjs → InputBase-CRrFludT.cjs} +1 -1
- package/dist/Link-CMes5bws.cjs +1 -0
- package/dist/{Link-DYPjEdvu.js → Link-GBRiPElP.js} +52 -39
- package/dist/{List-CB_cqCSw.js → List-DZkddOsr.js} +2 -2
- package/dist/{List-t9bWFewp.cjs → List-E_TAQ1jJ.cjs} +1 -1
- package/dist/{ListItem-DAZQEir2.js → ListItem-CMoibMI7.js} +4 -4
- package/dist/{ListItem-DP7YmqZk.cjs → ListItem-qTKJTg7f.cjs} +1 -1
- package/dist/ListItemText-B3z5dHrQ.cjs +1 -0
- package/dist/{ListItemText-qfdqJP77.js → ListItemText-BbrPf29n.js} +139 -139
- package/dist/{Menu-9BK8jmzW.js → Menu-3UjlpKRJ.js} +27 -27
- package/dist/{Menu-C61wLk41.cjs → Menu-C0uY9Dd0.cjs} +1 -1
- package/dist/MenuItem--a878rw9.cjs +1 -0
- package/dist/{MenuItem-C8nduSzJ.js → MenuItem-CHEWce5u.js} +94 -94
- package/dist/{Modal-DkzrSKHd.cjs → Modal-CdcolE0C.cjs} +1 -1
- package/dist/{Modal-D3Q9vEAI.js → Modal-Du5LfkZg.js} +5 -5
- package/dist/{MoreVert-C-Rhn-xK.cjs → MoreVert-DZjEMvuw.cjs} +1 -1
- package/dist/{MoreVert-C_W1m_Z_.js → MoreVert-PLU7h8WO.js} +1 -1
- package/dist/{Paper-IQckggbn.js → Paper-BylmTlAJ.js} +4 -4
- package/dist/{Paper-BbqZL5vx.cjs → Paper-DgHGh6vt.cjs} +1 -1
- package/dist/{Popper-DvWx5tR3.cjs → Popper-BsNp09Gg.cjs} +1 -1
- package/dist/{Popper-CfFLBZ7-.js → Popper-CvQLHjwo.js} +3 -3
- package/dist/Radio-CLNMQGNf.cjs +1 -0
- package/dist/{Radio-DKiu6lVB.js → Radio-CbYgci2-.js} +195 -190
- package/dist/{RadioGroup-DFKMlNWO.js → RadioGroup-D-Cq8SmM.js} +3 -3
- package/dist/{RadioGroup-Cvnwt4JE.cjs → RadioGroup-Dyf8fKum.cjs} +1 -1
- package/dist/{Select-CpNF3a57.js → Select-Bx0yVOZE.js} +641 -607
- package/dist/Select-CRVPbesC.cjs +3 -0
- package/dist/{Stack-CIyfgZCM.cjs → Stack-COmIqMxy.cjs} +1 -1
- package/dist/{Stack-DSJ2DqNd.js → Stack-CbK4a2n5.js} +5 -5
- package/dist/{Stepper-CXHfLPtA.cjs → Stepper-CWq9t5jy.cjs} +1 -1
- package/dist/{Stepper-DE2l91K0.js → Stepper-DU9nixCp.js} +6 -6
- package/dist/{Switch-BIcwDf_P.js → Switch-Bm3Gclye.js} +102 -99
- package/dist/Switch-kHZOqjeU.cjs +1 -0
- package/dist/{SwitchBase-DZV8S81Z.js → SwitchBase-9CKmTWdZ.js} +47 -44
- package/dist/SwitchBase-Hbqxtooi.cjs +1 -0
- package/dist/{Tab-Ckr6Bn59.js → Tab-DBCv1T9W.js} +58 -58
- package/dist/{Tab-r5imbU9z.cjs → Tab-DnxFjc89.cjs} +1 -1
- package/dist/{TextField-Brw3X9cn.cjs → TextField-BhdmUny-.cjs} +1 -1
- package/dist/{TextField-BenBw4oE.js → TextField-V-EQ80Y6.js} +6 -6
- package/dist/ToggleButtonGroup-B2FBwoDV.cjs +138 -0
- package/dist/{ToggleButtonGroup-DhtAoGtM.js → ToggleButtonGroup-_UpIjysl.js} +1567 -1537
- package/dist/{Tooltip-KkgNQm4r.js → Tooltip-DKHOTDh0.js} +81 -81
- package/dist/{Tooltip-BAOKe3SY.cjs → Tooltip-DYTDIzp4.cjs} +3 -3
- package/dist/{Typography-CSTmKyr8.cjs → Typography-BvRUTdLD.cjs} +1 -1
- package/dist/{Typography-Dy8r_tT2.js → Typography-o0iALAVg.js} +4 -4
- package/dist/components/ActionBar/ActionBar.cjs.js +1 -0
- package/dist/components/ActionBar/ActionBar.d.ts +3 -0
- package/dist/components/ActionBar/ActionBar.es.js +63 -0
- package/dist/components/ActionBar/index.cjs.js +1 -0
- package/dist/components/ActionBar/index.d.ts +2 -0
- package/dist/components/ActionBar/index.es.js +4 -0
- package/dist/components/ActionBar/style.cjs.js +1 -0
- package/dist/components/ActionBar/style.es.js +61 -0
- package/dist/components/ActionBar/types.cjs.js +1 -0
- package/dist/components/ActionBar/types.d.ts +17 -0
- package/dist/components/ActionBar/types.es.js +1 -0
- package/dist/components/Alert/Alert.cjs.js +1 -1
- package/dist/components/Alert/Alert.es.js +4 -4
- package/dist/components/Alert/index.cjs.js +1 -1
- package/dist/components/Alert/index.es.js +1 -1
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +2 -2
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +1 -1
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dialog/Dialog.cjs.js +1 -1
- package/dist/components/Dialog/Dialog.es.js +2 -2
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
- package/dist/components/Dropzone/Dropzone.es.js +3 -3
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.es.js +22 -20
- package/dist/components/FileList/FileIcon.cjs.js +1 -1
- package/dist/components/FileList/FileIcon.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +4 -4
- package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
- package/dist/components/FolderCard/FolderCard.es.js +2 -2
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
- package/dist/components/ImagePicker/ImagePicker.es.js +4 -4
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
- package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
- package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TreeView/TreeView.cjs.js +2 -2
- package/dist/components/TreeView/TreeView.es.js +39 -39
- package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -1
- package/dist/components/TreeView/components/CustomTreeItem.es.js +2 -2
- package/dist/components/TreeView/types.d.ts +1 -0
- package/dist/components/TreeView/utils.cjs.js +1 -1
- package/dist/components/TreeView/utils.es.js +3 -3
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.es.js +302 -300
- package/dist/components/stories/ActionBar.stories.cjs.js +1 -0
- package/dist/components/stories/ActionBar.stories.d.ts +11 -0
- package/dist/components/stories/ActionBar.stories.es.js +206 -0
- package/dist/components/stories/Alert.stories.cjs.js +1 -1
- package/dist/components/stories/Alert.stories.es.js +1 -1
- package/dist/components/stories/Autocomplete.stories.cjs.js +1 -1
- package/dist/components/stories/Autocomplete.stories.es.js +2 -2
- package/dist/components/stories/Badge.stories.cjs.js +1 -1
- package/dist/components/stories/Badge.stories.es.js +2 -2
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.cjs.js +1 -1
- package/dist/components/stories/ButtonGroup.stories.es.js +6 -6
- package/dist/components/stories/Card.stories.cjs.js +1 -1
- package/dist/components/stories/Card.stories.es.js +2 -2
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +1 -1
- package/dist/components/stories/Chip.stories.cjs.js +1 -1
- package/dist/components/stories/Chip.stories.es.js +1 -1
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -1
- package/dist/components/stories/Dialog.stories.es.js +2 -2
- package/dist/components/stories/Divider.stories.cjs.js +1 -1
- package/dist/components/stories/Divider.stories.es.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
- package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +2 -2
- package/dist/components/stories/Link.stories.cjs.js +1 -1
- package/dist/components/stories/Link.stories.es.js +1 -1
- package/dist/components/stories/Menu.stories.cjs.js +1 -1
- package/dist/components/stories/Menu.stories.es.js +2 -2
- package/dist/components/stories/Paper.stories.cjs.js +1 -1
- package/dist/components/stories/Paper.stories.es.js +1 -1
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +3 -3
- package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
- package/dist/components/stories/ResourceCard.stories.es.js +1 -1
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/Stepper.stories.cjs.js +1 -1
- package/dist/components/stories/Stepper.stories.es.js +4 -4
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +1 -1
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
- package/dist/components/stories/Tooltip.stories.es.js +2 -2
- package/dist/components/stories/TreeView.stories.cjs.js +1 -1
- package/dist/components/stories/TreeView.stories.es.js +12 -12
- package/dist/components/stories/Typography.stories.cjs.js +1 -1
- package/dist/components/stories/Typography.stories.es.js +1 -1
- package/dist/{createSvgIcon-IET9soda.cjs → createSvgIcon-BJRigbha.cjs} +1 -1
- package/dist/{createSvgIcon-B1E6Wo8z.js → createSvgIcon-BV54rC7k.js} +3 -3
- package/dist/{dividerClasses-C07OJKLL.cjs → dividerClasses-CbwbHy8r.cjs} +1 -1
- package/dist/{dividerClasses-BPJZ8SFy.js → dividerClasses-DDXs86hs.js} +1 -1
- package/dist/{extendSxProp-ZMCunXYm.cjs → extendSxProp-CxMSlckP.cjs} +1 -1
- package/dist/{extendSxProp-CesAxox9.js → extendSxProp-XouBF-Ct.js} +1 -1
- package/dist/identifier-DBvccNCw.cjs +55 -0
- package/dist/identifier-Dnc8T93Z.js +2673 -0
- package/dist/{index-8G2jvqZ8.js → index-9te7SXrs.js} +47 -41
- package/dist/index-BkNQtUZJ.cjs +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +302 -300
- package/dist/{listItemTextClasses-B5VhLd9W.js → listItemTextClasses-4p_83pwn.js} +1 -1
- package/dist/{listItemTextClasses-CJDKfXvl.cjs → listItemTextClasses-Cxo4anAo.cjs} +1 -1
- package/dist/{memoTheme-BKfsJx_F.cjs → memoTheme-Dv-rDqFz.cjs} +1 -1
- package/dist/{memoTheme-DAFDflPY.js → memoTheme-K37vidlb.js} +1 -1
- package/dist/{mergeSlotProps-DXwOW3FE.cjs → mergeSlotProps-CXO1f70l.cjs} +1 -1
- package/dist/{mergeSlotProps-ChAye7iz.js → mergeSlotProps-DSWiBSbD.js} +1 -1
- package/dist/styled-B7pKW9DQ.cjs +1 -0
- package/dist/styled-JnAdiSL5.js +5 -0
- package/dist/{useSlot-BzdKwDQ5.js → useSlot-GooGQrej.js} +1 -1
- package/dist/{useSlot-C2FjoUpF.cjs → useSlot-ONna5RyM.cjs} +1 -1
- package/dist/{useSlotProps-DdMuGelR.js → useSlotProps-C34Wr67s.js} +1 -1
- package/dist/{useSlotProps-CrQGQLdL.cjs → useSlotProps-CtYqUyy1.cjs} +1 -1
- package/dist/{useTheme-XJ9sFCWX.js → useTheme-CH7DA5fq.js} +3 -3
- package/dist/{useTheme-BLMJDSsv.cjs → useTheme-D6wPRo0G.cjs} +1 -1
- package/dist/{useTheme-CooC_6Ep.cjs → useTheme-DkiCyF-9.cjs} +1 -1
- package/dist/{useTheme--i9fxE_A.js → useTheme-VH02z7nF.js} +1 -1
- package/dist/{useThemeProps-B9E_wuN9.cjs → useThemeProps-BU5PNyhK.cjs} +1 -1
- package/dist/useThemeProps-CnZ-QgwI.cjs +1 -0
- package/dist/useThemeProps-DT4QxdFn.js +17 -0
- package/dist/{useThemeProps-B4VFkcP0.js → useThemeProps-DZ05-54P.js} +2 -2
- package/package.json +7 -7
- package/dist/Autocomplete-BdPO9SAd.cjs +0 -6
- package/dist/Backdrop-DeNTZlA5.cjs +0 -1
- package/dist/Button-DyJV5llI.cjs +0 -1
- package/dist/Checkbox-3hTSv0EZ.cjs +0 -1
- package/dist/Chip-BG0OU0KI.cjs +0 -1
- package/dist/Chip-DmjZbx_X.js +0 -572
- package/dist/DatePicker-CH8XRum0.cjs +0 -16
- package/dist/DefaultPropsProvider-Cnf49AIv.cjs +0 -1
- package/dist/DefaultPropsProvider-DqazQPtr.js +0 -306
- package/dist/Dialog-Btagj_Gt.cjs +0 -1
- package/dist/Divider-NermA5hZ.cjs +0 -1
- package/dist/IconButton-CjtMjZ9e.cjs +0 -2
- package/dist/Link-BwbY60dS.cjs +0 -1
- package/dist/ListItemText-cVnimPLO.cjs +0 -1
- package/dist/MenuItem-DHM3qxwr.cjs +0 -1
- package/dist/Radio-Bwh_t6PC.cjs +0 -1
- package/dist/Select-3HP39Z7o.cjs +0 -3
- package/dist/Switch-CTEqKDiv.cjs +0 -1
- package/dist/SwitchBase-P3zHVmLX.cjs +0 -1
- package/dist/ToggleButtonGroup-CA1cSosV.cjs +0 -138
- package/dist/identifier-BoZelETM.cjs +0 -55
- package/dist/identifier-PWESmBq6.js +0 -2598
- package/dist/index-D3lMWU76.cjs +0 -1
- package/dist/styled-C7gyRDlj.js +0 -5
- package/dist/styled-Cax0O00h.cjs +0 -1
- package/dist/useThemeProps-C1A3rnbh.cjs +0 -1
- package/dist/useThemeProps-CQ9rZe7g.js +0 -17
|
@@ -1,350 +1,365 @@
|
|
|
1
1
|
import * as x from "react";
|
|
2
2
|
import { P as t } from "./index-Sy88PpwE.js";
|
|
3
|
-
import { F as
|
|
4
|
-
import { A as zt, f as
|
|
5
|
-
import { i as
|
|
6
|
-
import { C as jt } from "./Close-
|
|
7
|
-
import { m as
|
|
8
|
-
import { u as
|
|
3
|
+
import { F as Dt, G as Nt, H as Je, K as Ye } from "./identifier-Dnc8T93Z.js";
|
|
4
|
+
import { A as zt, f as xe, o as St, i as ft } from "./Select-Bx0yVOZE.js";
|
|
5
|
+
import { i as pe } from "./InputBase-BCbPPzW1.js";
|
|
6
|
+
import { C as jt } from "./Close-Cr2OT0GV.js";
|
|
7
|
+
import { m as ue } from "./memoTheme-K37vidlb.js";
|
|
8
|
+
import { u as gt } from "./useSlot-GooGQrej.js";
|
|
9
9
|
import { jsx as A, jsxs as Ke } from "react/jsx-runtime";
|
|
10
|
-
import { u as
|
|
10
|
+
import { u as Et, s as F, c as Mt } from "./DefaultPropsProvider-nxIPd34m.js";
|
|
11
11
|
import { u as Ut } from "./useId-CK6Kn3Tn.js";
|
|
12
|
-
import { u as
|
|
12
|
+
import { u as mt } from "./useControlled-nm4pBabJ.js";
|
|
13
13
|
import { u as Bt } from "./usePreviousProps-ByGlbpJ6.js";
|
|
14
14
|
import { a as _e } from "./useEventCallback-Y2KwRxBw.js";
|
|
15
15
|
import { s as Wt } from "./Portal-BlK6ttxt.js";
|
|
16
|
-
import { P as
|
|
17
|
-
import { P as
|
|
18
|
-
import { C as Gt } from "./Chip-
|
|
19
|
-
import { I as
|
|
16
|
+
import { P as Vt } from "./Paper-BylmTlAJ.js";
|
|
17
|
+
import { P as Ft } from "./Popper-CvQLHjwo.js";
|
|
18
|
+
import { C as Gt } from "./Chip-BDVqkZZM.js";
|
|
19
|
+
import { I as Ht } from "./IconButton-f9EZgwvD.js";
|
|
20
20
|
import { c as Tt } from "./chainPropTypes-D9lkm76m.js";
|
|
21
21
|
import { i as qt } from "./integerPropType-BihGt2aU.js";
|
|
22
|
-
function vt(
|
|
22
|
+
function vt({
|
|
23
|
+
array1: n,
|
|
24
|
+
array2: a,
|
|
25
|
+
parser: u = (f) => f
|
|
26
|
+
}) {
|
|
27
|
+
return n && a && n.length === a.length && n.every((f, $) => u(f) === u(a[$]));
|
|
28
|
+
}
|
|
29
|
+
function At(n) {
|
|
23
30
|
return n.normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
24
31
|
}
|
|
25
32
|
function Kt(n = {}) {
|
|
26
33
|
const {
|
|
27
|
-
ignoreAccents:
|
|
28
|
-
ignoreCase:
|
|
29
|
-
limit:
|
|
30
|
-
matchFrom:
|
|
31
|
-
stringify:
|
|
34
|
+
ignoreAccents: a = !0,
|
|
35
|
+
ignoreCase: u = !0,
|
|
36
|
+
limit: f,
|
|
37
|
+
matchFrom: $ = "any",
|
|
38
|
+
stringify: R,
|
|
32
39
|
trim: v = !1
|
|
33
40
|
} = n;
|
|
34
|
-
return (
|
|
35
|
-
inputValue:
|
|
36
|
-
getOptionLabel:
|
|
41
|
+
return (D, {
|
|
42
|
+
inputValue: U,
|
|
43
|
+
getOptionLabel: O
|
|
37
44
|
}) => {
|
|
38
|
-
let
|
|
39
|
-
|
|
40
|
-
const
|
|
41
|
-
let
|
|
42
|
-
return
|
|
43
|
-
}) :
|
|
44
|
-
return typeof
|
|
45
|
+
let T = v ? U.trim() : U;
|
|
46
|
+
u && (T = T.toLowerCase()), a && (T = At(T));
|
|
47
|
+
const B = T ? D.filter((ce) => {
|
|
48
|
+
let N = (R || O)(ce);
|
|
49
|
+
return u && (N = N.toLowerCase()), a && (N = At(N)), $ === "start" ? N.startsWith(T) : N.includes(T);
|
|
50
|
+
}) : D;
|
|
51
|
+
return typeof f == "number" ? B.slice(0, f) : B;
|
|
45
52
|
};
|
|
46
53
|
}
|
|
47
54
|
const _t = Kt(), wt = 5, Jt = (n) => {
|
|
48
|
-
var
|
|
49
|
-
return n.current !== null && ((
|
|
55
|
+
var a;
|
|
56
|
+
return n.current !== null && ((a = n.current.parentElement) == null ? void 0 : a.contains(document.activeElement));
|
|
50
57
|
}, Xt = [];
|
|
51
|
-
function
|
|
52
|
-
if (
|
|
58
|
+
function Lt(n, a, u, f) {
|
|
59
|
+
if (a || n == null || f)
|
|
53
60
|
return "";
|
|
54
|
-
const
|
|
55
|
-
return typeof
|
|
61
|
+
const $ = u(n);
|
|
62
|
+
return typeof $ == "string" ? $ : "";
|
|
56
63
|
}
|
|
57
64
|
function Yt(n) {
|
|
58
65
|
const {
|
|
59
66
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
60
|
-
unstable_isActiveElementInListbox:
|
|
67
|
+
unstable_isActiveElementInListbox: a = Jt,
|
|
61
68
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
62
|
-
unstable_classNamePrefix:
|
|
63
|
-
autoComplete:
|
|
64
|
-
autoHighlight:
|
|
65
|
-
autoSelect:
|
|
69
|
+
unstable_classNamePrefix: u = "Mui",
|
|
70
|
+
autoComplete: f = !1,
|
|
71
|
+
autoHighlight: $ = !1,
|
|
72
|
+
autoSelect: R = !1,
|
|
66
73
|
blurOnSelect: v = !1,
|
|
67
|
-
clearOnBlur:
|
|
68
|
-
clearOnEscape:
|
|
69
|
-
componentName:
|
|
70
|
-
defaultValue:
|
|
71
|
-
disableClearable:
|
|
72
|
-
disableCloseOnSelect:
|
|
73
|
-
disabled:
|
|
74
|
-
disabledItemsFocusable:
|
|
75
|
-
disableListWrap:
|
|
76
|
-
filterOptions:
|
|
77
|
-
filterSelectedOptions:
|
|
78
|
-
freeSolo:
|
|
79
|
-
getOptionDisabled:
|
|
80
|
-
getOptionKey:
|
|
74
|
+
clearOnBlur: D = !n.freeSolo,
|
|
75
|
+
clearOnEscape: U = !1,
|
|
76
|
+
componentName: O = "useAutocomplete",
|
|
77
|
+
defaultValue: T = n.multiple ? Xt : null,
|
|
78
|
+
disableClearable: B = !1,
|
|
79
|
+
disableCloseOnSelect: ce = !1,
|
|
80
|
+
disabled: N,
|
|
81
|
+
disabledItemsFocusable: Le = !1,
|
|
82
|
+
disableListWrap: ke = !1,
|
|
83
|
+
filterOptions: bt = _t,
|
|
84
|
+
filterSelectedOptions: Re = !1,
|
|
85
|
+
freeSolo: de = !1,
|
|
86
|
+
getOptionDisabled: W,
|
|
87
|
+
getOptionKey: De,
|
|
81
88
|
getOptionLabel: Qe = (o) => o.label ?? o,
|
|
82
|
-
groupBy:
|
|
89
|
+
groupBy: re,
|
|
83
90
|
handleHomeEndKeys: Ze = !n.freeSolo,
|
|
84
|
-
id:
|
|
85
|
-
includeInputInList:
|
|
86
|
-
inputValue:
|
|
91
|
+
id: ht,
|
|
92
|
+
includeInputInList: Ie = !1,
|
|
93
|
+
inputValue: Ne,
|
|
87
94
|
isOptionEqualToValue: Y = (o, e) => o === e,
|
|
88
|
-
multiple:
|
|
95
|
+
multiple: c = !1,
|
|
89
96
|
onChange: et,
|
|
90
97
|
onClose: tt,
|
|
91
|
-
onHighlightChange:
|
|
98
|
+
onHighlightChange: Ee,
|
|
92
99
|
onInputChange: Q,
|
|
93
|
-
onOpen:
|
|
94
|
-
open:
|
|
95
|
-
openOnFocus:
|
|
96
|
-
options:
|
|
97
|
-
readOnly:
|
|
98
|
-
renderValue:
|
|
100
|
+
onOpen: Me,
|
|
101
|
+
open: yt,
|
|
102
|
+
openOnFocus: xt = !1,
|
|
103
|
+
options: It,
|
|
104
|
+
readOnly: G = !1,
|
|
105
|
+
renderValue: w,
|
|
99
106
|
selectOnFocus: ot = !n.freeSolo,
|
|
100
|
-
value:
|
|
101
|
-
} = n,
|
|
102
|
-
let
|
|
103
|
-
|
|
107
|
+
value: Ve
|
|
108
|
+
} = n, E = Ut(ht);
|
|
109
|
+
let P = Qe;
|
|
110
|
+
P = (o) => {
|
|
104
111
|
const e = Qe(o);
|
|
105
112
|
if (typeof e != "string") {
|
|
106
113
|
if (process.env.NODE_ENV !== "production") {
|
|
107
114
|
const r = e === void 0 ? "undefined" : `${typeof e} (${e})`;
|
|
108
|
-
console.error(`MUI: The \`getOptionLabel\` method of ${
|
|
115
|
+
console.error(`MUI: The \`getOptionLabel\` method of ${O} returned ${r} instead of a string for ${JSON.stringify(o)}.`);
|
|
109
116
|
}
|
|
110
117
|
return String(e);
|
|
111
118
|
}
|
|
112
119
|
return e;
|
|
113
120
|
};
|
|
114
|
-
const
|
|
115
|
-
controlled:
|
|
116
|
-
default:
|
|
117
|
-
name:
|
|
118
|
-
}), [g,
|
|
119
|
-
controlled:
|
|
120
|
-
default:
|
|
121
|
-
name:
|
|
121
|
+
const Oe = x.useRef(!1), Pe = x.useRef(!0), h = x.useRef(null), V = x.useRef(null), [Ce, Ot] = x.useState(null), [M, Fe] = x.useState(-1), nt = $ ? 0 : -1, S = x.useRef(nt), Pt = x.useRef(Lt(T ?? Ve, c, P)).current, [l, $e] = mt({
|
|
122
|
+
controlled: Ve,
|
|
123
|
+
default: T,
|
|
124
|
+
name: O
|
|
125
|
+
}), [g, ae] = mt({
|
|
126
|
+
controlled: Ne,
|
|
127
|
+
default: Pt,
|
|
128
|
+
name: O,
|
|
122
129
|
state: "inputValue"
|
|
123
|
-
}), [
|
|
124
|
-
if (!(
|
|
130
|
+
}), [fe, He] = x.useState(!1), ge = x.useCallback((o, e, r) => {
|
|
131
|
+
if (!(c ? l.length < e.length : e !== null) && !D)
|
|
125
132
|
return;
|
|
126
|
-
const
|
|
127
|
-
g !==
|
|
128
|
-
}, [
|
|
129
|
-
controlled:
|
|
133
|
+
const i = Lt(e, c, P, w);
|
|
134
|
+
g !== i && (ae(i), Q && Q(o, i, r));
|
|
135
|
+
}, [P, g, c, Q, ae, D, l, w]), [q, se] = mt({
|
|
136
|
+
controlled: yt,
|
|
130
137
|
default: !1,
|
|
131
|
-
name:
|
|
138
|
+
name: O,
|
|
132
139
|
state: "open"
|
|
133
|
-
}), [
|
|
134
|
-
|
|
140
|
+
}), [Ct, me] = x.useState(!0), ze = !c && l != null && g === P(l), L = q && !G, m = L ? bt(
|
|
141
|
+
It.filter((o) => !(Re && (c ? l : [l]).some((e) => e !== null && Y(o, e)))),
|
|
135
142
|
// we use the empty string to manipulate `filterOptions` to not filter any options
|
|
136
143
|
// i.e. the filter predicate always returns true
|
|
137
144
|
{
|
|
138
|
-
inputValue:
|
|
139
|
-
getOptionLabel:
|
|
145
|
+
inputValue: ze && Ct ? "" : g,
|
|
146
|
+
getOptionLabel: P
|
|
140
147
|
}
|
|
141
|
-
) : [],
|
|
142
|
-
filteredOptions:
|
|
143
|
-
value:
|
|
148
|
+
) : [], H = Bt({
|
|
149
|
+
filteredOptions: m,
|
|
150
|
+
value: l,
|
|
144
151
|
inputValue: g
|
|
145
152
|
});
|
|
146
153
|
x.useEffect(() => {
|
|
147
|
-
const o =
|
|
148
|
-
|
|
149
|
-
}, [
|
|
150
|
-
const
|
|
154
|
+
const o = l !== H.value;
|
|
155
|
+
fe && !o || de && !o || ge(null, l, "reset");
|
|
156
|
+
}, [l, ge, fe, H.value, de]);
|
|
157
|
+
const je = q && m.length > 0 && !G, z = _e((o) => {
|
|
151
158
|
if (o === -1)
|
|
152
159
|
h.current.focus();
|
|
153
160
|
else {
|
|
154
|
-
const e =
|
|
155
|
-
|
|
161
|
+
const e = w ? "data-item-index" : "data-tag-index";
|
|
162
|
+
Ce.querySelector(`[${e}="${o}"]`).focus();
|
|
156
163
|
}
|
|
157
164
|
});
|
|
158
165
|
x.useEffect(() => {
|
|
159
|
-
|
|
160
|
-
}, [
|
|
166
|
+
c && M > l.length - 1 && (Fe(-1), z(-1));
|
|
167
|
+
}, [l, c, M, z]);
|
|
161
168
|
function rt(o, e) {
|
|
162
|
-
if (!
|
|
169
|
+
if (!V.current || o < 0 || o >= m.length)
|
|
163
170
|
return -1;
|
|
164
171
|
let r = o;
|
|
165
172
|
for (; ; ) {
|
|
166
|
-
const
|
|
167
|
-
if (
|
|
173
|
+
const s = V.current.querySelector(`[data-option-index="${r}"]`), i = Le ? !1 : !s || s.disabled || s.getAttribute("aria-disabled") === "true";
|
|
174
|
+
if (s && s.hasAttribute("tabindex") && !i)
|
|
168
175
|
return r;
|
|
169
|
-
if (e === "next" ? r = (r + 1) %
|
|
176
|
+
if (e === "next" ? r = (r + 1) % m.length : r = (r - 1 + m.length) % m.length, r === o)
|
|
170
177
|
return -1;
|
|
171
178
|
}
|
|
172
179
|
}
|
|
173
|
-
const
|
|
180
|
+
const K = _e(({
|
|
174
181
|
event: o,
|
|
175
182
|
index: e,
|
|
176
183
|
reason: r
|
|
177
184
|
}) => {
|
|
178
|
-
if (
|
|
185
|
+
if (S.current = e, e === -1 ? h.current.removeAttribute("aria-activedescendant") : h.current.setAttribute("aria-activedescendant", `${E}-option-${e}`), Ee && ["mouse", "keyboard", "touch"].includes(r) && Ee(o, e === -1 ? null : m[e], r), !V.current)
|
|
179
186
|
return;
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
let
|
|
183
|
-
if (
|
|
187
|
+
const s = V.current.querySelector(`[role="option"].${u}-focused`);
|
|
188
|
+
s && (s.classList.remove(`${u}-focused`), s.classList.remove(`${u}-focusVisible`));
|
|
189
|
+
let i = V.current;
|
|
190
|
+
if (V.current.getAttribute("role") !== "listbox" && (i = V.current.parentElement.querySelector('[role="listbox"]')), !i)
|
|
184
191
|
return;
|
|
185
192
|
if (e === -1) {
|
|
186
|
-
|
|
193
|
+
i.scrollTop = 0;
|
|
187
194
|
return;
|
|
188
195
|
}
|
|
189
|
-
const
|
|
190
|
-
if (
|
|
191
|
-
const y =
|
|
192
|
-
|
|
196
|
+
const b = V.current.querySelector(`[data-option-index="${e}"]`);
|
|
197
|
+
if (b && (b.classList.add(`${u}-focused`), r === "keyboard" && b.classList.add(`${u}-focusVisible`), i.scrollHeight > i.clientHeight && r !== "mouse" && r !== "touch")) {
|
|
198
|
+
const y = b, k = i.clientHeight + i.scrollTop, ye = y.offsetTop + y.offsetHeight;
|
|
199
|
+
ye > k ? i.scrollTop = ye - i.clientHeight : y.offsetTop - y.offsetHeight * (re ? 1.3 : 0) < i.scrollTop && (i.scrollTop = y.offsetTop - y.offsetHeight * (re ? 1.3 : 0));
|
|
193
200
|
}
|
|
194
|
-
}),
|
|
201
|
+
}), j = _e(({
|
|
195
202
|
event: o,
|
|
196
203
|
diff: e,
|
|
197
204
|
direction: r = "next",
|
|
198
|
-
reason:
|
|
205
|
+
reason: s
|
|
199
206
|
}) => {
|
|
200
|
-
if (!
|
|
207
|
+
if (!L)
|
|
201
208
|
return;
|
|
202
|
-
const
|
|
203
|
-
const y =
|
|
209
|
+
const b = rt((() => {
|
|
210
|
+
const y = m.length - 1;
|
|
204
211
|
if (e === "reset")
|
|
205
212
|
return nt;
|
|
206
213
|
if (e === "start")
|
|
207
214
|
return 0;
|
|
208
215
|
if (e === "end")
|
|
209
216
|
return y;
|
|
210
|
-
const
|
|
211
|
-
return
|
|
217
|
+
const k = S.current + e;
|
|
218
|
+
return k < 0 ? k === -1 && Ie ? -1 : ke && S.current !== -1 || Math.abs(e) > 1 ? 0 : y : k > y ? k === y + 1 && Ie ? -1 : ke || Math.abs(e) > 1 ? y : 0 : k;
|
|
212
219
|
})(), r);
|
|
213
|
-
if (
|
|
214
|
-
index:
|
|
215
|
-
reason:
|
|
220
|
+
if (K({
|
|
221
|
+
index: b,
|
|
222
|
+
reason: s,
|
|
216
223
|
event: o
|
|
217
|
-
}),
|
|
218
|
-
if (
|
|
224
|
+
}), f && e !== "reset")
|
|
225
|
+
if (b === -1)
|
|
219
226
|
h.current.value = g;
|
|
220
227
|
else {
|
|
221
|
-
const y =
|
|
228
|
+
const y = P(m[b]);
|
|
222
229
|
h.current.value = y, y.toLowerCase().indexOf(g.toLowerCase()) === 0 && g.length > 0 && h.current.setSelectionRange(g.length, y.length);
|
|
223
230
|
}
|
|
231
|
+
}), Ue = !vt({
|
|
232
|
+
array1: H.filteredOptions,
|
|
233
|
+
array2: m,
|
|
234
|
+
parser: P
|
|
224
235
|
}), at = () => {
|
|
225
236
|
const o = (e, r) => {
|
|
226
|
-
const
|
|
227
|
-
return
|
|
237
|
+
const s = e ? P(e) : "", i = r ? P(r) : "";
|
|
238
|
+
return s === i;
|
|
228
239
|
};
|
|
229
|
-
if (
|
|
230
|
-
|
|
240
|
+
if (S.current !== -1 && !vt({
|
|
241
|
+
array1: H.filteredOptions,
|
|
242
|
+
array2: m,
|
|
243
|
+
parser: P
|
|
244
|
+
}) && H.inputValue === g && (c ? l.length === H.value.length && H.value.every((e, r) => P(l[r]) === P(e)) : o(H.value, l))) {
|
|
245
|
+
const e = H.filteredOptions[S.current];
|
|
231
246
|
if (e)
|
|
232
|
-
return
|
|
247
|
+
return m.findIndex((r) => P(r) === P(e));
|
|
233
248
|
}
|
|
234
249
|
return -1;
|
|
235
|
-
},
|
|
236
|
-
if (!
|
|
250
|
+
}, Se = x.useCallback(() => {
|
|
251
|
+
if (!L)
|
|
237
252
|
return;
|
|
238
253
|
const o = at();
|
|
239
254
|
if (o !== -1) {
|
|
240
|
-
|
|
255
|
+
S.current = o;
|
|
241
256
|
return;
|
|
242
257
|
}
|
|
243
|
-
const e =
|
|
244
|
-
if (
|
|
245
|
-
|
|
258
|
+
const e = c ? l[0] : l;
|
|
259
|
+
if (m.length === 0 || e == null) {
|
|
260
|
+
j({
|
|
246
261
|
diff: "reset"
|
|
247
262
|
});
|
|
248
263
|
return;
|
|
249
264
|
}
|
|
250
|
-
if (
|
|
265
|
+
if (V.current) {
|
|
251
266
|
if (e != null) {
|
|
252
|
-
const r =
|
|
253
|
-
if (
|
|
267
|
+
const r = m[S.current];
|
|
268
|
+
if (c && r && l.findIndex((i) => Y(r, i)) !== -1)
|
|
254
269
|
return;
|
|
255
|
-
const
|
|
256
|
-
|
|
270
|
+
const s = m.findIndex((i) => Y(i, e));
|
|
271
|
+
s === -1 ? j({
|
|
257
272
|
diff: "reset"
|
|
258
|
-
}) :
|
|
259
|
-
index:
|
|
273
|
+
}) : K({
|
|
274
|
+
index: s
|
|
260
275
|
});
|
|
261
276
|
return;
|
|
262
277
|
}
|
|
263
|
-
if (
|
|
264
|
-
|
|
265
|
-
index:
|
|
278
|
+
if (S.current >= m.length - 1) {
|
|
279
|
+
K({
|
|
280
|
+
index: m.length - 1
|
|
266
281
|
});
|
|
267
282
|
return;
|
|
268
283
|
}
|
|
269
|
-
|
|
270
|
-
index:
|
|
284
|
+
K({
|
|
285
|
+
index: S.current
|
|
271
286
|
});
|
|
272
287
|
}
|
|
273
288
|
}, [
|
|
274
289
|
// Only sync the highlighted index when the option switch between empty and not
|
|
275
|
-
|
|
290
|
+
m.length,
|
|
276
291
|
// Don't sync the highlighted index with the value when multiple
|
|
277
292
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
293
|
+
c ? !1 : l,
|
|
294
|
+
Re,
|
|
295
|
+
j,
|
|
296
|
+
K,
|
|
297
|
+
L,
|
|
283
298
|
g,
|
|
284
|
-
|
|
285
|
-
]),
|
|
286
|
-
Wt(
|
|
299
|
+
c
|
|
300
|
+
]), Z = _e((o) => {
|
|
301
|
+
Wt(V, o), o && Se();
|
|
287
302
|
});
|
|
288
303
|
process.env.NODE_ENV !== "production" && x.useEffect(() => {
|
|
289
|
-
(!h.current || h.current.nodeName !== "INPUT") && (h.current && h.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${
|
|
290
|
-
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${h.current} while an HTMLInputElement was expected.`, `Instead, ${
|
|
304
|
+
(!h.current || h.current.nodeName !== "INPUT") && (h.current && h.current.nodeName === "TEXTAREA" ? console.warn([`A textarea element was provided to ${O} where input was expected.`, "This is not a supported scenario but it may work under certain conditions.", "A textarea keyboard navigation may conflict with Autocomplete controls (for example enter and arrow keys).", "Make sure to test keyboard navigation and add custom event handlers if necessary."].join(`
|
|
305
|
+
`)) : console.error([`MUI: Unable to find the input element. It was resolved to ${h.current} while an HTMLInputElement was expected.`, `Instead, ${O} expects an input element.`, "", O === "useAutocomplete" ? "Make sure you have bound getInputProps correctly and that the normal ref/effect resolutions order is guaranteed." : "Make sure you have customized the input component correctly."].join(`
|
|
291
306
|
`)));
|
|
292
|
-
}, [
|
|
293
|
-
|
|
294
|
-
}, [
|
|
295
|
-
const
|
|
296
|
-
|
|
297
|
-
},
|
|
298
|
-
|
|
299
|
-
},
|
|
300
|
-
if (
|
|
301
|
-
if (
|
|
307
|
+
}, [O]), x.useEffect(() => {
|
|
308
|
+
Ue && Se();
|
|
309
|
+
}, [Se, Ue]);
|
|
310
|
+
const _ = (o) => {
|
|
311
|
+
q || (se(!0), me(!0), Me && Me(o));
|
|
312
|
+
}, ie = (o, e) => {
|
|
313
|
+
q && (se(!1), tt && tt(o, e));
|
|
314
|
+
}, J = (o, e, r, s) => {
|
|
315
|
+
if (c) {
|
|
316
|
+
if (l.length === e.length && l.every((i, b) => i === e[b]))
|
|
302
317
|
return;
|
|
303
|
-
} else if (
|
|
318
|
+
} else if (l === e)
|
|
304
319
|
return;
|
|
305
|
-
et && et(o, e, r,
|
|
306
|
-
},
|
|
307
|
-
let
|
|
308
|
-
if (
|
|
309
|
-
if (
|
|
310
|
-
const
|
|
311
|
-
|
|
320
|
+
et && et(o, e, r, s), $e(e);
|
|
321
|
+
}, X = x.useRef(!1), ee = (o, e, r = "selectOption", s = "options") => {
|
|
322
|
+
let i = r, b = e;
|
|
323
|
+
if (c) {
|
|
324
|
+
if (b = Array.isArray(l) ? l.slice() : [], process.env.NODE_ENV !== "production") {
|
|
325
|
+
const k = b.filter((ye) => Y(e, ye));
|
|
326
|
+
k.length > 1 && console.error([`MUI: The \`isOptionEqualToValue\` method of ${O} does not handle the arguments correctly.`, `The component expects a single value to match a given option but found ${k.length} matches.`].join(`
|
|
312
327
|
`));
|
|
313
328
|
}
|
|
314
|
-
const y =
|
|
315
|
-
y === -1 ?
|
|
329
|
+
const y = b.findIndex((k) => Y(e, k));
|
|
330
|
+
y === -1 ? b.push(e) : s !== "freeSolo" && (b.splice(y, 1), i = "removeOption");
|
|
316
331
|
}
|
|
317
|
-
|
|
332
|
+
ge(o, b, i), J(o, b, i, {
|
|
318
333
|
option: e
|
|
319
|
-
}), !
|
|
334
|
+
}), !ce && (!o || !o.ctrlKey && !o.metaKey) && ie(o, i), (v === !0 || v === "touch" && X.current || v === "mouse" && !X.current) && h.current.blur();
|
|
320
335
|
};
|
|
321
|
-
function
|
|
336
|
+
function st(o, e) {
|
|
322
337
|
if (o === -1)
|
|
323
338
|
return -1;
|
|
324
339
|
let r = o;
|
|
325
340
|
for (; ; ) {
|
|
326
|
-
if (e === "next" && r ===
|
|
341
|
+
if (e === "next" && r === l.length || e === "previous" && r === -1)
|
|
327
342
|
return -1;
|
|
328
|
-
const
|
|
329
|
-
if (!
|
|
343
|
+
const s = w ? "data-item-index" : "data-tag-index", i = Ce.querySelector(`[${s}="${r}"]`);
|
|
344
|
+
if (!i || !i.hasAttribute("tabindex") || i.disabled || i.getAttribute("aria-disabled") === "true")
|
|
330
345
|
r += e === "next" ? 1 : -1;
|
|
331
346
|
else
|
|
332
347
|
return r;
|
|
333
348
|
}
|
|
334
349
|
}
|
|
335
|
-
const
|
|
336
|
-
if (!
|
|
350
|
+
const le = (o, e) => {
|
|
351
|
+
if (!c)
|
|
337
352
|
return;
|
|
338
|
-
g === "" &&
|
|
339
|
-
let r =
|
|
340
|
-
|
|
341
|
-
},
|
|
342
|
-
|
|
343
|
-
},
|
|
344
|
-
if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (
|
|
353
|
+
g === "" && ie(o, "toggleInput");
|
|
354
|
+
let r = M;
|
|
355
|
+
M === -1 ? g === "" && e === "previous" && (r = l.length - 1) : (r += e === "next" ? 1 : -1, r < 0 && (r = 0), r === l.length && (r = -1)), r = st(r, e), Fe(r), z(r);
|
|
356
|
+
}, Be = (o) => {
|
|
357
|
+
Oe.current = !0, ae(""), Q && Q(o, "", "clear"), J(o, c ? [] : null, "clear");
|
|
358
|
+
}, it = (o) => (e) => {
|
|
359
|
+
if (o.onKeyDown && o.onKeyDown(e), !e.defaultMuiPrevented && (M !== -1 && !["ArrowLeft", "ArrowRight"].includes(e.key) && (Fe(-1), z(-1)), e.which !== 229))
|
|
345
360
|
switch (e.key) {
|
|
346
361
|
case "Home":
|
|
347
|
-
|
|
362
|
+
L && Ze && (e.preventDefault(), j({
|
|
348
363
|
diff: "start",
|
|
349
364
|
direction: "next",
|
|
350
365
|
reason: "keyboard",
|
|
@@ -352,7 +367,7 @@ function Yt(n) {
|
|
|
352
367
|
}));
|
|
353
368
|
break;
|
|
354
369
|
case "End":
|
|
355
|
-
|
|
370
|
+
L && Ze && (e.preventDefault(), j({
|
|
356
371
|
diff: "end",
|
|
357
372
|
direction: "previous",
|
|
358
373
|
reason: "keyboard",
|
|
@@ -360,158 +375,158 @@ function Yt(n) {
|
|
|
360
375
|
}));
|
|
361
376
|
break;
|
|
362
377
|
case "PageUp":
|
|
363
|
-
e.preventDefault(),
|
|
378
|
+
e.preventDefault(), j({
|
|
364
379
|
diff: -wt,
|
|
365
380
|
direction: "previous",
|
|
366
381
|
reason: "keyboard",
|
|
367
382
|
event: e
|
|
368
|
-
}),
|
|
383
|
+
}), _(e);
|
|
369
384
|
break;
|
|
370
385
|
case "PageDown":
|
|
371
|
-
e.preventDefault(),
|
|
386
|
+
e.preventDefault(), j({
|
|
372
387
|
diff: wt,
|
|
373
388
|
direction: "next",
|
|
374
389
|
reason: "keyboard",
|
|
375
390
|
event: e
|
|
376
|
-
}),
|
|
391
|
+
}), _(e);
|
|
377
392
|
break;
|
|
378
393
|
case "ArrowDown":
|
|
379
|
-
e.preventDefault(),
|
|
394
|
+
e.preventDefault(), j({
|
|
380
395
|
diff: 1,
|
|
381
396
|
direction: "next",
|
|
382
397
|
reason: "keyboard",
|
|
383
398
|
event: e
|
|
384
|
-
}),
|
|
399
|
+
}), _(e);
|
|
385
400
|
break;
|
|
386
401
|
case "ArrowUp":
|
|
387
|
-
e.preventDefault(),
|
|
402
|
+
e.preventDefault(), j({
|
|
388
403
|
diff: -1,
|
|
389
404
|
direction: "previous",
|
|
390
405
|
reason: "keyboard",
|
|
391
406
|
event: e
|
|
392
|
-
}),
|
|
407
|
+
}), _(e);
|
|
393
408
|
break;
|
|
394
409
|
case "ArrowLeft":
|
|
395
|
-
!
|
|
410
|
+
!c && w ? z(0) : le(e, "previous");
|
|
396
411
|
break;
|
|
397
412
|
case "ArrowRight":
|
|
398
|
-
!
|
|
413
|
+
!c && w ? z(-1) : le(e, "next");
|
|
399
414
|
break;
|
|
400
415
|
case "Enter":
|
|
401
|
-
if (
|
|
402
|
-
const r =
|
|
403
|
-
if (e.preventDefault(),
|
|
416
|
+
if (S.current !== -1 && L) {
|
|
417
|
+
const r = m[S.current], s = W ? W(r) : !1;
|
|
418
|
+
if (e.preventDefault(), s)
|
|
404
419
|
return;
|
|
405
|
-
|
|
406
|
-
} else
|
|
420
|
+
ee(e, r, "selectOption"), f && h.current.setSelectionRange(h.current.value.length, h.current.value.length);
|
|
421
|
+
} else de && g !== "" && ze === !1 && (c && e.preventDefault(), ee(e, g, "createOption", "freeSolo"));
|
|
407
422
|
break;
|
|
408
423
|
case "Escape":
|
|
409
|
-
|
|
424
|
+
L ? (e.preventDefault(), e.stopPropagation(), ie(e, "escape")) : U && (g !== "" || c && l.length > 0 || w) && (e.preventDefault(), e.stopPropagation(), Be(e));
|
|
410
425
|
break;
|
|
411
426
|
case "Backspace":
|
|
412
|
-
if (
|
|
413
|
-
const r =
|
|
414
|
-
|
|
415
|
-
option:
|
|
427
|
+
if (c && !G && g === "" && l.length > 0) {
|
|
428
|
+
const r = M === -1 ? l.length - 1 : M, s = l.slice();
|
|
429
|
+
s.splice(r, 1), J(e, s, "removeOption", {
|
|
430
|
+
option: l[r]
|
|
416
431
|
});
|
|
417
432
|
}
|
|
418
|
-
!
|
|
433
|
+
!c && w && !G && ($e(null), z(-1));
|
|
419
434
|
break;
|
|
420
435
|
case "Delete":
|
|
421
|
-
if (
|
|
422
|
-
const r =
|
|
423
|
-
|
|
424
|
-
option:
|
|
436
|
+
if (c && !G && g === "" && l.length > 0 && M !== -1) {
|
|
437
|
+
const r = M, s = l.slice();
|
|
438
|
+
s.splice(r, 1), J(e, s, "removeOption", {
|
|
439
|
+
option: l[r]
|
|
425
440
|
});
|
|
426
441
|
}
|
|
427
|
-
!
|
|
442
|
+
!c && w && !G && ($e(null), z(-1));
|
|
428
443
|
break;
|
|
429
444
|
}
|
|
430
|
-
},
|
|
431
|
-
|
|
432
|
-
},
|
|
433
|
-
if (
|
|
445
|
+
}, be = (o) => {
|
|
446
|
+
He(!0), xt && !Oe.current && _(o);
|
|
447
|
+
}, he = (o) => {
|
|
448
|
+
if (a(V)) {
|
|
434
449
|
h.current.focus();
|
|
435
450
|
return;
|
|
436
451
|
}
|
|
437
|
-
|
|
438
|
-
},
|
|
452
|
+
He(!1), Pe.current = !0, Oe.current = !1, R && S.current !== -1 && L ? ee(o, m[S.current], "blur") : R && de && g !== "" ? ee(o, g, "blur", "freeSolo") : D && ge(o, l, "blur"), ie(o, "blur");
|
|
453
|
+
}, Te = (o) => {
|
|
439
454
|
const e = o.target.value;
|
|
440
|
-
g !== e && (
|
|
441
|
-
},
|
|
455
|
+
g !== e && (ae(e), me(!1), Q && Q(o, e, "input")), e === "" ? !B && !c && J(o, null, "clear") : _(o);
|
|
456
|
+
}, lt = (o) => {
|
|
442
457
|
const e = Number(o.currentTarget.getAttribute("data-option-index"));
|
|
443
|
-
|
|
458
|
+
S.current !== e && K({
|
|
444
459
|
event: o,
|
|
445
460
|
index: e,
|
|
446
461
|
reason: "mouse"
|
|
447
462
|
});
|
|
448
463
|
}, pt = (o) => {
|
|
449
|
-
|
|
464
|
+
K({
|
|
450
465
|
event: o,
|
|
451
466
|
index: Number(o.currentTarget.getAttribute("data-option-index")),
|
|
452
467
|
reason: "touch"
|
|
453
|
-
}),
|
|
468
|
+
}), X.current = !0;
|
|
454
469
|
}, ut = (o) => {
|
|
455
470
|
const e = Number(o.currentTarget.getAttribute("data-option-index"));
|
|
456
|
-
|
|
457
|
-
},
|
|
458
|
-
const r =
|
|
459
|
-
r.splice(o, 1),
|
|
460
|
-
option:
|
|
471
|
+
ee(o, m[e], "selectOption"), X.current = !1;
|
|
472
|
+
}, ct = (o) => (e) => {
|
|
473
|
+
const r = l.slice();
|
|
474
|
+
r.splice(o, 1), J(e, r, "removeOption", {
|
|
475
|
+
option: l[o]
|
|
461
476
|
});
|
|
462
|
-
},
|
|
463
|
-
|
|
464
|
-
option:
|
|
477
|
+
}, ve = (o) => {
|
|
478
|
+
J(o, null, "removeOption", {
|
|
479
|
+
option: l
|
|
465
480
|
});
|
|
466
|
-
},
|
|
467
|
-
|
|
468
|
-
},
|
|
469
|
-
o.currentTarget.contains(o.target) && o.target.getAttribute("id") !==
|
|
470
|
-
},
|
|
471
|
-
o.currentTarget.contains(o.target) && (h.current.focus(), ot &&
|
|
472
|
-
},
|
|
473
|
-
!
|
|
481
|
+
}, I = (o) => {
|
|
482
|
+
q ? ie(o, "toggleInput") : _(o);
|
|
483
|
+
}, C = (o) => {
|
|
484
|
+
o.currentTarget.contains(o.target) && o.target.getAttribute("id") !== E && o.preventDefault();
|
|
485
|
+
}, te = (o) => {
|
|
486
|
+
o.currentTarget.contains(o.target) && (h.current.focus(), ot && Pe.current && h.current.selectionEnd - h.current.selectionStart === 0 && h.current.select(), Pe.current = !1);
|
|
487
|
+
}, dt = (o) => {
|
|
488
|
+
!N && (g === "" || !q) && I(o);
|
|
474
489
|
};
|
|
475
|
-
let
|
|
476
|
-
|
|
477
|
-
let We =
|
|
478
|
-
if (
|
|
490
|
+
let Ae = de && g.length > 0;
|
|
491
|
+
Ae = Ae || (c ? l.length > 0 : l !== null);
|
|
492
|
+
let We = m;
|
|
493
|
+
if (re) {
|
|
479
494
|
const o = /* @__PURE__ */ new Map();
|
|
480
495
|
let e = !1;
|
|
481
|
-
We =
|
|
482
|
-
const
|
|
483
|
-
return r.length > 0 && r[r.length - 1].group ===
|
|
484
|
-
key:
|
|
485
|
-
index:
|
|
486
|
-
group:
|
|
487
|
-
options: [
|
|
496
|
+
We = m.reduce((r, s, i) => {
|
|
497
|
+
const b = re(s);
|
|
498
|
+
return r.length > 0 && r[r.length - 1].group === b ? r[r.length - 1].options.push(s) : (process.env.NODE_ENV !== "production" && (o.get(b) && !e && (console.warn(`MUI: The options provided combined with the \`groupBy\` method of ${O} returns duplicated headers.`, "You can solve the issue by sorting the options with the output of `groupBy`."), e = !0), o.set(b, !0)), r.push({
|
|
499
|
+
key: i,
|
|
500
|
+
index: i,
|
|
501
|
+
group: b,
|
|
502
|
+
options: [s]
|
|
488
503
|
})), r;
|
|
489
504
|
}, []);
|
|
490
505
|
}
|
|
491
|
-
return
|
|
506
|
+
return N && fe && he(), {
|
|
492
507
|
getRootProps: (o = {}) => ({
|
|
493
508
|
...o,
|
|
494
|
-
onKeyDown:
|
|
495
|
-
onMouseDown:
|
|
496
|
-
onClick:
|
|
509
|
+
onKeyDown: it(o),
|
|
510
|
+
onMouseDown: C,
|
|
511
|
+
onClick: te
|
|
497
512
|
}),
|
|
498
513
|
getInputLabelProps: () => ({
|
|
499
|
-
id: `${
|
|
500
|
-
htmlFor:
|
|
514
|
+
id: `${E}-label`,
|
|
515
|
+
htmlFor: E
|
|
501
516
|
}),
|
|
502
517
|
getInputProps: () => ({
|
|
503
|
-
id:
|
|
518
|
+
id: E,
|
|
504
519
|
value: g,
|
|
505
|
-
onBlur:
|
|
506
|
-
onFocus:
|
|
507
|
-
onChange:
|
|
508
|
-
onMouseDown:
|
|
520
|
+
onBlur: he,
|
|
521
|
+
onFocus: be,
|
|
522
|
+
onChange: Te,
|
|
523
|
+
onMouseDown: dt,
|
|
509
524
|
// if open then this is handled imperatively so don't let react override
|
|
510
525
|
// only have an opinion about this when closed
|
|
511
|
-
"aria-activedescendant":
|
|
512
|
-
"aria-autocomplete":
|
|
513
|
-
"aria-controls":
|
|
514
|
-
"aria-expanded":
|
|
526
|
+
"aria-activedescendant": L ? "" : null,
|
|
527
|
+
"aria-autocomplete": f ? "both" : "list",
|
|
528
|
+
"aria-controls": je ? `${E}-listbox` : void 0,
|
|
529
|
+
"aria-expanded": je,
|
|
515
530
|
// Disable browser's suggestion that might overlap with the popup.
|
|
516
531
|
// Handle autocomplete but not autofill.
|
|
517
532
|
autoComplete: "off",
|
|
@@ -519,33 +534,33 @@ function Yt(n) {
|
|
|
519
534
|
autoCapitalize: "none",
|
|
520
535
|
spellCheck: "false",
|
|
521
536
|
role: "combobox",
|
|
522
|
-
disabled:
|
|
537
|
+
disabled: N
|
|
523
538
|
}),
|
|
524
539
|
getClearProps: () => ({
|
|
525
540
|
tabIndex: -1,
|
|
526
541
|
type: "button",
|
|
527
|
-
onClick:
|
|
542
|
+
onClick: Be
|
|
528
543
|
}),
|
|
529
544
|
getItemProps: ({
|
|
530
545
|
index: o = 0
|
|
531
546
|
} = {}) => ({
|
|
532
|
-
...
|
|
547
|
+
...c && {
|
|
533
548
|
key: o
|
|
534
549
|
},
|
|
535
|
-
...
|
|
550
|
+
...w ? {
|
|
536
551
|
"data-item-index": o
|
|
537
552
|
} : {
|
|
538
553
|
"data-tag-index": o
|
|
539
554
|
},
|
|
540
555
|
tabIndex: -1,
|
|
541
|
-
...!
|
|
542
|
-
onDelete:
|
|
556
|
+
...!G && {
|
|
557
|
+
onDelete: c ? ct(o) : ve
|
|
543
558
|
}
|
|
544
559
|
}),
|
|
545
560
|
getPopupIndicatorProps: () => ({
|
|
546
561
|
tabIndex: -1,
|
|
547
562
|
type: "button",
|
|
548
|
-
onClick:
|
|
563
|
+
onClick: I
|
|
549
564
|
}),
|
|
550
565
|
// deprecated
|
|
551
566
|
getTagProps: ({
|
|
@@ -554,15 +569,15 @@ function Yt(n) {
|
|
|
554
569
|
key: o,
|
|
555
570
|
"data-tag-index": o,
|
|
556
571
|
tabIndex: -1,
|
|
557
|
-
...!
|
|
558
|
-
onDelete:
|
|
572
|
+
...!G && {
|
|
573
|
+
onDelete: ct(o)
|
|
559
574
|
}
|
|
560
575
|
}),
|
|
561
576
|
getListboxProps: () => ({
|
|
562
577
|
role: "listbox",
|
|
563
|
-
id: `${
|
|
564
|
-
"aria-labelledby": `${
|
|
565
|
-
ref:
|
|
578
|
+
id: `${E}-listbox`,
|
|
579
|
+
"aria-labelledby": `${E}-label`,
|
|
580
|
+
ref: Z,
|
|
566
581
|
onMouseDown: (o) => {
|
|
567
582
|
o.preventDefault();
|
|
568
583
|
}
|
|
@@ -571,59 +586,59 @@ function Yt(n) {
|
|
|
571
586
|
index: o,
|
|
572
587
|
option: e
|
|
573
588
|
}) => {
|
|
574
|
-
const r = (
|
|
589
|
+
const r = (c ? l : [l]).some((i) => i != null && Y(e, i)), s = W ? W(e) : !1;
|
|
575
590
|
return {
|
|
576
|
-
key: (
|
|
591
|
+
key: (De == null ? void 0 : De(e)) ?? P(e),
|
|
577
592
|
tabIndex: -1,
|
|
578
593
|
role: "option",
|
|
579
|
-
id: `${
|
|
580
|
-
onMouseMove:
|
|
594
|
+
id: `${E}-option-${o}`,
|
|
595
|
+
onMouseMove: lt,
|
|
581
596
|
onClick: ut,
|
|
582
597
|
onTouchStart: pt,
|
|
583
598
|
"data-option-index": o,
|
|
584
|
-
"aria-disabled":
|
|
599
|
+
"aria-disabled": s,
|
|
585
600
|
"aria-selected": r
|
|
586
601
|
};
|
|
587
602
|
},
|
|
588
|
-
id:
|
|
603
|
+
id: E,
|
|
589
604
|
inputValue: g,
|
|
590
|
-
value:
|
|
591
|
-
dirty:
|
|
592
|
-
expanded:
|
|
593
|
-
popupOpen:
|
|
594
|
-
focused:
|
|
595
|
-
anchorEl:
|
|
596
|
-
setAnchorEl:
|
|
597
|
-
focusedItem:
|
|
605
|
+
value: l,
|
|
606
|
+
dirty: Ae,
|
|
607
|
+
expanded: L && Ce,
|
|
608
|
+
popupOpen: L,
|
|
609
|
+
focused: fe || M !== -1,
|
|
610
|
+
anchorEl: Ce,
|
|
611
|
+
setAnchorEl: Ot,
|
|
612
|
+
focusedItem: M,
|
|
598
613
|
// deprecated
|
|
599
|
-
focusedTag:
|
|
614
|
+
focusedTag: M,
|
|
600
615
|
groupedOptions: We
|
|
601
616
|
};
|
|
602
617
|
}
|
|
603
618
|
function Qt(n) {
|
|
604
|
-
return
|
|
619
|
+
return Nt("MuiListSubheader", n);
|
|
605
620
|
}
|
|
606
|
-
const Mo =
|
|
621
|
+
const Mo = Dt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutters", "inset", "sticky"]), Zt = (n) => {
|
|
607
622
|
const {
|
|
608
|
-
classes:
|
|
609
|
-
color:
|
|
610
|
-
disableGutters:
|
|
611
|
-
inset:
|
|
612
|
-
disableSticky:
|
|
623
|
+
classes: a,
|
|
624
|
+
color: u,
|
|
625
|
+
disableGutters: f,
|
|
626
|
+
inset: $,
|
|
627
|
+
disableSticky: R
|
|
613
628
|
} = n, v = {
|
|
614
|
-
root: ["root",
|
|
629
|
+
root: ["root", u !== "default" && `color${Ye(u)}`, !f && "gutters", $ && "inset", !R && "sticky"]
|
|
615
630
|
};
|
|
616
|
-
return
|
|
617
|
-
}, eo =
|
|
631
|
+
return Mt(v, Qt, a);
|
|
632
|
+
}, eo = F("li", {
|
|
618
633
|
name: "MuiListSubheader",
|
|
619
634
|
slot: "Root",
|
|
620
|
-
overridesResolver: (n,
|
|
635
|
+
overridesResolver: (n, a) => {
|
|
621
636
|
const {
|
|
622
|
-
ownerState:
|
|
637
|
+
ownerState: u
|
|
623
638
|
} = n;
|
|
624
|
-
return [
|
|
639
|
+
return [a.root, u.color !== "default" && a[`color${Ye(u.color)}`], !u.disableGutters && a.gutters, u.inset && a.inset, !u.disableSticky && a.sticky];
|
|
625
640
|
}
|
|
626
|
-
})(
|
|
641
|
+
})(ue(({
|
|
627
642
|
theme: n
|
|
628
643
|
}) => ({
|
|
629
644
|
boxSizing: "border-box",
|
|
@@ -649,23 +664,23 @@ const Mo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
|
|
|
649
664
|
}
|
|
650
665
|
}, {
|
|
651
666
|
props: ({
|
|
652
|
-
ownerState:
|
|
653
|
-
}) => !
|
|
667
|
+
ownerState: a
|
|
668
|
+
}) => !a.disableGutters,
|
|
654
669
|
style: {
|
|
655
670
|
paddingLeft: 16,
|
|
656
671
|
paddingRight: 16
|
|
657
672
|
}
|
|
658
673
|
}, {
|
|
659
674
|
props: ({
|
|
660
|
-
ownerState:
|
|
661
|
-
}) =>
|
|
675
|
+
ownerState: a
|
|
676
|
+
}) => a.inset,
|
|
662
677
|
style: {
|
|
663
678
|
paddingLeft: 72
|
|
664
679
|
}
|
|
665
680
|
}, {
|
|
666
681
|
props: ({
|
|
667
|
-
ownerState:
|
|
668
|
-
}) => !
|
|
682
|
+
ownerState: a
|
|
683
|
+
}) => !a.disableSticky,
|
|
669
684
|
style: {
|
|
670
685
|
position: "sticky",
|
|
671
686
|
top: 0,
|
|
@@ -673,32 +688,32 @@ const Mo = Rt("MuiListSubheader", ["root", "colorPrimary", "colorInherit", "gutt
|
|
|
673
688
|
backgroundColor: (n.vars || n).palette.background.paper
|
|
674
689
|
}
|
|
675
690
|
}]
|
|
676
|
-
}))), Xe = /* @__PURE__ */ x.forwardRef(function(
|
|
677
|
-
const
|
|
678
|
-
props:
|
|
691
|
+
}))), Xe = /* @__PURE__ */ x.forwardRef(function(a, u) {
|
|
692
|
+
const f = Et({
|
|
693
|
+
props: a,
|
|
679
694
|
name: "MuiListSubheader"
|
|
680
695
|
}), {
|
|
681
|
-
className:
|
|
682
|
-
color:
|
|
696
|
+
className: $,
|
|
697
|
+
color: R = "default",
|
|
683
698
|
component: v = "li",
|
|
684
|
-
disableGutters:
|
|
685
|
-
disableSticky:
|
|
686
|
-
inset:
|
|
687
|
-
|
|
688
|
-
} =
|
|
689
|
-
...
|
|
690
|
-
color:
|
|
699
|
+
disableGutters: D = !1,
|
|
700
|
+
disableSticky: U = !1,
|
|
701
|
+
inset: O = !1,
|
|
702
|
+
...T
|
|
703
|
+
} = f, B = {
|
|
704
|
+
...f,
|
|
705
|
+
color: R,
|
|
691
706
|
component: v,
|
|
692
|
-
disableGutters:
|
|
693
|
-
disableSticky:
|
|
694
|
-
inset:
|
|
695
|
-
},
|
|
707
|
+
disableGutters: D,
|
|
708
|
+
disableSticky: U,
|
|
709
|
+
inset: O
|
|
710
|
+
}, ce = Zt(B);
|
|
696
711
|
return /* @__PURE__ */ A(eo, {
|
|
697
712
|
as: v,
|
|
698
|
-
className: Je(
|
|
699
|
-
ref:
|
|
700
|
-
ownerState:
|
|
701
|
-
|
|
713
|
+
className: Je(ce.root, $),
|
|
714
|
+
ref: u,
|
|
715
|
+
ownerState: B,
|
|
716
|
+
...T
|
|
702
717
|
});
|
|
703
718
|
});
|
|
704
719
|
Xe && (Xe.muiSkipListHighlight = !0);
|
|
@@ -750,31 +765,31 @@ process.env.NODE_ENV !== "production" && (Xe.propTypes = {
|
|
|
750
765
|
sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object])
|
|
751
766
|
});
|
|
752
767
|
function to(n) {
|
|
753
|
-
return
|
|
768
|
+
return Nt("MuiAutocomplete", n);
|
|
754
769
|
}
|
|
755
|
-
const
|
|
756
|
-
var
|
|
770
|
+
const p = Dt("MuiAutocomplete", ["root", "expanded", "fullWidth", "focused", "focusVisible", "tag", "tagSizeSmall", "tagSizeMedium", "hasPopupIcon", "hasClearIcon", "inputRoot", "input", "inputFocused", "endAdornment", "clearIndicator", "popupIndicator", "popupIndicatorOpen", "popper", "popperDisablePortal", "paper", "listbox", "loading", "noOptions", "option", "groupLabel", "groupUl"]);
|
|
771
|
+
var kt, Rt;
|
|
757
772
|
const oo = (n) => {
|
|
758
773
|
const {
|
|
759
|
-
classes:
|
|
760
|
-
disablePortal:
|
|
761
|
-
expanded:
|
|
762
|
-
focused:
|
|
763
|
-
fullWidth:
|
|
774
|
+
classes: a,
|
|
775
|
+
disablePortal: u,
|
|
776
|
+
expanded: f,
|
|
777
|
+
focused: $,
|
|
778
|
+
fullWidth: R,
|
|
764
779
|
hasClearIcon: v,
|
|
765
|
-
hasPopupIcon:
|
|
766
|
-
inputFocused:
|
|
767
|
-
popupOpen:
|
|
768
|
-
size:
|
|
769
|
-
} = n,
|
|
770
|
-
root: ["root",
|
|
780
|
+
hasPopupIcon: D,
|
|
781
|
+
inputFocused: U,
|
|
782
|
+
popupOpen: O,
|
|
783
|
+
size: T
|
|
784
|
+
} = n, B = {
|
|
785
|
+
root: ["root", f && "expanded", $ && "focused", R && "fullWidth", v && "hasClearIcon", D && "hasPopupIcon"],
|
|
771
786
|
inputRoot: ["inputRoot"],
|
|
772
|
-
input: ["input",
|
|
773
|
-
tag: ["tag", `tagSize${Ye(
|
|
787
|
+
input: ["input", U && "inputFocused"],
|
|
788
|
+
tag: ["tag", `tagSize${Ye(T)}`],
|
|
774
789
|
endAdornment: ["endAdornment"],
|
|
775
790
|
clearIndicator: ["clearIndicator"],
|
|
776
|
-
popupIndicator: ["popupIndicator",
|
|
777
|
-
popper: ["popper",
|
|
791
|
+
popupIndicator: ["popupIndicator", O && "popupIndicatorOpen"],
|
|
792
|
+
popper: ["popper", u && "popperDisablePortal"],
|
|
778
793
|
paper: ["paper"],
|
|
779
794
|
listbox: ["listbox"],
|
|
780
795
|
loading: ["loading"],
|
|
@@ -783,134 +798,134 @@ const oo = (n) => {
|
|
|
783
798
|
groupLabel: ["groupLabel"],
|
|
784
799
|
groupUl: ["groupUl"]
|
|
785
800
|
};
|
|
786
|
-
return
|
|
787
|
-
}, no =
|
|
801
|
+
return Mt(B, to, a);
|
|
802
|
+
}, no = F("div", {
|
|
788
803
|
name: "MuiAutocomplete",
|
|
789
804
|
slot: "Root",
|
|
790
|
-
overridesResolver: (n,
|
|
805
|
+
overridesResolver: (n, a) => {
|
|
791
806
|
const {
|
|
792
|
-
ownerState:
|
|
807
|
+
ownerState: u
|
|
793
808
|
} = n, {
|
|
794
|
-
fullWidth:
|
|
795
|
-
hasClearIcon:
|
|
796
|
-
hasPopupIcon:
|
|
809
|
+
fullWidth: f,
|
|
810
|
+
hasClearIcon: $,
|
|
811
|
+
hasPopupIcon: R,
|
|
797
812
|
inputFocused: v,
|
|
798
|
-
size:
|
|
799
|
-
} =
|
|
813
|
+
size: D
|
|
814
|
+
} = u;
|
|
800
815
|
return [{
|
|
801
|
-
[`& .${
|
|
816
|
+
[`& .${p.tag}`]: a.tag
|
|
802
817
|
}, {
|
|
803
|
-
[`& .${
|
|
818
|
+
[`& .${p.tag}`]: a[`tagSize${Ye(D)}`]
|
|
804
819
|
}, {
|
|
805
|
-
[`& .${
|
|
820
|
+
[`& .${p.inputRoot}`]: a.inputRoot
|
|
806
821
|
}, {
|
|
807
|
-
[`& .${
|
|
822
|
+
[`& .${p.input}`]: a.input
|
|
808
823
|
}, {
|
|
809
|
-
[`& .${
|
|
810
|
-
},
|
|
824
|
+
[`& .${p.input}`]: v && a.inputFocused
|
|
825
|
+
}, a.root, f && a.fullWidth, R && a.hasPopupIcon, $ && a.hasClearIcon];
|
|
811
826
|
}
|
|
812
827
|
})({
|
|
813
|
-
[`&.${
|
|
828
|
+
[`&.${p.focused} .${p.clearIndicator}`]: {
|
|
814
829
|
visibility: "visible"
|
|
815
830
|
},
|
|
816
831
|
/* Avoid double tap issue on iOS */
|
|
817
832
|
"@media (pointer: fine)": {
|
|
818
|
-
[`&:hover .${
|
|
833
|
+
[`&:hover .${p.clearIndicator}`]: {
|
|
819
834
|
visibility: "visible"
|
|
820
835
|
}
|
|
821
836
|
},
|
|
822
|
-
[`& .${
|
|
837
|
+
[`& .${p.tag}`]: {
|
|
823
838
|
margin: 3,
|
|
824
839
|
maxWidth: "calc(100% - 6px)"
|
|
825
840
|
},
|
|
826
|
-
[`& .${
|
|
827
|
-
[`.${
|
|
841
|
+
[`& .${p.inputRoot}`]: {
|
|
842
|
+
[`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
|
|
828
843
|
paddingRight: 30
|
|
829
844
|
},
|
|
830
|
-
[`.${
|
|
845
|
+
[`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
|
|
831
846
|
paddingRight: 56
|
|
832
847
|
},
|
|
833
|
-
[`& .${
|
|
848
|
+
[`& .${p.input}`]: {
|
|
834
849
|
width: 0,
|
|
835
850
|
minWidth: 30
|
|
836
851
|
}
|
|
837
852
|
},
|
|
838
|
-
[`& .${
|
|
853
|
+
[`& .${ft.root}`]: {
|
|
839
854
|
paddingBottom: 1,
|
|
840
855
|
"& .MuiInput-input": {
|
|
841
856
|
padding: "4px 4px 4px 0px"
|
|
842
857
|
}
|
|
843
858
|
},
|
|
844
|
-
[`& .${
|
|
845
|
-
[`& .${
|
|
859
|
+
[`& .${ft.root}.${pe.sizeSmall}`]: {
|
|
860
|
+
[`& .${ft.input}`]: {
|
|
846
861
|
padding: "2px 4px 3px 0"
|
|
847
862
|
}
|
|
848
863
|
},
|
|
849
864
|
[`& .${St.root}`]: {
|
|
850
865
|
padding: 9,
|
|
851
|
-
[`.${
|
|
866
|
+
[`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
|
|
852
867
|
paddingRight: 39
|
|
853
868
|
},
|
|
854
|
-
[`.${
|
|
869
|
+
[`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
|
|
855
870
|
paddingRight: 65
|
|
856
871
|
},
|
|
857
|
-
[`& .${
|
|
872
|
+
[`& .${p.input}`]: {
|
|
858
873
|
padding: "7.5px 4px 7.5px 5px"
|
|
859
874
|
},
|
|
860
|
-
[`& .${
|
|
875
|
+
[`& .${p.endAdornment}`]: {
|
|
861
876
|
right: 9
|
|
862
877
|
}
|
|
863
878
|
},
|
|
864
|
-
[`& .${St.root}.${
|
|
879
|
+
[`& .${St.root}.${pe.sizeSmall}`]: {
|
|
865
880
|
// Don't specify paddingRight, as it overrides the default value set when there is only
|
|
866
881
|
// one of the popup or clear icon as the specificity is equal so the latter one wins
|
|
867
882
|
paddingTop: 6,
|
|
868
883
|
paddingBottom: 6,
|
|
869
884
|
paddingLeft: 6,
|
|
870
|
-
[`& .${
|
|
885
|
+
[`& .${p.input}`]: {
|
|
871
886
|
padding: "2.5px 4px 2.5px 8px"
|
|
872
887
|
}
|
|
873
888
|
},
|
|
874
|
-
[`& .${
|
|
889
|
+
[`& .${xe.root}`]: {
|
|
875
890
|
paddingTop: 19,
|
|
876
891
|
paddingLeft: 8,
|
|
877
|
-
[`.${
|
|
892
|
+
[`.${p.hasPopupIcon}&, .${p.hasClearIcon}&`]: {
|
|
878
893
|
paddingRight: 39
|
|
879
894
|
},
|
|
880
|
-
[`.${
|
|
895
|
+
[`.${p.hasPopupIcon}.${p.hasClearIcon}&`]: {
|
|
881
896
|
paddingRight: 65
|
|
882
897
|
},
|
|
883
|
-
[`& .${
|
|
898
|
+
[`& .${xe.input}`]: {
|
|
884
899
|
padding: "7px 4px"
|
|
885
900
|
},
|
|
886
|
-
[`& .${
|
|
901
|
+
[`& .${p.endAdornment}`]: {
|
|
887
902
|
right: 9
|
|
888
903
|
}
|
|
889
904
|
},
|
|
890
|
-
[`& .${
|
|
905
|
+
[`& .${xe.root}.${pe.sizeSmall}`]: {
|
|
891
906
|
paddingBottom: 1,
|
|
892
|
-
[`& .${
|
|
907
|
+
[`& .${xe.input}`]: {
|
|
893
908
|
padding: "2.5px 4px"
|
|
894
909
|
}
|
|
895
910
|
},
|
|
896
|
-
[`& .${
|
|
911
|
+
[`& .${pe.hiddenLabel}`]: {
|
|
897
912
|
paddingTop: 8
|
|
898
913
|
},
|
|
899
|
-
[`& .${
|
|
914
|
+
[`& .${xe.root}.${pe.hiddenLabel}`]: {
|
|
900
915
|
paddingTop: 0,
|
|
901
916
|
paddingBottom: 0,
|
|
902
|
-
[`& .${
|
|
917
|
+
[`& .${p.input}`]: {
|
|
903
918
|
paddingTop: 16,
|
|
904
919
|
paddingBottom: 17
|
|
905
920
|
}
|
|
906
921
|
},
|
|
907
|
-
[`& .${
|
|
908
|
-
[`& .${
|
|
922
|
+
[`& .${xe.root}.${pe.hiddenLabel}.${pe.sizeSmall}`]: {
|
|
923
|
+
[`& .${p.input}`]: {
|
|
909
924
|
paddingTop: 8,
|
|
910
925
|
paddingBottom: 9
|
|
911
926
|
}
|
|
912
927
|
},
|
|
913
|
-
[`& .${
|
|
928
|
+
[`& .${p.input}`]: {
|
|
914
929
|
flexGrow: 1,
|
|
915
930
|
textOverflow: "ellipsis",
|
|
916
931
|
opacity: 0
|
|
@@ -927,7 +942,7 @@ const oo = (n) => {
|
|
|
927
942
|
size: "small"
|
|
928
943
|
},
|
|
929
944
|
style: {
|
|
930
|
-
[`& .${
|
|
945
|
+
[`& .${p.tag}`]: {
|
|
931
946
|
margin: 2,
|
|
932
947
|
maxWidth: "calc(100% - 4px)"
|
|
933
948
|
}
|
|
@@ -937,7 +952,7 @@ const oo = (n) => {
|
|
|
937
952
|
inputFocused: !0
|
|
938
953
|
},
|
|
939
954
|
style: {
|
|
940
|
-
[`& .${
|
|
955
|
+
[`& .${p.input}`]: {
|
|
941
956
|
opacity: 1
|
|
942
957
|
}
|
|
943
958
|
}
|
|
@@ -946,12 +961,12 @@ const oo = (n) => {
|
|
|
946
961
|
multiple: !0
|
|
947
962
|
},
|
|
948
963
|
style: {
|
|
949
|
-
[`& .${
|
|
964
|
+
[`& .${p.inputRoot}`]: {
|
|
950
965
|
flexWrap: "wrap"
|
|
951
966
|
}
|
|
952
967
|
}
|
|
953
968
|
}]
|
|
954
|
-
}), ro =
|
|
969
|
+
}), ro = F("div", {
|
|
955
970
|
name: "MuiAutocomplete",
|
|
956
971
|
slot: "EndAdornment"
|
|
957
972
|
})({
|
|
@@ -960,21 +975,21 @@ const oo = (n) => {
|
|
|
960
975
|
right: 0,
|
|
961
976
|
top: "50%",
|
|
962
977
|
transform: "translate(0, -50%)"
|
|
963
|
-
}), ao =
|
|
978
|
+
}), ao = F(Ht, {
|
|
964
979
|
name: "MuiAutocomplete",
|
|
965
980
|
slot: "ClearIndicator"
|
|
966
981
|
})({
|
|
967
982
|
marginRight: -2,
|
|
968
983
|
padding: 4,
|
|
969
984
|
visibility: "hidden"
|
|
970
|
-
}),
|
|
985
|
+
}), so = F(Ht, {
|
|
971
986
|
name: "MuiAutocomplete",
|
|
972
987
|
slot: "PopupIndicator",
|
|
973
|
-
overridesResolver: (n,
|
|
988
|
+
overridesResolver: (n, a) => {
|
|
974
989
|
const {
|
|
975
|
-
ownerState:
|
|
990
|
+
ownerState: u
|
|
976
991
|
} = n;
|
|
977
|
-
return [
|
|
992
|
+
return [a.popupIndicator, u.popupOpen && a.popupIndicatorOpen];
|
|
978
993
|
}
|
|
979
994
|
})({
|
|
980
995
|
padding: 2,
|
|
@@ -987,18 +1002,18 @@ const oo = (n) => {
|
|
|
987
1002
|
transform: "rotate(180deg)"
|
|
988
1003
|
}
|
|
989
1004
|
}]
|
|
990
|
-
}),
|
|
1005
|
+
}), io = F(Ft, {
|
|
991
1006
|
name: "MuiAutocomplete",
|
|
992
1007
|
slot: "Popper",
|
|
993
|
-
overridesResolver: (n,
|
|
1008
|
+
overridesResolver: (n, a) => {
|
|
994
1009
|
const {
|
|
995
|
-
ownerState:
|
|
1010
|
+
ownerState: u
|
|
996
1011
|
} = n;
|
|
997
1012
|
return [{
|
|
998
|
-
[`& .${
|
|
999
|
-
},
|
|
1013
|
+
[`& .${p.option}`]: a.option
|
|
1014
|
+
}, a.popper, u.disablePortal && a.popperDisablePortal];
|
|
1000
1015
|
}
|
|
1001
|
-
})(
|
|
1016
|
+
})(ue(({
|
|
1002
1017
|
theme: n
|
|
1003
1018
|
}) => ({
|
|
1004
1019
|
zIndex: (n.vars || n).zIndex.modal,
|
|
@@ -1010,34 +1025,34 @@ const oo = (n) => {
|
|
|
1010
1025
|
position: "absolute"
|
|
1011
1026
|
}
|
|
1012
1027
|
}]
|
|
1013
|
-
}))), lo =
|
|
1028
|
+
}))), lo = F(Vt, {
|
|
1014
1029
|
name: "MuiAutocomplete",
|
|
1015
1030
|
slot: "Paper"
|
|
1016
|
-
})(
|
|
1031
|
+
})(ue(({
|
|
1017
1032
|
theme: n
|
|
1018
1033
|
}) => ({
|
|
1019
1034
|
...n.typography.body1,
|
|
1020
1035
|
overflow: "auto"
|
|
1021
|
-
}))), po =
|
|
1036
|
+
}))), po = F("div", {
|
|
1022
1037
|
name: "MuiAutocomplete",
|
|
1023
1038
|
slot: "Loading"
|
|
1024
|
-
})(
|
|
1039
|
+
})(ue(({
|
|
1025
1040
|
theme: n
|
|
1026
1041
|
}) => ({
|
|
1027
1042
|
color: (n.vars || n).palette.text.secondary,
|
|
1028
1043
|
padding: "14px 16px"
|
|
1029
|
-
}))), uo =
|
|
1044
|
+
}))), uo = F("div", {
|
|
1030
1045
|
name: "MuiAutocomplete",
|
|
1031
1046
|
slot: "NoOptions"
|
|
1032
|
-
})(
|
|
1047
|
+
})(ue(({
|
|
1033
1048
|
theme: n
|
|
1034
1049
|
}) => ({
|
|
1035
1050
|
color: (n.vars || n).palette.text.secondary,
|
|
1036
1051
|
padding: "14px 16px"
|
|
1037
|
-
}))), co =
|
|
1052
|
+
}))), co = F("ul", {
|
|
1038
1053
|
name: "MuiAutocomplete",
|
|
1039
1054
|
slot: "Listbox"
|
|
1040
|
-
})(
|
|
1055
|
+
})(ue(({
|
|
1041
1056
|
theme: n
|
|
1042
1057
|
}) => ({
|
|
1043
1058
|
listStyle: "none",
|
|
@@ -1046,7 +1061,7 @@ const oo = (n) => {
|
|
|
1046
1061
|
maxHeight: "40vh",
|
|
1047
1062
|
overflow: "auto",
|
|
1048
1063
|
position: "relative",
|
|
1049
|
-
[`& .${
|
|
1064
|
+
[`& .${p.option}`]: {
|
|
1050
1065
|
minHeight: 48,
|
|
1051
1066
|
display: "flex",
|
|
1052
1067
|
overflow: "hidden",
|
|
@@ -1063,7 +1078,7 @@ const oo = (n) => {
|
|
|
1063
1078
|
[n.breakpoints.up("sm")]: {
|
|
1064
1079
|
minHeight: "auto"
|
|
1065
1080
|
},
|
|
1066
|
-
[`&.${
|
|
1081
|
+
[`&.${p.focused}`]: {
|
|
1067
1082
|
backgroundColor: (n.vars || n).palette.action.hover,
|
|
1068
1083
|
// Reset on touch devices, it doesn't add specificity
|
|
1069
1084
|
"@media (hover: none)": {
|
|
@@ -1074,327 +1089,327 @@ const oo = (n) => {
|
|
|
1074
1089
|
opacity: (n.vars || n).palette.action.disabledOpacity,
|
|
1075
1090
|
pointerEvents: "none"
|
|
1076
1091
|
},
|
|
1077
|
-
[`&.${
|
|
1092
|
+
[`&.${p.focusVisible}`]: {
|
|
1078
1093
|
backgroundColor: (n.vars || n).palette.action.focus
|
|
1079
1094
|
},
|
|
1080
1095
|
'&[aria-selected="true"]': {
|
|
1081
|
-
backgroundColor: n.
|
|
1082
|
-
[`&.${
|
|
1083
|
-
backgroundColor: n.vars
|
|
1096
|
+
backgroundColor: n.alpha((n.vars || n).palette.primary.main, (n.vars || n).palette.action.selectedOpacity),
|
|
1097
|
+
[`&.${p.focused}`]: {
|
|
1098
|
+
backgroundColor: n.alpha((n.vars || n).palette.primary.main, `${(n.vars || n).palette.action.selectedOpacity} + ${(n.vars || n).palette.action.hoverOpacity}`),
|
|
1084
1099
|
// Reset on touch devices, it doesn't add specificity
|
|
1085
1100
|
"@media (hover: none)": {
|
|
1086
1101
|
backgroundColor: (n.vars || n).palette.action.selected
|
|
1087
1102
|
}
|
|
1088
1103
|
},
|
|
1089
|
-
[`&.${
|
|
1090
|
-
backgroundColor: n.vars
|
|
1104
|
+
[`&.${p.focusVisible}`]: {
|
|
1105
|
+
backgroundColor: n.alpha((n.vars || n).palette.primary.main, `${(n.vars || n).palette.action.selectedOpacity} + ${(n.vars || n).palette.action.focusOpacity}`)
|
|
1091
1106
|
}
|
|
1092
1107
|
}
|
|
1093
1108
|
}
|
|
1094
|
-
}))), fo =
|
|
1109
|
+
}))), fo = F(Xe, {
|
|
1095
1110
|
name: "MuiAutocomplete",
|
|
1096
1111
|
slot: "GroupLabel"
|
|
1097
|
-
})(
|
|
1112
|
+
})(ue(({
|
|
1098
1113
|
theme: n
|
|
1099
1114
|
}) => ({
|
|
1100
1115
|
backgroundColor: (n.vars || n).palette.background.paper,
|
|
1101
1116
|
top: -8
|
|
1102
|
-
}))), go =
|
|
1117
|
+
}))), go = F("ul", {
|
|
1103
1118
|
name: "MuiAutocomplete",
|
|
1104
1119
|
slot: "GroupUl"
|
|
1105
1120
|
})({
|
|
1106
1121
|
padding: 0,
|
|
1107
|
-
[`& .${
|
|
1122
|
+
[`& .${p.option}`]: {
|
|
1108
1123
|
paddingLeft: 24
|
|
1109
1124
|
}
|
|
1110
|
-
}), mo = /* @__PURE__ */ x.forwardRef(function(
|
|
1111
|
-
const
|
|
1112
|
-
props:
|
|
1125
|
+
}), mo = /* @__PURE__ */ x.forwardRef(function(a, u) {
|
|
1126
|
+
const f = Et({
|
|
1127
|
+
props: a,
|
|
1113
1128
|
name: "MuiAutocomplete"
|
|
1114
1129
|
}), {
|
|
1115
|
-
autoComplete:
|
|
1116
|
-
autoHighlight:
|
|
1130
|
+
autoComplete: $ = !1,
|
|
1131
|
+
autoHighlight: R = !1,
|
|
1117
1132
|
autoSelect: v = !1,
|
|
1118
|
-
blurOnSelect:
|
|
1119
|
-
ChipProps:
|
|
1120
|
-
className:
|
|
1121
|
-
clearIcon:
|
|
1133
|
+
blurOnSelect: D = !1,
|
|
1134
|
+
ChipProps: U,
|
|
1135
|
+
className: O,
|
|
1136
|
+
clearIcon: T = kt || (kt = /* @__PURE__ */ A(jt, {
|
|
1122
1137
|
fontSize: "small"
|
|
1123
1138
|
})),
|
|
1124
|
-
clearOnBlur:
|
|
1125
|
-
clearOnEscape:
|
|
1126
|
-
clearText:
|
|
1127
|
-
closeText:
|
|
1128
|
-
componentsProps:
|
|
1129
|
-
defaultValue:
|
|
1130
|
-
disableClearable:
|
|
1131
|
-
disableCloseOnSelect:
|
|
1132
|
-
disabled:
|
|
1133
|
-
disabledItemsFocusable:
|
|
1139
|
+
clearOnBlur: B = !f.freeSolo,
|
|
1140
|
+
clearOnEscape: ce = !1,
|
|
1141
|
+
clearText: N = "Clear",
|
|
1142
|
+
closeText: Le = "Close",
|
|
1143
|
+
componentsProps: ke,
|
|
1144
|
+
defaultValue: bt = f.multiple ? [] : null,
|
|
1145
|
+
disableClearable: Re = !1,
|
|
1146
|
+
disableCloseOnSelect: de = !1,
|
|
1147
|
+
disabled: W = !1,
|
|
1148
|
+
disabledItemsFocusable: De = !1,
|
|
1134
1149
|
disableListWrap: Qe = !1,
|
|
1135
|
-
disablePortal:
|
|
1150
|
+
disablePortal: re = !1,
|
|
1136
1151
|
filterOptions: Ze,
|
|
1137
|
-
filterSelectedOptions:
|
|
1138
|
-
forcePopupIcon:
|
|
1139
|
-
freeSolo:
|
|
1152
|
+
filterSelectedOptions: ht = !1,
|
|
1153
|
+
forcePopupIcon: Ie = "auto",
|
|
1154
|
+
freeSolo: Ne = !1,
|
|
1140
1155
|
fullWidth: Y = !1,
|
|
1141
|
-
getLimitTagsText:
|
|
1156
|
+
getLimitTagsText: c = (d) => `+${d}`,
|
|
1142
1157
|
getOptionDisabled: et,
|
|
1143
1158
|
getOptionKey: tt,
|
|
1144
|
-
getOptionLabel:
|
|
1159
|
+
getOptionLabel: Ee,
|
|
1145
1160
|
isOptionEqualToValue: Q,
|
|
1146
|
-
groupBy:
|
|
1147
|
-
handleHomeEndKeys:
|
|
1148
|
-
id:
|
|
1149
|
-
includeInputInList:
|
|
1150
|
-
inputValue:
|
|
1151
|
-
limitTags:
|
|
1161
|
+
groupBy: Me,
|
|
1162
|
+
handleHomeEndKeys: yt = !f.freeSolo,
|
|
1163
|
+
id: xt,
|
|
1164
|
+
includeInputInList: It = !1,
|
|
1165
|
+
inputValue: G,
|
|
1166
|
+
limitTags: w = -1,
|
|
1152
1167
|
ListboxComponent: ot,
|
|
1153
|
-
ListboxProps:
|
|
1154
|
-
loading:
|
|
1155
|
-
loadingText:
|
|
1156
|
-
multiple:
|
|
1157
|
-
noOptionsText:
|
|
1168
|
+
ListboxProps: Ve,
|
|
1169
|
+
loading: E = !1,
|
|
1170
|
+
loadingText: P = "Loading…",
|
|
1171
|
+
multiple: Oe = !1,
|
|
1172
|
+
noOptionsText: Pe = "No options",
|
|
1158
1173
|
onChange: h,
|
|
1159
|
-
onClose:
|
|
1160
|
-
onHighlightChange:
|
|
1161
|
-
onInputChange:
|
|
1162
|
-
onOpen:
|
|
1163
|
-
open:
|
|
1174
|
+
onClose: V,
|
|
1175
|
+
onHighlightChange: Ce,
|
|
1176
|
+
onInputChange: Ot,
|
|
1177
|
+
onOpen: M,
|
|
1178
|
+
open: Fe,
|
|
1164
1179
|
openOnFocus: nt = !1,
|
|
1165
|
-
openText:
|
|
1166
|
-
options:
|
|
1167
|
-
PaperComponent:
|
|
1168
|
-
PopperComponent:
|
|
1169
|
-
popupIcon: g =
|
|
1170
|
-
readOnly:
|
|
1171
|
-
renderGroup:
|
|
1172
|
-
renderInput:
|
|
1173
|
-
renderOption:
|
|
1174
|
-
renderTags:
|
|
1175
|
-
renderValue:
|
|
1176
|
-
selectOnFocus:
|
|
1177
|
-
size:
|
|
1178
|
-
slots:
|
|
1179
|
-
slotProps:
|
|
1180
|
-
value:
|
|
1181
|
-
...
|
|
1182
|
-
} =
|
|
1183
|
-
getRootProps:
|
|
1184
|
-
getInputProps:
|
|
1180
|
+
openText: S = "Open",
|
|
1181
|
+
options: Pt,
|
|
1182
|
+
PaperComponent: l,
|
|
1183
|
+
PopperComponent: $e,
|
|
1184
|
+
popupIcon: g = Rt || (Rt = /* @__PURE__ */ A(zt, {})),
|
|
1185
|
+
readOnly: ae = !1,
|
|
1186
|
+
renderGroup: fe,
|
|
1187
|
+
renderInput: He,
|
|
1188
|
+
renderOption: ge,
|
|
1189
|
+
renderTags: q,
|
|
1190
|
+
renderValue: se,
|
|
1191
|
+
selectOnFocus: Ct = !f.freeSolo,
|
|
1192
|
+
size: me = "medium",
|
|
1193
|
+
slots: ze = {},
|
|
1194
|
+
slotProps: L = {},
|
|
1195
|
+
value: m,
|
|
1196
|
+
...H
|
|
1197
|
+
} = f, {
|
|
1198
|
+
getRootProps: je,
|
|
1199
|
+
getInputProps: z,
|
|
1185
1200
|
getInputLabelProps: rt,
|
|
1186
|
-
getPopupIndicatorProps:
|
|
1187
|
-
getClearProps:
|
|
1188
|
-
getItemProps:
|
|
1189
|
-
getListboxProps:
|
|
1190
|
-
getOptionProps:
|
|
1191
|
-
value:
|
|
1192
|
-
dirty:
|
|
1193
|
-
expanded:
|
|
1194
|
-
id:
|
|
1195
|
-
popupOpen:
|
|
1196
|
-
focused:
|
|
1197
|
-
focusedItem:
|
|
1198
|
-
anchorEl:
|
|
1199
|
-
setAnchorEl:
|
|
1200
|
-
inputValue:
|
|
1201
|
-
groupedOptions:
|
|
1201
|
+
getPopupIndicatorProps: K,
|
|
1202
|
+
getClearProps: j,
|
|
1203
|
+
getItemProps: Ue,
|
|
1204
|
+
getListboxProps: at,
|
|
1205
|
+
getOptionProps: Se,
|
|
1206
|
+
value: Z,
|
|
1207
|
+
dirty: _,
|
|
1208
|
+
expanded: ie,
|
|
1209
|
+
id: J,
|
|
1210
|
+
popupOpen: X,
|
|
1211
|
+
focused: ee,
|
|
1212
|
+
focusedItem: st,
|
|
1213
|
+
anchorEl: le,
|
|
1214
|
+
setAnchorEl: Be,
|
|
1215
|
+
inputValue: it,
|
|
1216
|
+
groupedOptions: be
|
|
1202
1217
|
} = Yt({
|
|
1203
|
-
...
|
|
1218
|
+
...f,
|
|
1204
1219
|
componentName: "Autocomplete"
|
|
1205
|
-
}),
|
|
1206
|
-
onMouseDown:
|
|
1207
|
-
} =
|
|
1208
|
-
ref:
|
|
1209
|
-
...
|
|
1210
|
-
} =
|
|
1211
|
-
...
|
|
1212
|
-
disablePortal:
|
|
1213
|
-
expanded:
|
|
1214
|
-
focused:
|
|
1220
|
+
}), he = !Re && !W && _ && !ae, Te = (!Ne || Ie === !0) && Ie !== !1, {
|
|
1221
|
+
onMouseDown: lt
|
|
1222
|
+
} = z(), {
|
|
1223
|
+
ref: pt,
|
|
1224
|
+
...ut
|
|
1225
|
+
} = at(), ve = Ee || ((d) => d.label ?? d), I = {
|
|
1226
|
+
...f,
|
|
1227
|
+
disablePortal: re,
|
|
1228
|
+
expanded: ie,
|
|
1229
|
+
focused: ee,
|
|
1215
1230
|
fullWidth: Y,
|
|
1216
|
-
getOptionLabel:
|
|
1217
|
-
hasClearIcon:
|
|
1218
|
-
hasPopupIcon:
|
|
1219
|
-
inputFocused:
|
|
1220
|
-
popupOpen:
|
|
1221
|
-
size:
|
|
1222
|
-
},
|
|
1231
|
+
getOptionLabel: ve,
|
|
1232
|
+
hasClearIcon: he,
|
|
1233
|
+
hasPopupIcon: Te,
|
|
1234
|
+
inputFocused: st === -1,
|
|
1235
|
+
popupOpen: X,
|
|
1236
|
+
size: me
|
|
1237
|
+
}, C = oo(I), te = {
|
|
1223
1238
|
slots: {
|
|
1224
|
-
paper:
|
|
1225
|
-
popper:
|
|
1226
|
-
...
|
|
1239
|
+
paper: l,
|
|
1240
|
+
popper: $e,
|
|
1241
|
+
...ze
|
|
1227
1242
|
},
|
|
1228
1243
|
slotProps: {
|
|
1229
|
-
chip:
|
|
1230
|
-
listbox:
|
|
1231
|
-
...
|
|
1232
|
-
...
|
|
1244
|
+
chip: U,
|
|
1245
|
+
listbox: Ve,
|
|
1246
|
+
...ke,
|
|
1247
|
+
...L
|
|
1233
1248
|
}
|
|
1234
|
-
}, [
|
|
1249
|
+
}, [dt, Ae] = gt("listbox", {
|
|
1235
1250
|
elementType: co,
|
|
1236
|
-
externalForwardedProps:
|
|
1237
|
-
ownerState:
|
|
1238
|
-
className:
|
|
1239
|
-
additionalProps:
|
|
1240
|
-
ref:
|
|
1241
|
-
}), [
|
|
1242
|
-
elementType: Mt,
|
|
1243
|
-
externalForwardedProps: Z,
|
|
1244
|
-
ownerState: O,
|
|
1245
|
-
className: P.paper
|
|
1246
|
-
}), [r, p] = ft("popper", {
|
|
1251
|
+
externalForwardedProps: te,
|
|
1252
|
+
ownerState: I,
|
|
1253
|
+
className: C.listbox,
|
|
1254
|
+
additionalProps: ut,
|
|
1255
|
+
ref: pt
|
|
1256
|
+
}), [We, o] = gt("paper", {
|
|
1247
1257
|
elementType: Vt,
|
|
1248
|
-
externalForwardedProps:
|
|
1249
|
-
ownerState:
|
|
1250
|
-
className:
|
|
1258
|
+
externalForwardedProps: te,
|
|
1259
|
+
ownerState: I,
|
|
1260
|
+
className: C.paper
|
|
1261
|
+
}), [e, r] = gt("popper", {
|
|
1262
|
+
elementType: Ft,
|
|
1263
|
+
externalForwardedProps: te,
|
|
1264
|
+
ownerState: I,
|
|
1265
|
+
className: C.popper,
|
|
1251
1266
|
additionalProps: {
|
|
1252
|
-
disablePortal:
|
|
1267
|
+
disablePortal: re,
|
|
1253
1268
|
style: {
|
|
1254
|
-
width:
|
|
1269
|
+
width: le ? le.clientWidth : null
|
|
1255
1270
|
},
|
|
1256
1271
|
role: "presentation",
|
|
1257
|
-
anchorEl:
|
|
1258
|
-
open:
|
|
1272
|
+
anchorEl: le,
|
|
1273
|
+
open: X
|
|
1259
1274
|
}
|
|
1260
1275
|
});
|
|
1261
|
-
let
|
|
1262
|
-
const
|
|
1263
|
-
className:
|
|
1264
|
-
disabled:
|
|
1265
|
-
...
|
|
1276
|
+
let s;
|
|
1277
|
+
const i = (d) => ({
|
|
1278
|
+
className: C.tag,
|
|
1279
|
+
disabled: W,
|
|
1280
|
+
...Ue(d)
|
|
1266
1281
|
});
|
|
1267
|
-
if (
|
|
1282
|
+
if (Oe ? Z.length > 0 && (q ? s = q(Z, i, I) : se ? s = se(Z, i, I) : s = Z.map((d, oe) => {
|
|
1268
1283
|
const {
|
|
1269
|
-
key:
|
|
1284
|
+
key: ne,
|
|
1270
1285
|
...we
|
|
1271
|
-
} =
|
|
1272
|
-
index:
|
|
1286
|
+
} = i({
|
|
1287
|
+
index: oe
|
|
1273
1288
|
});
|
|
1274
1289
|
return /* @__PURE__ */ A(Gt, {
|
|
1275
|
-
label:
|
|
1276
|
-
size:
|
|
1290
|
+
label: ve(d),
|
|
1291
|
+
size: me,
|
|
1277
1292
|
...we,
|
|
1278
|
-
...
|
|
1279
|
-
},
|
|
1280
|
-
})) :
|
|
1281
|
-
const
|
|
1282
|
-
!
|
|
1283
|
-
className:
|
|
1284
|
-
children:
|
|
1285
|
-
},
|
|
1293
|
+
...te.slotProps.chip
|
|
1294
|
+
}, ne);
|
|
1295
|
+
})) : se && Z != null && (s = se(Z, i, I)), w > -1 && Array.isArray(s)) {
|
|
1296
|
+
const d = s.length - w;
|
|
1297
|
+
!ee && d > 0 && (s = s.splice(0, w), s.push(/* @__PURE__ */ A("span", {
|
|
1298
|
+
className: C.tag,
|
|
1299
|
+
children: c(d)
|
|
1300
|
+
}, s.length)));
|
|
1286
1301
|
}
|
|
1287
|
-
const
|
|
1302
|
+
const y = fe || ((d) => /* @__PURE__ */ Ke("li", {
|
|
1288
1303
|
children: [/* @__PURE__ */ A(fo, {
|
|
1289
|
-
className:
|
|
1290
|
-
ownerState:
|
|
1304
|
+
className: C.groupLabel,
|
|
1305
|
+
ownerState: I,
|
|
1291
1306
|
component: "div",
|
|
1292
|
-
children:
|
|
1307
|
+
children: d.group
|
|
1293
1308
|
}), /* @__PURE__ */ A(go, {
|
|
1294
|
-
className:
|
|
1295
|
-
ownerState:
|
|
1296
|
-
children:
|
|
1309
|
+
className: C.groupUl,
|
|
1310
|
+
ownerState: I,
|
|
1311
|
+
children: d.children
|
|
1297
1312
|
})]
|
|
1298
|
-
},
|
|
1313
|
+
}, d.key)), ye = ge || ((d, oe) => {
|
|
1299
1314
|
const {
|
|
1300
|
-
key:
|
|
1315
|
+
key: ne,
|
|
1301
1316
|
...we
|
|
1302
|
-
} =
|
|
1317
|
+
} = d;
|
|
1303
1318
|
return /* @__PURE__ */ A("li", {
|
|
1304
1319
|
...we,
|
|
1305
|
-
children:
|
|
1306
|
-
},
|
|
1307
|
-
}), $t = (
|
|
1308
|
-
const
|
|
1309
|
-
option:
|
|
1310
|
-
index:
|
|
1320
|
+
children: ve(oe)
|
|
1321
|
+
}, ne);
|
|
1322
|
+
}), $t = (d, oe) => {
|
|
1323
|
+
const ne = Se({
|
|
1324
|
+
option: d,
|
|
1325
|
+
index: oe
|
|
1311
1326
|
});
|
|
1312
|
-
return
|
|
1313
|
-
...
|
|
1314
|
-
className:
|
|
1315
|
-
},
|
|
1316
|
-
selected:
|
|
1317
|
-
index:
|
|
1318
|
-
inputValue:
|
|
1319
|
-
},
|
|
1320
|
-
}, Ge =
|
|
1327
|
+
return ye({
|
|
1328
|
+
...ne,
|
|
1329
|
+
className: C.option
|
|
1330
|
+
}, d, {
|
|
1331
|
+
selected: ne["aria-selected"],
|
|
1332
|
+
index: oe,
|
|
1333
|
+
inputValue: it
|
|
1334
|
+
}, I);
|
|
1335
|
+
}, Ge = te.slotProps.clearIndicator, qe = te.slotProps.popupIndicator;
|
|
1321
1336
|
return /* @__PURE__ */ Ke(x.Fragment, {
|
|
1322
1337
|
children: [/* @__PURE__ */ A(no, {
|
|
1323
|
-
ref:
|
|
1324
|
-
className: Je(
|
|
1325
|
-
ownerState:
|
|
1326
|
-
...
|
|
1327
|
-
children:
|
|
1328
|
-
id:
|
|
1329
|
-
disabled:
|
|
1338
|
+
ref: u,
|
|
1339
|
+
className: Je(C.root, O),
|
|
1340
|
+
ownerState: I,
|
|
1341
|
+
...je(H),
|
|
1342
|
+
children: He({
|
|
1343
|
+
id: J,
|
|
1344
|
+
disabled: W,
|
|
1330
1345
|
fullWidth: !0,
|
|
1331
|
-
size:
|
|
1346
|
+
size: me === "small" ? "small" : void 0,
|
|
1332
1347
|
InputLabelProps: rt(),
|
|
1333
1348
|
InputProps: {
|
|
1334
|
-
ref:
|
|
1335
|
-
className:
|
|
1336
|
-
startAdornment:
|
|
1337
|
-
onMouseDown: (
|
|
1338
|
-
|
|
1349
|
+
ref: Be,
|
|
1350
|
+
className: C.inputRoot,
|
|
1351
|
+
startAdornment: s,
|
|
1352
|
+
onMouseDown: (d) => {
|
|
1353
|
+
d.target === d.currentTarget && lt(d);
|
|
1339
1354
|
},
|
|
1340
|
-
...(
|
|
1355
|
+
...(he || Te) && {
|
|
1341
1356
|
endAdornment: /* @__PURE__ */ Ke(ro, {
|
|
1342
|
-
className:
|
|
1343
|
-
ownerState:
|
|
1344
|
-
children: [
|
|
1345
|
-
...
|
|
1346
|
-
"aria-label":
|
|
1347
|
-
title:
|
|
1348
|
-
ownerState:
|
|
1357
|
+
className: C.endAdornment,
|
|
1358
|
+
ownerState: I,
|
|
1359
|
+
children: [he ? /* @__PURE__ */ A(ao, {
|
|
1360
|
+
...j(),
|
|
1361
|
+
"aria-label": N,
|
|
1362
|
+
title: N,
|
|
1363
|
+
ownerState: I,
|
|
1349
1364
|
...Ge,
|
|
1350
|
-
className: Je(
|
|
1351
|
-
children:
|
|
1352
|
-
}) : null,
|
|
1353
|
-
...
|
|
1354
|
-
disabled:
|
|
1355
|
-
"aria-label":
|
|
1356
|
-
title:
|
|
1357
|
-
ownerState:
|
|
1365
|
+
className: Je(C.clearIndicator, Ge == null ? void 0 : Ge.className),
|
|
1366
|
+
children: T
|
|
1367
|
+
}) : null, Te ? /* @__PURE__ */ A(so, {
|
|
1368
|
+
...K(),
|
|
1369
|
+
disabled: W,
|
|
1370
|
+
"aria-label": X ? Le : S,
|
|
1371
|
+
title: X ? Le : S,
|
|
1372
|
+
ownerState: I,
|
|
1358
1373
|
...qe,
|
|
1359
|
-
className: Je(
|
|
1374
|
+
className: Je(C.popupIndicator, qe == null ? void 0 : qe.className),
|
|
1360
1375
|
children: g
|
|
1361
1376
|
}) : null]
|
|
1362
1377
|
})
|
|
1363
1378
|
}
|
|
1364
1379
|
},
|
|
1365
1380
|
inputProps: {
|
|
1366
|
-
className:
|
|
1367
|
-
disabled:
|
|
1368
|
-
readOnly:
|
|
1369
|
-
...
|
|
1381
|
+
className: C.input,
|
|
1382
|
+
disabled: W,
|
|
1383
|
+
readOnly: ae,
|
|
1384
|
+
...z()
|
|
1370
1385
|
}
|
|
1371
1386
|
})
|
|
1372
|
-
}),
|
|
1373
|
-
as:
|
|
1374
|
-
...
|
|
1387
|
+
}), le ? /* @__PURE__ */ A(io, {
|
|
1388
|
+
as: e,
|
|
1389
|
+
...r,
|
|
1375
1390
|
children: /* @__PURE__ */ Ke(lo, {
|
|
1376
|
-
as:
|
|
1377
|
-
...
|
|
1378
|
-
children: [
|
|
1379
|
-
className:
|
|
1380
|
-
ownerState:
|
|
1381
|
-
children:
|
|
1382
|
-
}) : null,
|
|
1383
|
-
className:
|
|
1384
|
-
ownerState:
|
|
1391
|
+
as: We,
|
|
1392
|
+
...o,
|
|
1393
|
+
children: [E && be.length === 0 ? /* @__PURE__ */ A(po, {
|
|
1394
|
+
className: C.loading,
|
|
1395
|
+
ownerState: I,
|
|
1396
|
+
children: P
|
|
1397
|
+
}) : null, be.length === 0 && !Ne && !E ? /* @__PURE__ */ A(uo, {
|
|
1398
|
+
className: C.noOptions,
|
|
1399
|
+
ownerState: I,
|
|
1385
1400
|
role: "presentation",
|
|
1386
|
-
onMouseDown: (
|
|
1387
|
-
|
|
1401
|
+
onMouseDown: (d) => {
|
|
1402
|
+
d.preventDefault();
|
|
1388
1403
|
},
|
|
1389
|
-
children:
|
|
1390
|
-
}) : null,
|
|
1404
|
+
children: Pe
|
|
1405
|
+
}) : null, be.length > 0 ? /* @__PURE__ */ A(dt, {
|
|
1391
1406
|
as: ot,
|
|
1392
|
-
...
|
|
1393
|
-
children:
|
|
1394
|
-
key:
|
|
1395
|
-
group:
|
|
1396
|
-
children:
|
|
1397
|
-
}) : $t(
|
|
1407
|
+
...Ae,
|
|
1408
|
+
children: be.map((d, oe) => Me ? y({
|
|
1409
|
+
key: d.key,
|
|
1410
|
+
group: d.group,
|
|
1411
|
+
children: d.options.map((ne, we) => $t(ne, d.index + we))
|
|
1412
|
+
}) : $t(d, oe))
|
|
1398
1413
|
}) : null]
|
|
1399
1414
|
})
|
|
1400
1415
|
}) : null]
|
|
@@ -1569,6 +1584,7 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
|
1569
1584
|
* Used to determine the disabled state for a given option.
|
|
1570
1585
|
*
|
|
1571
1586
|
* @param {Value} option The option to test.
|
|
1587
|
+
* @template Value The option shape. Will be the same shape as an item of the options.
|
|
1572
1588
|
* @returns {boolean}
|
|
1573
1589
|
*/
|
|
1574
1590
|
getOptionDisabled: t.func,
|
|
@@ -1856,7 +1872,7 @@ process.env.NODE_ENV !== "production" && (mo.propTypes = {
|
|
|
1856
1872
|
export {
|
|
1857
1873
|
mo as A,
|
|
1858
1874
|
Xe as L,
|
|
1859
|
-
|
|
1875
|
+
p as a,
|
|
1860
1876
|
Qt as b,
|
|
1861
1877
|
Kt as c,
|
|
1862
1878
|
to as g,
|