@e-llm-studio/instant-learning 0.0.94 → 0.0.95
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/_virtual/index.js +1 -1
- package/dist/_virtual/index10.js +1 -1
- package/dist/_virtual/index11.js +1 -1
- package/dist/_virtual/index12.js +1 -1
- package/dist/_virtual/index13.js +1 -1
- package/dist/_virtual/index14.js +1 -1
- package/dist/_virtual/index15.js +1 -1
- package/dist/_virtual/index16.js +1 -1
- package/dist/_virtual/index17.js +1 -1
- package/dist/_virtual/index18.js +1 -1
- package/dist/_virtual/index19.js +1 -1
- package/dist/_virtual/index2.js +1 -1
- package/dist/_virtual/index20.js +1 -1
- package/dist/_virtual/index21.js +1 -1
- package/dist/_virtual/index22.js +1 -1
- package/dist/_virtual/index23.js +1 -1
- package/dist/_virtual/index24.js +1 -1
- package/dist/_virtual/index25.js +1 -1
- package/dist/_virtual/index27.js +1 -1
- package/dist/_virtual/index28.js +1 -1
- package/dist/_virtual/index3.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/_virtual/index7.js +1 -1
- package/dist/_virtual/index8.js +1 -1
- package/dist/_virtual/index9.js +1 -1
- package/dist/cjs/_virtual/index.js +1 -1
- package/dist/cjs/_virtual/index10.js +1 -1
- package/dist/cjs/_virtual/index11.js +1 -1
- package/dist/cjs/_virtual/index12.js +1 -1
- package/dist/cjs/_virtual/index13.js +1 -1
- package/dist/cjs/_virtual/index14.js +1 -1
- package/dist/cjs/_virtual/index15.js +1 -1
- package/dist/cjs/_virtual/index16.js +1 -1
- package/dist/cjs/_virtual/index17.js +1 -1
- package/dist/cjs/_virtual/index18.js +1 -1
- package/dist/cjs/_virtual/index19.js +1 -1
- package/dist/cjs/_virtual/index2.js +1 -1
- package/dist/cjs/_virtual/index20.js +1 -1
- package/dist/cjs/_virtual/index21.js +1 -1
- package/dist/cjs/_virtual/index22.js +1 -1
- package/dist/cjs/_virtual/index23.js +1 -1
- package/dist/cjs/_virtual/index24.js +1 -1
- package/dist/cjs/_virtual/index25.js +1 -1
- package/dist/cjs/_virtual/index27.js +1 -1
- package/dist/cjs/_virtual/index28.js +1 -1
- package/dist/cjs/_virtual/index3.js +1 -1
- package/dist/cjs/_virtual/index4.js +1 -1
- package/dist/cjs/_virtual/index5.js +1 -1
- package/dist/cjs/_virtual/index6.js +1 -1
- package/dist/cjs/_virtual/index7.js +1 -1
- package/dist/cjs/_virtual/index8.js +1 -1
- package/dist/cjs/_virtual/index9.js +1 -1
- package/dist/cjs/features/DocumentLearning/DocumentLearning.js +1 -1
- package/dist/cjs/features/DocumentLearning/_components/BookLearningForm.js +1 -1
- package/dist/cjs/features/DocumentLearning/_components/ChatComponent.js +1 -1
- package/dist/cjs/features/DocumentLearning/_components/ConflictingLearningWarnCard.js +1 -1
- package/dist/cjs/features/InstantLearning/InstantLearning.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ChatComponent.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ConflictingLearningWarnCard.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ConflictingLearningWarnCardDB.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ContextualChatComponent.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ContextualConflictDBCard.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/GeneralizationAccordion.js +1 -1
- package/dist/cjs/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
- package/dist/cjs/features/WtaWnta/WtaWnta.js +1 -1
- package/dist/cjs/features/WtaWnta/_components/AgentDetailsForm.js +1 -1
- package/dist/cjs/features/WtaWnta/_components/SimilarConflictingCard.js +1 -1
- package/dist/cjs/features/WtaWnta/_components/ValidationCard.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/streaming-response/dist/index.js +1 -1
- package/dist/cjs/node_modules/@e-llm-studio/streaming-response/dist/index.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createPalette.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createSpacing.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createSpacing.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createTheme.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/styles/createTypography.js +1 -1
- package/dist/cjs/node_modules/@material-ui/core/esm/utils/capitalize.js +1 -1
- package/dist/cjs/node_modules/@material-ui/icons/utils/createSvgIcon.js +1 -1
- package/dist/cjs/node_modules/@material-ui/icons/utils/createSvgIcon.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/index.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/withStyles/withStyles.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/withStyles/withStyles.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/withTheme/withTheme.js +1 -1
- package/dist/cjs/node_modules/@material-ui/styles/esm/withTheme/withTheme.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/breakpoints.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/breakpoints.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/merge.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/responsivePropType.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/responsivePropType.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/spacing.js +1 -1
- package/dist/cjs/node_modules/@material-ui/system/esm/spacing.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/elementAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/elementAcceptingRef.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js.map +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/getDisplayName.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/refType.js +1 -1
- package/dist/cjs/node_modules/@material-ui/utils/esm/refType.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Accordion/Accordion.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Accordion/Accordion.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionActions/AccordionActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionActions/AccordionActions.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionDetails/AccordionDetails.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AccordionSummary/AccordionSummary.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Alert/Alert.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Alert/Alert.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AlertTitle/AlertTitle.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AlertTitle/AlertTitle.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AppBar/AppBar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AppBar/AppBar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Autocomplete/Autocomplete.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Avatar/Avatar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Avatar/Avatar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Backdrop/Backdrop.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Backdrop/Backdrop.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Badge/Badge.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Badge/Badge.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Badge/useBadge.js +1 -1
- package/dist/cjs/node_modules/@mui/material/BottomNavigation/BottomNavigation.js +1 -1
- package/dist/cjs/node_modules/@mui/material/BottomNavigation/BottomNavigation.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/dist/cjs/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Box/Box.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Box/Box.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Button/Button.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Button/Button.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/ButtonBase.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/Ripple.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/Ripple.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/TouchRipple.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonBase/TouchRipple.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Card/Card.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Card/Card.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CardActionArea/CardActionArea.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardActionArea/CardActionArea.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CardActions/CardActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardActions/CardActions.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CardContent/CardContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardContent/CardContent.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CardHeader/CardHeader.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardHeader/CardHeader.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CardMedia/CardMedia.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CardMedia/CardMedia.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Checkbox/Checkbox.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Checkbox/Checkbox.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Chip/Chip.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Chip/Chip.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CircularProgress/CircularProgress.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CircularProgress/CircularProgress.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Collapse/Collapse.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Collapse/Collapse.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Container/Container.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Container/Container.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/CssBaseline/CssBaseline.js +1 -1
- package/dist/cjs/node_modules/@mui/material/CssBaseline/CssBaseline.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Dialog/Dialog.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Dialog/Dialog.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogActions/DialogActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogActions/DialogActions.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogContent/DialogContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogContent/DialogContent.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogContentText/DialogContentText.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogContentText/DialogContentText.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogTitle/DialogTitle.js +1 -1
- package/dist/cjs/node_modules/@mui/material/DialogTitle/DialogTitle.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Divider/Divider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Divider/Divider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Drawer/Drawer.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Drawer/Drawer.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Fab/Fab.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Fab/Fab.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Fade/Fade.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Fade/Fade.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FilledInput/FilledInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FilledInput/FilledInput.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FormControl/FormControl.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormControl/FormControl.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormControlLabel/FormControlLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FormGroup/FormGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormGroup/FormGroup.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FormHelperText/FormHelperText.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormHelperText/FormHelperText.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/FormLabel/FormLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/FormLabel/FormLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/cjs/node_modules/@mui/material/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Grid/Grid.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Grid/Grid.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Grow/Grow.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Grow/Grow.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/Hidden.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/Hidden.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/HiddenCss.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/HiddenCss.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/HiddenJs.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/HiddenJs.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/withWidth.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Hidden/withWidth.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Icon/Icon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Icon/Icon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/IconButton/IconButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/IconButton/IconButton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageList/ImageList.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageList/ImageList.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageListItem/ImageListItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageListItem/ImageListItem.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Input/Input.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Input/Input.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/InputAdornment/InputAdornment.js +1 -1
- package/dist/cjs/node_modules/@mui/material/InputAdornment/InputAdornment.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/InputBase/InputBase.js +1 -1
- package/dist/cjs/node_modules/@mui/material/InputBase/InputBase.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/InputLabel/InputLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/InputLabel/InputLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/LinearProgress/LinearProgress.js +1 -1
- package/dist/cjs/node_modules/@mui/material/LinearProgress/LinearProgress.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Link/Link.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Link/Link.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Link/getTextDecoration.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Link/getTextDecoration.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/List/List.js +1 -1
- package/dist/cjs/node_modules/@mui/material/List/List.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItem/ListItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItem/ListItem.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemButton/ListItemButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemButton/ListItemButton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemIcon/ListItemIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemIcon/ListItemIcon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemText/ListItemText.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListItemText/ListItemText.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ListSubheader/ListSubheader.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ListSubheader/ListSubheader.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Menu/Menu.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Menu/Menu.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/MenuItem/MenuItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/MenuItem/MenuItem.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/MenuList/MenuList.js +1 -1
- package/dist/cjs/node_modules/@mui/material/MenuList/MenuList.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/MobileStepper/MobileStepper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/MobileStepper/MobileStepper.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Modal/Modal.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Modal/Modal.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Modal/ModalManager.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Modal/useModal.js +1 -1
- package/dist/cjs/node_modules/@mui/material/NativeSelect/NativeSelect.js +1 -1
- package/dist/cjs/node_modules/@mui/material/NativeSelect/NativeSelect.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/NativeSelect/NativeSelectInput.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/NoSsr/NoSsr.js +1 -1
- package/dist/cjs/node_modules/@mui/material/NoSsr/NoSsr.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +1 -1
- package/dist/cjs/node_modules/@mui/material/OutlinedInput/NotchedOutline.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/OutlinedInput/OutlinedInput.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Pagination/Pagination.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Pagination/Pagination.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/PaginationItem/PaginationItem.js +1 -1
- package/dist/cjs/node_modules/@mui/material/PaginationItem/PaginationItem.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Paper/Paper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Paper/Paper.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Popover/Popover.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Popover/Popover.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Popper/BasePopper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Popper/BasePopper.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Popper/Popper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Popper/Popper.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Portal/Portal.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Portal/Portal.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Radio/Radio.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Radio/Radio.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Radio/RadioButtonIcon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/RadioGroup/RadioGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Rating/Rating.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Rating/Rating.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Select/Select.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Select/Select.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Select/SelectInput.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Select/SelectInput.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Skeleton/Skeleton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Skeleton/Skeleton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Slide/Slide.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Slide/Slide.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/Slider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/Slider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/SliderValueLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Slider/useSlider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Snackbar/Snackbar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Snackbar/Snackbar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Snackbar/useSnackbar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SnackbarContent/SnackbarContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SnackbarContent/SnackbarContent.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDial/SpeedDial.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDial/SpeedDial.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Stack/Stack.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Stack/Stack.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Step/Step.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Step/Step.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/StepButton/StepButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepButton/StepButton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/StepConnector/StepConnector.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepConnector/StepConnector.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/StepContent/StepContent.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepContent/StepContent.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/StepIcon/StepIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepIcon/StepIcon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/StepLabel/StepLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/StepLabel/StepLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Stepper/Stepper.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Stepper/Stepper.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SvgIcon/SvgIcon.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/dist/cjs/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Switch/Switch.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Switch/Switch.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Tab/Tab.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tab/Tab.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TabScrollButton/TabScrollButton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Table/Table.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Table/Table.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableBody/TableBody.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableBody/TableBody.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableCell/TableCell.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableCell/TableCell.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableContainer/TableContainer.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableContainer/TableContainer.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableFooter/TableFooter.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableFooter/TableFooter.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableHead/TableHead.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableHead/TableHead.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TablePagination/TablePagination.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TablePagination/TablePagination.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TablePagination/TablePaginationActions.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TablePagination/TablePaginationActions.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableRow/TableRow.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableRow/TableRow.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TableSortLabel/TableSortLabel.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Tabs/ScrollbarSize.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tabs/ScrollbarSize.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Tabs/Tabs.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tabs/Tabs.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TextField/TextField.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TextField/TextField.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +1 -1
- package/dist/cjs/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ToggleButton/ToggleButton.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ToggleButton/ToggleButton.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/dist/cjs/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Toolbar/Toolbar.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Toolbar/Toolbar.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Tooltip/Tooltip.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Typography/Typography.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Typography/Typography.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Unstable_Grid2/Grid2.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Unstable_Grid2/Grid2.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/Zoom/Zoom.js +1 -1
- package/dist/cjs/node_modules/@mui/material/Zoom/Zoom.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/internal/SwitchBase.js +1 -1
- package/dist/cjs/node_modules/@mui/material/internal/SwitchBase.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/internal/svg-icons/Add.js +1 -1
- package/dist/cjs/node_modules/@mui/material/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/CssVarsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/CssVarsProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/ThemeProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/experimental_extendTheme.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/experimental_extendTheme.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/useTheme.js +1 -1
- package/dist/cjs/node_modules/@mui/material/styles/useTheme.js.map +1 -1
- package/dist/cjs/node_modules/@mui/material/useAutocomplete/useAutocomplete.js +1 -1
- package/dist/cjs/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/colorManipulator.js +1 -1
- package/dist/cjs/node_modules/@mui/system/createStyled.js +1 -1
- package/dist/cjs/node_modules/@mui/system/createStyled.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Box/Box.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Box/Box.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Container/Container.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Container/Container.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Container/createContainer.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Container/createContainer.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/RtlProvider/index.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Stack/Stack.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Stack/Stack.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Stack/createStack.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Stack/createStack.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Unstable_Grid/Grid.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Unstable_Grid/Grid.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Unstable_Grid/createGrid.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/Unstable_Grid/createGrid.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/breakpoints.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/breakpoints.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/responsivePropType.js +1 -1
- package/dist/cjs/node_modules/@mui/system/esm/responsivePropType.js.map +1 -1
- package/dist/cjs/node_modules/@mui/system/useThemeWithoutDefault.js +1 -1
- package/dist/cjs/node_modules/@mui/system/useThemeWithoutDefault.js.map +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/refType/refType.js +1 -1
- package/dist/cjs/node_modules/@mui/utils/esm/refType/refType.js.map +1 -1
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/graphql-ws/lib/index.js +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/cjs/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/json5/dist/index.js +1 -1
- package/dist/cjs/node_modules/prop-types/index.js +1 -1
- package/dist/cjs/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/cjs/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/cjs/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/react-markdown/lib/ast-to-react.js +1 -1
- package/dist/cjs/node_modules/react-markdown/lib/ast-to-react.js.map +1 -1
- package/dist/cjs/node_modules/react-markdown/lib/react-markdown.js +1 -1
- package/dist/cjs/node_modules/react-markdown/lib/react-markdown.js.map +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unified/lib/index.js +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/unified/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/index.js +1 -1
- package/dist/cjs/node_modules/react-markdown/node_modules/vfile/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/ReplaceTransition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/ReplaceTransition.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/SwitchTransition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/SwitchTransition.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/Transition.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/TransitionGroup.js.map +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/cjs/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -1
- package/dist/cjs/node_modules/uuid/dist/cjs-browser/index.js +1 -1
- package/dist/features/DocumentLearning/DocumentLearning.js +1 -1
- package/dist/features/DocumentLearning/_components/BookLearningForm.js +1 -1
- package/dist/features/DocumentLearning/_components/ChatComponent.js +1 -1
- package/dist/features/DocumentLearning/_components/ConflictingLearningWarnCard.js +1 -1
- package/dist/features/InstantLearning/InstantLearning.js +1 -1
- package/dist/features/InstantLearning/_components/ChatComponent.js +1 -1
- package/dist/features/InstantLearning/_components/ConflictingLearningWarnCard.js +1 -1
- package/dist/features/InstantLearning/_components/ConflictingLearningWarnCardDB.js +1 -1
- package/dist/features/InstantLearning/_components/ContextualChatComponent.js +1 -1
- package/dist/features/InstantLearning/_components/ContextualConflictDBCard.js +1 -1
- package/dist/features/InstantLearning/_components/ContextualLearningForm.js +1 -1
- package/dist/features/InstantLearning/_components/GeneralizationAccordion.js +1 -1
- package/dist/features/InstantLearning/_components/LearningDetailsForm.js +1 -1
- package/dist/features/WtaWnta/WtaWnta.js +1 -1
- package/dist/features/WtaWnta/_components/AgentDetailsForm.js +1 -1
- package/dist/features/WtaWnta/_components/SimilarConflictingCard.js +1 -1
- package/dist/features/WtaWnta/_components/ValidationCard.js +1 -1
- package/dist/node_modules/@e-llm-studio/streaming-response/dist/index.js +1 -1
- package/dist/node_modules/@e-llm-studio/streaming-response/dist/index.js.map +1 -1
- package/dist/node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js.map +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/colorManipulator.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createPalette.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createSpacing.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createSpacing.js.map +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createTheme.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/styles/createTypography.js +1 -1
- package/dist/node_modules/@material-ui/core/esm/utils/capitalize.js +1 -1
- package/dist/node_modules/@material-ui/icons/utils/createSvgIcon.js +1 -1
- package/dist/node_modules/@material-ui/icons/utils/createSvgIcon.js.map +1 -1
- package/dist/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/StylesProvider/StylesProvider.js.map +1 -1
- package/dist/node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/node_modules/@material-ui/styles/esm/getStylesCreator/getStylesCreator.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/index.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/withStyles/withStyles.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/withStyles/withStyles.js.map +1 -1
- package/dist/node_modules/@material-ui/styles/esm/withTheme/withTheme.js +1 -1
- package/dist/node_modules/@material-ui/styles/esm/withTheme/withTheme.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/breakpoints.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/breakpoints.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/merge.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/responsivePropType.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/responsivePropType.js.map +1 -1
- package/dist/node_modules/@material-ui/system/esm/spacing.js +1 -1
- package/dist/node_modules/@material-ui/system/esm/spacing.js.map +1 -1
- package/dist/node_modules/@material-ui/utils/esm/elementAcceptingRef.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/elementAcceptingRef.js.map +1 -1
- package/dist/node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/elementTypeAcceptingRef.js.map +1 -1
- package/dist/node_modules/@material-ui/utils/esm/getDisplayName.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/refType.js +1 -1
- package/dist/node_modules/@material-ui/utils/esm/refType.js.map +1 -1
- package/dist/node_modules/@mui/material/Accordion/Accordion.js +1 -1
- package/dist/node_modules/@mui/material/Accordion/Accordion.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions.js +1 -1
- package/dist/node_modules/@mui/material/AccordionActions/AccordionActions.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails.js +1 -1
- package/dist/node_modules/@mui/material/AccordionDetails/AccordionDetails.js.map +1 -1
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary.js +1 -1
- package/dist/node_modules/@mui/material/AccordionSummary/AccordionSummary.js.map +1 -1
- package/dist/node_modules/@mui/material/Alert/Alert.js +1 -1
- package/dist/node_modules/@mui/material/Alert/Alert.js.map +1 -1
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle.js +1 -1
- package/dist/node_modules/@mui/material/AlertTitle/AlertTitle.js.map +1 -1
- package/dist/node_modules/@mui/material/AppBar/AppBar.js +1 -1
- package/dist/node_modules/@mui/material/AppBar/AppBar.js.map +1 -1
- package/dist/node_modules/@mui/material/Autocomplete/Autocomplete.js +1 -1
- package/dist/node_modules/@mui/material/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/node_modules/@mui/material/Avatar/Avatar.js +1 -1
- package/dist/node_modules/@mui/material/Avatar/Avatar.js.map +1 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup.js +1 -1
- package/dist/node_modules/@mui/material/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/node_modules/@mui/material/Backdrop/Backdrop.js +1 -1
- package/dist/node_modules/@mui/material/Backdrop/Backdrop.js.map +1 -1
- package/dist/node_modules/@mui/material/Badge/Badge.js +1 -1
- package/dist/node_modules/@mui/material/Badge/Badge.js.map +1 -1
- package/dist/node_modules/@mui/material/Badge/useBadge.js +1 -1
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation.js +1 -1
- package/dist/node_modules/@mui/material/BottomNavigation/BottomNavigation.js.map +1 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js +1 -1
- package/dist/node_modules/@mui/material/BottomNavigationAction/BottomNavigationAction.js.map +1 -1
- package/dist/node_modules/@mui/material/Box/Box.js +1 -1
- package/dist/node_modules/@mui/material/Box/Box.js.map +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/BreadcrumbCollapsed.js.map +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/node_modules/@mui/material/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/node_modules/@mui/material/Button/Button.js +1 -1
- package/dist/node_modules/@mui/material/Button/Button.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase.js +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/ButtonBase.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/Ripple.js +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/Ripple.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js +1 -1
- package/dist/node_modules/@mui/material/ButtonBase/TouchRipple.js.map +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/node_modules/@mui/material/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/node_modules/@mui/material/Card/Card.js +1 -1
- package/dist/node_modules/@mui/material/Card/Card.js.map +1 -1
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea.js +1 -1
- package/dist/node_modules/@mui/material/CardActionArea/CardActionArea.js.map +1 -1
- package/dist/node_modules/@mui/material/CardActions/CardActions.js +1 -1
- package/dist/node_modules/@mui/material/CardActions/CardActions.js.map +1 -1
- package/dist/node_modules/@mui/material/CardContent/CardContent.js +1 -1
- package/dist/node_modules/@mui/material/CardContent/CardContent.js.map +1 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader.js +1 -1
- package/dist/node_modules/@mui/material/CardHeader/CardHeader.js.map +1 -1
- package/dist/node_modules/@mui/material/CardMedia/CardMedia.js +1 -1
- package/dist/node_modules/@mui/material/CardMedia/CardMedia.js.map +1 -1
- package/dist/node_modules/@mui/material/Checkbox/Checkbox.js +1 -1
- package/dist/node_modules/@mui/material/Checkbox/Checkbox.js.map +1 -1
- package/dist/node_modules/@mui/material/Chip/Chip.js +1 -1
- package/dist/node_modules/@mui/material/Chip/Chip.js.map +1 -1
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js +1 -1
- package/dist/node_modules/@mui/material/CircularProgress/CircularProgress.js.map +1 -1
- package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js +1 -1
- package/dist/node_modules/@mui/material/ClickAwayListener/ClickAwayListener.js.map +1 -1
- package/dist/node_modules/@mui/material/Collapse/Collapse.js +1 -1
- package/dist/node_modules/@mui/material/Collapse/Collapse.js.map +1 -1
- package/dist/node_modules/@mui/material/Container/Container.js +1 -1
- package/dist/node_modules/@mui/material/Container/Container.js.map +1 -1
- package/dist/node_modules/@mui/material/CssBaseline/CssBaseline.js +1 -1
- package/dist/node_modules/@mui/material/CssBaseline/CssBaseline.js.map +1 -1
- package/dist/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/node_modules/@mui/material/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
- package/dist/node_modules/@mui/material/Dialog/Dialog.js +1 -1
- package/dist/node_modules/@mui/material/Dialog/Dialog.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogActions/DialogActions.js +1 -1
- package/dist/node_modules/@mui/material/DialogActions/DialogActions.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogContent/DialogContent.js +1 -1
- package/dist/node_modules/@mui/material/DialogContent/DialogContent.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText.js +1 -1
- package/dist/node_modules/@mui/material/DialogContentText/DialogContentText.js.map +1 -1
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle.js +1 -1
- package/dist/node_modules/@mui/material/DialogTitle/DialogTitle.js.map +1 -1
- package/dist/node_modules/@mui/material/Divider/Divider.js +1 -1
- package/dist/node_modules/@mui/material/Divider/Divider.js.map +1 -1
- package/dist/node_modules/@mui/material/Drawer/Drawer.js +1 -1
- package/dist/node_modules/@mui/material/Drawer/Drawer.js.map +1 -1
- package/dist/node_modules/@mui/material/Fab/Fab.js +1 -1
- package/dist/node_modules/@mui/material/Fab/Fab.js.map +1 -1
- package/dist/node_modules/@mui/material/Fade/Fade.js +1 -1
- package/dist/node_modules/@mui/material/Fade/Fade.js.map +1 -1
- package/dist/node_modules/@mui/material/FilledInput/FilledInput.js +1 -1
- package/dist/node_modules/@mui/material/FilledInput/FilledInput.js.map +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControl.js +1 -1
- package/dist/node_modules/@mui/material/FormControl/FormControl.js.map +1 -1
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel.js +1 -1
- package/dist/node_modules/@mui/material/FormControlLabel/FormControlLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/FormGroup/FormGroup.js +1 -1
- package/dist/node_modules/@mui/material/FormGroup/FormGroup.js.map +1 -1
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText.js +1 -1
- package/dist/node_modules/@mui/material/FormHelperText/FormHelperText.js.map +1 -1
- package/dist/node_modules/@mui/material/FormLabel/FormLabel.js +1 -1
- package/dist/node_modules/@mui/material/FormLabel/FormLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/node_modules/@mui/material/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/node_modules/@mui/material/Grid/Grid.js +1 -1
- package/dist/node_modules/@mui/material/Grid/Grid.js.map +1 -1
- package/dist/node_modules/@mui/material/Grow/Grow.js +1 -1
- package/dist/node_modules/@mui/material/Grow/Grow.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/Hidden.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenCss.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenCss.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/HiddenJs.js.map +1 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth.js +1 -1
- package/dist/node_modules/@mui/material/Hidden/withWidth.js.map +1 -1
- package/dist/node_modules/@mui/material/Icon/Icon.js +1 -1
- package/dist/node_modules/@mui/material/Icon/Icon.js.map +1 -1
- package/dist/node_modules/@mui/material/IconButton/IconButton.js +1 -1
- package/dist/node_modules/@mui/material/IconButton/IconButton.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageList/ImageList.js +1 -1
- package/dist/node_modules/@mui/material/ImageList/ImageList.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem.js +1 -1
- package/dist/node_modules/@mui/material/ImageListItem/ImageListItem.js.map +1 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.js +1 -1
- package/dist/node_modules/@mui/material/ImageListItemBar/ImageListItemBar.js.map +1 -1
- package/dist/node_modules/@mui/material/Input/Input.js +1 -1
- package/dist/node_modules/@mui/material/Input/Input.js.map +1 -1
- package/dist/node_modules/@mui/material/InputAdornment/InputAdornment.js +1 -1
- package/dist/node_modules/@mui/material/InputAdornment/InputAdornment.js.map +1 -1
- package/dist/node_modules/@mui/material/InputBase/InputBase.js +1 -1
- package/dist/node_modules/@mui/material/InputBase/InputBase.js.map +1 -1
- package/dist/node_modules/@mui/material/InputLabel/InputLabel.js +1 -1
- package/dist/node_modules/@mui/material/InputLabel/InputLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js +1 -1
- package/dist/node_modules/@mui/material/LinearProgress/LinearProgress.js.map +1 -1
- package/dist/node_modules/@mui/material/Link/Link.js +1 -1
- package/dist/node_modules/@mui/material/Link/Link.js.map +1 -1
- package/dist/node_modules/@mui/material/Link/getTextDecoration.js +1 -1
- package/dist/node_modules/@mui/material/Link/getTextDecoration.js.map +1 -1
- package/dist/node_modules/@mui/material/List/List.js +1 -1
- package/dist/node_modules/@mui/material/List/List.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItem/ListItem.js +1 -1
- package/dist/node_modules/@mui/material/ListItem/ListItem.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.js +1 -1
- package/dist/node_modules/@mui/material/ListItemAvatar/ListItemAvatar.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemButton/ListItemButton.js +1 -1
- package/dist/node_modules/@mui/material/ListItemButton/ListItemButton.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon.js +1 -1
- package/dist/node_modules/@mui/material/ListItemIcon/ListItemIcon.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js +1 -1
- package/dist/node_modules/@mui/material/ListItemSecondaryAction/ListItemSecondaryAction.js.map +1 -1
- package/dist/node_modules/@mui/material/ListItemText/ListItemText.js +1 -1
- package/dist/node_modules/@mui/material/ListItemText/ListItemText.js.map +1 -1
- package/dist/node_modules/@mui/material/ListSubheader/ListSubheader.js +1 -1
- package/dist/node_modules/@mui/material/ListSubheader/ListSubheader.js.map +1 -1
- package/dist/node_modules/@mui/material/Menu/Menu.js +1 -1
- package/dist/node_modules/@mui/material/Menu/Menu.js.map +1 -1
- package/dist/node_modules/@mui/material/MenuItem/MenuItem.js +1 -1
- package/dist/node_modules/@mui/material/MenuItem/MenuItem.js.map +1 -1
- package/dist/node_modules/@mui/material/MenuList/MenuList.js +1 -1
- package/dist/node_modules/@mui/material/MenuList/MenuList.js.map +1 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper.js +1 -1
- package/dist/node_modules/@mui/material/MobileStepper/MobileStepper.js.map +1 -1
- package/dist/node_modules/@mui/material/Modal/Modal.js +1 -1
- package/dist/node_modules/@mui/material/Modal/Modal.js.map +1 -1
- package/dist/node_modules/@mui/material/Modal/ModalManager.js +1 -1
- package/dist/node_modules/@mui/material/Modal/useModal.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelect.js.map +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput.js +1 -1
- package/dist/node_modules/@mui/material/NativeSelect/NativeSelectInput.js.map +1 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr.js +1 -1
- package/dist/node_modules/@mui/material/NoSsr/NoSsr.js.map +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline.js +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/NotchedOutline.js.map +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput.js +1 -1
- package/dist/node_modules/@mui/material/OutlinedInput/OutlinedInput.js.map +1 -1
- package/dist/node_modules/@mui/material/Pagination/Pagination.js +1 -1
- package/dist/node_modules/@mui/material/Pagination/Pagination.js.map +1 -1
- package/dist/node_modules/@mui/material/PaginationItem/PaginationItem.js +1 -1
- package/dist/node_modules/@mui/material/PaginationItem/PaginationItem.js.map +1 -1
- package/dist/node_modules/@mui/material/Paper/Paper.js +1 -1
- package/dist/node_modules/@mui/material/Paper/Paper.js.map +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover.js +1 -1
- package/dist/node_modules/@mui/material/Popover/Popover.js.map +1 -1
- package/dist/node_modules/@mui/material/Popper/BasePopper.js +1 -1
- package/dist/node_modules/@mui/material/Popper/BasePopper.js.map +1 -1
- package/dist/node_modules/@mui/material/Popper/Popper.js +1 -1
- package/dist/node_modules/@mui/material/Popper/Popper.js.map +1 -1
- package/dist/node_modules/@mui/material/Portal/Portal.js +1 -1
- package/dist/node_modules/@mui/material/Portal/Portal.js.map +1 -1
- package/dist/node_modules/@mui/material/Radio/Radio.js +1 -1
- package/dist/node_modules/@mui/material/Radio/Radio.js.map +1 -1
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon.js +1 -1
- package/dist/node_modules/@mui/material/Radio/RadioButtonIcon.js.map +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup.js +1 -1
- package/dist/node_modules/@mui/material/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/node_modules/@mui/material/Rating/Rating.js +1 -1
- package/dist/node_modules/@mui/material/Rating/Rating.js.map +1 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.js +1 -1
- package/dist/node_modules/@mui/material/ScopedCssBaseline/ScopedCssBaseline.js.map +1 -1
- package/dist/node_modules/@mui/material/Select/Select.js +1 -1
- package/dist/node_modules/@mui/material/Select/Select.js.map +1 -1
- package/dist/node_modules/@mui/material/Select/SelectInput.js +1 -1
- package/dist/node_modules/@mui/material/Select/SelectInput.js.map +1 -1
- package/dist/node_modules/@mui/material/Skeleton/Skeleton.js +1 -1
- package/dist/node_modules/@mui/material/Skeleton/Skeleton.js.map +1 -1
- package/dist/node_modules/@mui/material/Slide/Slide.js +1 -1
- package/dist/node_modules/@mui/material/Slide/Slide.js.map +1 -1
- package/dist/node_modules/@mui/material/Slider/Slider.js +1 -1
- package/dist/node_modules/@mui/material/Slider/Slider.js.map +1 -1
- package/dist/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -1
- package/dist/node_modules/@mui/material/Slider/SliderValueLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/Slider/useSlider.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar.js +1 -1
- package/dist/node_modules/@mui/material/Snackbar/Snackbar.js.map +1 -1
- package/dist/node_modules/@mui/material/Snackbar/useSnackbar.js +1 -1
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent.js +1 -1
- package/dist/node_modules/@mui/material/SnackbarContent/SnackbarContent.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDial/SpeedDial.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDialAction/SpeedDialAction.js.map +1 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js +1 -1
- package/dist/node_modules/@mui/material/SpeedDialIcon/SpeedDialIcon.js.map +1 -1
- package/dist/node_modules/@mui/material/Stack/Stack.js +1 -1
- package/dist/node_modules/@mui/material/Stack/Stack.js.map +1 -1
- package/dist/node_modules/@mui/material/Step/Step.js +1 -1
- package/dist/node_modules/@mui/material/Step/Step.js.map +1 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton.js +1 -1
- package/dist/node_modules/@mui/material/StepButton/StepButton.js.map +1 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector.js +1 -1
- package/dist/node_modules/@mui/material/StepConnector/StepConnector.js.map +1 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent.js +1 -1
- package/dist/node_modules/@mui/material/StepContent/StepContent.js.map +1 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon.js +1 -1
- package/dist/node_modules/@mui/material/StepIcon/StepIcon.js.map +1 -1
- package/dist/node_modules/@mui/material/StepLabel/StepLabel.js +1 -1
- package/dist/node_modules/@mui/material/StepLabel/StepLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/Stepper/Stepper.js +1 -1
- package/dist/node_modules/@mui/material/Stepper/Stepper.js.map +1 -1
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon.js +1 -1
- package/dist/node_modules/@mui/material/SvgIcon/SvgIcon.js.map +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeArea.js.map +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js +1 -1
- package/dist/node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js.map +1 -1
- package/dist/node_modules/@mui/material/Switch/Switch.js +1 -1
- package/dist/node_modules/@mui/material/Switch/Switch.js.map +1 -1
- package/dist/node_modules/@mui/material/Tab/Tab.js +1 -1
- package/dist/node_modules/@mui/material/Tab/Tab.js.map +1 -1
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton.js +1 -1
- package/dist/node_modules/@mui/material/TabScrollButton/TabScrollButton.js.map +1 -1
- package/dist/node_modules/@mui/material/Table/Table.js +1 -1
- package/dist/node_modules/@mui/material/Table/Table.js.map +1 -1
- package/dist/node_modules/@mui/material/TableBody/TableBody.js +1 -1
- package/dist/node_modules/@mui/material/TableBody/TableBody.js.map +1 -1
- package/dist/node_modules/@mui/material/TableCell/TableCell.js +1 -1
- package/dist/node_modules/@mui/material/TableCell/TableCell.js.map +1 -1
- package/dist/node_modules/@mui/material/TableContainer/TableContainer.js +1 -1
- package/dist/node_modules/@mui/material/TableContainer/TableContainer.js.map +1 -1
- package/dist/node_modules/@mui/material/TableFooter/TableFooter.js +1 -1
- package/dist/node_modules/@mui/material/TableFooter/TableFooter.js.map +1 -1
- package/dist/node_modules/@mui/material/TableHead/TableHead.js +1 -1
- package/dist/node_modules/@mui/material/TableHead/TableHead.js.map +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePagination.js +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePagination.js.map +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions.js +1 -1
- package/dist/node_modules/@mui/material/TablePagination/TablePaginationActions.js.map +1 -1
- package/dist/node_modules/@mui/material/TableRow/TableRow.js +1 -1
- package/dist/node_modules/@mui/material/TableRow/TableRow.js.map +1 -1
- package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel.js +1 -1
- package/dist/node_modules/@mui/material/TableSortLabel/TableSortLabel.js.map +1 -1
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/ScrollbarSize.js.map +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs.js +1 -1
- package/dist/node_modules/@mui/material/Tabs/Tabs.js.map +1 -1
- package/dist/node_modules/@mui/material/TextField/TextField.js +1 -1
- package/dist/node_modules/@mui/material/TextField/TextField.js.map +1 -1
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js +1 -1
- package/dist/node_modules/@mui/material/TextareaAutosize/TextareaAutosize.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js +1 -1
- package/dist/node_modules/@mui/material/ToggleButton/ToggleButton.js.map +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js +1 -1
- package/dist/node_modules/@mui/material/ToggleButtonGroup/ToggleButtonGroup.js.map +1 -1
- package/dist/node_modules/@mui/material/Toolbar/Toolbar.js +1 -1
- package/dist/node_modules/@mui/material/Toolbar/Toolbar.js.map +1 -1
- package/dist/node_modules/@mui/material/Tooltip/Tooltip.js +1 -1
- package/dist/node_modules/@mui/material/Tooltip/Tooltip.js.map +1 -1
- package/dist/node_modules/@mui/material/Typography/Typography.js +1 -1
- package/dist/node_modules/@mui/material/Typography/Typography.js.map +1 -1
- package/dist/node_modules/@mui/material/Unstable_Grid2/Grid2.js +1 -1
- package/dist/node_modules/@mui/material/Unstable_Grid2/Grid2.js.map +1 -1
- package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js +1 -1
- package/dist/node_modules/@mui/material/Unstable_TrapFocus/FocusTrap.js.map +1 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom.js +1 -1
- package/dist/node_modules/@mui/material/Zoom/Zoom.js.map +1 -1
- package/dist/node_modules/@mui/material/internal/SwitchBase.js +1 -1
- package/dist/node_modules/@mui/material/internal/SwitchBase.js.map +1 -1
- package/dist/node_modules/@mui/material/internal/svg-icons/Add.js +1 -1
- package/dist/node_modules/@mui/material/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/@mui/material/styles/CssVarsProvider.js +1 -1
- package/dist/node_modules/@mui/material/styles/CssVarsProvider.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/ThemeProvider.js +1 -1
- package/dist/node_modules/@mui/material/styles/ThemeProvider.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/experimental_extendTheme.js +1 -1
- package/dist/node_modules/@mui/material/styles/experimental_extendTheme.js.map +1 -1
- package/dist/node_modules/@mui/material/styles/useTheme.js +1 -1
- package/dist/node_modules/@mui/material/styles/useTheme.js.map +1 -1
- package/dist/node_modules/@mui/material/useAutocomplete/useAutocomplete.js +1 -1
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/node_modules/@mui/private-theming/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/node_modules/@mui/styled-engine/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js +1 -1
- package/dist/node_modules/@mui/styled-engine/StyledEngineProvider/StyledEngineProvider.js.map +1 -1
- package/dist/node_modules/@mui/system/colorManipulator.js +1 -1
- package/dist/node_modules/@mui/system/createStyled.js +1 -1
- package/dist/node_modules/@mui/system/createStyled.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Box/Box.js +1 -1
- package/dist/node_modules/@mui/system/esm/Box/Box.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Container/Container.js +1 -1
- package/dist/node_modules/@mui/system/esm/Container/Container.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Container/createContainer.js +1 -1
- package/dist/node_modules/@mui/system/esm/Container/createContainer.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js +1 -1
- package/dist/node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js +1 -1
- package/dist/node_modules/@mui/system/esm/GlobalStyles/GlobalStyles.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/RtlProvider/index.js +1 -1
- package/dist/node_modules/@mui/system/esm/RtlProvider/index.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/Stack.js +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/Stack.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack.js +1 -1
- package/dist/node_modules/@mui/system/esm/Stack/createStack.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/node_modules/@mui/system/esm/ThemeProvider/ThemeProvider.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Unstable_Grid/Grid.js +1 -1
- package/dist/node_modules/@mui/system/esm/Unstable_Grid/Grid.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/Unstable_Grid/createGrid.js +1 -1
- package/dist/node_modules/@mui/system/esm/Unstable_Grid/createGrid.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/breakpoints.js +1 -1
- package/dist/node_modules/@mui/system/esm/breakpoints.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js +1 -1
- package/dist/node_modules/@mui/system/esm/cssVars/createCssVarsProvider.js.map +1 -1
- package/dist/node_modules/@mui/system/esm/responsivePropType.js +1 -1
- package/dist/node_modules/@mui/system/esm/responsivePropType.js.map +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault.js +1 -1
- package/dist/node_modules/@mui/system/useThemeWithoutDefault.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js +1 -1
- package/dist/node_modules/@mui/utils/esm/elementAcceptingRef/elementAcceptingRef.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js +1 -1
- package/dist/node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js.map +1 -1
- package/dist/node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js +1 -1
- package/dist/node_modules/@mui/utils/esm/refType/refType.js +1 -1
- package/dist/node_modules/@mui/utils/esm/refType/refType.js.map +1 -1
- package/dist/node_modules/@mui/utils/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/graphql-ws/lib/index.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/json5/dist/index.js +1 -1
- package/dist/node_modules/prop-types/index.js +1 -1
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/lib/ast-to-react.js +1 -1
- package/dist/node_modules/react-markdown/lib/ast-to-react.js.map +1 -1
- package/dist/node_modules/react-markdown/lib/react-markdown.js +1 -1
- package/dist/node_modules/react-markdown/lib/react-markdown.js.map +1 -1
- package/dist/node_modules/react-markdown/node_modules/react-is/cjs/react-is.development.js +1 -1
- package/dist/node_modules/react-markdown/node_modules/react-is/cjs/react-is.production.min.js +1 -1
- package/dist/node_modules/react-markdown/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/node_modules/unified/lib/index.js +1 -1
- package/dist/node_modules/react-markdown/node_modules/unified/lib/index.js.map +1 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/index.js +1 -1
- package/dist/node_modules/react-markdown/node_modules/vfile/lib/index.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/CSSTransition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/CSSTransition.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/ReplaceTransition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/ReplaceTransition.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/SwitchTransition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/SwitchTransition.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js +1 -1
- package/dist/node_modules/react-transition-group/esm/Transition.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/TransitionGroup.js +1 -1
- package/dist/node_modules/react-transition-group/esm/TransitionGroup.js.map +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js +1 -1
- package/dist/node_modules/react-transition-group/esm/utils/PropTypes.js.map +1 -1
- package/dist/node_modules/uuid/dist/cjs-browser/index.js +1 -1
- package/dist/types/src/features/InstantLearning/_components/LearningDetailsForm.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/extends.js"),t=require("../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),r=require("react"),n=require("react-dom"),a=require("../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/extends.js"),t=require("../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),r=require("react"),n=require("react-dom"),a=require("../../../../_virtual/index.js"),i=require("../../utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js"),u=require("../NoSsr/NoSsr.js"),o=require("../DefaultPropsProvider/DefaultPropsProvider.js"),s=require("../Drawer/Drawer.js"),l=require("../../utils/esm/useForkRef/useForkRef.js"),c=require("../../utils/esm/ownerDocument/ownerDocument.js"),d=require("../../utils/esm/ownerWindow/ownerWindow.js"),f=require("../../utils/esm/useEventCallback/useEventCallback.js"),p=require("../../utils/esm/useEnhancedEffect/useEnhancedEffect.js"),h=require("../styles/useTheme.js"),m=require("../transitions/utils.js"),g=require("./SwipeArea.js"),b=require("react/jsx-runtime");function v(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var y=v(r),w=v(n);const P=["BackdropProps"],T=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"];let j=null;function S(e,t,r){return"right"===e?r.body.offsetWidth-t[0].pageX:t[0].pageX}function k(e,t,r){return"bottom"===e?r.innerHeight-t[0].clientY:t[0].clientY}function x(e,t){return e?t.clientWidth:t.clientHeight}function E(e,t,r,n){return Math.min(Math.max(r?t-e:n+t-e,0),n)}const q="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent),D=y.forwardRef((function(r,n){const a=o.useDefaultProps({name:"MuiSwipeableDrawer",props:r}),i=h.default(),v={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:D="left",disableBackdropTransition:M=!1,disableDiscovery:O=!1,disableSwipeToOpen:H=q,hideBackdrop:A,hysteresis:R=.52,allowSwipeInChildren:W=!1,minFlingVelocity:B=450,ModalProps:{BackdropProps:C}={},onClose:X,onOpen:Y,open:L=!1,PaperProps:z={},SwipeAreaProps:F,swipeAreaWidth:V=20,transitionDuration:_=v,variant:N="temporary"}=a,I=t.default(a.ModalProps,P),$=t.default(a,T),[G,J]=y.useState(!1),K=y.useRef({isSwiping:null}),Q=y.useRef(),U=y.useRef(),Z=y.useRef(),ee=l.default(z.ref,Z),te=y.useRef(!1),re=y.useRef();p.default((()=>{re.current=null}),[L]);const ne=y.useCallback(((e,t={})=>{const{mode:r=null,changeTransition:n=!0}=t,a=s.getAnchor(i,D),u=-1!==["right","bottom"].indexOf(a)?1:-1,o=s.isHorizontal(D),l=o?`translate(${u*e}px, 0)`:`translate(0, ${u*e}px)`,c=Z.current.style;c.webkitTransform=l,c.transform=l;let d="";if(r&&(d=i.transitions.create("all",m.getTransitionProps({easing:void 0,style:void 0,timeout:_},{mode:r}))),n&&(c.webkitTransition=d,c.transition=d),!M&&!A){const t=U.current.style;t.opacity=1-e/x(o,Z.current),n&&(t.webkitTransition=d,t.transition=d)}}),[D,M,A,i,_]),ae=f.default((e=>{if(!te.current)return;if(j=null,te.current=!1,w.flushSync((()=>{J(!1)})),!K.current.isSwiping)return void(K.current.isSwiping=null);K.current.isSwiping=null;const t=s.getAnchor(i,D),r=s.isHorizontal(D);let n;n=r?S(t,e.changedTouches,c.default(e.currentTarget)):k(t,e.changedTouches,d.default(e.currentTarget));const a=r?K.current.startX:K.current.startY,u=x(r,Z.current),o=E(n,a,L,u),l=o/u;Math.abs(K.current.velocity)>B&&(re.current=1e3*Math.abs((u-o)/K.current.velocity)),L?K.current.velocity>B||l>R?X():ne(0,{mode:"exit"}):K.current.velocity<-B||1-l>R?Y():ne(x(r,Z.current),{mode:"enter"})})),ie=(e=!1)=>{if(!G){!e&&O&&W||w.flushSync((()=>{J(!0)}));const t=s.isHorizontal(D);!L&&Z.current&&ne(x(t,Z.current)+(O?15:-20),{changeTransition:!1}),K.current.velocity=0,K.current.lastTime=null,K.current.lastTranslate=null,K.current.paperHit=!1,te.current=!0}},ue=f.default((e=>{if(!Z.current||!te.current)return;if(null!==j&&j!==K.current)return;ie(!0);const t=s.getAnchor(i,D),r=s.isHorizontal(D),n=S(t,e.touches,c.default(e.currentTarget)),a=k(t,e.touches,d.default(e.currentTarget));if(L&&Z.current.contains(e.target)&&null===j){const t=function({domTreeShapes:e,start:t,current:r,anchor:n}){const a={x:"scrollLeft",y:"scrollTop"},i={x:"scrollWidth",y:"scrollHeight"},u={x:"clientWidth",y:"clientHeight"};return e.some((e=>{let o=r>=t;"top"!==n&&"left"!==n||(o=!o);const s="left"===n||"right"===n?"x":"y",l=Math.round(e[a[s]]),c=l>0,d=l+e[u[s]]<e[i[s]];return!!(o&&d||!o&&c)}))}({domTreeShapes:function(e,t){const r=[];for(;e&&e!==t.parentElement;){const n=d.default(t).getComputedStyle(e);"absolute"===n.getPropertyValue("position")||"hidden"===n.getPropertyValue("overflow-x")||(e.clientWidth>0&&e.scrollWidth>e.clientWidth||e.clientHeight>0&&e.scrollHeight>e.clientHeight)&&r.push(e),e=e.parentElement}return r}(e.target,Z.current),start:r?K.current.startX:K.current.startY,current:r?n:a,anchor:D});if(t)return void(j=!0);j=K.current}if(null==K.current.isSwiping){const t=Math.abs(n-K.current.startX),i=Math.abs(a-K.current.startY),u=r?t>i&&t>3:i>t&&i>3;if(u&&e.cancelable&&e.preventDefault(),!0===u||(r?i>3:t>3)){if(K.current.isSwiping=u,!u)return void ae(e);K.current.startX=n,K.current.startY=a,O||L||(r?K.current.startX-=20:K.current.startY-=20)}}if(!K.current.isSwiping)return;const u=x(r,Z.current);let o=r?K.current.startX:K.current.startY;L&&!K.current.paperHit&&(o=Math.min(o,u));const l=E(r?n:a,o,L,u);if(L)if(K.current.paperHit)0===l&&(K.current.startX=n,K.current.startY=a);else{if(!(r?n<u:a<u))return;K.current.paperHit=!0,K.current.startX=n,K.current.startY=a}null===K.current.lastTranslate&&(K.current.lastTranslate=l,K.current.lastTime=performance.now()+1);const f=(l-K.current.lastTranslate)/(performance.now()-K.current.lastTime)*1e3;K.current.velocity=.4*K.current.velocity+.6*f,K.current.lastTranslate=l,K.current.lastTime=performance.now(),e.cancelable&&e.preventDefault(),ne(l)})),oe=f.default((e=>{if(e.defaultPrevented)return;if(e.defaultMuiPrevented)return;if(L&&(A||!U.current.contains(e.target))&&!Z.current.contains(e.target))return;const t=s.getAnchor(i,D),r=s.isHorizontal(D),n=S(t,e.touches,c.default(e.currentTarget)),a=k(t,e.touches,d.default(e.currentTarget));if(!L){var u;if(H||!(e.target===Q.current||null!=(u=Z.current)&&u.contains(e.target)&&("function"==typeof W?W(e,Q.current,Z.current):W)))return;if(r){if(n>V)return}else if(a>V)return}e.defaultMuiPrevented=!0,j=null,K.current.startX=n,K.current.startY=a,ie()}));return y.useEffect((()=>{if("temporary"===N){const e=c.default(Z.current);return e.addEventListener("touchstart",oe),e.addEventListener("touchmove",ue,{passive:!L}),e.addEventListener("touchend",ae),()=>{e.removeEventListener("touchstart",oe),e.removeEventListener("touchmove",ue,{passive:!L}),e.removeEventListener("touchend",ae)}}}),[N,L,oe,ue,ae]),y.useEffect((()=>()=>{j===K.current&&(j=null)}),[]),y.useEffect((()=>{L||J(!1)}),[L]),b.jsxs(y.Fragment,{children:[b.jsx(s.default,e.default({open:!("temporary"!==N||!G)||L,variant:N,ModalProps:e.default({BackdropProps:e.default({},C,{ref:U})},"temporary"===N&&{keepMounted:!0},I),hideBackdrop:A,PaperProps:e.default({},z,{style:e.default({pointerEvents:"temporary"!==N||L||W?"":"none"},z.style),ref:ee}),anchor:D,transitionDuration:re.current||_,onClose:X,ref:n},$)),!H&&"temporary"===N&&b.jsx(u.default,{children:b.jsx(g.default,e.default({anchor:D,ref:Q,width:V},F))})]})}));"production"!==process.env.NODE_ENV&&(D.propTypes={allowSwipeInChildren:a.default.oneOfType([a.default.func,a.default.bool]),anchor:a.default.oneOf(["bottom","left","right","top"]),children:a.default.node,disableBackdropTransition:a.default.bool,disableDiscovery:a.default.bool,disableSwipeToOpen:a.default.bool,hideBackdrop:a.default.bool,hysteresis:a.default.number,minFlingVelocity:a.default.number,ModalProps:a.default.shape({BackdropProps:a.default.shape({component:i.default})}),onClose:a.default.func.isRequired,onOpen:a.default.func.isRequired,open:a.default.bool,PaperProps:a.default.shape({component:i.default,style:a.default.object}),SwipeAreaProps:a.default.object,swipeAreaWidth:a.default.number,transitionDuration:a.default.oneOfType([a.default.number,a.default.shape({appear:a.default.number,enter:a.default.number,exit:a.default.number})]),variant:a.default.oneOf(["permanent","persistent","temporary"])}),exports.default=D;
|
|
2
2
|
//# sourceMappingURL=SwipeableDrawer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SwipeableDrawer.js","sources":["../../../../../../node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"BackdropProps\"],\n _excluded2 = [\"anchor\", \"disableBackdropTransition\", \"disableDiscovery\", \"disableSwipeToOpen\", \"hideBackdrop\", \"hysteresis\", \"allowSwipeInChildren\", \"minFlingVelocity\", \"ModalProps\", \"onClose\", \"onOpen\", \"open\", \"PaperProps\", \"SwipeAreaProps\", \"swipeAreaWidth\", \"transitionDuration\", \"variant\"];\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport NoSsr from '../NoSsr';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';\nimport useForkRef from '../utils/useForkRef';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow';\nimport useEventCallback from '../utils/useEventCallback';\nimport useEnhancedEffect from '../utils/useEnhancedEffect';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps } from '../transitions/utils';\nimport SwipeArea from './SwipeArea';\n\n// This value is closed to what browsers are using internally to\n// trigger a native scroll.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UNCERTAINTY_THRESHOLD = 3; // px\n\n// This is the part of the drawer displayed on touch start.\nconst DRAG_STARTED_SIGNAL = 20; // px\n\n// We can only have one instance at the time claiming ownership for handling the swipe.\n// Otherwise, the UX would be confusing.\n// That's why we use a singleton here.\nlet claimedSwipeInstance = null;\n\n// Exported for test purposes.\nexport function reset() {\n claimedSwipeInstance = null;\n}\nfunction calculateCurrentX(anchor, touches, doc) {\n return anchor === 'right' ? doc.body.offsetWidth - touches[0].pageX : touches[0].pageX;\n}\nfunction calculateCurrentY(anchor, touches, containerWindow) {\n return anchor === 'bottom' ? containerWindow.innerHeight - touches[0].clientY : touches[0].clientY;\n}\nfunction getMaxTranslate(horizontalSwipe, paperInstance) {\n return horizontalSwipe ? paperInstance.clientWidth : paperInstance.clientHeight;\n}\nfunction getTranslate(currentTranslate, startLocation, open, maxTranslate) {\n return Math.min(Math.max(open ? startLocation - currentTranslate : maxTranslate + startLocation - currentTranslate, 0), maxTranslate);\n}\n\n/**\n * @param {Element | null} element\n * @param {Element} rootNode\n */\nfunction getDomTreeShapes(element, rootNode) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L129\n const domTreeShapes = [];\n while (element && element !== rootNode.parentElement) {\n const style = ownerWindow(rootNode).getComputedStyle(element);\n if (\n // Ignore the scroll children if the element is absolute positioned.\n style.getPropertyValue('position') === 'absolute' ||\n // Ignore the scroll children if the element has an overflowX hidden\n style.getPropertyValue('overflow-x') === 'hidden') {\n // noop\n } else if (element.clientWidth > 0 && element.scrollWidth > element.clientWidth || element.clientHeight > 0 && element.scrollHeight > element.clientHeight) {\n // Ignore the nodes that have no width.\n // Keep elements with a scroll\n domTreeShapes.push(element);\n }\n element = element.parentElement;\n }\n return domTreeShapes;\n}\n\n/**\n * @param {object} param0\n * @param {ReturnType<getDomTreeShapes>} param0.domTreeShapes\n */\nfunction computeHasNativeHandler({\n domTreeShapes,\n start,\n current,\n anchor\n}) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L175\n const axisProperties = {\n scrollPosition: {\n x: 'scrollLeft',\n y: 'scrollTop'\n },\n scrollLength: {\n x: 'scrollWidth',\n y: 'scrollHeight'\n },\n clientLength: {\n x: 'clientWidth',\n y: 'clientHeight'\n }\n };\n return domTreeShapes.some(shape => {\n // Determine if we are going backward or forward.\n let goingForward = current >= start;\n if (anchor === 'top' || anchor === 'left') {\n goingForward = !goingForward;\n }\n const axis = anchor === 'left' || anchor === 'right' ? 'x' : 'y';\n const scrollPosition = Math.round(shape[axisProperties.scrollPosition[axis]]);\n const areNotAtStart = scrollPosition > 0;\n const areNotAtEnd = scrollPosition + shape[axisProperties.clientLength[axis]] < shape[axisProperties.scrollLength[axis]];\n if (goingForward && areNotAtEnd || !goingForward && areNotAtStart) {\n return true;\n }\n return false;\n });\n}\nconst iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);\nconst SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inProps, ref) {\n const props = useDefaultProps({\n name: 'MuiSwipeableDrawer',\n props: inProps\n });\n const theme = useTheme();\n const transitionDurationDefault = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n anchor = 'left',\n disableBackdropTransition = false,\n disableDiscovery = false,\n disableSwipeToOpen = iOS,\n hideBackdrop,\n hysteresis = 0.52,\n allowSwipeInChildren = false,\n minFlingVelocity = 450,\n ModalProps: {\n BackdropProps\n } = {},\n onClose,\n onOpen,\n open = false,\n PaperProps = {},\n SwipeAreaProps,\n swipeAreaWidth = 20,\n transitionDuration = transitionDurationDefault,\n variant = 'temporary' // Mobile first.\n } = props,\n ModalPropsProp = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [maybeSwiping, setMaybeSwiping] = React.useState(false);\n const swipeInstance = React.useRef({\n isSwiping: null\n });\n const swipeAreaRef = React.useRef();\n const backdropRef = React.useRef();\n const paperRef = React.useRef();\n const handleRef = useForkRef(PaperProps.ref, paperRef);\n const touchDetected = React.useRef(false);\n\n // Ref for transition duration based on / to match swipe speed\n const calculatedDurationRef = React.useRef();\n\n // Use a ref so the open value used is always up to date inside useCallback.\n useEnhancedEffect(() => {\n calculatedDurationRef.current = null;\n }, [open]);\n const setPosition = React.useCallback((translate, options = {}) => {\n const {\n mode = null,\n changeTransition = true\n } = options;\n const anchorRtl = getAnchor(theme, anchor);\n const rtlTranslateMultiplier = ['right', 'bottom'].indexOf(anchorRtl) !== -1 ? 1 : -1;\n const horizontalSwipe = isHorizontal(anchor);\n const transform = horizontalSwipe ? `translate(${rtlTranslateMultiplier * translate}px, 0)` : `translate(0, ${rtlTranslateMultiplier * translate}px)`;\n const drawerStyle = paperRef.current.style;\n drawerStyle.webkitTransform = transform;\n drawerStyle.transform = transform;\n let transition = '';\n if (mode) {\n transition = theme.transitions.create('all', getTransitionProps({\n easing: undefined,\n style: undefined,\n timeout: transitionDuration\n }, {\n mode\n }));\n }\n if (changeTransition) {\n drawerStyle.webkitTransition = transition;\n drawerStyle.transition = transition;\n }\n if (!disableBackdropTransition && !hideBackdrop) {\n const backdropStyle = backdropRef.current.style;\n backdropStyle.opacity = 1 - translate / getMaxTranslate(horizontalSwipe, paperRef.current);\n if (changeTransition) {\n backdropStyle.webkitTransition = transition;\n backdropStyle.transition = transition;\n }\n }\n }, [anchor, disableBackdropTransition, hideBackdrop, theme, transitionDuration]);\n const handleBodyTouchEnd = useEventCallback(nativeEvent => {\n if (!touchDetected.current) {\n return;\n }\n claimedSwipeInstance = null;\n touchDetected.current = false;\n ReactDOM.flushSync(() => {\n setMaybeSwiping(false);\n });\n\n // The swipe wasn't started.\n if (!swipeInstance.current.isSwiping) {\n swipeInstance.current.isSwiping = null;\n return;\n }\n swipeInstance.current.isSwiping = null;\n const anchorRtl = getAnchor(theme, anchor);\n const horizontal = isHorizontal(anchor);\n let current;\n if (horizontal) {\n current = calculateCurrentX(anchorRtl, nativeEvent.changedTouches, ownerDocument(nativeEvent.currentTarget));\n } else {\n current = calculateCurrentY(anchorRtl, nativeEvent.changedTouches, ownerWindow(nativeEvent.currentTarget));\n }\n const startLocation = horizontal ? swipeInstance.current.startX : swipeInstance.current.startY;\n const maxTranslate = getMaxTranslate(horizontal, paperRef.current);\n const currentTranslate = getTranslate(current, startLocation, open, maxTranslate);\n const translateRatio = currentTranslate / maxTranslate;\n if (Math.abs(swipeInstance.current.velocity) > minFlingVelocity) {\n // Calculate transition duration to match swipe speed\n calculatedDurationRef.current = Math.abs((maxTranslate - currentTranslate) / swipeInstance.current.velocity) * 1000;\n }\n if (open) {\n if (swipeInstance.current.velocity > minFlingVelocity || translateRatio > hysteresis) {\n onClose();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(0, {\n mode: 'exit'\n });\n }\n return;\n }\n if (swipeInstance.current.velocity < -minFlingVelocity || 1 - translateRatio > hysteresis) {\n onOpen();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(getMaxTranslate(horizontal, paperRef.current), {\n mode: 'enter'\n });\n }\n });\n const startMaybeSwiping = (force = false) => {\n if (!maybeSwiping) {\n // on Safari Mobile, if you want to be able to have the 'click' event fired on child elements, nothing in the DOM can be changed.\n // this is because Safari Mobile will not fire any mouse events (still fires touch though) if the DOM changes during mousemove.\n // so do this change on first touchmove instead of touchstart\n if (force || !(disableDiscovery && allowSwipeInChildren)) {\n ReactDOM.flushSync(() => {\n setMaybeSwiping(true);\n });\n }\n const horizontalSwipe = isHorizontal(anchor);\n if (!open && paperRef.current) {\n // The ref may be null when a parent component updates while swiping.\n setPosition(getMaxTranslate(horizontalSwipe, paperRef.current) + (disableDiscovery ? 15 : -DRAG_STARTED_SIGNAL), {\n changeTransition: false\n });\n }\n swipeInstance.current.velocity = 0;\n swipeInstance.current.lastTime = null;\n swipeInstance.current.lastTranslate = null;\n swipeInstance.current.paperHit = false;\n touchDetected.current = true;\n }\n };\n const handleBodyTouchMove = useEventCallback(nativeEvent => {\n // the ref may be null when a parent component updates while swiping\n if (!paperRef.current || !touchDetected.current) {\n return;\n }\n\n // We are not supposed to handle this touch move because the swipe was started in a scrollable container in the drawer\n if (claimedSwipeInstance !== null && claimedSwipeInstance !== swipeInstance.current) {\n return;\n }\n startMaybeSwiping(true);\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (open && paperRef.current.contains(nativeEvent.target) && claimedSwipeInstance === null) {\n const domTreeShapes = getDomTreeShapes(nativeEvent.target, paperRef.current);\n const hasNativeHandler = computeHasNativeHandler({\n domTreeShapes,\n start: horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY,\n current: horizontalSwipe ? currentX : currentY,\n anchor\n });\n if (hasNativeHandler) {\n claimedSwipeInstance = true;\n return;\n }\n claimedSwipeInstance = swipeInstance.current;\n }\n\n // We don't know yet.\n if (swipeInstance.current.isSwiping == null) {\n const dx = Math.abs(currentX - swipeInstance.current.startX);\n const dy = Math.abs(currentY - swipeInstance.current.startY);\n const definitelySwiping = horizontalSwipe ? dx > dy && dx > UNCERTAINTY_THRESHOLD : dy > dx && dy > UNCERTAINTY_THRESHOLD;\n if (definitelySwiping && nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n if (definitelySwiping === true || (horizontalSwipe ? dy > UNCERTAINTY_THRESHOLD : dx > UNCERTAINTY_THRESHOLD)) {\n swipeInstance.current.isSwiping = definitelySwiping;\n if (!definitelySwiping) {\n handleBodyTouchEnd(nativeEvent);\n return;\n }\n\n // Shift the starting point.\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n\n // Compensate for the part of the drawer displayed on touch start.\n if (!disableDiscovery && !open) {\n if (horizontalSwipe) {\n swipeInstance.current.startX -= DRAG_STARTED_SIGNAL;\n } else {\n swipeInstance.current.startY -= DRAG_STARTED_SIGNAL;\n }\n }\n }\n }\n if (!swipeInstance.current.isSwiping) {\n return;\n }\n const maxTranslate = getMaxTranslate(horizontalSwipe, paperRef.current);\n let startLocation = horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY;\n if (open && !swipeInstance.current.paperHit) {\n startLocation = Math.min(startLocation, maxTranslate);\n }\n const translate = getTranslate(horizontalSwipe ? currentX : currentY, startLocation, open, maxTranslate);\n if (open) {\n if (!swipeInstance.current.paperHit) {\n const paperHit = horizontalSwipe ? currentX < maxTranslate : currentY < maxTranslate;\n if (paperHit) {\n swipeInstance.current.paperHit = true;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n } else {\n return;\n }\n } else if (translate === 0) {\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n }\n }\n if (swipeInstance.current.lastTranslate === null) {\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now() + 1;\n }\n const velocity = (translate - swipeInstance.current.lastTranslate) / (performance.now() - swipeInstance.current.lastTime) * 1e3;\n\n // Low Pass filter.\n swipeInstance.current.velocity = swipeInstance.current.velocity * 0.4 + velocity * 0.6;\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now();\n\n // We are swiping, let's prevent the scroll event on iOS.\n if (nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n setPosition(translate);\n });\n const handleBodyTouchStart = useEventCallback(nativeEvent => {\n // We are not supposed to handle this touch move.\n // Example of use case: ignore the event if there is a Slider.\n if (nativeEvent.defaultPrevented) {\n return;\n }\n\n // We can only have one node at the time claiming ownership for handling the swipe.\n if (nativeEvent.defaultMuiPrevented) {\n return;\n }\n\n // At least one element clogs the drawer interaction zone.\n if (open && (hideBackdrop || !backdropRef.current.contains(nativeEvent.target)) && !paperRef.current.contains(nativeEvent.target)) {\n return;\n }\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (!open) {\n var _paperRef$current;\n // logic for if swipe should be ignored:\n // if disableSwipeToOpen\n // if target != swipeArea, and target is not a child of paper ref\n // if is a child of paper ref, and `allowSwipeInChildren` does not allow it\n if (disableSwipeToOpen || !(nativeEvent.target === swipeAreaRef.current || (_paperRef$current = paperRef.current) != null && _paperRef$current.contains(nativeEvent.target) && (typeof allowSwipeInChildren === 'function' ? allowSwipeInChildren(nativeEvent, swipeAreaRef.current, paperRef.current) : allowSwipeInChildren))) {\n return;\n }\n if (horizontalSwipe) {\n if (currentX > swipeAreaWidth) {\n return;\n }\n } else if (currentY > swipeAreaWidth) {\n return;\n }\n }\n nativeEvent.defaultMuiPrevented = true;\n claimedSwipeInstance = null;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n startMaybeSwiping();\n });\n React.useEffect(() => {\n if (variant === 'temporary') {\n const doc = ownerDocument(paperRef.current);\n doc.addEventListener('touchstart', handleBodyTouchStart);\n // A blocking listener prevents Firefox's navbar to auto-hide on scroll.\n // It only needs to prevent scrolling on the drawer's content when open.\n // When closed, the overlay prevents scrolling.\n doc.addEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.addEventListener('touchend', handleBodyTouchEnd);\n return () => {\n doc.removeEventListener('touchstart', handleBodyTouchStart);\n doc.removeEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.removeEventListener('touchend', handleBodyTouchEnd);\n };\n }\n return undefined;\n }, [variant, open, handleBodyTouchStart, handleBodyTouchMove, handleBodyTouchEnd]);\n React.useEffect(() => () => {\n // We need to release the lock.\n if (claimedSwipeInstance === swipeInstance.current) {\n claimedSwipeInstance = null;\n }\n }, []);\n React.useEffect(() => {\n if (!open) {\n setMaybeSwiping(false);\n }\n }, [open]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(Drawer, _extends({\n open: variant === 'temporary' && maybeSwiping ? true : open,\n variant: variant,\n ModalProps: _extends({\n BackdropProps: _extends({}, BackdropProps, {\n ref: backdropRef\n })\n }, variant === 'temporary' && {\n keepMounted: true\n }, ModalPropsProp),\n hideBackdrop: hideBackdrop,\n PaperProps: _extends({}, PaperProps, {\n style: _extends({\n pointerEvents: variant === 'temporary' && !open && !allowSwipeInChildren ? 'none' : ''\n }, PaperProps.style),\n ref: handleRef\n }),\n anchor: anchor,\n transitionDuration: calculatedDurationRef.current || transitionDuration,\n onClose: onClose,\n ref: ref\n }, other)), !disableSwipeToOpen && variant === 'temporary' && /*#__PURE__*/_jsx(NoSsr, {\n children: /*#__PURE__*/_jsx(SwipeArea, _extends({\n anchor: anchor,\n ref: swipeAreaRef,\n width: swipeAreaWidth\n }, SwipeAreaProps))\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SwipeableDrawer.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If set to true, the swipe event will open the drawer even if the user begins the swipe on one of the drawer's children.\n * This can be useful in scenarios where the drawer is partially visible.\n * You can customize it further with a callback that determines which children the user can drag over to open the drawer\n * (for example, to ignore other elements that handle touch move events, like sliders).\n *\n * @param {TouchEvent} event The 'touchstart' event\n * @param {HTMLDivElement} swipeArea The swipe area element\n * @param {HTMLDivElement} paper The drawer's paper element\n *\n * @default false\n */\n allowSwipeInChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),\n /**\n * @ignore\n */\n anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Disable the backdrop transition.\n * This can improve the FPS on low-end devices.\n * @default false\n */\n disableBackdropTransition: PropTypes.bool,\n /**\n * If `true`, touching the screen near the edge of the drawer will not slide in the drawer a bit\n * to promote accidental discovery of the swipe gesture.\n * @default false\n */\n disableDiscovery: PropTypes.bool,\n /**\n * If `true`, swipe to open is disabled. This is useful in browsers where swiping triggers\n * navigation actions. Swipe to open is disabled on iOS browsers by default.\n * @default typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent)\n */\n disableSwipeToOpen: PropTypes.bool,\n /**\n * @ignore\n */\n hideBackdrop: PropTypes.bool,\n /**\n * Affects how far the drawer must be opened/closed to change its state.\n * Specified as percent (0-1) of the width of the drawer\n * @default 0.52\n */\n hysteresis: PropTypes.number,\n /**\n * Defines, from which (average) velocity on, the swipe is\n * defined as complete although hysteresis isn't reached.\n * Good threshold is between 250 - 1000 px/s\n * @default 450\n */\n minFlingVelocity: PropTypes.number,\n /**\n * @ignore\n */\n ModalProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n BackdropProps: PropTypes.shape({\n component: elementTypeAcceptingRef\n })\n }),\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onClose: PropTypes.func.isRequired,\n /**\n * Callback fired when the component requests to be opened.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onOpen: PropTypes.func.isRequired,\n /**\n * If `true`, the component is shown.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * @ignore\n */\n PaperProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n component: elementTypeAcceptingRef,\n style: PropTypes.object\n }),\n /**\n * The element is used to intercept the touch events on the edge.\n */\n SwipeAreaProps: PropTypes.object,\n /**\n * The width of the left most (or right most) area in `px` that\n * the drawer can be swiped open from.\n * @default 20\n */\n swipeAreaWidth: PropTypes.number,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * @ignore\n */\n variant: PropTypes.oneOf(['permanent', 'persistent', 'temporary'])\n} : void 0;\nexport default SwipeableDrawer;"],"names":["_excluded","_excluded2","claimedSwipeInstance","calculateCurrentX","anchor","touches","doc","body","offsetWidth","pageX","calculateCurrentY","containerWindow","innerHeight","clientY","getMaxTranslate","horizontalSwipe","paperInstance","clientWidth","clientHeight","getTranslate","currentTranslate","startLocation","open","maxTranslate","Math","min","max","iOS","navigator","test","userAgent","SwipeableDrawer","React","forwardRef","inProps","ref","props","useDefaultProps","name","theme","useTheme","transitionDurationDefault","enter","transitions","duration","enteringScreen","exit","leavingScreen","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","BackdropProps","onClose","onOpen","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant","ModalPropsProp","_objectWithoutPropertiesLoose","other","maybeSwiping","setMaybeSwiping","useState","swipeInstance","useRef","isSwiping","swipeAreaRef","backdropRef","paperRef","handleRef","useForkRef","touchDetected","calculatedDurationRef","useEnhancedEffect","current","setPosition","useCallback","translate","options","mode","changeTransition","anchorRtl","getAnchor","rtlTranslateMultiplier","indexOf","isHorizontal","transform","drawerStyle","style","webkitTransform","transition","create","getTransitionProps","easing","undefined","timeout","webkitTransition","backdropStyle","opacity","handleBodyTouchEnd","useEventCallback","nativeEvent","ReactDOM","flushSync","horizontal","changedTouches","ownerDocument","currentTarget","ownerWindow","startX","startY","translateRatio","abs","velocity","startMaybeSwiping","force","lastTime","lastTranslate","paperHit","handleBodyTouchMove","currentX","currentY","contains","target","hasNativeHandler","domTreeShapes","start","axisProperties","x","y","some","shape","goingForward","axis","scrollPosition","round","areNotAtStart","areNotAtEnd","computeHasNativeHandler","element","rootNode","parentElement","getComputedStyle","getPropertyValue","scrollWidth","scrollHeight","push","getDomTreeShapes","dx","dy","definitelySwiping","cancelable","preventDefault","performance","now","handleBodyTouchStart","defaultPrevented","defaultMuiPrevented","_paperRef$current","useEffect","addEventListener","passive","removeEventListener","_jsxs","jsxs","Fragment","children","_jsx","Drawer","_extends","keepMounted","pointerEvents","jsx","NoSsr","SwipeArea","width","process","env","NODE_ENV","propTypes","PropTypes","oneOfType","func","bool","oneOf","node","number","component","elementTypeAcceptingRef","isRequired","object","appear"],"mappings":"4tCAIA,MAAMA,EAAY,CAAC,iBACjBC,EAAa,CAAC,SAAU,4BAA6B,mBAAoB,qBAAsB,eAAgB,aAAc,uBAAwB,mBAAoB,aAAc,UAAW,SAAU,OAAQ,aAAc,iBAAkB,iBAAkB,qBAAsB,WA6B9R,IAAIC,EAAuB,KAM3B,SAASC,EAAkBC,EAAQC,EAASC,GAC1C,MAAkB,UAAXF,EAAqBE,EAAIC,KAAKC,YAAcH,EAAQ,GAAGI,MAAQJ,EAAQ,GAAGI,KACnF,CACA,SAASC,EAAkBN,EAAQC,EAASM,GAC1C,MAAkB,WAAXP,EAAsBO,EAAgBC,YAAcP,EAAQ,GAAGQ,QAAUR,EAAQ,GAAGQ,OAC7F,CACA,SAASC,EAAgBC,EAAiBC,GACxC,OAAOD,EAAkBC,EAAcC,YAAcD,EAAcE,YACrE,CACA,SAASC,EAAaC,EAAkBC,EAAeC,EAAMC,GAC3D,OAAOC,KAAKC,IAAID,KAAKE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EACR+B,IAAKsC,EACL6G,MAAOzH,GACND,QAGT,IACyB,eAAzB2H,QAAQC,IAAIC,WAA4B1J,EAAgB2J,UAAmC,CAiBzFrI,qBAAsBsI,EAAS,QAACC,UAAU,CAACD,EAAS,QAACE,KAAMF,EAAAA,QAAUG,OAIrE1L,OAAQuL,EAAS,QAACI,MAAM,CAAC,SAAU,OAAQ,QAAS,QAIpDlB,SAAUc,EAAS,QAACK,KAMpBhJ,0BAA2B2I,EAAS,QAACG,KAMrC7I,iBAAkB0I,EAAS,QAACG,KAM5B5I,mBAAoByI,EAAS,QAACG,KAI9B3I,aAAcwI,EAAS,QAACG,KAMxB1I,WAAYuI,EAAS,QAACM,OAOtB3I,iBAAkBqI,EAAS,QAACM,OAI5B1I,WAAYoI,EAAS,QAAuCjD,MAAM,CAChElF,cAAemI,EAAS,QAACjD,MAAM,CAC7BwD,UAAWC,EAAuB,YAQtC1I,QAASkI,EAAAA,QAAUE,KAAKO,WAMxB1I,OAAQiI,EAAAA,QAAUE,KAAKO,WAKvB9K,KAAMqK,EAAS,QAACG,KAIhBnI,WAAYgI,EAAS,QAAuCjD,MAAM,CAChEwD,UAAWC,EAAuB,QAClCpG,MAAO4F,EAAS,QAACU,SAKnBzI,eAAgB+H,EAAS,QAACU,OAM1BxI,eAAgB8H,EAAS,QAACM,OAS1BnI,mBAAoB6H,EAAS,QAACC,UAAU,CAACD,EAAS,QAACM,OAAQN,EAAS,QAACjD,MAAM,CACzE4D,OAAQX,EAAS,QAACM,OAClBvJ,MAAOiJ,EAAS,QAACM,OACjBnJ,KAAM6I,EAAS,QAACM,WAKlBlI,QAAS4H,EAAS,QAACI,MAAM,CAAC,YAAa,aAAc"}
|
|
1
|
+
{"version":3,"file":"SwipeableDrawer.js","sources":["../../../../../../node_modules/@mui/material/SwipeableDrawer/SwipeableDrawer.js"],"sourcesContent":["'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"BackdropProps\"],\n _excluded2 = [\"anchor\", \"disableBackdropTransition\", \"disableDiscovery\", \"disableSwipeToOpen\", \"hideBackdrop\", \"hysteresis\", \"allowSwipeInChildren\", \"minFlingVelocity\", \"ModalProps\", \"onClose\", \"onOpen\", \"open\", \"PaperProps\", \"SwipeAreaProps\", \"swipeAreaWidth\", \"transitionDuration\", \"variant\"];\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport NoSsr from '../NoSsr';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport Drawer, { getAnchor, isHorizontal } from '../Drawer/Drawer';\nimport useForkRef from '../utils/useForkRef';\nimport ownerDocument from '../utils/ownerDocument';\nimport ownerWindow from '../utils/ownerWindow';\nimport useEventCallback from '../utils/useEventCallback';\nimport useEnhancedEffect from '../utils/useEnhancedEffect';\nimport useTheme from '../styles/useTheme';\nimport { getTransitionProps } from '../transitions/utils';\nimport SwipeArea from './SwipeArea';\n\n// This value is closed to what browsers are using internally to\n// trigger a native scroll.\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst UNCERTAINTY_THRESHOLD = 3; // px\n\n// This is the part of the drawer displayed on touch start.\nconst DRAG_STARTED_SIGNAL = 20; // px\n\n// We can only have one instance at the time claiming ownership for handling the swipe.\n// Otherwise, the UX would be confusing.\n// That's why we use a singleton here.\nlet claimedSwipeInstance = null;\n\n// Exported for test purposes.\nexport function reset() {\n claimedSwipeInstance = null;\n}\nfunction calculateCurrentX(anchor, touches, doc) {\n return anchor === 'right' ? doc.body.offsetWidth - touches[0].pageX : touches[0].pageX;\n}\nfunction calculateCurrentY(anchor, touches, containerWindow) {\n return anchor === 'bottom' ? containerWindow.innerHeight - touches[0].clientY : touches[0].clientY;\n}\nfunction getMaxTranslate(horizontalSwipe, paperInstance) {\n return horizontalSwipe ? paperInstance.clientWidth : paperInstance.clientHeight;\n}\nfunction getTranslate(currentTranslate, startLocation, open, maxTranslate) {\n return Math.min(Math.max(open ? startLocation - currentTranslate : maxTranslate + startLocation - currentTranslate, 0), maxTranslate);\n}\n\n/**\n * @param {Element | null} element\n * @param {Element} rootNode\n */\nfunction getDomTreeShapes(element, rootNode) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L129\n const domTreeShapes = [];\n while (element && element !== rootNode.parentElement) {\n const style = ownerWindow(rootNode).getComputedStyle(element);\n if (\n // Ignore the scroll children if the element is absolute positioned.\n style.getPropertyValue('position') === 'absolute' ||\n // Ignore the scroll children if the element has an overflowX hidden\n style.getPropertyValue('overflow-x') === 'hidden') {\n // noop\n } else if (element.clientWidth > 0 && element.scrollWidth > element.clientWidth || element.clientHeight > 0 && element.scrollHeight > element.clientHeight) {\n // Ignore the nodes that have no width.\n // Keep elements with a scroll\n domTreeShapes.push(element);\n }\n element = element.parentElement;\n }\n return domTreeShapes;\n}\n\n/**\n * @param {object} param0\n * @param {ReturnType<getDomTreeShapes>} param0.domTreeShapes\n */\nfunction computeHasNativeHandler({\n domTreeShapes,\n start,\n current,\n anchor\n}) {\n // Adapted from https://github.com/oliviertassinari/react-swipeable-views/blob/7666de1dba253b896911adf2790ce51467670856/packages/react-swipeable-views/src/SwipeableViews.js#L175\n const axisProperties = {\n scrollPosition: {\n x: 'scrollLeft',\n y: 'scrollTop'\n },\n scrollLength: {\n x: 'scrollWidth',\n y: 'scrollHeight'\n },\n clientLength: {\n x: 'clientWidth',\n y: 'clientHeight'\n }\n };\n return domTreeShapes.some(shape => {\n // Determine if we are going backward or forward.\n let goingForward = current >= start;\n if (anchor === 'top' || anchor === 'left') {\n goingForward = !goingForward;\n }\n const axis = anchor === 'left' || anchor === 'right' ? 'x' : 'y';\n const scrollPosition = Math.round(shape[axisProperties.scrollPosition[axis]]);\n const areNotAtStart = scrollPosition > 0;\n const areNotAtEnd = scrollPosition + shape[axisProperties.clientLength[axis]] < shape[axisProperties.scrollLength[axis]];\n if (goingForward && areNotAtEnd || !goingForward && areNotAtStart) {\n return true;\n }\n return false;\n });\n}\nconst iOS = typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent);\nconst SwipeableDrawer = /*#__PURE__*/React.forwardRef(function SwipeableDrawer(inProps, ref) {\n const props = useDefaultProps({\n name: 'MuiSwipeableDrawer',\n props: inProps\n });\n const theme = useTheme();\n const transitionDurationDefault = {\n enter: theme.transitions.duration.enteringScreen,\n exit: theme.transitions.duration.leavingScreen\n };\n const {\n anchor = 'left',\n disableBackdropTransition = false,\n disableDiscovery = false,\n disableSwipeToOpen = iOS,\n hideBackdrop,\n hysteresis = 0.52,\n allowSwipeInChildren = false,\n minFlingVelocity = 450,\n ModalProps: {\n BackdropProps\n } = {},\n onClose,\n onOpen,\n open = false,\n PaperProps = {},\n SwipeAreaProps,\n swipeAreaWidth = 20,\n transitionDuration = transitionDurationDefault,\n variant = 'temporary' // Mobile first.\n } = props,\n ModalPropsProp = _objectWithoutPropertiesLoose(props.ModalProps, _excluded),\n other = _objectWithoutPropertiesLoose(props, _excluded2);\n const [maybeSwiping, setMaybeSwiping] = React.useState(false);\n const swipeInstance = React.useRef({\n isSwiping: null\n });\n const swipeAreaRef = React.useRef();\n const backdropRef = React.useRef();\n const paperRef = React.useRef();\n const handleRef = useForkRef(PaperProps.ref, paperRef);\n const touchDetected = React.useRef(false);\n\n // Ref for transition duration based on / to match swipe speed\n const calculatedDurationRef = React.useRef();\n\n // Use a ref so the open value used is always up to date inside useCallback.\n useEnhancedEffect(() => {\n calculatedDurationRef.current = null;\n }, [open]);\n const setPosition = React.useCallback((translate, options = {}) => {\n const {\n mode = null,\n changeTransition = true\n } = options;\n const anchorRtl = getAnchor(theme, anchor);\n const rtlTranslateMultiplier = ['right', 'bottom'].indexOf(anchorRtl) !== -1 ? 1 : -1;\n const horizontalSwipe = isHorizontal(anchor);\n const transform = horizontalSwipe ? `translate(${rtlTranslateMultiplier * translate}px, 0)` : `translate(0, ${rtlTranslateMultiplier * translate}px)`;\n const drawerStyle = paperRef.current.style;\n drawerStyle.webkitTransform = transform;\n drawerStyle.transform = transform;\n let transition = '';\n if (mode) {\n transition = theme.transitions.create('all', getTransitionProps({\n easing: undefined,\n style: undefined,\n timeout: transitionDuration\n }, {\n mode\n }));\n }\n if (changeTransition) {\n drawerStyle.webkitTransition = transition;\n drawerStyle.transition = transition;\n }\n if (!disableBackdropTransition && !hideBackdrop) {\n const backdropStyle = backdropRef.current.style;\n backdropStyle.opacity = 1 - translate / getMaxTranslate(horizontalSwipe, paperRef.current);\n if (changeTransition) {\n backdropStyle.webkitTransition = transition;\n backdropStyle.transition = transition;\n }\n }\n }, [anchor, disableBackdropTransition, hideBackdrop, theme, transitionDuration]);\n const handleBodyTouchEnd = useEventCallback(nativeEvent => {\n if (!touchDetected.current) {\n return;\n }\n claimedSwipeInstance = null;\n touchDetected.current = false;\n ReactDOM.flushSync(() => {\n setMaybeSwiping(false);\n });\n\n // The swipe wasn't started.\n if (!swipeInstance.current.isSwiping) {\n swipeInstance.current.isSwiping = null;\n return;\n }\n swipeInstance.current.isSwiping = null;\n const anchorRtl = getAnchor(theme, anchor);\n const horizontal = isHorizontal(anchor);\n let current;\n if (horizontal) {\n current = calculateCurrentX(anchorRtl, nativeEvent.changedTouches, ownerDocument(nativeEvent.currentTarget));\n } else {\n current = calculateCurrentY(anchorRtl, nativeEvent.changedTouches, ownerWindow(nativeEvent.currentTarget));\n }\n const startLocation = horizontal ? swipeInstance.current.startX : swipeInstance.current.startY;\n const maxTranslate = getMaxTranslate(horizontal, paperRef.current);\n const currentTranslate = getTranslate(current, startLocation, open, maxTranslate);\n const translateRatio = currentTranslate / maxTranslate;\n if (Math.abs(swipeInstance.current.velocity) > minFlingVelocity) {\n // Calculate transition duration to match swipe speed\n calculatedDurationRef.current = Math.abs((maxTranslate - currentTranslate) / swipeInstance.current.velocity) * 1000;\n }\n if (open) {\n if (swipeInstance.current.velocity > minFlingVelocity || translateRatio > hysteresis) {\n onClose();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(0, {\n mode: 'exit'\n });\n }\n return;\n }\n if (swipeInstance.current.velocity < -minFlingVelocity || 1 - translateRatio > hysteresis) {\n onOpen();\n } else {\n // Reset the position, the swipe was aborted.\n setPosition(getMaxTranslate(horizontal, paperRef.current), {\n mode: 'enter'\n });\n }\n });\n const startMaybeSwiping = (force = false) => {\n if (!maybeSwiping) {\n // on Safari Mobile, if you want to be able to have the 'click' event fired on child elements, nothing in the DOM can be changed.\n // this is because Safari Mobile will not fire any mouse events (still fires touch though) if the DOM changes during mousemove.\n // so do this change on first touchmove instead of touchstart\n if (force || !(disableDiscovery && allowSwipeInChildren)) {\n ReactDOM.flushSync(() => {\n setMaybeSwiping(true);\n });\n }\n const horizontalSwipe = isHorizontal(anchor);\n if (!open && paperRef.current) {\n // The ref may be null when a parent component updates while swiping.\n setPosition(getMaxTranslate(horizontalSwipe, paperRef.current) + (disableDiscovery ? 15 : -DRAG_STARTED_SIGNAL), {\n changeTransition: false\n });\n }\n swipeInstance.current.velocity = 0;\n swipeInstance.current.lastTime = null;\n swipeInstance.current.lastTranslate = null;\n swipeInstance.current.paperHit = false;\n touchDetected.current = true;\n }\n };\n const handleBodyTouchMove = useEventCallback(nativeEvent => {\n // the ref may be null when a parent component updates while swiping\n if (!paperRef.current || !touchDetected.current) {\n return;\n }\n\n // We are not supposed to handle this touch move because the swipe was started in a scrollable container in the drawer\n if (claimedSwipeInstance !== null && claimedSwipeInstance !== swipeInstance.current) {\n return;\n }\n startMaybeSwiping(true);\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (open && paperRef.current.contains(nativeEvent.target) && claimedSwipeInstance === null) {\n const domTreeShapes = getDomTreeShapes(nativeEvent.target, paperRef.current);\n const hasNativeHandler = computeHasNativeHandler({\n domTreeShapes,\n start: horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY,\n current: horizontalSwipe ? currentX : currentY,\n anchor\n });\n if (hasNativeHandler) {\n claimedSwipeInstance = true;\n return;\n }\n claimedSwipeInstance = swipeInstance.current;\n }\n\n // We don't know yet.\n if (swipeInstance.current.isSwiping == null) {\n const dx = Math.abs(currentX - swipeInstance.current.startX);\n const dy = Math.abs(currentY - swipeInstance.current.startY);\n const definitelySwiping = horizontalSwipe ? dx > dy && dx > UNCERTAINTY_THRESHOLD : dy > dx && dy > UNCERTAINTY_THRESHOLD;\n if (definitelySwiping && nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n if (definitelySwiping === true || (horizontalSwipe ? dy > UNCERTAINTY_THRESHOLD : dx > UNCERTAINTY_THRESHOLD)) {\n swipeInstance.current.isSwiping = definitelySwiping;\n if (!definitelySwiping) {\n handleBodyTouchEnd(nativeEvent);\n return;\n }\n\n // Shift the starting point.\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n\n // Compensate for the part of the drawer displayed on touch start.\n if (!disableDiscovery && !open) {\n if (horizontalSwipe) {\n swipeInstance.current.startX -= DRAG_STARTED_SIGNAL;\n } else {\n swipeInstance.current.startY -= DRAG_STARTED_SIGNAL;\n }\n }\n }\n }\n if (!swipeInstance.current.isSwiping) {\n return;\n }\n const maxTranslate = getMaxTranslate(horizontalSwipe, paperRef.current);\n let startLocation = horizontalSwipe ? swipeInstance.current.startX : swipeInstance.current.startY;\n if (open && !swipeInstance.current.paperHit) {\n startLocation = Math.min(startLocation, maxTranslate);\n }\n const translate = getTranslate(horizontalSwipe ? currentX : currentY, startLocation, open, maxTranslate);\n if (open) {\n if (!swipeInstance.current.paperHit) {\n const paperHit = horizontalSwipe ? currentX < maxTranslate : currentY < maxTranslate;\n if (paperHit) {\n swipeInstance.current.paperHit = true;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n } else {\n return;\n }\n } else if (translate === 0) {\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n }\n }\n if (swipeInstance.current.lastTranslate === null) {\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now() + 1;\n }\n const velocity = (translate - swipeInstance.current.lastTranslate) / (performance.now() - swipeInstance.current.lastTime) * 1e3;\n\n // Low Pass filter.\n swipeInstance.current.velocity = swipeInstance.current.velocity * 0.4 + velocity * 0.6;\n swipeInstance.current.lastTranslate = translate;\n swipeInstance.current.lastTime = performance.now();\n\n // We are swiping, let's prevent the scroll event on iOS.\n if (nativeEvent.cancelable) {\n nativeEvent.preventDefault();\n }\n setPosition(translate);\n });\n const handleBodyTouchStart = useEventCallback(nativeEvent => {\n // We are not supposed to handle this touch move.\n // Example of use case: ignore the event if there is a Slider.\n if (nativeEvent.defaultPrevented) {\n return;\n }\n\n // We can only have one node at the time claiming ownership for handling the swipe.\n if (nativeEvent.defaultMuiPrevented) {\n return;\n }\n\n // At least one element clogs the drawer interaction zone.\n if (open && (hideBackdrop || !backdropRef.current.contains(nativeEvent.target)) && !paperRef.current.contains(nativeEvent.target)) {\n return;\n }\n const anchorRtl = getAnchor(theme, anchor);\n const horizontalSwipe = isHorizontal(anchor);\n const currentX = calculateCurrentX(anchorRtl, nativeEvent.touches, ownerDocument(nativeEvent.currentTarget));\n const currentY = calculateCurrentY(anchorRtl, nativeEvent.touches, ownerWindow(nativeEvent.currentTarget));\n if (!open) {\n var _paperRef$current;\n // logic for if swipe should be ignored:\n // if disableSwipeToOpen\n // if target != swipeArea, and target is not a child of paper ref\n // if is a child of paper ref, and `allowSwipeInChildren` does not allow it\n if (disableSwipeToOpen || !(nativeEvent.target === swipeAreaRef.current || (_paperRef$current = paperRef.current) != null && _paperRef$current.contains(nativeEvent.target) && (typeof allowSwipeInChildren === 'function' ? allowSwipeInChildren(nativeEvent, swipeAreaRef.current, paperRef.current) : allowSwipeInChildren))) {\n return;\n }\n if (horizontalSwipe) {\n if (currentX > swipeAreaWidth) {\n return;\n }\n } else if (currentY > swipeAreaWidth) {\n return;\n }\n }\n nativeEvent.defaultMuiPrevented = true;\n claimedSwipeInstance = null;\n swipeInstance.current.startX = currentX;\n swipeInstance.current.startY = currentY;\n startMaybeSwiping();\n });\n React.useEffect(() => {\n if (variant === 'temporary') {\n const doc = ownerDocument(paperRef.current);\n doc.addEventListener('touchstart', handleBodyTouchStart);\n // A blocking listener prevents Firefox's navbar to auto-hide on scroll.\n // It only needs to prevent scrolling on the drawer's content when open.\n // When closed, the overlay prevents scrolling.\n doc.addEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.addEventListener('touchend', handleBodyTouchEnd);\n return () => {\n doc.removeEventListener('touchstart', handleBodyTouchStart);\n doc.removeEventListener('touchmove', handleBodyTouchMove, {\n passive: !open\n });\n doc.removeEventListener('touchend', handleBodyTouchEnd);\n };\n }\n return undefined;\n }, [variant, open, handleBodyTouchStart, handleBodyTouchMove, handleBodyTouchEnd]);\n React.useEffect(() => () => {\n // We need to release the lock.\n if (claimedSwipeInstance === swipeInstance.current) {\n claimedSwipeInstance = null;\n }\n }, []);\n React.useEffect(() => {\n if (!open) {\n setMaybeSwiping(false);\n }\n }, [open]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(Drawer, _extends({\n open: variant === 'temporary' && maybeSwiping ? true : open,\n variant: variant,\n ModalProps: _extends({\n BackdropProps: _extends({}, BackdropProps, {\n ref: backdropRef\n })\n }, variant === 'temporary' && {\n keepMounted: true\n }, ModalPropsProp),\n hideBackdrop: hideBackdrop,\n PaperProps: _extends({}, PaperProps, {\n style: _extends({\n pointerEvents: variant === 'temporary' && !open && !allowSwipeInChildren ? 'none' : ''\n }, PaperProps.style),\n ref: handleRef\n }),\n anchor: anchor,\n transitionDuration: calculatedDurationRef.current || transitionDuration,\n onClose: onClose,\n ref: ref\n }, other)), !disableSwipeToOpen && variant === 'temporary' && /*#__PURE__*/_jsx(NoSsr, {\n children: /*#__PURE__*/_jsx(SwipeArea, _extends({\n anchor: anchor,\n ref: swipeAreaRef,\n width: swipeAreaWidth\n }, SwipeAreaProps))\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SwipeableDrawer.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If set to true, the swipe event will open the drawer even if the user begins the swipe on one of the drawer's children.\n * This can be useful in scenarios where the drawer is partially visible.\n * You can customize it further with a callback that determines which children the user can drag over to open the drawer\n * (for example, to ignore other elements that handle touch move events, like sliders).\n *\n * @param {TouchEvent} event The 'touchstart' event\n * @param {HTMLDivElement} swipeArea The swipe area element\n * @param {HTMLDivElement} paper The drawer's paper element\n *\n * @default false\n */\n allowSwipeInChildren: PropTypes.oneOfType([PropTypes.func, PropTypes.bool]),\n /**\n * @ignore\n */\n anchor: PropTypes.oneOf(['bottom', 'left', 'right', 'top']),\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Disable the backdrop transition.\n * This can improve the FPS on low-end devices.\n * @default false\n */\n disableBackdropTransition: PropTypes.bool,\n /**\n * If `true`, touching the screen near the edge of the drawer will not slide in the drawer a bit\n * to promote accidental discovery of the swipe gesture.\n * @default false\n */\n disableDiscovery: PropTypes.bool,\n /**\n * If `true`, swipe to open is disabled. This is useful in browsers where swiping triggers\n * navigation actions. Swipe to open is disabled on iOS browsers by default.\n * @default typeof navigator !== 'undefined' && /iPad|iPhone|iPod/.test(navigator.userAgent)\n */\n disableSwipeToOpen: PropTypes.bool,\n /**\n * @ignore\n */\n hideBackdrop: PropTypes.bool,\n /**\n * Affects how far the drawer must be opened/closed to change its state.\n * Specified as percent (0-1) of the width of the drawer\n * @default 0.52\n */\n hysteresis: PropTypes.number,\n /**\n * Defines, from which (average) velocity on, the swipe is\n * defined as complete although hysteresis isn't reached.\n * Good threshold is between 250 - 1000 px/s\n * @default 450\n */\n minFlingVelocity: PropTypes.number,\n /**\n * @ignore\n */\n ModalProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n BackdropProps: PropTypes.shape({\n component: elementTypeAcceptingRef\n })\n }),\n /**\n * Callback fired when the component requests to be closed.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onClose: PropTypes.func.isRequired,\n /**\n * Callback fired when the component requests to be opened.\n *\n * @param {React.SyntheticEvent<{}>} event The event source of the callback.\n */\n onOpen: PropTypes.func.isRequired,\n /**\n * If `true`, the component is shown.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * @ignore\n */\n PaperProps: PropTypes /* @typescript-to-proptypes-ignore */.shape({\n component: elementTypeAcceptingRef,\n style: PropTypes.object\n }),\n /**\n * The element is used to intercept the touch events on the edge.\n */\n SwipeAreaProps: PropTypes.object,\n /**\n * The width of the left most (or right most) area in `px` that\n * the drawer can be swiped open from.\n * @default 20\n */\n swipeAreaWidth: PropTypes.number,\n /**\n * The duration for the transition, in milliseconds.\n * You may specify a single timeout for all transitions, or individually with an object.\n * @default {\n * enter: theme.transitions.duration.enteringScreen,\n * exit: theme.transitions.duration.leavingScreen,\n * }\n */\n transitionDuration: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({\n appear: PropTypes.number,\n enter: PropTypes.number,\n exit: PropTypes.number\n })]),\n /**\n * @ignore\n */\n variant: PropTypes.oneOf(['permanent', 'persistent', 'temporary'])\n} : void 0;\nexport default SwipeableDrawer;"],"names":["_excluded","_excluded2","claimedSwipeInstance","calculateCurrentX","anchor","touches","doc","body","offsetWidth","pageX","calculateCurrentY","containerWindow","innerHeight","clientY","getMaxTranslate","horizontalSwipe","paperInstance","clientWidth","clientHeight","getTranslate","currentTranslate","startLocation","open","maxTranslate","Math","min","max","iOS","navigator","test","userAgent","SwipeableDrawer","React","forwardRef","inProps","ref","props","useDefaultProps","name","theme","useTheme","transitionDurationDefault","enter","transitions","duration","enteringScreen","exit","leavingScreen","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","allowSwipeInChildren","minFlingVelocity","ModalProps","BackdropProps","onClose","onOpen","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant","ModalPropsProp","_objectWithoutPropertiesLoose","other","maybeSwiping","setMaybeSwiping","useState","swipeInstance","useRef","isSwiping","swipeAreaRef","backdropRef","paperRef","handleRef","useForkRef","touchDetected","calculatedDurationRef","useEnhancedEffect","current","setPosition","useCallback","translate","options","mode","changeTransition","anchorRtl","getAnchor","rtlTranslateMultiplier","indexOf","isHorizontal","transform","drawerStyle","style","webkitTransform","transition","create","getTransitionProps","easing","undefined","timeout","webkitTransition","backdropStyle","opacity","handleBodyTouchEnd","useEventCallback","nativeEvent","ReactDOM","flushSync","horizontal","changedTouches","ownerDocument","currentTarget","ownerWindow","startX","startY","translateRatio","abs","velocity","startMaybeSwiping","force","lastTime","lastTranslate","paperHit","handleBodyTouchMove","currentX","currentY","contains","target","hasNativeHandler","domTreeShapes","start","axisProperties","x","y","some","shape","goingForward","axis","scrollPosition","round","areNotAtStart","areNotAtEnd","computeHasNativeHandler","element","rootNode","parentElement","getComputedStyle","getPropertyValue","scrollWidth","scrollHeight","push","getDomTreeShapes","dx","dy","definitelySwiping","cancelable","preventDefault","performance","now","handleBodyTouchStart","defaultPrevented","defaultMuiPrevented","_paperRef$current","useEffect","addEventListener","passive","removeEventListener","_jsxs","jsxs","Fragment","children","_jsx","Drawer","_extends","keepMounted","pointerEvents","jsx","NoSsr","SwipeArea","width","process","env","NODE_ENV","propTypes","PropTypes","oneOfType","func","bool","oneOf","node","number","component","elementTypeAcceptingRef","isRequired","object","appear"],"mappings":"2tCAIA,MAAMA,EA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S,QAACG,KAIhBnI,WAAYgI,EAAS,QAAuCjD,MAAM,CAChEwD,UAAWC,EAAuB,QAClCpG,MAAO4F,EAAS,QAACU,SAKnBzI,eAAgB+H,EAAS,QAACU,OAM1BxI,eAAgB8H,EAAS,QAACM,OAS1BnI,mBAAoB6H,EAAS,QAACC,UAAU,CAACD,EAAS,QAACM,OAAQN,EAAS,QAACjD,MAAM,CACzE4D,OAAQX,EAAS,QAACM,OAClBvJ,MAAOiJ,EAAS,QAACM,OACjBnJ,KAAM6I,EAAS,QAACM,WAKlBlI,QAAS4H,EAAS,QAACI,MAAM,CAAC,YAAa,aAAc"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),t=require("../../../@babel/runtime/helpers/esm/extends.js"),a=require("react"),r=require("../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),t=require("../../../@babel/runtime/helpers/esm/extends.js"),a=require("react"),r=require("../../../../_virtual/index.js"),o=require("../node_modules/clsx/dist/clsx.mjs.js"),l=require("../../utils/esm/refType/refType.js"),s=require("../../utils/esm/composeClasses/composeClasses.js"),i=require("../../../../_virtual/colorManipulator.js"),d=require("../../utils/esm/capitalize/capitalize.js"),n=require("../internal/SwitchBase.js");require("../../system/esm/useTheme.js"),require("../styles/defaultTheme.js");var u=require("../styles/styled.js"),c=require("../DefaultPropsProvider/DefaultPropsProvider.js"),p=require("./switchClasses.js"),f=require("react/jsx-runtime");function h(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}})),t.default=e,Object.freeze(t)}var m=h(a);const b=["className","color","edge","size","sx"],g=u.default("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.root,a.edge&&t[`edge${d.default(a.edge)}`],t[`size${d.default(a.size)}`]]}})({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${p.default.thumb}`]:{width:16,height:16},[`& .${p.default.switchBase}`]:{padding:4,[`&.${p.default.checked}`]:{transform:"translateX(16px)"}}}}]}),v=u.default(n.default,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:a}=e;return[t.switchBase,{[`& .${p.default.input}`]:t.input},"default"!==a.color&&t[`color${d.default(a.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${p.default.checked}`]:{transform:"translateX(20px)"},[`&.${p.default.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${p.default.checked} + .${p.default.track}`]:{opacity:.5},[`&.${p.default.disabled} + .${p.default.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:""+("light"===e.palette.mode?.12:.2)},[`& .${p.default.input}`]:{left:"-100%",width:"300%"}})),(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:i.colorManipulatorExports.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter((([,e])=>e.main&&e.light)).map((([t])=>({props:{color:t},style:{[`&.${p.default.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:i.colorManipulatorExports.alpha(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${p.default.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${"light"===e.palette.mode?i.colorManipulatorExports.lighten(e.palette[t].main,.62):i.colorManipulatorExports.darken(e.palette[t].main,.55)}`}},[`&.${p.default.checked} + .${p.default.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}})))]}))),y=u.default("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${"light"===e.palette.mode?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:""+("light"===e.palette.mode?.38:.3)}))),w=u.default("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),k=m.forwardRef((function(a,r){const l=c.useDefaultProps({props:a,name:"MuiSwitch"}),{className:i,color:n="primary",edge:u=!1,size:h="medium",sx:m}=l,k=e.default(l,b),j=t.default({},l,{color:n,edge:u,size:h}),x=(e=>{const{classes:a,edge:r,size:o,color:l,checked:i,disabled:n}=e,u={root:["root",r&&`edge${d.default(r)}`,`size${d.default(o)}`],switchBase:["switchBase",`color${d.default(l)}`,i&&"checked",n&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=s.default(u,p.getSwitchUtilityClass,a);return t.default({},a,c)})(j),$=f.jsx(w,{className:x.thumb,ownerState:j});return f.jsxs(g,{className:o.clsx(x.root,i),sx:m,ownerState:j,children:[f.jsx(v,t.default({type:"checkbox",icon:$,checkedIcon:$,ref:r,ownerState:j},k,{classes:t.default({},x,{root:x.switchBase})})),f.jsx(y,{className:x.track,ownerState:j})]})}));"production"!==process.env.NODE_ENV&&(k.propTypes={checked:r.default.bool,checkedIcon:r.default.node,classes:r.default.object,className:r.default.string,color:r.default.oneOfType([r.default.oneOf(["default","primary","secondary","error","info","success","warning"]),r.default.string]),defaultChecked:r.default.bool,disabled:r.default.bool,disableRipple:r.default.bool,edge:r.default.oneOf(["end","start",!1]),icon:r.default.node,id:r.default.string,inputProps:r.default.object,inputRef:l.default,onChange:r.default.func,required:r.default.bool,size:r.default.oneOfType([r.default.oneOf(["medium","small"]),r.default.string]),sx:r.default.oneOfType([r.default.arrayOf(r.default.oneOfType([r.default.func,r.default.object,r.default.bool])),r.default.func,r.default.object]),value:r.default.any}),exports.default=k;
|
|
2
2
|
//# sourceMappingURL=Switch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sources":["../../../../../../node_modules/@mui/material/Switch/Switch.js"],"sourcesContent":["'use client';\n\n// @inheritedComponent IconButton\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"color\", \"edge\", \"size\", \"sx\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha, darken, lighten } from '@mui/system/colorManipulator';\nimport capitalize from '../utils/capitalize';\nimport SwitchBase from '../internal/SwitchBase';\nimport { styled } from '../zero-styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport switchClasses, { getSwitchUtilityClass } from './switchClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n edge,\n size,\n color,\n checked,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],\n switchBase: ['switchBase', `color${capitalize(color)}`, checked && 'checked', disabled && 'disabled'],\n thumb: ['thumb'],\n track: ['track'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getSwitchUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\nconst SwitchRoot = styled('span', {\n name: 'MuiSwitch',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n }\n})({\n display: 'inline-flex',\n width: 34 + 12 * 2,\n height: 14 + 12 * 2,\n overflow: 'hidden',\n padding: 12,\n boxSizing: 'border-box',\n position: 'relative',\n flexShrink: 0,\n zIndex: 0,\n // Reset the stacking context.\n verticalAlign: 'middle',\n // For correct alignment with the text.\n '@media print': {\n colorAdjust: 'exact'\n },\n variants: [{\n props: {\n edge: 'start'\n },\n style: {\n marginLeft: -8\n }\n }, {\n props: {\n edge: 'end'\n },\n style: {\n marginRight: -8\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n width: 40,\n height: 24,\n padding: 7,\n [`& .${switchClasses.thumb}`]: {\n width: 16,\n height: 16\n },\n [`& .${switchClasses.switchBase}`]: {\n padding: 4,\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(16px)'\n }\n }\n }\n }]\n});\nconst SwitchSwitchBase = styled(SwitchBase, {\n name: 'MuiSwitch',\n slot: 'SwitchBase',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.switchBase, {\n [`& .${switchClasses.input}`]: styles.input\n }, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(({\n theme\n}) => ({\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n // Render above the focus ripple.\n color: theme.vars ? theme.vars.palette.Switch.defaultColor : `${theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]}`,\n transition: theme.transitions.create(['left', 'transform'], {\n duration: theme.transitions.duration.shortest\n }),\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(20px)'\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch.defaultDisabledColor : `${theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]}`\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n opacity: 0.5\n },\n [`&.${switchClasses.disabled} + .${switchClasses.track}`]: {\n opacity: theme.vars ? theme.vars.opacity.switchTrackDisabled : `${theme.palette.mode === 'light' ? 0.12 : 0.2}`\n },\n [`& .${switchClasses.input}`]: {\n left: '-100%',\n width: '300%'\n }\n}), ({\n theme\n}) => ({\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n variants: [...Object.entries(theme.palette).filter(([, value]) => value.main && value.light) // check all the used fields in the style below\n .map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${switchClasses.checked}`]: {\n color: (theme.vars || theme).palette[color].main,\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch[`${color}DisabledColor`] : `${theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.55)}`\n }\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n backgroundColor: (theme.vars || theme).palette[color].main\n }\n }\n }))]\n}));\nconst SwitchTrack = styled('span', {\n name: 'MuiSwitch',\n slot: 'Track',\n overridesResolver: (props, styles) => styles.track\n})(({\n theme\n}) => ({\n height: '100%',\n width: '100%',\n borderRadius: 14 / 2,\n zIndex: -1,\n transition: theme.transitions.create(['opacity', 'background-color'], {\n duration: theme.transitions.duration.shortest\n }),\n backgroundColor: theme.vars ? theme.vars.palette.common.onBackground : `${theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white}`,\n opacity: theme.vars ? theme.vars.opacity.switchTrack : `${theme.palette.mode === 'light' ? 0.38 : 0.3}`\n}));\nconst SwitchThumb = styled('span', {\n name: 'MuiSwitch',\n slot: 'Thumb',\n overridesResolver: (props, styles) => styles.thumb\n})(({\n theme\n}) => ({\n boxShadow: (theme.vars || theme).shadows[1],\n backgroundColor: 'currentColor',\n width: 20,\n height: 20,\n borderRadius: '50%'\n}));\nconst Switch = /*#__PURE__*/React.forwardRef(function Switch(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSwitch'\n });\n const {\n className,\n color = 'primary',\n edge = false,\n size = 'medium',\n sx\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n color,\n edge,\n size\n });\n const classes = useUtilityClasses(ownerState);\n const icon = /*#__PURE__*/_jsx(SwitchThumb, {\n className: classes.thumb,\n ownerState: ownerState\n });\n return /*#__PURE__*/_jsxs(SwitchRoot, {\n className: clsx(classes.root, className),\n sx: sx,\n ownerState: ownerState,\n children: [/*#__PURE__*/_jsx(SwitchSwitchBase, _extends({\n type: \"checkbox\",\n icon: icon,\n checkedIcon: icon,\n ref: ref,\n ownerState: ownerState\n }, other, {\n classes: _extends({}, classes, {\n root: classes.switchBase\n })\n })), /*#__PURE__*/_jsx(SwitchTrack, {\n className: classes.track,\n ownerState: ownerState\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Switch.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n /**\n * The icon to display when the component is checked.\n */\n checkedIcon: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n * @default false\n */\n edge: PropTypes.oneOf(['end', 'start', false]),\n /**\n * The icon to display when the component is unchecked.\n */\n icon: PropTypes.node,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The size of the component.\n * `small` is equivalent to the dense switch styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n value: PropTypes.any\n} : void 0;\nexport default Switch;"],"names":["_excluded","SwitchRoot","styled","name","slot","overridesResolver","props","styles","ownerState","root","edge","capitalize","size","display","width","height","overflow","padding","boxSizing","position","flexShrink","zIndex","verticalAlign","colorAdjust","variants","style","marginLeft","marginRight","switchClasses","thumb","switchBase","checked","transform","SwitchSwitchBase","SwitchBase","input","color","theme","top","left","vars","palette","Switch","defaultColor","mode","common","white","grey","transition","transitions","create","duration","shortest","disabled","defaultDisabledColor","track","opacity","switchTrackDisabled","backgroundColor","action","activeChannel","hoverOpacity","alpha","active","Object","entries","filter","value","main","light","map","mainChannel","lighten","colorManipulatorExports","darken","SwitchTrack","borderRadius","onBackground","black","switchTrack","SwitchThumb","boxShadow","shadows","React","forwardRef","inProps","ref","useDefaultProps","className","sx","other","_objectWithoutPropertiesLoose","_extends","classes","slots","composedClasses","composeClasses","getSwitchUtilityClass","useUtilityClasses","icon","_jsx","jsx","_jsxs","clsx","children","type","checkedIcon","process","env","NODE_ENV","propTypes","PropTypes","bool","node","object","string","oneOfType","oneOf","defaultChecked","disableRipple","id","inputProps","inputRef","refType","onChange","func","required","arrayOf","any"],"mappings":"gmCAKA,MAAMA,EAAY,CAAC,YAAa,QAAS,OAAQ,OAAQ,MAiCnDC,EAAaC,EAAM,QAAC,OAAQ,CAChCC,KAAM,YACNC,KAAM,OACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOE,KAAMD,EA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QC,IAAIC,WAA4BnE,EAAOoE,UAAmC,CAQhF/E,QAASgF,EAAS,QAACC,KAInBN,YAAaK,EAAS,QAACE,KAIvBpB,QAASkB,EAAS,QAACG,OAInB1B,UAAWuB,EAAS,QAACI,OAOrB/E,MAAO2E,EAAS,QAAuCK,UAAU,CAACL,EAAS,QAACM,MAAM,CAAC,UAAW,UAAW,YAAa,QAAS,OAAQ,UAAW,YAAaN,EAAAA,QAAUI,SAIzKG,eAAgBP,EAAS,QAACC,KAI1B3D,SAAU0D,EAAS,QAACC,KAKpBO,cAAeR,EAAS,QAACC,KAQzBtG,KAAMqG,EAAS,QAACM,MAAM,CAAC,MAAO,SAAS,IAIvClB,KAAMY,EAAS,QAACE,KAIhBO,GAAIT,EAAS,QAACI,OAIdM,WAAYV,EAAS,QAACG,OAItBQ,SAAUC,EAAO,QAQjBC,SAAUb,EAAS,QAACc,KAKpBC,SAAUf,EAAS,QAACC,KAMpBpG,KAAMmG,EAAS,QAAuCK,UAAU,CAACL,EAAS,QAACM,MAAM,CAAC,SAAU,UAAWN,EAAS,QAACI,SAIjH1B,GAAIsB,EAAAA,QAAUK,UAAU,CAACL,EAAAA,QAAUgB,QAAQhB,EAAS,QAACK,UAAU,CAACL,UAAUc,KAAMd,EAAAA,QAAUG,OAAQH,UAAUC,QAASD,EAAAA,QAAUc,KAAMd,UAAUG,SAK/I/C,MAAO4C,EAAS,QAACiB"}
|
|
1
|
+
{"version":3,"file":"Switch.js","sources":["../../../../../../node_modules/@mui/material/Switch/Switch.js"],"sourcesContent":["'use client';\n\n// @inheritedComponent IconButton\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"color\", \"edge\", \"size\", \"sx\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport refType from '@mui/utils/refType';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { alpha, darken, lighten } from '@mui/system/colorManipulator';\nimport capitalize from '../utils/capitalize';\nimport SwitchBase from '../internal/SwitchBase';\nimport { styled } from '../zero-styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport switchClasses, { getSwitchUtilityClass } from './switchClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n edge,\n size,\n color,\n checked,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', edge && `edge${capitalize(edge)}`, `size${capitalize(size)}`],\n switchBase: ['switchBase', `color${capitalize(color)}`, checked && 'checked', disabled && 'disabled'],\n thumb: ['thumb'],\n track: ['track'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getSwitchUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\nconst SwitchRoot = styled('span', {\n name: 'MuiSwitch',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.edge && styles[`edge${capitalize(ownerState.edge)}`], styles[`size${capitalize(ownerState.size)}`]];\n }\n})({\n display: 'inline-flex',\n width: 34 + 12 * 2,\n height: 14 + 12 * 2,\n overflow: 'hidden',\n padding: 12,\n boxSizing: 'border-box',\n position: 'relative',\n flexShrink: 0,\n zIndex: 0,\n // Reset the stacking context.\n verticalAlign: 'middle',\n // For correct alignment with the text.\n '@media print': {\n colorAdjust: 'exact'\n },\n variants: [{\n props: {\n edge: 'start'\n },\n style: {\n marginLeft: -8\n }\n }, {\n props: {\n edge: 'end'\n },\n style: {\n marginRight: -8\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n width: 40,\n height: 24,\n padding: 7,\n [`& .${switchClasses.thumb}`]: {\n width: 16,\n height: 16\n },\n [`& .${switchClasses.switchBase}`]: {\n padding: 4,\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(16px)'\n }\n }\n }\n }]\n});\nconst SwitchSwitchBase = styled(SwitchBase, {\n name: 'MuiSwitch',\n slot: 'SwitchBase',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.switchBase, {\n [`& .${switchClasses.input}`]: styles.input\n }, ownerState.color !== 'default' && styles[`color${capitalize(ownerState.color)}`]];\n }\n})(({\n theme\n}) => ({\n position: 'absolute',\n top: 0,\n left: 0,\n zIndex: 1,\n // Render above the focus ripple.\n color: theme.vars ? theme.vars.palette.Switch.defaultColor : `${theme.palette.mode === 'light' ? theme.palette.common.white : theme.palette.grey[300]}`,\n transition: theme.transitions.create(['left', 'transform'], {\n duration: theme.transitions.duration.shortest\n }),\n [`&.${switchClasses.checked}`]: {\n transform: 'translateX(20px)'\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch.defaultDisabledColor : `${theme.palette.mode === 'light' ? theme.palette.grey[100] : theme.palette.grey[600]}`\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n opacity: 0.5\n },\n [`&.${switchClasses.disabled} + .${switchClasses.track}`]: {\n opacity: theme.vars ? theme.vars.opacity.switchTrackDisabled : `${theme.palette.mode === 'light' ? 0.12 : 0.2}`\n },\n [`& .${switchClasses.input}`]: {\n left: '-100%',\n width: '300%'\n }\n}), ({\n theme\n}) => ({\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity),\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n variants: [...Object.entries(theme.palette).filter(([, value]) => value.main && value.light) // check all the used fields in the style below\n .map(([color]) => ({\n props: {\n color\n },\n style: {\n [`&.${switchClasses.checked}`]: {\n color: (theme.vars || theme).palette[color].main,\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette[color].mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette[color].main, theme.palette.action.hoverOpacity),\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n },\n [`&.${switchClasses.disabled}`]: {\n color: theme.vars ? theme.vars.palette.Switch[`${color}DisabledColor`] : `${theme.palette.mode === 'light' ? lighten(theme.palette[color].main, 0.62) : darken(theme.palette[color].main, 0.55)}`\n }\n },\n [`&.${switchClasses.checked} + .${switchClasses.track}`]: {\n backgroundColor: (theme.vars || theme).palette[color].main\n }\n }\n }))]\n}));\nconst SwitchTrack = styled('span', {\n name: 'MuiSwitch',\n slot: 'Track',\n overridesResolver: (props, styles) => styles.track\n})(({\n theme\n}) => ({\n height: '100%',\n width: '100%',\n borderRadius: 14 / 2,\n zIndex: -1,\n transition: theme.transitions.create(['opacity', 'background-color'], {\n duration: theme.transitions.duration.shortest\n }),\n backgroundColor: theme.vars ? theme.vars.palette.common.onBackground : `${theme.palette.mode === 'light' ? theme.palette.common.black : theme.palette.common.white}`,\n opacity: theme.vars ? theme.vars.opacity.switchTrack : `${theme.palette.mode === 'light' ? 0.38 : 0.3}`\n}));\nconst SwitchThumb = styled('span', {\n name: 'MuiSwitch',\n slot: 'Thumb',\n overridesResolver: (props, styles) => styles.thumb\n})(({\n theme\n}) => ({\n boxShadow: (theme.vars || theme).shadows[1],\n backgroundColor: 'currentColor',\n width: 20,\n height: 20,\n borderRadius: '50%'\n}));\nconst Switch = /*#__PURE__*/React.forwardRef(function Switch(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSwitch'\n });\n const {\n className,\n color = 'primary',\n edge = false,\n size = 'medium',\n sx\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n color,\n edge,\n size\n });\n const classes = useUtilityClasses(ownerState);\n const icon = /*#__PURE__*/_jsx(SwitchThumb, {\n className: classes.thumb,\n ownerState: ownerState\n });\n return /*#__PURE__*/_jsxs(SwitchRoot, {\n className: clsx(classes.root, className),\n sx: sx,\n ownerState: ownerState,\n children: [/*#__PURE__*/_jsx(SwitchSwitchBase, _extends({\n type: \"checkbox\",\n icon: icon,\n checkedIcon: icon,\n ref: ref,\n ownerState: ownerState\n }, other, {\n classes: _extends({}, classes, {\n root: classes.switchBase\n })\n })), /*#__PURE__*/_jsx(SwitchTrack, {\n className: classes.track,\n ownerState: ownerState\n })]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Switch.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * If `true`, the component is checked.\n */\n checked: PropTypes.bool,\n /**\n * The icon to display when the component is checked.\n */\n checkedIcon: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * @default 'primary'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['default', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The default checked state. Use when the component is not controlled.\n */\n defaultChecked: PropTypes.bool,\n /**\n * If `true`, the component is disabled.\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If given, uses a negative margin to counteract the padding on one\n * side (this is often helpful for aligning the left or right\n * side of the icon with content above or below, without ruining the border\n * size and shape).\n * @default false\n */\n edge: PropTypes.oneOf(['end', 'start', false]),\n /**\n * The icon to display when the component is unchecked.\n */\n icon: PropTypes.node,\n /**\n * The id of the `input` element.\n */\n id: PropTypes.string,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n */\n inputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * Callback fired when the state is changed.\n *\n * @param {React.ChangeEvent<HTMLInputElement>} event The event source of the callback.\n * You can pull out the new value by accessing `event.target.value` (string).\n * You can pull out the new checked state by accessing `event.target.checked` (boolean).\n */\n onChange: PropTypes.func,\n /**\n * If `true`, the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The size of the component.\n * `small` is equivalent to the dense switch styling.\n * @default 'medium'\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['medium', 'small']), PropTypes.string]),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * The value of the component. The DOM API casts this to a string.\n * The browser uses \"on\" as the default value.\n */\n value: PropTypes.any\n} : void 0;\nexport default Switch;"],"names":["_excluded","SwitchRoot","styled","name","slot","overridesResolver","props","styles","ownerState","root","edge","capitalize","size","display","width","height","overflow","padding","boxSizing","position","flexShrink","zIndex","verticalAlign","colorAdjust","variants","style","marginLeft","marginRight","switchClasses","thumb","switchBase","checked","transform","SwitchSwitchBase","SwitchBase","input","color","theme","top","left","vars","palette","Switch","defaultColor","mode","common","white","grey","transition","transitions","create","duration","shortest","disabled","defaultDisabledColor","track","opacity","switchTrackDisabled","backgroundColor","action","activeChannel","hoverOpacity","alpha","active","Object","entries","filter","value","main","light","map","mainChannel","lighten","colorManipulatorExports","darken","SwitchTrack","borderRadius","onBackground","black","switchTrack","SwitchThumb","boxShadow","shadows","React","forwardRef","inProps","ref","useDefaultProps","className","sx","other","_objectWithoutPropertiesLoose","_extends","classes","slots","composedClasses","composeClasses","getSwitchUtilityClass","useUtilityClasses","icon","_jsx","jsx","_jsxs","clsx","children","type","checkedIcon","process","env","NODE_ENV","propTypes","PropTypes","bool","node","object","string","oneOfType","oneOf","defaultChecked","disableRipple","id","inputProps","inputRef","refType","onChange","func","required","arrayOf","any"],"mappings":"+lCAKA,MAAMA,EAAY,CAAC,YAAa,QAAS,OAAQ,OAAQ,MAiCnDC,EAAaC,EAAM,QAAC,OAAQ,CAChCC,KAAM,YACNC,KAAM,OACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOE,KAAMD,EAAWE,MAAQH,EAAO,OAAOI,EAAU,QAACH,EAAWE,SAAUH,EAAO,OAAOI,EAAAA,QAAWH,EAAWI,SAAS,GAPpHV,CAShB,CACDW,QAAS,cACTC,MAAO,GACPC,OAAQ,GACRC,SAAU,SACVC,QAAS,GACTC,UAAW,aACXC,SAAU,WACVC,WAAY,EACZC,OAAQ,EAERC,cAAe,SAEf,eAAgB,CACdC,YAAa,SAEfC,SAAU,CAAC,CACTlB,MAAO,CACLI,KAAM,SAERe,MAAO,CACLC,YAAa,IAEd,CACDpB,MAAO,CACLI,KAAM,OAERe,MAAO,CACLE,aAAc,IAEf,CACDrB,MAAO,CACLM,KAAM,SAERa,MAAO,CACLX,MAAO,GACPC,OAAQ,GACRE,QAAS,EACT,CAAC,MAAMW,UAAcC,SAAU,CAC7Bf,MAAO,GACPC,OAAQ,IAEV,CAAC,MAAMa,UAAcE,cAAe,CAClCb,QAAS,EACT,CAAC,KAAKW,UAAcG,WAAY,CAC9BC,UAAW,0BAMfC,EAAmB/B,EAAM,QAACgC,UAAY,CAC1C/B,KAAM,YACNC,KAAM,aACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOuB,WAAY,CACzB,CAAC,MAAMF,EAAa,QAACO,SAAU5B,EAAO4B,OAChB,YAArB3B,EAAW4B,OAAuB7B,EAAO,QAAQI,EAAU,QAACH,EAAW4B,UAAU,GAT/DlC,EAWtB,EACDmC,YACK,CACLlB,SAAU,WACVmB,IAAK,EACLC,KAAM,EACNlB,OAAQ,EAERe,MAAOC,EAAMG,KA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Da,KAAM,WACNN,KAAMA,EACNO,YAAaP,EACbb,IAAKA,EACL9E,WAAYA,GACXkF,EAAO,CACRG,QAASD,EAAAA,QAAS,CAAE,EAAEC,EAAS,CAC7BpF,KAAMoF,EAAQ/D,gBAEAsE,EAAIC,IAAC1B,EAAa,CAClCa,UAAWK,EAAQtC,MACnB/C,WAAYA,MAGlB,IACyB,eAAzBmG,QAAQC,IAAIC,WAA4BnE,EAAOoE,UAAmC,CAQhF/E,QAASgF,EAAS,QAACC,KAInBN,YAAaK,EAAS,QAACE,KAIvBpB,QAASkB,EAAS,QAACG,OAInB1B,UAAWuB,EAAS,QAACI,OAOrB/E,MAAO2E,EAAS,QAAuCK,UAAU,CAACL,EAAS,QAACM,MAAM,CAAC,UAAW,UAAW,YAAa,QAAS,OAAQ,UAAW,YAAaN,EAAAA,QAAUI,SAIzKG,eAAgBP,EAAS,QAACC,KAI1B3D,SAAU0D,EAAS,QAACC,KAKpBO,cAAeR,EAAS,QAACC,KAQzBtG,KAAMqG,EAAS,QAACM,MAAM,CAAC,MAAO,SAAS,IAIvClB,KAAMY,EAAS,QAACE,KAIhBO,GAAIT,EAAS,QAACI,OAIdM,WAAYV,EAAS,QAACG,OAItBQ,SAAUC,EAAO,QAQjBC,SAAUb,EAAS,QAACc,KAKpBC,SAAUf,EAAS,QAACC,KAMpBpG,KAAMmG,EAAS,QAAuCK,UAAU,CAACL,EAAS,QAACM,MAAM,CAAC,SAAU,UAAWN,EAAS,QAACI,SAIjH1B,GAAIsB,EAAAA,QAAUK,UAAU,CAACL,EAAAA,QAAUgB,QAAQhB,EAAS,QAACK,UAAU,CAACL,UAAUc,KAAMd,EAAAA,QAAUG,OAAQH,UAAUC,QAASD,EAAAA,QAAUc,KAAMd,UAAUG,SAK/I/C,MAAO4C,EAAS,QAACiB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),t=require("../../../@babel/runtime/helpers/esm/extends.js"),o=require("react"),l=require("../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),t=require("../../../@babel/runtime/helpers/esm/extends.js"),o=require("react"),l=require("../../../../_virtual/index.js"),a=require("../node_modules/clsx/dist/clsx.mjs.js"),i=require("../../utils/esm/composeClasses/composeClasses.js"),r=require("../ButtonBase/ButtonBase.js");require("../ButtonBase/buttonBaseClasses.js"),require("../ButtonBase/touchRippleClasses.js");var s=require("../../utils/esm/capitalize/capitalize.js"),n=require("../DefaultPropsProvider/DefaultPropsProvider.js"),d=require("../styles/styled.js"),u=require("../../utils/esm/unsupportedProp/unsupportedProp.js"),c=require("./tabClasses.js"),p=require("react/jsx-runtime");function f(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var l=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,l.get?l:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var b=f(o);const m=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],x=d.default(r.default,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.label&&o.icon&&t.labelIcon,t[`textColor${s.default(o.textColor)}`],o.fullWidth&&t.fullWidth,o.wrapped&&t.wrapped,{[`& .${c.default.iconWrapper}`]:t.iconWrapper}]}})((({theme:e,ownerState:o})=>t.default({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},o.label&&{flexDirection:"top"===o.iconPosition||"bottom"===o.iconPosition?"column":"row"},{lineHeight:1.25},o.icon&&o.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${c.default.iconWrapper}`]:t.default({},"top"===o.iconPosition&&{marginBottom:6},"bottom"===o.iconPosition&&{marginTop:6},"start"===o.iconPosition&&{marginRight:e.spacing(1)},"end"===o.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===o.textColor&&{color:"inherit",opacity:.6,[`&.${c.default.selected}`]:{opacity:1},[`&.${c.default.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===o.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${c.default.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${c.default.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===o.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${c.default.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${c.default.disabled}`]:{color:(e.vars||e).palette.text.disabled}},o.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},o.wrapped&&{fontSize:e.typography.pxToRem(12)}))),h=b.forwardRef((function(o,l){const r=n.useDefaultProps({props:o,name:"MuiTab"}),{className:d,disabled:u=!1,disableFocusRipple:f=!1,fullWidth:h,icon:j,iconPosition:g="top",indicator:y,label:v,onChange:C,onClick:P,onFocus:w,selected:W,selectionFollowsFocus:q,textColor:F="inherit",value:O,wrapped:B=!1}=r,R=e.default(r,m),T=t.default({},r,{disabled:u,disableFocusRipple:f,selected:W,icon:!!j,iconPosition:g,label:!!v,fullWidth:h,textColor:F,wrapped:B}),$=(e=>{const{classes:t,textColor:o,fullWidth:l,wrapped:a,icon:r,label:n,selected:d,disabled:u}=e,p={root:["root",r&&n&&"labelIcon",`textColor${s.default(o)}`,l&&"fullWidth",a&&"wrapped",d&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return i.default(p,c.getTabUtilityClass,t)})(T),N=j&&v&&b.isValidElement(j)?b.cloneElement(j,{className:a.clsx($.iconWrapper,j.props.className)}):j;return p.jsxs(x,t.default({focusRipple:!f,className:a.clsx($.root,d),ref:l,role:"tab","aria-selected":W,disabled:u,onClick:e=>{!W&&C&&C(e,O),P&&P(e)},onFocus:e=>{q&&!W&&C&&C(e,O),w&&w(e)},ownerState:T,tabIndex:W?0:-1},R,{children:["top"===g||"start"===g?p.jsxs(b.Fragment,{children:[N,v]}):p.jsxs(b.Fragment,{children:[v,N]}),y]}))}));"production"!==process.env.NODE_ENV&&(h.propTypes={children:u.default,classes:l.default.object,className:l.default.string,disabled:l.default.bool,disableFocusRipple:l.default.bool,disableRipple:l.default.bool,icon:l.default.oneOfType([l.default.element,l.default.string]),iconPosition:l.default.oneOf(["bottom","end","start","top"]),label:l.default.node,onChange:l.default.func,onClick:l.default.func,onFocus:l.default.func,sx:l.default.oneOfType([l.default.arrayOf(l.default.oneOfType([l.default.func,l.default.object,l.default.bool])),l.default.func,l.default.object]),value:l.default.any,wrapped:l.default.bool}),exports.default=h;
|
|
2
2
|
//# sourceMappingURL=Tab.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tab.js","sources":["../../../../../../node_modules/@mui/material/Tab/Tab.js"],"sourcesContent":["'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"disabled\", \"disableFocusRipple\", \"fullWidth\", \"icon\", \"iconPosition\", \"indicator\", \"label\", \"onChange\", \"onClick\", \"onFocus\", \"selected\", \"selectionFollowsFocus\", \"textColor\", \"value\", \"wrapped\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled from '../styles/styled';\nimport unsupportedProp from '../utils/unsupportedProp';\nimport tabClasses, { getTabUtilityClass } from './tabClasses';\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n textColor,\n fullWidth,\n wrapped,\n icon,\n label,\n selected,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', icon && label && 'labelIcon', `textColor${capitalize(textColor)}`, fullWidth && 'fullWidth', wrapped && 'wrapped', selected && 'selected', disabled && 'disabled'],\n iconWrapper: ['iconWrapper']\n };\n return composeClasses(slots, getTabUtilityClass, classes);\n};\nconst TabRoot = styled(ButtonBase, {\n name: 'MuiTab',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles[`textColor${capitalize(ownerState.textColor)}`], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped, {\n [`& .${tabClasses.iconWrapper}`]: styles.iconWrapper\n }];\n }\n})(({\n theme,\n ownerState\n}) => _extends({}, theme.typography.button, {\n maxWidth: 360,\n minWidth: 90,\n position: 'relative',\n minHeight: 48,\n flexShrink: 0,\n padding: '12px 16px',\n overflow: 'hidden',\n whiteSpace: 'normal',\n textAlign: 'center'\n}, ownerState.label && {\n flexDirection: ownerState.iconPosition === 'top' || ownerState.iconPosition === 'bottom' ? 'column' : 'row'\n}, {\n lineHeight: 1.25\n}, ownerState.icon && ownerState.label && {\n minHeight: 72,\n paddingTop: 9,\n paddingBottom: 9,\n [`& > .${tabClasses.iconWrapper}`]: _extends({}, ownerState.iconPosition === 'top' && {\n marginBottom: 6\n }, ownerState.iconPosition === 'bottom' && {\n marginTop: 6\n }, ownerState.iconPosition === 'start' && {\n marginRight: theme.spacing(1)\n }, ownerState.iconPosition === 'end' && {\n marginLeft: theme.spacing(1)\n })\n}, ownerState.textColor === 'inherit' && {\n color: 'inherit',\n opacity: 0.6,\n // same opacity as theme.palette.text.secondary\n [`&.${tabClasses.selected}`]: {\n opacity: 1\n },\n [`&.${tabClasses.disabled}`]: {\n opacity: (theme.vars || theme).palette.action.disabledOpacity\n }\n}, ownerState.textColor === 'primary' && {\n color: (theme.vars || theme).palette.text.secondary,\n [`&.${tabClasses.selected}`]: {\n color: (theme.vars || theme).palette.primary.main\n },\n [`&.${tabClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n }\n}, ownerState.textColor === 'secondary' && {\n color: (theme.vars || theme).palette.text.secondary,\n [`&.${tabClasses.selected}`]: {\n color: (theme.vars || theme).palette.secondary.main\n },\n [`&.${tabClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n }\n}, ownerState.fullWidth && {\n flexShrink: 1,\n flexGrow: 1,\n flexBasis: 0,\n maxWidth: 'none'\n}, ownerState.wrapped && {\n fontSize: theme.typography.pxToRem(12)\n}));\nconst Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTab'\n });\n const {\n className,\n disabled = false,\n disableFocusRipple = false,\n // eslint-disable-next-line react/prop-types\n fullWidth,\n icon: iconProp,\n iconPosition = 'top',\n // eslint-disable-next-line react/prop-types\n indicator,\n label,\n onChange,\n onClick,\n onFocus,\n // eslint-disable-next-line react/prop-types\n selected,\n // eslint-disable-next-line react/prop-types\n selectionFollowsFocus,\n // eslint-disable-next-line react/prop-types\n textColor = 'inherit',\n value,\n wrapped = false\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n disabled,\n disableFocusRipple,\n selected,\n icon: !!iconProp,\n iconPosition,\n label: !!label,\n fullWidth,\n textColor,\n wrapped\n });\n const classes = useUtilityClasses(ownerState);\n const icon = iconProp && label && /*#__PURE__*/React.isValidElement(iconProp) ? /*#__PURE__*/React.cloneElement(iconProp, {\n className: clsx(classes.iconWrapper, iconProp.props.className)\n }) : iconProp;\n const handleClick = event => {\n if (!selected && onChange) {\n onChange(event, value);\n }\n if (onClick) {\n onClick(event);\n }\n };\n const handleFocus = event => {\n if (selectionFollowsFocus && !selected && onChange) {\n onChange(event, value);\n }\n if (onFocus) {\n onFocus(event);\n }\n };\n return /*#__PURE__*/_jsxs(TabRoot, _extends({\n focusRipple: !disableFocusRipple,\n className: clsx(classes.root, className),\n ref: ref,\n role: \"tab\",\n \"aria-selected\": selected,\n disabled: disabled,\n onClick: handleClick,\n onFocus: handleFocus,\n ownerState: ownerState,\n tabIndex: selected ? 0 : -1\n }, other, {\n children: [iconPosition === 'top' || iconPosition === 'start' ? /*#__PURE__*/_jsxs(React.Fragment, {\n children: [icon, label]\n }) : /*#__PURE__*/_jsxs(React.Fragment, {\n children: [label, icon]\n }), indicator]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Tab.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * This prop isn't supported.\n * Use the `component` prop if you need to change the children structure.\n */\n children: unsupportedProp,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * The icon to display.\n */\n icon: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),\n /**\n * The position of the icon relative to the label.\n * @default 'top'\n */\n iconPosition: PropTypes.oneOf(['bottom', 'end', 'start', 'top']),\n /**\n * The label element.\n */\n label: PropTypes.node,\n /**\n * @ignore\n */\n onChange: PropTypes.func,\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * You can provide your own value. Otherwise, we fallback to the child position index.\n */\n value: PropTypes.any,\n /**\n * Tab labels appear in a single row.\n * They can use a second line if needed.\n * @default false\n */\n wrapped: PropTypes.bool\n} : void 0;\nexport default Tab;"],"names":["_excluded","TabRoot","styled","ButtonBase","name","slot","overridesResolver","props","styles","ownerState","root","label","icon","labelIcon","capitalize","textColor","fullWidth","wrapped","tabClasses","iconWrapper","theme","_extends","typography","button","maxWidth","minWidth","position","minHeight","flexShrink","padding","overflow","whiteSpace","textAlign","flexDirection","iconPosition","lineHeight","paddingTop","paddingBottom","marginBottom","marginTop","marginRight","spacing","marginLeft","color","opacity","selected","disabled","vars","palette","action","disabledOpacity","text","secondary","primary","main","flexGrow","flexBasis","fontSize","pxToRem","Tab","React","forwardRef","inProps","ref","useDefaultProps","className","disableFocusRipple","iconProp","indicator","onChange","onClick","onFocus","selectionFollowsFocus","value","other","_objectWithoutPropertiesLoose","classes","slots","composeClasses","getTabUtilityClass","useUtilityClasses","isValidElement","cloneElement","clsx","_jsxs","jsxs","focusRipple","role","event","tabIndex","children","Fragment","process","env","NODE_ENV","propTypes","unsupportedProp","PropTypes","object","string","bool","disableRipple","oneOfType","element","oneOf","node","func","sx","arrayOf","any"],"mappings":"ykCAIA,MAAMA,EAAY,CAAC,YAAa,WAAY,qBAAsB,YAAa,OAAQ,eAAgB,YAAa,QAAS,WAAY,UAAW,UAAW,WAAY,wBAAyB,YAAa,QAAS,WA6BpNC,EAAUC,EAAM,QAACC,UAAY,CACjCC,KAAM,SACNC,KAAM,OACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOE,KAAMD,EAAWE,OAASF,EAAWG,MAAQJ,EAAOK,UAAWL,EAAO,YAAYM,EAAAA,QAAWL,EAAWM,cAA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IjBpC,SAAU4B,EAAS,QAACS,KAIpBpC,QAAS2B,EAAS,QAACS,KAInBnC,QAAS0B,EAAS,QAACS,KAInBC,GAAIV,EAAAA,QAAUK,UAAU,CAACL,EAAAA,QAAUW,QAAQX,EAAS,QAACK,UAAU,CAACL,UAAUS,KAAMT,EAAAA,QAAUC,OAAQD,UAAUG,QAASH,EAAAA,QAAUS,KAAMT,UAAUC,SAI/IzB,MAAOwB,EAAS,QAACY,IAMjB5F,QAASgF,EAAS,QAACG"}
|
|
1
|
+
{"version":3,"file":"Tab.js","sources":["../../../../../../node_modules/@mui/material/Tab/Tab.js"],"sourcesContent":["'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"disabled\", \"disableFocusRipple\", \"fullWidth\", \"icon\", \"iconPosition\", \"indicator\", \"label\", \"onChange\", \"onClick\", \"onFocus\", \"selected\", \"selectionFollowsFocus\", \"textColor\", \"value\", \"wrapped\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport ButtonBase from '../ButtonBase';\nimport capitalize from '../utils/capitalize';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled from '../styles/styled';\nimport unsupportedProp from '../utils/unsupportedProp';\nimport tabClasses, { getTabUtilityClass } from './tabClasses';\nimport { jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n textColor,\n fullWidth,\n wrapped,\n icon,\n label,\n selected,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', icon && label && 'labelIcon', `textColor${capitalize(textColor)}`, fullWidth && 'fullWidth', wrapped && 'wrapped', selected && 'selected', disabled && 'disabled'],\n iconWrapper: ['iconWrapper']\n };\n return composeClasses(slots, getTabUtilityClass, classes);\n};\nconst TabRoot = styled(ButtonBase, {\n name: 'MuiTab',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.label && ownerState.icon && styles.labelIcon, styles[`textColor${capitalize(ownerState.textColor)}`], ownerState.fullWidth && styles.fullWidth, ownerState.wrapped && styles.wrapped, {\n [`& .${tabClasses.iconWrapper}`]: styles.iconWrapper\n }];\n }\n})(({\n theme,\n ownerState\n}) => _extends({}, theme.typography.button, {\n maxWidth: 360,\n minWidth: 90,\n position: 'relative',\n minHeight: 48,\n flexShrink: 0,\n padding: '12px 16px',\n overflow: 'hidden',\n whiteSpace: 'normal',\n textAlign: 'center'\n}, ownerState.label && {\n flexDirection: ownerState.iconPosition === 'top' || ownerState.iconPosition === 'bottom' ? 'column' : 'row'\n}, {\n lineHeight: 1.25\n}, ownerState.icon && ownerState.label && {\n minHeight: 72,\n paddingTop: 9,\n paddingBottom: 9,\n [`& > .${tabClasses.iconWrapper}`]: _extends({}, ownerState.iconPosition === 'top' && {\n marginBottom: 6\n }, ownerState.iconPosition === 'bottom' && {\n marginTop: 6\n }, ownerState.iconPosition === 'start' && {\n marginRight: theme.spacing(1)\n }, ownerState.iconPosition === 'end' && {\n marginLeft: theme.spacing(1)\n })\n}, ownerState.textColor === 'inherit' && {\n color: 'inherit',\n opacity: 0.6,\n // same opacity as theme.palette.text.secondary\n [`&.${tabClasses.selected}`]: {\n opacity: 1\n },\n [`&.${tabClasses.disabled}`]: {\n opacity: (theme.vars || theme).palette.action.disabledOpacity\n }\n}, ownerState.textColor === 'primary' && {\n color: (theme.vars || theme).palette.text.secondary,\n [`&.${tabClasses.selected}`]: {\n color: (theme.vars || theme).palette.primary.main\n },\n [`&.${tabClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n }\n}, ownerState.textColor === 'secondary' && {\n color: (theme.vars || theme).palette.text.secondary,\n [`&.${tabClasses.selected}`]: {\n color: (theme.vars || theme).palette.secondary.main\n },\n [`&.${tabClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.disabled\n }\n}, ownerState.fullWidth && {\n flexShrink: 1,\n flexGrow: 1,\n flexBasis: 0,\n maxWidth: 'none'\n}, ownerState.wrapped && {\n fontSize: theme.typography.pxToRem(12)\n}));\nconst Tab = /*#__PURE__*/React.forwardRef(function Tab(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTab'\n });\n const {\n className,\n disabled = false,\n disableFocusRipple = false,\n // eslint-disable-next-line react/prop-types\n fullWidth,\n icon: iconProp,\n iconPosition = 'top',\n // eslint-disable-next-line react/prop-types\n indicator,\n label,\n onChange,\n onClick,\n onFocus,\n // eslint-disable-next-line react/prop-types\n selected,\n // eslint-disable-next-line react/prop-types\n selectionFollowsFocus,\n // eslint-disable-next-line react/prop-types\n textColor = 'inherit',\n value,\n wrapped = false\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n disabled,\n disableFocusRipple,\n selected,\n icon: !!iconProp,\n iconPosition,\n label: !!label,\n fullWidth,\n textColor,\n wrapped\n });\n const classes = useUtilityClasses(ownerState);\n const icon = iconProp && label && /*#__PURE__*/React.isValidElement(iconProp) ? /*#__PURE__*/React.cloneElement(iconProp, {\n className: clsx(classes.iconWrapper, iconProp.props.className)\n }) : iconProp;\n const handleClick = event => {\n if (!selected && onChange) {\n onChange(event, value);\n }\n if (onClick) {\n onClick(event);\n }\n };\n const handleFocus = event => {\n if (selectionFollowsFocus && !selected && onChange) {\n onChange(event, value);\n }\n if (onFocus) {\n onFocus(event);\n }\n };\n return /*#__PURE__*/_jsxs(TabRoot, _extends({\n focusRipple: !disableFocusRipple,\n className: clsx(classes.root, className),\n ref: ref,\n role: \"tab\",\n \"aria-selected\": selected,\n disabled: disabled,\n onClick: handleClick,\n onFocus: handleFocus,\n ownerState: ownerState,\n tabIndex: selected ? 0 : -1\n }, other, {\n children: [iconPosition === 'top' || iconPosition === 'start' ? /*#__PURE__*/_jsxs(React.Fragment, {\n children: [icon, label]\n }) : /*#__PURE__*/_jsxs(React.Fragment, {\n children: [label, icon]\n }), indicator]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? Tab.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * This prop isn't supported.\n * Use the `component` prop if you need to change the children structure.\n */\n children: unsupportedProp,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, the keyboard focus ripple is disabled.\n * @default false\n */\n disableFocusRipple: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * The icon to display.\n */\n icon: PropTypes.oneOfType([PropTypes.element, PropTypes.string]),\n /**\n * The position of the icon relative to the label.\n * @default 'top'\n */\n iconPosition: PropTypes.oneOf(['bottom', 'end', 'start', 'top']),\n /**\n * The label element.\n */\n label: PropTypes.node,\n /**\n * @ignore\n */\n onChange: PropTypes.func,\n /**\n * @ignore\n */\n onClick: PropTypes.func,\n /**\n * @ignore\n */\n onFocus: PropTypes.func,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * You can provide your own value. Otherwise, we fallback to the child position index.\n */\n value: PropTypes.any,\n /**\n * Tab labels appear in a single row.\n * They can use a second line if needed.\n * @default false\n */\n wrapped: PropTypes.bool\n} : void 0;\nexport default Tab;"],"names":["_excluded","TabRoot","styled","ButtonBase","name","slot","overridesResolver","props","styles","ownerState","root","label","icon","labelIcon","capitalize","textColor","fullWidth","wrapped","tabClasses","iconWrapper","theme","_extends","typography","button","maxWidth","minWidth","position","minHeight","flexShrink","padding","overflow","whiteSpace","textAlign","flexDirection","iconPosition","lineHeight","paddingTop","paddingBottom","marginBottom","marginTop","marginRight","spacing","marginLeft","color","opacity","selected","disabled","vars","palette","action","disabledOpacity","text","secondary","primary","main","flexGrow","flexBasis","fontSize","pxToRem","Tab","React","forwardRef","inProps","ref","useDefaultProps","className","disableFocusRipple","iconProp","indicator","onChange","onClick","onFocus","selectionFollowsFocus","value","other","_objectWithoutPropertiesLoose","classes","slots","composeClasses","getTabUtilityClass","useUtilityClasses","isValidElement","cloneElement","clsx","_jsxs","jsxs","focusRipple","role","event","tabIndex","children","Fragment","process","env","NODE_ENV","propTypes","unsupportedProp","PropTypes","object","string","bool","disableRipple","oneOfType","element","oneOf","node","func","sx","arrayOf","any"],"mappings":"wkCAIA,MAAMA,EAAY,CAAC,YAAa,WAAY,qBAAsB,YAAa,OAAQ,eAAgB,YAAa,QAAS,WAAY,UAAW,UAAW,WAAY,wBAAyB,YAAa,QAAS,WA6BpNC,EAAUC,EAAM,QAACC,UAAY,CACjCC,KAAM,SACNC,KAAM,OACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOE,KAAMD,EAAWE,OAASF,EAAWG,MAAQJ,EAAOK,UAAWL,EAAO,YAAYM,EAAAA,QAAWL,EAAWM,cAAeN,EAAWO,WAAaR,EAAOQ,UAAWP,EAAWQ,SAAWT,EAAOS,QAAS,CACpN,CAAC,MAAMC,EAAU,QAACC,eAAgBX,EAAOW,aACzC,GATUjB,EAWb,EACDkB,QACAX,gBACIY,EAAQ,QAAC,CAAE,EAAED,EAAME,WAAWC,OAAQ,CAC1CC,SAAU,IACVC,SAAU,GACVC,SAAU,WACVC,UAAW,GACXC,WAAY,EACZC,QAAS,YACTC,SAAU,SACVC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B5F,QAASgF,EAAS,QAACG"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),t=require("../../../@babel/runtime/helpers/esm/extends.js"),o=require("react"),r=require("../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),t=require("../../../@babel/runtime/helpers/esm/extends.js"),o=require("react"),r=require("../../../../_virtual/index.js"),l=require("../node_modules/clsx/dist/clsx.mjs.js"),s=require("../../utils/esm/composeClasses/composeClasses.js"),a=require("../../system/esm/RtlProvider/index.js"),n=require("../../utils/esm/useSlotProps/useSlotProps.js"),u=require("../internal/svg-icons/KeyboardArrowLeft.js"),i=require("../internal/svg-icons/KeyboardArrowRight.js"),d=require("../ButtonBase/ButtonBase.js");require("../ButtonBase/buttonBaseClasses.js"),require("../ButtonBase/touchRippleClasses.js");var c=require("../DefaultPropsProvider/DefaultPropsProvider.js"),f=require("../styles/styled.js"),p=require("./tabScrollButtonClasses.js"),b=require("react/jsx-runtime");function j(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(o){if("default"!==o){var r=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,r.get?r:{enumerable:!0,get:function(){return e[o]}})}})),t.default=e,Object.freeze(t)}var m=j(o);const S=["className","slots","slotProps","direction","orientation","disabled"],y=f.default(d.default,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:o}=e;return[t.root,o.orientation&&t[o.orientation]]}})((({ownerState:e})=>t.default({width:40,flexShrink:0,opacity:.8,[`&.${p.default.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}}))),B=m.forwardRef((function(o,r){var d,f;const j=c.useDefaultProps({props:o,name:"MuiTabScrollButton"}),{className:m,slots:B={},slotProps:v={},direction:q}=j,P=e.default(j,S),h=a.useRtl(),x=t.default({isRtl:h},j),O=(e=>{const{classes:t,orientation:o,disabled:r}=e,l={root:["root",o,r&&"disabled"]};return s.default(l,p.getTabScrollButtonUtilityClass,t)})(x),g=null!=(d=B.StartScrollButtonIcon)?d:u.default,T=null!=(f=B.EndScrollButtonIcon)?f:i.default,w=n.default({elementType:g,externalSlotProps:v.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x}),R=n.default({elementType:T,externalSlotProps:v.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:x});return b.jsx(y,t.default({component:"div",className:l.clsx(O.root,m),ref:r,role:null,ownerState:x,tabIndex:null},P,{children:"left"===q?b.jsx(g,t.default({},w)):b.jsx(T,t.default({},R))}))}));"production"!==process.env.NODE_ENV&&(B.propTypes={children:r.default.node,classes:r.default.object,className:r.default.string,direction:r.default.oneOf(["left","right"]).isRequired,disabled:r.default.bool,orientation:r.default.oneOf(["horizontal","vertical"]).isRequired,slotProps:r.default.shape({endScrollButtonIcon:r.default.oneOfType([r.default.func,r.default.object]),startScrollButtonIcon:r.default.oneOfType([r.default.func,r.default.object])}),slots:r.default.shape({EndScrollButtonIcon:r.default.elementType,StartScrollButtonIcon:r.default.elementType}),sx:r.default.oneOfType([r.default.arrayOf(r.default.oneOfType([r.default.func,r.default.object,r.default.bool])),r.default.func,r.default.object])}),exports.default=B;
|
|
2
2
|
//# sourceMappingURL=TabScrollButton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabScrollButton.js","sources":["../../../../../../node_modules/@mui/material/TabScrollButton/TabScrollButton.js"],"sourcesContent":["'use client';\n\n/* eslint-disable jsx-a11y/aria-role */\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"slots\", \"slotProps\", \"direction\", \"orientation\", \"disabled\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';\nimport KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';\nimport ButtonBase from '../ButtonBase';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled from '../styles/styled';\nimport tabScrollButtonClasses, { getTabScrollButtonUtilityClass } from './tabScrollButtonClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n orientation,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', orientation, disabled && 'disabled']\n };\n return composeClasses(slots, getTabScrollButtonUtilityClass, classes);\n};\nconst TabScrollButtonRoot = styled(ButtonBase, {\n name: 'MuiTabScrollButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.orientation && styles[ownerState.orientation]];\n }\n})(({\n ownerState\n}) => _extends({\n width: 40,\n flexShrink: 0,\n opacity: 0.8,\n [`&.${tabScrollButtonClasses.disabled}`]: {\n opacity: 0\n }\n}, ownerState.orientation === 'vertical' && {\n width: '100%',\n height: 40,\n '& svg': {\n transform: `rotate(${ownerState.isRtl ? -90 : 90}deg)`\n }\n}));\nconst TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inProps, ref) {\n var _slots$StartScrollBut, _slots$EndScrollButto;\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTabScrollButton'\n });\n const {\n className,\n slots = {},\n slotProps = {},\n direction\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const isRtl = useRtl();\n const ownerState = _extends({\n isRtl\n }, props);\n const classes = useUtilityClasses(ownerState);\n const StartButtonIcon = (_slots$StartScrollBut = slots.StartScrollButtonIcon) != null ? _slots$StartScrollBut : KeyboardArrowLeft;\n const EndButtonIcon = (_slots$EndScrollButto = slots.EndScrollButtonIcon) != null ? _slots$EndScrollButto : KeyboardArrowRight;\n const startButtonIconProps = useSlotProps({\n elementType: StartButtonIcon,\n externalSlotProps: slotProps.startScrollButtonIcon,\n additionalProps: {\n fontSize: 'small'\n },\n ownerState\n });\n const endButtonIconProps = useSlotProps({\n elementType: EndButtonIcon,\n externalSlotProps: slotProps.endScrollButtonIcon,\n additionalProps: {\n fontSize: 'small'\n },\n ownerState\n });\n return /*#__PURE__*/_jsx(TabScrollButtonRoot, _extends({\n component: \"div\",\n className: clsx(classes.root, className),\n ref: ref,\n role: null,\n ownerState: ownerState,\n tabIndex: null\n }, other, {\n children: direction === 'left' ? /*#__PURE__*/_jsx(StartButtonIcon, _extends({}, startButtonIconProps)) : /*#__PURE__*/_jsx(EndButtonIcon, _extends({}, endButtonIconProps))\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TabScrollButton.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The direction the button should indicate.\n */\n direction: PropTypes.oneOf(['left', 'right']).isRequired,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * The component orientation (layout flow direction).\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']).isRequired,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n * @default {}\n */\n slotProps: PropTypes.shape({\n endScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n startScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n EndScrollButtonIcon: PropTypes.elementType,\n StartScrollButtonIcon: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default TabScrollButton;"],"names":["_excluded","TabScrollButtonRoot","styled","ButtonBase","name","slot","overridesResolver","props","styles","ownerState","root","orientation","_extends","width","flexShrink","opacity","tabScrollButtonClasses","disabled","height","transform","isRtl","TabScrollButton","React","forwardRef","inProps","ref","_slots$StartScrollBut","_slots$EndScrollButto","useDefaultProps","className","slots","slotProps","direction","other","_objectWithoutPropertiesLoose","useRtl","classes","composeClasses","getTabScrollButtonUtilityClass","useUtilityClasses","StartButtonIcon","StartScrollButtonIcon","KeyboardArrowLeft","EndButtonIcon","EndScrollButtonIcon","KeyboardArrowRight","startButtonIconProps","useSlotProps","elementType","externalSlotProps","startScrollButtonIcon","additionalProps","fontSize","endButtonIconProps","endScrollButtonIcon","_jsx","jsx","component","clsx","role","tabIndex","children","process","env","NODE_ENV","propTypes","PropTypes","node","object","string","oneOf","isRequired","bool","shape","oneOfType","func","sx","arrayOf"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabScrollButton.js","sources":["../../../../../../node_modules/@mui/material/TabScrollButton/TabScrollButton.js"],"sourcesContent":["'use client';\n\n/* eslint-disable jsx-a11y/aria-role */\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"slots\", \"slotProps\", \"direction\", \"orientation\", \"disabled\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';\nimport KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';\nimport ButtonBase from '../ButtonBase';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport styled from '../styles/styled';\nimport tabScrollButtonClasses, { getTabScrollButtonUtilityClass } from './tabScrollButtonClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n orientation,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', orientation, disabled && 'disabled']\n };\n return composeClasses(slots, getTabScrollButtonUtilityClass, classes);\n};\nconst TabScrollButtonRoot = styled(ButtonBase, {\n name: 'MuiTabScrollButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.orientation && styles[ownerState.orientation]];\n }\n})(({\n ownerState\n}) => _extends({\n width: 40,\n flexShrink: 0,\n opacity: 0.8,\n [`&.${tabScrollButtonClasses.disabled}`]: {\n opacity: 0\n }\n}, ownerState.orientation === 'vertical' && {\n width: '100%',\n height: 40,\n '& svg': {\n transform: `rotate(${ownerState.isRtl ? -90 : 90}deg)`\n }\n}));\nconst TabScrollButton = /*#__PURE__*/React.forwardRef(function TabScrollButton(inProps, ref) {\n var _slots$StartScrollBut, _slots$EndScrollButto;\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiTabScrollButton'\n });\n const {\n className,\n slots = {},\n slotProps = {},\n direction\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const isRtl = useRtl();\n const ownerState = _extends({\n isRtl\n }, props);\n const classes = useUtilityClasses(ownerState);\n const StartButtonIcon = (_slots$StartScrollBut = slots.StartScrollButtonIcon) != null ? _slots$StartScrollBut : KeyboardArrowLeft;\n const EndButtonIcon = (_slots$EndScrollButto = slots.EndScrollButtonIcon) != null ? _slots$EndScrollButto : KeyboardArrowRight;\n const startButtonIconProps = useSlotProps({\n elementType: StartButtonIcon,\n externalSlotProps: slotProps.startScrollButtonIcon,\n additionalProps: {\n fontSize: 'small'\n },\n ownerState\n });\n const endButtonIconProps = useSlotProps({\n elementType: EndButtonIcon,\n externalSlotProps: slotProps.endScrollButtonIcon,\n additionalProps: {\n fontSize: 'small'\n },\n ownerState\n });\n return /*#__PURE__*/_jsx(TabScrollButtonRoot, _extends({\n component: \"div\",\n className: clsx(classes.root, className),\n ref: ref,\n role: null,\n ownerState: ownerState,\n tabIndex: null\n }, other, {\n children: direction === 'left' ? /*#__PURE__*/_jsx(StartButtonIcon, _extends({}, startButtonIconProps)) : /*#__PURE__*/_jsx(EndButtonIcon, _extends({}, endButtonIconProps))\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TabScrollButton.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The direction the button should indicate.\n */\n direction: PropTypes.oneOf(['left', 'right']).isRequired,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * The component orientation (layout flow direction).\n */\n orientation: PropTypes.oneOf(['horizontal', 'vertical']).isRequired,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n * @default {}\n */\n slotProps: PropTypes.shape({\n endScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n startScrollButtonIcon: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n * @default {}\n */\n slots: PropTypes.shape({\n EndScrollButtonIcon: PropTypes.elementType,\n StartScrollButtonIcon: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default TabScrollButton;"],"names":["_excluded","TabScrollButtonRoot","styled","ButtonBase","name","slot","overridesResolver","props","styles","ownerState","root","orientation","_extends","width","flexShrink","opacity","tabScrollButtonClasses","disabled","height","transform","isRtl","TabScrollButton","React","forwardRef","inProps","ref","_slots$StartScrollBut","_slots$EndScrollButto","useDefaultProps","className","slots","slotProps","direction","other","_objectWithoutPropertiesLoose","useRtl","classes","composeClasses","getTabScrollButtonUtilityClass","useUtilityClasses","StartButtonIcon","StartScrollButtonIcon","KeyboardArrowLeft","EndButtonIcon","EndScrollButtonIcon","KeyboardArrowRight","startButtonIconProps","useSlotProps","elementType","externalSlotProps","startScrollButtonIcon","additionalProps","fontSize","endButtonIconProps","endScrollButtonIcon","_jsx","jsx","component","clsx","role","tabIndex","children","process","env","NODE_ENV","propTypes","PropTypes","node","object","string","oneOf","isRequired","bool","shape","oneOfType","func","sx","arrayOf"],"mappings":"4rCAKA,MAAMA,EAAY,CAAC,YAAa,QAAS,YAAa,YAAa,cAAe,YAyB5EC,EAAsBC,EAAM,QAACC,UAAY,CAC7CC,KAAM,qBACNC,KAAM,OACNC,kBAAmB,CAACC,EAAOC,KACzB,MAAMC,WACJA,GACEF,EACJ,MAAO,CAACC,EAAOE,KAAMD,EAAWE,aAAeH,EAAOC,EAAWE,aAAa,GAPtDT,EASzB,EACDO,gBACIG,UAAS,CACbC,MAAO,GACPC,WAAY,EACZC,QAAS,GACT,CAAC,KAAKC,UAAuBC,YAAa,CACxCF,QAAS,IAEiB,aAA3BN,EAAWE,aAA8B,CAC1CE,MAAO,OACPK,OAAQ,GACR,QAAS,CACPC,UAAW,UAAUV,EAAWW,OAAS,GAAK,cAG5CC,EAA+BC,EAAMC,YAAW,SAAyBC,EAASC,GACtF,IAAIC,EAA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B,EAAS,QAACE,OAInBvC,UAAWqC,EAAS,QAACG,OAIrBrC,UAAWkC,EAAS,QAACI,MAAM,CAAC,OAAQ,UAAUC,WAK9CtD,SAAUiD,EAAS,QAACM,KAIpB7D,YAAauD,EAAS,QAACI,MAAM,CAAC,aAAc,aAAaC,WAMzDxC,UAAWmC,EAAS,QAACO,MAAM,CACzBnB,oBAAqBY,EAAS,QAACQ,UAAU,CAACR,EAAS,QAACS,KAAMT,EAAAA,QAAUE,SACpElB,sBAAuBgB,EAAS,QAACQ,UAAU,CAACR,EAAS,QAACS,KAAMT,EAAAA,QAAUE,WAMxEtC,MAAOoC,EAAS,QAACO,MAAM,CACrB7B,oBAAqBsB,EAAS,QAAClB,YAC/BP,sBAAuByB,EAAS,QAAClB,cAKnC4B,GAAIV,EAAAA,QAAUQ,UAAU,CAACR,EAAAA,QAAUW,QAAQX,EAAS,QAACQ,UAAU,CAACR,UAAUS,KAAMT,EAAAA,QAAUE,OAAQF,UAAUM,QAASN,EAAAA,QAAUS,KAAMT,UAAUE"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),t=require("../../../@babel/runtime/helpers/esm/extends.js"),r=require("react"),a=require("../../../../_virtual/
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"),t=require("../../../@babel/runtime/helpers/esm/extends.js"),r=require("react"),a=require("../../../../_virtual/index.js"),s=require("../node_modules/clsx/dist/clsx.mjs.js"),o=require("../../utils/esm/composeClasses/composeClasses.js"),l=require("./TableContext.js"),d=require("../DefaultPropsProvider/DefaultPropsProvider.js"),u=require("../styles/styled.js"),n=require("./tableClasses.js"),i=require("react/jsx-runtime");function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,a.get?a:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var f=c(r);const p=["className","component","padding","size","stickyHeader"],b=u.default("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:r})=>t.default({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":t.default({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},r.stickyHeader&&{borderCollapse:"separate"}))),m="table",y=f.forwardRef((function(r,a){const u=d.useDefaultProps({props:r,name:"MuiTable"}),{className:c,component:y=m,padding:j="normal",size:g="medium",stickyHeader:x=!1}=u,v=e.default(u,p),O=t.default({},u,{component:y,padding:j,size:g,stickyHeader:x}),k=(e=>{const{classes:t,stickyHeader:r}=e,a={root:["root",r&&"stickyHeader"]};return o.default(a,n.getTableUtilityClass,t)})(O),q=f.useMemo((()=>({padding:j,size:g,stickyHeader:x})),[j,g,x]);return i.jsx(l.default.Provider,{value:q,children:i.jsx(b,t.default({as:y,role:y===m?null:"table",ref:a,className:s.clsx(k.root,c),ownerState:O},v))})}));"production"!==process.env.NODE_ENV&&(y.propTypes={children:a.default.node,classes:a.default.object,className:a.default.string,component:a.default.elementType,padding:a.default.oneOf(["checkbox","none","normal"]),size:a.default.oneOfType([a.default.oneOf(["medium","small"]),a.default.string]),stickyHeader:a.default.bool,sx:a.default.oneOfType([a.default.arrayOf(a.default.oneOfType([a.default.func,a.default.object,a.default.bool])),a.default.func,a.default.object])}),exports.default=y;
|
|
2
2
|
//# sourceMappingURL=Table.js.map
|