@e-llm-studio/instant-learning 0.0.106 → 0.0.107
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/IL-OTJ/ILOTJ.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ChatComponent.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/MessageRendering.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/cjs/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.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/index.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-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/unified/lib/index.js +1 -1
- package/dist/cjs/node_modules/unified/lib/index.js.map +1 -1
- package/dist/cjs/node_modules/uuid/dist/cjs-browser/index.js +1 -1
- package/dist/cjs/node_modules/vfile/lib/index.js +1 -1
- package/dist/cjs/node_modules/vfile/lib/index.js.map +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/IL-OTJ/ILOTJ.js +1 -1
- package/dist/features/IL-OTJ/_components/ChatComponent.js +1 -1
- package/dist/features/IL-OTJ/_components/ILPopup.js +1 -1
- package/dist/features/IL-OTJ/_components/ILPopup.styles.js +1 -1
- package/dist/features/IL-OTJ/_components/InputDataReasoningCard.js +1 -1
- package/dist/features/IL-OTJ/_components/MessageRendering.js +1 -1
- package/dist/features/IL-OTJ/_components/atoms/Textarea/Textarea.js +1 -1
- package/dist/features/IL-OTJ/_components/molecules/Condition/ConditionList.js +1 -1
- package/dist/features/IL-OTJ/_components/templates/TrafficManager/CreateRule.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/index.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-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/unified/lib/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js.map +1 -1
- package/dist/node_modules/uuid/dist/cjs-browser/index.js +1 -1
- package/dist/node_modules/vfile/lib/index.js +1 -1
- package/dist/node_modules/vfile/lib/index.js.map +1 -1
- package/dist/types/src/features/IL-OTJ/ILOTJTest.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts +1 -1
- package/dist/types/src/features/IL-OTJ/_components/ILPopup.styles.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/MessageRendering.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts +5 -1
- package/dist/types/src/features/IL-OTJ/_components/atoms/Textarea/Textarea.d.ts.map +1 -1
- package/dist/types/src/features/IL-OTJ/_components/molecules/Condition/ConditionList.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,t=require("../../../../_virtual/index25.js"),n=require("../../../graphql-ws/lib/index.js"),a=require("../../../axios/dist/browser/axios.cjs.js"),r=require("../../../ws/browser.js"),o=require("../../../uuid/dist/cjs-browser/index.js"),s=require("./helperClasses/clientManager.js"),i=require("../../../utf8/utf8.js");exports.__require=function(){return e||(e=1,function(e){var l=t.__exports&&t.__exports.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),c=t.__exports&&t.__exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d=t.__exports&&t.__exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&l(t,e,n);return c(t,e),t},u=t.__exports&&t.__exports.__awaiter||function(e,t,n,a){return new(n||(n=Promise))(function(r,o){function s(e){try{l(a.next(e))}catch(e){o(e)}}function i(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,i)}l((a=a.apply(e,t||[])).next())})},h=t.__exports&&t.__exports.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise(function(a,r){(function(e,t,n,a){Promise.resolve(a).then(function(t){e({value:t,done:n})},t)})(a,r,(t=e[n](t)).done,t.value)})}}},g=t.__exports&&t.__exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getAssistantObj=e.explainabilityMap=e.ChatbotService=e.resetChatHistory=e.getChatHistory=e.deleteImage=e.uploadImage=e.stopStreaming=e.stopStreamingSSE=e.startChatStreamSSE=e.startChatStream=e.encodeParam=void 0,e.replaceAsteriskInAnchor=_;const m=n.__require(),p=g(a.__require()),y=g(r.__require()),S=o.__require(),f=g(s.__require()),v=d(i.__require());function _(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,e=>null==e?void 0:e.replace(/\*/g,"*"))}e.encodeParam=e=>v.encode(e);e.startChatStream=t=>u(void 0,void 0,void 0,function*(){var n,a,r,o,s,i,l,c,d,u,g,p;const{WEBSOCKET_URL:v,organizationName:_,chatAssistantName:b,selectedAIModel:I,replyMessage:$="",userName:w,userEmailId:C,userId:R,query:T,requestId:A,customPrompt:x="",customRootOrchestratorModelName:E,customRootOrchestratorModelType:M,enableForBackend:P=!1,images:k,guestSessionId:O,chatPreviewId:q,isDocumentRetrieval:N,onStreamEvent:j,onStreamEnd:D,onError:z,customMetaData:L,multiAgentToggle:B,selectedAgent:U,runtimeAgents:F,isAudioAgent:J,agentSettings:H,textToSpeechAgentId:X,useTextToSpeech:W,XCrossAccessToken:Y,userPrefferedLanguage:K,agent_parameter:V}=t;try{const t=(0,m.createClient)(Object.assign(Object.assign({url:null!=v?v:""},P?{webSocketImpl:y.default}:{}),{connectionParams:{"X-Cross-Domain-Access-Token":Y}}));f.default.setClient(t,A);const ee=t.iterate({query:"subscription Subscription($sessionId: String!,\n $name:String!,\n $organizationName:String!,\n $aiModel:String!, \n $prompt:String!, \n $userName:String!, \n $userEmailId:String!, \n $userId:String!, \n $requestId:String!,\n $replyMessage:String!,\n $customPrompt:String,\n $customRootOrchestratorModelName:String,\n $customRootOrchestratorModelType:String,\n $notificationSessionId:String, \n $images:String,\n $chatPreviewId:String,\n $guestSessionId:String,\n $isDocumentRetrieval:Boolean,\n $customMetaData: JSON,\n $multiAgentToggle: Boolean, \n $selectedAgent: String,\n $runtimeAgents: [JSON],\n $isAudioAgent:Boolean,\n $agentSettings: JSON,\n $textToSpeechAgentId:String,\n $useTextToSpeech:Boolean,\n $userPrefferedLanguage:String\n $agent_parameter:JSON\n ),\n {\n chatStream(sessionId: $sessionId, \n name:$name, \n organizationName:$organizationName, \n aiModel:$aiModel, \n prompt:$prompt, \n userName:$userName,\n userEmailId:$userEmailId, \n userId:$userId, \n requestId:$requestId, \n replyMessage:$replyMessage, \n customPrompt:$customPrompt,\n customRootOrchestratorModelName:$customRootOrchestratorModelName,\n customRootOrchestratorModelType:$customRootOrchestratorModelType,\n notificationSessionId:$notificationSessionId, \n images:$images,\n isDocumentRetrieval:$isDocumentRetrieval,\n chatPreviewId:$chatPreviewId,\n guestSessionId: $guestSessionId,\n customMetaData: $customMetaData,\n multiAgentToggle: $multiAgentToggle, \n selectedAgent: $selectedAgent,\n runtimeAgents: $runtimeAgents,\n isAudioAgent:$isAudioAgent,\n agentSettings: $agentSettings,\n textToSpeechAgentId:$textToSpeechAgentId,\n useTextToSpeech:$useTextToSpeech,\n userPrefferedLanguage:$userPrefferedLanguage\n agent_parameter:$agent_parameter) {\n \n continueChatResult {\n isEnd\n thinking_break\n is_orchestrator\n is_agent\n responded_by\n header_message\n error_state\n confidenceScore\n requestId\n replyMessage\n confidenceScore\n requestId\n sessionId\n card_details\n message {\n citations {\n citation_number\n customMetaData\n title\n url\n description\n metadata {\n page_index\n display_url\n display_name\n }\n }\n annotations {\n citations {\n citation_number\n title\n url\n description\n metadata {\n page_index\n display_url\n display_name\n }\n }\n text\n }\n citationDisplayType\n next_query_suggestions {\n query\n }\n response_type\n content\n id\n }\n resourceId\n speechData\n agent_metadata\n }\n }\n }",variables:{sessionId:`${_}-${b}-${(0,S.v4)()}`,name:(0,e.encodeParam)(b),organizationName:(0,e.encodeParam)(_),guestSessionId:null!==(s=(0,e.encodeParam)(null!=O?O:""))&&void 0!==s?s:"",chatPreviewId:null!==(i=(0,e.encodeParam)(null!=q?q:""))&&void 0!==i?i:"",aiModel:(0,e.encodeParam)(I),prompt:""===$?T:(0,e.encodeParam)($+"\n"+T),userName:(0,e.encodeParam)(w),userEmailId:(0,e.encodeParam)(C),userId:(0,e.encodeParam)(R),requestId:(0,e.encodeParam)(A),replyMessage:$,customPrompt:x,customRootOrchestratorModelName:E,customRootOrchestratorModelType:M,notificationSessionId:`chat-session-${(0,S.v4)()}`,images:JSON.stringify(k),isDocumentRetrieval:N,customMetaData:L,multiAgentToggle:B,selectedAgent:U,runtimeAgents:F,isAudioAgent:null!=J&&J,agentSettings:H,textToSpeechAgentId:null!=X?X:"",useTextToSpeech:null!=W&&W,userPrefferedLanguage:null!=K?K:null,agent_parameter:null!=V?V:null}});try{try{for(var G,Q=!0,Z=h(ee);!(n=(G=yield Z.next()).done);Q=!0){o=G.value,Q=!1;const e=o;console.log("event:",e);const n=e.data;if(j(n),null===(d=null===(c=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.chatStream)||void 0===c?void 0:c.continueChatResult)||void 0===d?void 0:d.isEnd){console.log("IsEnd found succesfully for ",null===(p=null===(g=null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.chatStream)||void 0===g?void 0:g.continueChatResult)||void 0===p?void 0:p.requestId),D&&D(n),yield t.dispose(),f.default.clearClient();break}}}catch(e){a={error:e}}finally{try{Q||n||!(r=Z.return)||(yield r.call(Z))}finally{if(a)throw a.error}}}catch(e){z&&z(e),yield t.dispose(),f.default.clearClient()}finally{f.default.matchesRequestId(A)&&(t.dispose(),f.default.clearClient())}}catch(e){console.log("Streaming error:",e),z&&z(e)}});e.startChatStreamSSE=t=>u(void 0,void 0,void 0,function*(){var n,a;const{API_URL:r,organizationName:o,chatAssistantName:s,selectedAIModel:i,replyMessage:l="",userName:c,userEmailId:d,userId:u,query:h,requestId:g,customPrompt:m="",customRootOrchestratorModelName:p,customRootOrchestratorModelType:y,images:f,guestSessionId:v,chatPreviewId:_,isDocumentRetrieval:b,onStreamEvent:I,onStreamEnd:$,onError:w,customMetaData:C,multiAgentToggle:R,selectedAgent:T,runtimeAgents:A,isAudioAgent:x,agentSettings:E,textToSpeechAgentId:M,useTextToSpeech:P,XCrossAccessToken:k,userPrefferedLanguage:O,agent_parameter:q,orchestratorMetadata:N,loadDynamicallyAttachedAgents:j,additionalHeaders:D={}}=t;try{const t={sessionId:`${o}-${s}-${(0,S.v4)()}`,name:(0,e.encodeParam)(s),organizationName:(0,e.encodeParam)(o),guestSessionId:(0,e.encodeParam)(null!=v?v:""),chatPreviewId:(0,e.encodeParam)(null!=_?_:""),aiModel:(0,e.encodeParam)(i),prompt:""===l?h:(0,e.encodeParam)(l+"\n"+h),userName:(0,e.encodeParam)(c),userEmailId:(0,e.encodeParam)(d),userId:(0,e.encodeParam)(u),requestId:(0,e.encodeParam)(g),replyMessage:l,customPrompt:m,customRootOrchestratorModelName:p,customRootOrchestratorModelType:y,notificationSessionId:`chat-session-${(0,S.v4)()}`,images:JSON.stringify(null!=f?f:{}),isDocumentRetrieval:null!=b&&b,customMetaData:C,multiAgentToggle:null!=R&&R,selectedAgent:null!=T?T:"",runtimeAgents:A,isAudioAgent:null!=x&&x,agentSettings:E,textToSpeechAgentId:null!=M?M:"",useTextToSpeech:null!=P&&P,userPrefferedLanguage:null!=O?O:null,agent_parameter:null!=q?q:null,orchestratorMetadata:null!=N?N:null,loadDynamicallyAttachedAgents:null!=j?j:[]},z=Object.assign({"Content-Type":"application/json"},D);k&&(z["X-Cross-Domain-Access-Token"]=k);const L=yield fetch(`${r}/api/sse/chat-stream`,{method:"POST",headers:z,body:JSON.stringify(t),credentials:"include"});if(!L.ok)throw new Error(`HTTP error! status: ${L.status}`);const B=null===(n=L.body)||void 0===n?void 0:n.getReader();if(!B)throw new Error("Response body is not readable");const U=new TextDecoder;let F="";try{for(;;){const{done:e,value:t}=yield B.read();if(e)break;F+=U.decode(t,{stream:!0});const n=F.split("\n\n");F=n.pop()||"";for(const e of n)if(e.trim()&&e.startsWith("event:")){const t=e.match(/event: (\w+)\ndata: ([\s\S]+)/);if(t){const[,e,n]=t;try{if("connected"===e){const e=JSON.parse(n);console.log("[SSE] Connected event received:",e);continue}if("end"===e){const e=JSON.parse(n);console.log("[SSE] End event received:",e);break}if("error"===e){const e=JSON.parse(n);console.error("[SSE] Error event received:",e),w&&w(new Error(e.error||"SSE stream error"));break}if("chatStream"===e){const e=JSON.parse(n),t={chatStream:e};if(I(t),null===(a=null==e?void 0:e.continueChatResult)||void 0===a?void 0:a.isEnd)return $&&$(t),void B.releaseLock()}}catch(e){console.error("[SSE] Error parsing event data:",e),console.error("[SSE] Raw event data:",n)}}}}}catch(e){console.error("[SSE] Stream reading error:",e),w&&w(e)}finally{try{B.releaseLock()}catch(e){}}}catch(e){throw console.error("[SSE] Streaming error:",e),w&&w(e),e}});e.stopStreamingSSE=(e,t,n)=>u(void 0,void 0,void 0,function*(){try{const a=Object.assign({"Content-Type":"application/json"},n),r=yield fetch(`${t}/api/sse/stop-stream`,{method:"POST",headers:a,body:JSON.stringify({requestId:e}),credentials:"include"});if(!r.ok){const e=yield r.json().catch(()=>({}));throw new Error(e.error||`HTTP error! status: ${r.status}`)}const o=yield r.json();return{success:!0,message:o.message||"Streaming stopped successfully",requestId:o.requestId,messageId:o.messageId}}catch(e){return console.error("[SSE Stop] Error stopping stream:",e),{success:!1,error:e.message||"Failed to stop streaming"}}});e.stopStreaming=(e,t,...n)=>u(void 0,[e,t,...n],void 0,function*(e,t,n=!1){let a=null;try{if(f.default.matchesRequestId(e)){const e=f.default.getClient();if(e)try{yield e.dispose(),f.default.clearClient()}catch(e){console.error("Error disposing original client:",e)}}a=(0,m.createClient)(Object.assign({url:t},n?{webSocketImpl:y.default}:{}));const r=a.iterate({query:"subscription ReceiveRequestId($requestId: String!) {\n receiveRequestId(requestId: $requestId) {\n requestId\n message\n }\n }",variables:{requestId:e}});let o=!1;try{const e=new Promise((e,t)=>{setTimeout(()=>t(new Error("Stop streaming timeout")),1500)});return yield Promise.race([u(void 0,void 0,void 0,function*(){var e,t,n,a;try{for(var s,i=!0,l=h(r);!(e=(s=yield l.next()).done);i=!0)return a=s.value,i=!1,o=!0,a}catch(e){t={error:e}}finally{try{i||e||!(n=l.return)||(yield n.call(l))}finally{if(t)throw t.error}}}),e]),{success:!0,message:"Streaming stopped successfully",stopCompleted:o}}catch(t){if(!1===f.default.matchesRequestId(e))return{success:!0,message:"Stream stopped via client disposal",stopCompleted:!0};throw t}}catch(t){return"Stop streaming timeout"!==t.message||f.default.matchesRequestId(e)?(console.error("Error in stopStreaming:",t),{success:!1,error:t.message||"Unknown error occurred"}):{success:!0,message:"Stream stopped successfully despite timeout",stopCompleted:!0}}finally{if(a)try{yield a.dispose()}catch(e){console.error("Error disposing stop client:",e)}}});e.uploadImage=(e,t)=>u(void 0,void 0,void 0,function*(){try{const n=new FormData;n.append("file",t);return(yield p.default.post(`${e}/api/chatbot/storeImageData`,n,{headers:{"Content-Type":"multipart/form-data"}})).data.message}catch(e){throw console.error("Error uploading image:",e),new Error("Image upload failed")}});e.deleteImage=(e,t,n)=>u(void 0,void 0,void 0,function*(){try{return(yield p.default.post(`${e}/api/chatbot/deleteImage`,{name:t,fileName:n})).data}catch(e){throw console.error("Error deleting image:",e),new Error("Image deletion failed")}});e.getChatHistory=(e,t,n,a)=>u(void 0,void 0,void 0,function*(){try{return(yield p.default.get(`${e}/api/chat/history`,{params:{name:t,organizationName:n},withCredentials:!0,headers:Object.assign({},null!=a?a:{})})).data}catch(e){throw console.error("Error getting chat history:",e),new Error("Failed to get chat history")}});e.resetChatHistory=(e,t,n,a)=>u(void 0,void 0,void 0,function*(){try{return(yield p.default.get(`${e}/api/chat/resetHistory`,{params:{name:t,organizationName:n},withCredentials:!0,headers:Object.assign({},null!=a?a:{})})).data}catch(e){throw console.error("Error resetting chat history:",e),new Error("Failed to reset chat history")}});e.ChatbotService=class{constructor(e,t,n,a){if(this.accessToken=null,this.baseUrl=e,this.username=t,this.password=n,a&&(this.accessToken=a),!(a||t&&n))throw new Error("Either accessToken or both username and password must be provided")}login(){return u(this,void 0,void 0,function*(){var e,t;if(!this.username||!this.password)throw new Error("Username and password are required for login");const n=`${this.baseUrl}/auth/signInPackage`,a={credentials:{username:this.username,password:this.password}};try{const e=yield p.default.post(n,a,{headers:{"Content-Type":"application/json"}});this.accessToken=e.data.accessToken}catch(n){const a=(null===(t=null===(e=n.response)||void 0===e?void 0:e.data)||void 0===t?void 0:t.message)||n.message||"Login failed";throw new Error(`Login failed: ${a}`)}})}ensureLoggedIn(){return u(this,void 0,void 0,function*(){this.accessToken||(yield this.login())})}toggleConsultativeMode(e,t,n,a){return u(this,arguments,void 0,function*(e,t,n,a,r=!1,o){var s;yield this.ensureLoggedIn();const i={authorization:`Bearer ${this.accessToken}`},l={chatBotId:e,consultativeMode:r?o:!o,consultativeModePrompt:t||"You are responsible for understanding the user’s needs by making sure that you gather enough relevant information before responding to achieve the goal described above. To achieve this, you will always ask clarifying follow-up questions, making sure to ask only one question at a time to maintain a focused and organized conversation. The follow-up questions should be short and crisp within 2 lines only. You should always follow a CARE framework which is about Curious:- being curious and interested to know about user needs, Acknowledge the responses given by the user and Respond with Empathy. Do not ask too many unnecessary questions."};try{const e=yield p.default.post(`${this.baseUrl}/api/chatbot/toggleConsultativeMode?name=${n}&organizationName=${a}`,l,{headers:i});return(null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.isConsultativeMode)||!1}catch(e){throw console.error("Error toggling consultative mode:",e),new Error("Failed to toggle consultative mode")}})}deleteChatMessage(e,t){return u(this,void 0,void 0,function*(){yield this.ensureLoggedIn();const n={authorization:`Bearer ${this.accessToken}`},a={guest_id:e,message_id:t};try{const e=yield p.default.delete(`${this.baseUrl}/api/chat/delete-message`,{headers:n,data:a});return null==e?void 0:e.data}catch(e){throw console.error("Error deleting chat message:",e),new Error("Failed to delete chat message")}})}inheritanceflow(e,t,n,a,r,o,s,i,l,c,d,h){return u(this,void 0,void 0,function*(){yield this.ensureLoggedIn();const u={authorization:`Bearer ${this.accessToken}`},g={name:e,organizationName:t,description:n,assistant_type:h,vector_db:i,aiModel:l,source:c,target:d,agents:a,agentsData:r,prompt:s,selectedAssistants:o};try{const e=yield p.default.post(`${this.baseUrl}/api/chatbot/createAndInheritAssistant`,g,{headers:u});return null==e?void 0:e.data}catch(e){throw console.error("Error creating and ineheriting assistant:",e),new Error("Failed to create and inherit assistant")}})}getAgentSettings(e,t){return u(this,void 0,void 0,function*(){var n;yield this.ensureLoggedIn();const a=(yield p.default.get(`${this.baseUrl}/api/chatbot/getAgentSettingsId?name=${e}&organizationName=${t}`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).data,r=yield p.default.get(`${this.baseUrl}/api/agent/getAgentSettings?agentSettingsId=${a.agentSettingsId}`,{headers:{Authorization:`Bearer ${this.accessToken}`}});return null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.agentSettings})}getModels(){return u(this,void 0,void 0,function*(){yield this.ensureLoggedIn();const e=yield p.default.get(`${this.baseUrl}/api/agent/getAgentModels`,{headers:{Authorization:`Bearer ${this.accessToken}`}});return null==e?void 0:e.data})}getChatbotData(e,t,n){return u(this,void 0,void 0,function*(){try{yield this.ensureLoggedIn();const a=yield p.default.get(`${this.baseUrl}/api/chatbot/getChatbot?name=${e}&organizationName=${t}`,{headers:Object.assign({Authorization:`Bearer ${this.accessToken}`},null!=n?n:{})});return null==a?void 0:a.data}catch(e){throw console.error("Error fetching chatbot data:",e),e}})}getBasicChatbotDetails(e,t,n){return u(this,void 0,void 0,function*(){try{yield this.ensureLoggedIn();const a=yield p.default.get(`${this.baseUrl}/api/chatbot/getBasicChatbotDetails?name=${e}&organizationName=${t}`,{headers:Object.assign({Authorization:`Bearer ${this.accessToken}`},null!=n?n:{})});return null==a?void 0:a.data}catch(e){throw console.error("Error fetching chatbot data:",e),e}})}getAccessToken(e,t,n){return u(this,void 0,void 0,function*(){var a,r;const o=`${this.baseUrl}/auth/signInPackage`,s={credentials:{username:e,password:t}};try{const e=yield p.default.post(o,s,{headers:Object.assign({Authorization:`Bearer ${this.accessToken}`},null!=n?n:{})});return this.accessToken=e.data.accessToken}catch(e){const t=(null===(r=null===(a=e.response)||void 0===a?void 0:a.data)||void 0===r?void 0:r.message)||e.message||"Login failed";throw new Error(`Login failed: ${t}`)}})}},e.explainabilityMap=new Map;e.getAssistantObj=(t,n)=>{var a,r,o,s;if((0,S.v4)(),!1===t.chatStream.continueChatResult.thinking_break&&!0===t.chatStream.continueChatResult.is_orchestrator&&!1===t.chatStream.continueChatResult.isEnd&&_(t.chatStream.continueChatResult.message.content),!0===t.chatStream.continueChatResult.thinking_break&&!0===t.chatStream.continueChatResult.is_orchestrator&&!1===t.chatStream.continueChatResult.isEnd&&n.push({responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1}),!1===t.chatStream.continueChatResult.thinking_break&&!0===t.chatStream.continueChatResult.is_orchestrator&&!0===t.chatStream.continueChatResult.isEnd&&_(t.chatStream.continueChatResult.message.content),!1===t.chatStream.continueChatResult.thinking_break&&!1===t.chatStream.continueChatResult.is_orchestrator&&!1===t.chatStream.continueChatResult.isEnd){const o=t.chatStream.continueChatResult;if(o.explainability_id&&o.responded_by){const t=o.explainability_id,a=o.responded_by;e.explainabilityMap.has(t)||e.explainabilityMap.set(t,{responded_by:a,index:n.length})}if(e.explainabilityMap.has(t.chatStream.continueChatResult.explainability_id)){const r=e.explainabilityMap.get(t.chatStream.continueChatResult.explainability_id);n[null==r?void 0:r.index]={responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(a=t.chatStream.continueChatResult.explainability_id)&&void 0!==a?a:"",isParallelToolResponse:!0}}else n=[...n,{responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(r=t.chatStream.continueChatResult.explainability_id)&&void 0!==r?r:"",isParallelToolResponse:!1}]}if(!0===t.chatStream.continueChatResult.thinking_break&&!1===t.chatStream.continueChatResult.is_orchestrator&&!1===t.chatStream.continueChatResult.isEnd){const a=t.chatStream.continueChatResult;if(a.explainability_id&&a.responded_by){const t=a.explainability_id,r=a.responded_by;e.explainabilityMap.has(t)||e.explainabilityMap.set(t,{responded_by:r,index:n.length})}if(e.explainabilityMap.has(t.chatStream.continueChatResult.explainability_id)){const a=e.explainabilityMap.get(t.chatStream.continueChatResult.explainability_id);n[null==a?void 0:a.index]={responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(o=t.chatStream.continueChatResult.explainability_id)&&void 0!==o?o:"",isParallelToolResponse:!0}}else n.push({responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(s=t.chatStream.continueChatResult.explainability_id)&&void 0!==s?s:"",isParallelToolResponse:!1})}return{orchestratorAndAgentsMessages:n}}}(t.__exports)),t.__exports};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("../../../../_virtual/index9.js"),n=require("../../../graphql-ws/lib/index.js"),a=require("../../../axios/dist/browser/axios.cjs.js"),r=require("../../../ws/browser.js"),o=require("../../../uuid/dist/cjs-browser/index.js"),s=require("./helperClasses/clientManager.js"),i=require("../../../utf8/utf8.js");exports.__require=function(){return e||(e=1,function(e){var l=t.__exports&&t.__exports.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),c=t.__exports&&t.__exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),d=t.__exports&&t.__exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&l(t,e,n);return c(t,e),t},u=t.__exports&&t.__exports.__awaiter||function(e,t,n,a){return new(n||(n=Promise))(function(r,o){function s(e){try{l(a.next(e))}catch(e){o(e)}}function i(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,i)}l((a=a.apply(e,t||[])).next())})},h=t.__exports&&t.__exports.__asyncValues||function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"==typeof __values?__values(e):e[Symbol.iterator](),t={},a("next"),a("throw"),a("return"),t[Symbol.asyncIterator]=function(){return this},t);function a(n){t[n]=e[n]&&function(t){return new Promise(function(a,r){(function(e,t,n,a){Promise.resolve(a).then(function(t){e({value:t,done:n})},t)})(a,r,(t=e[n](t)).done,t.value)})}}},g=t.__exports&&t.__exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.getAssistantObj=e.explainabilityMap=e.ChatbotService=e.resetChatHistory=e.getChatHistory=e.deleteImage=e.uploadImage=e.stopStreaming=e.stopStreamingSSE=e.startChatStreamSSE=e.startChatStream=e.encodeParam=void 0,e.replaceAsteriskInAnchor=_;const m=n.__require(),p=g(a.__require()),y=g(r.__require()),S=o.__require(),f=g(s.__require()),v=d(i.__require());function _(e){return null==e?void 0:e.replace(/<a [^>]*>.*?<\/a>/g,e=>null==e?void 0:e.replace(/\*/g,"*"))}e.encodeParam=e=>v.encode(e);e.startChatStream=t=>u(void 0,void 0,void 0,function*(){var n,a,r,o,s,i,l,c,d,u,g,p;const{WEBSOCKET_URL:v,organizationName:_,chatAssistantName:b,selectedAIModel:I,replyMessage:$="",userName:w,userEmailId:C,userId:R,query:T,requestId:A,customPrompt:x="",customRootOrchestratorModelName:E,customRootOrchestratorModelType:M,enableForBackend:P=!1,images:k,guestSessionId:O,chatPreviewId:q,isDocumentRetrieval:N,onStreamEvent:j,onStreamEnd:D,onError:z,customMetaData:L,multiAgentToggle:B,selectedAgent:U,runtimeAgents:F,isAudioAgent:J,agentSettings:H,textToSpeechAgentId:X,useTextToSpeech:W,XCrossAccessToken:Y,userPrefferedLanguage:K,agent_parameter:V}=t;try{const t=(0,m.createClient)(Object.assign(Object.assign({url:null!=v?v:""},P?{webSocketImpl:y.default}:{}),{connectionParams:{"X-Cross-Domain-Access-Token":Y}}));f.default.setClient(t,A);const ee=t.iterate({query:"subscription Subscription($sessionId: String!,\n $name:String!,\n $organizationName:String!,\n $aiModel:String!, \n $prompt:String!, \n $userName:String!, \n $userEmailId:String!, \n $userId:String!, \n $requestId:String!,\n $replyMessage:String!,\n $customPrompt:String,\n $customRootOrchestratorModelName:String,\n $customRootOrchestratorModelType:String,\n $notificationSessionId:String, \n $images:String,\n $chatPreviewId:String,\n $guestSessionId:String,\n $isDocumentRetrieval:Boolean,\n $customMetaData: JSON,\n $multiAgentToggle: Boolean, \n $selectedAgent: String,\n $runtimeAgents: [JSON],\n $isAudioAgent:Boolean,\n $agentSettings: JSON,\n $textToSpeechAgentId:String,\n $useTextToSpeech:Boolean,\n $userPrefferedLanguage:String\n $agent_parameter:JSON\n ),\n {\n chatStream(sessionId: $sessionId, \n name:$name, \n organizationName:$organizationName, \n aiModel:$aiModel, \n prompt:$prompt, \n userName:$userName,\n userEmailId:$userEmailId, \n userId:$userId, \n requestId:$requestId, \n replyMessage:$replyMessage, \n customPrompt:$customPrompt,\n customRootOrchestratorModelName:$customRootOrchestratorModelName,\n customRootOrchestratorModelType:$customRootOrchestratorModelType,\n notificationSessionId:$notificationSessionId, \n images:$images,\n isDocumentRetrieval:$isDocumentRetrieval,\n chatPreviewId:$chatPreviewId,\n guestSessionId: $guestSessionId,\n customMetaData: $customMetaData,\n multiAgentToggle: $multiAgentToggle, \n selectedAgent: $selectedAgent,\n runtimeAgents: $runtimeAgents,\n isAudioAgent:$isAudioAgent,\n agentSettings: $agentSettings,\n textToSpeechAgentId:$textToSpeechAgentId,\n useTextToSpeech:$useTextToSpeech,\n userPrefferedLanguage:$userPrefferedLanguage\n agent_parameter:$agent_parameter) {\n \n continueChatResult {\n isEnd\n thinking_break\n is_orchestrator\n is_agent\n responded_by\n header_message\n error_state\n confidenceScore\n requestId\n replyMessage\n confidenceScore\n requestId\n sessionId\n card_details\n message {\n citations {\n citation_number\n customMetaData\n title\n url\n description\n metadata {\n page_index\n display_url\n display_name\n }\n }\n annotations {\n citations {\n citation_number\n title\n url\n description\n metadata {\n page_index\n display_url\n display_name\n }\n }\n text\n }\n citationDisplayType\n next_query_suggestions {\n query\n }\n response_type\n content\n id\n }\n resourceId\n speechData\n agent_metadata\n }\n }\n }",variables:{sessionId:`${_}-${b}-${(0,S.v4)()}`,name:(0,e.encodeParam)(b),organizationName:(0,e.encodeParam)(_),guestSessionId:null!==(s=(0,e.encodeParam)(null!=O?O:""))&&void 0!==s?s:"",chatPreviewId:null!==(i=(0,e.encodeParam)(null!=q?q:""))&&void 0!==i?i:"",aiModel:(0,e.encodeParam)(I),prompt:""===$?T:(0,e.encodeParam)($+"\n"+T),userName:(0,e.encodeParam)(w),userEmailId:(0,e.encodeParam)(C),userId:(0,e.encodeParam)(R),requestId:(0,e.encodeParam)(A),replyMessage:$,customPrompt:x,customRootOrchestratorModelName:E,customRootOrchestratorModelType:M,notificationSessionId:`chat-session-${(0,S.v4)()}`,images:JSON.stringify(k),isDocumentRetrieval:N,customMetaData:L,multiAgentToggle:B,selectedAgent:U,runtimeAgents:F,isAudioAgent:null!=J&&J,agentSettings:H,textToSpeechAgentId:null!=X?X:"",useTextToSpeech:null!=W&&W,userPrefferedLanguage:null!=K?K:null,agent_parameter:null!=V?V:null}});try{try{for(var G,Q=!0,Z=h(ee);!(n=(G=yield Z.next()).done);Q=!0){o=G.value,Q=!1;const e=o;console.log("event:",e);const n=e.data;if(j(n),null===(d=null===(c=null===(l=null==e?void 0:e.data)||void 0===l?void 0:l.chatStream)||void 0===c?void 0:c.continueChatResult)||void 0===d?void 0:d.isEnd){console.log("IsEnd found succesfully for ",null===(p=null===(g=null===(u=null==e?void 0:e.data)||void 0===u?void 0:u.chatStream)||void 0===g?void 0:g.continueChatResult)||void 0===p?void 0:p.requestId),D&&D(n),yield t.dispose(),f.default.clearClient();break}}}catch(e){a={error:e}}finally{try{Q||n||!(r=Z.return)||(yield r.call(Z))}finally{if(a)throw a.error}}}catch(e){z&&z(e),yield t.dispose(),f.default.clearClient()}finally{f.default.matchesRequestId(A)&&(t.dispose(),f.default.clearClient())}}catch(e){console.log("Streaming error:",e),z&&z(e)}});e.startChatStreamSSE=t=>u(void 0,void 0,void 0,function*(){var n,a;const{API_URL:r,organizationName:o,chatAssistantName:s,selectedAIModel:i,replyMessage:l="",userName:c,userEmailId:d,userId:u,query:h,requestId:g,customPrompt:m="",customRootOrchestratorModelName:p,customRootOrchestratorModelType:y,images:f,guestSessionId:v,chatPreviewId:_,isDocumentRetrieval:b,onStreamEvent:I,onStreamEnd:$,onError:w,customMetaData:C,multiAgentToggle:R,selectedAgent:T,runtimeAgents:A,isAudioAgent:x,agentSettings:E,textToSpeechAgentId:M,useTextToSpeech:P,XCrossAccessToken:k,userPrefferedLanguage:O,agent_parameter:q,orchestratorMetadata:N,loadDynamicallyAttachedAgents:j,additionalHeaders:D={}}=t;try{const t={sessionId:`${o}-${s}-${(0,S.v4)()}`,name:(0,e.encodeParam)(s),organizationName:(0,e.encodeParam)(o),guestSessionId:(0,e.encodeParam)(null!=v?v:""),chatPreviewId:(0,e.encodeParam)(null!=_?_:""),aiModel:(0,e.encodeParam)(i),prompt:""===l?h:(0,e.encodeParam)(l+"\n"+h),userName:(0,e.encodeParam)(c),userEmailId:(0,e.encodeParam)(d),userId:(0,e.encodeParam)(u),requestId:(0,e.encodeParam)(g),replyMessage:l,customPrompt:m,customRootOrchestratorModelName:p,customRootOrchestratorModelType:y,notificationSessionId:`chat-session-${(0,S.v4)()}`,images:JSON.stringify(null!=f?f:{}),isDocumentRetrieval:null!=b&&b,customMetaData:C,multiAgentToggle:null!=R&&R,selectedAgent:null!=T?T:"",runtimeAgents:A,isAudioAgent:null!=x&&x,agentSettings:E,textToSpeechAgentId:null!=M?M:"",useTextToSpeech:null!=P&&P,userPrefferedLanguage:null!=O?O:null,agent_parameter:null!=q?q:null,orchestratorMetadata:null!=N?N:null,loadDynamicallyAttachedAgents:null!=j?j:[]},z=Object.assign({"Content-Type":"application/json"},D);k&&(z["X-Cross-Domain-Access-Token"]=k);const L=yield fetch(`${r}/api/sse/chat-stream`,{method:"POST",headers:z,body:JSON.stringify(t),credentials:"include"});if(!L.ok)throw new Error(`HTTP error! status: ${L.status}`);const B=null===(n=L.body)||void 0===n?void 0:n.getReader();if(!B)throw new Error("Response body is not readable");const U=new TextDecoder;let F="";try{for(;;){const{done:e,value:t}=yield B.read();if(e)break;F+=U.decode(t,{stream:!0});const n=F.split("\n\n");F=n.pop()||"";for(const e of n)if(e.trim()&&e.startsWith("event:")){const t=e.match(/event: (\w+)\ndata: ([\s\S]+)/);if(t){const[,e,n]=t;try{if("connected"===e){const e=JSON.parse(n);console.log("[SSE] Connected event received:",e);continue}if("end"===e){const e=JSON.parse(n);console.log("[SSE] End event received:",e);break}if("error"===e){const e=JSON.parse(n);console.error("[SSE] Error event received:",e),w&&w(new Error(e.error||"SSE stream error"));break}if("chatStream"===e){const e=JSON.parse(n),t={chatStream:e};if(I(t),null===(a=null==e?void 0:e.continueChatResult)||void 0===a?void 0:a.isEnd)return $&&$(t),void B.releaseLock()}}catch(e){console.error("[SSE] Error parsing event data:",e),console.error("[SSE] Raw event data:",n)}}}}}catch(e){console.error("[SSE] Stream reading error:",e),w&&w(e)}finally{try{B.releaseLock()}catch(e){}}}catch(e){throw console.error("[SSE] Streaming error:",e),w&&w(e),e}});e.stopStreamingSSE=(e,t,n)=>u(void 0,void 0,void 0,function*(){try{const a=Object.assign({"Content-Type":"application/json"},n),r=yield fetch(`${t}/api/sse/stop-stream`,{method:"POST",headers:a,body:JSON.stringify({requestId:e}),credentials:"include"});if(!r.ok){const e=yield r.json().catch(()=>({}));throw new Error(e.error||`HTTP error! status: ${r.status}`)}const o=yield r.json();return{success:!0,message:o.message||"Streaming stopped successfully",requestId:o.requestId,messageId:o.messageId}}catch(e){return console.error("[SSE Stop] Error stopping stream:",e),{success:!1,error:e.message||"Failed to stop streaming"}}});e.stopStreaming=(e,t,...n)=>u(void 0,[e,t,...n],void 0,function*(e,t,n=!1){let a=null;try{if(f.default.matchesRequestId(e)){const e=f.default.getClient();if(e)try{yield e.dispose(),f.default.clearClient()}catch(e){console.error("Error disposing original client:",e)}}a=(0,m.createClient)(Object.assign({url:t},n?{webSocketImpl:y.default}:{}));const r=a.iterate({query:"subscription ReceiveRequestId($requestId: String!) {\n receiveRequestId(requestId: $requestId) {\n requestId\n message\n }\n }",variables:{requestId:e}});let o=!1;try{const e=new Promise((e,t)=>{setTimeout(()=>t(new Error("Stop streaming timeout")),1500)});return yield Promise.race([u(void 0,void 0,void 0,function*(){var e,t,n,a;try{for(var s,i=!0,l=h(r);!(e=(s=yield l.next()).done);i=!0)return a=s.value,i=!1,o=!0,a}catch(e){t={error:e}}finally{try{i||e||!(n=l.return)||(yield n.call(l))}finally{if(t)throw t.error}}}),e]),{success:!0,message:"Streaming stopped successfully",stopCompleted:o}}catch(t){if(!1===f.default.matchesRequestId(e))return{success:!0,message:"Stream stopped via client disposal",stopCompleted:!0};throw t}}catch(t){return"Stop streaming timeout"!==t.message||f.default.matchesRequestId(e)?(console.error("Error in stopStreaming:",t),{success:!1,error:t.message||"Unknown error occurred"}):{success:!0,message:"Stream stopped successfully despite timeout",stopCompleted:!0}}finally{if(a)try{yield a.dispose()}catch(e){console.error("Error disposing stop client:",e)}}});e.uploadImage=(e,t)=>u(void 0,void 0,void 0,function*(){try{const n=new FormData;n.append("file",t);return(yield p.default.post(`${e}/api/chatbot/storeImageData`,n,{headers:{"Content-Type":"multipart/form-data"}})).data.message}catch(e){throw console.error("Error uploading image:",e),new Error("Image upload failed")}});e.deleteImage=(e,t,n)=>u(void 0,void 0,void 0,function*(){try{return(yield p.default.post(`${e}/api/chatbot/deleteImage`,{name:t,fileName:n})).data}catch(e){throw console.error("Error deleting image:",e),new Error("Image deletion failed")}});e.getChatHistory=(e,t,n,a)=>u(void 0,void 0,void 0,function*(){try{return(yield p.default.get(`${e}/api/chat/history`,{params:{name:t,organizationName:n},withCredentials:!0,headers:Object.assign({},null!=a?a:{})})).data}catch(e){throw console.error("Error getting chat history:",e),new Error("Failed to get chat history")}});e.resetChatHistory=(e,t,n,a)=>u(void 0,void 0,void 0,function*(){try{return(yield p.default.get(`${e}/api/chat/resetHistory`,{params:{name:t,organizationName:n},withCredentials:!0,headers:Object.assign({},null!=a?a:{})})).data}catch(e){throw console.error("Error resetting chat history:",e),new Error("Failed to reset chat history")}});e.ChatbotService=class{constructor(e,t,n,a){if(this.accessToken=null,this.baseUrl=e,this.username=t,this.password=n,a&&(this.accessToken=a),!(a||t&&n))throw new Error("Either accessToken or both username and password must be provided")}login(){return u(this,void 0,void 0,function*(){var e,t;if(!this.username||!this.password)throw new Error("Username and password are required for login");const n=`${this.baseUrl}/auth/signInPackage`,a={credentials:{username:this.username,password:this.password}};try{const e=yield p.default.post(n,a,{headers:{"Content-Type":"application/json"}});this.accessToken=e.data.accessToken}catch(n){const a=(null===(t=null===(e=n.response)||void 0===e?void 0:e.data)||void 0===t?void 0:t.message)||n.message||"Login failed";throw new Error(`Login failed: ${a}`)}})}ensureLoggedIn(){return u(this,void 0,void 0,function*(){this.accessToken||(yield this.login())})}toggleConsultativeMode(e,t,n,a){return u(this,arguments,void 0,function*(e,t,n,a,r=!1,o){var s;yield this.ensureLoggedIn();const i={authorization:`Bearer ${this.accessToken}`},l={chatBotId:e,consultativeMode:r?o:!o,consultativeModePrompt:t||"You are responsible for understanding the user’s needs by making sure that you gather enough relevant information before responding to achieve the goal described above. To achieve this, you will always ask clarifying follow-up questions, making sure to ask only one question at a time to maintain a focused and organized conversation. The follow-up questions should be short and crisp within 2 lines only. You should always follow a CARE framework which is about Curious:- being curious and interested to know about user needs, Acknowledge the responses given by the user and Respond with Empathy. Do not ask too many unnecessary questions."};try{const e=yield p.default.post(`${this.baseUrl}/api/chatbot/toggleConsultativeMode?name=${n}&organizationName=${a}`,l,{headers:i});return(null===(s=null==e?void 0:e.data)||void 0===s?void 0:s.isConsultativeMode)||!1}catch(e){throw console.error("Error toggling consultative mode:",e),new Error("Failed to toggle consultative mode")}})}deleteChatMessage(e,t){return u(this,void 0,void 0,function*(){yield this.ensureLoggedIn();const n={authorization:`Bearer ${this.accessToken}`},a={guest_id:e,message_id:t};try{const e=yield p.default.delete(`${this.baseUrl}/api/chat/delete-message`,{headers:n,data:a});return null==e?void 0:e.data}catch(e){throw console.error("Error deleting chat message:",e),new Error("Failed to delete chat message")}})}inheritanceflow(e,t,n,a,r,o,s,i,l,c,d,h){return u(this,void 0,void 0,function*(){yield this.ensureLoggedIn();const u={authorization:`Bearer ${this.accessToken}`},g={name:e,organizationName:t,description:n,assistant_type:h,vector_db:i,aiModel:l,source:c,target:d,agents:a,agentsData:r,prompt:s,selectedAssistants:o};try{const e=yield p.default.post(`${this.baseUrl}/api/chatbot/createAndInheritAssistant`,g,{headers:u});return null==e?void 0:e.data}catch(e){throw console.error("Error creating and ineheriting assistant:",e),new Error("Failed to create and inherit assistant")}})}getAgentSettings(e,t){return u(this,void 0,void 0,function*(){var n;yield this.ensureLoggedIn();const a=(yield p.default.get(`${this.baseUrl}/api/chatbot/getAgentSettingsId?name=${e}&organizationName=${t}`,{headers:{Authorization:`Bearer ${this.accessToken}`}})).data,r=yield p.default.get(`${this.baseUrl}/api/agent/getAgentSettings?agentSettingsId=${a.agentSettingsId}`,{headers:{Authorization:`Bearer ${this.accessToken}`}});return null===(n=null==r?void 0:r.data)||void 0===n?void 0:n.agentSettings})}getModels(){return u(this,void 0,void 0,function*(){yield this.ensureLoggedIn();const e=yield p.default.get(`${this.baseUrl}/api/agent/getAgentModels`,{headers:{Authorization:`Bearer ${this.accessToken}`}});return null==e?void 0:e.data})}getChatbotData(e,t,n){return u(this,void 0,void 0,function*(){try{yield this.ensureLoggedIn();const a=yield p.default.get(`${this.baseUrl}/api/chatbot/getChatbot?name=${e}&organizationName=${t}`,{headers:Object.assign({Authorization:`Bearer ${this.accessToken}`},null!=n?n:{})});return null==a?void 0:a.data}catch(e){throw console.error("Error fetching chatbot data:",e),e}})}getBasicChatbotDetails(e,t,n){return u(this,void 0,void 0,function*(){try{yield this.ensureLoggedIn();const a=yield p.default.get(`${this.baseUrl}/api/chatbot/getBasicChatbotDetails?name=${e}&organizationName=${t}`,{headers:Object.assign({Authorization:`Bearer ${this.accessToken}`},null!=n?n:{})});return null==a?void 0:a.data}catch(e){throw console.error("Error fetching chatbot data:",e),e}})}getAccessToken(e,t,n){return u(this,void 0,void 0,function*(){var a,r;const o=`${this.baseUrl}/auth/signInPackage`,s={credentials:{username:e,password:t}};try{const e=yield p.default.post(o,s,{headers:Object.assign({Authorization:`Bearer ${this.accessToken}`},null!=n?n:{})});return this.accessToken=e.data.accessToken}catch(e){const t=(null===(r=null===(a=e.response)||void 0===a?void 0:a.data)||void 0===r?void 0:r.message)||e.message||"Login failed";throw new Error(`Login failed: ${t}`)}})}},e.explainabilityMap=new Map;e.getAssistantObj=(t,n)=>{var a,r,o,s;if((0,S.v4)(),!1===t.chatStream.continueChatResult.thinking_break&&!0===t.chatStream.continueChatResult.is_orchestrator&&!1===t.chatStream.continueChatResult.isEnd&&_(t.chatStream.continueChatResult.message.content),!0===t.chatStream.continueChatResult.thinking_break&&!0===t.chatStream.continueChatResult.is_orchestrator&&!1===t.chatStream.continueChatResult.isEnd&&n.push({responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1}),!1===t.chatStream.continueChatResult.thinking_break&&!0===t.chatStream.continueChatResult.is_orchestrator&&!0===t.chatStream.continueChatResult.isEnd&&_(t.chatStream.continueChatResult.message.content),!1===t.chatStream.continueChatResult.thinking_break&&!1===t.chatStream.continueChatResult.is_orchestrator&&!1===t.chatStream.continueChatResult.isEnd){const o=t.chatStream.continueChatResult;if(o.explainability_id&&o.responded_by){const t=o.explainability_id,a=o.responded_by;e.explainabilityMap.has(t)||e.explainabilityMap.set(t,{responded_by:a,index:n.length})}if(e.explainabilityMap.has(t.chatStream.continueChatResult.explainability_id)){const r=e.explainabilityMap.get(t.chatStream.continueChatResult.explainability_id);n[null==r?void 0:r.index]={responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(a=t.chatStream.continueChatResult.explainability_id)&&void 0!==a?a:"",isParallelToolResponse:!0}}else n=[...n,{responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!0,explainability_id:null!==(r=t.chatStream.continueChatResult.explainability_id)&&void 0!==r?r:"",isParallelToolResponse:!1}]}if(!0===t.chatStream.continueChatResult.thinking_break&&!1===t.chatStream.continueChatResult.is_orchestrator&&!1===t.chatStream.continueChatResult.isEnd){const a=t.chatStream.continueChatResult;if(a.explainability_id&&a.responded_by){const t=a.explainability_id,r=a.responded_by;e.explainabilityMap.has(t)||e.explainabilityMap.set(t,{responded_by:r,index:n.length})}if(e.explainabilityMap.has(t.chatStream.continueChatResult.explainability_id)){const a=e.explainabilityMap.get(t.chatStream.continueChatResult.explainability_id);n[null==a?void 0:a.index]={responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(o=t.chatStream.continueChatResult.explainability_id)&&void 0!==o?o:"",isParallelToolResponse:!0}}else n.push({responsedata:t.chatStream.continueChatResult.message.content,responseFrom:t.chatStream.continueChatResult.responded_by,header_message:t.chatStream.continueChatResult.header_message,finalResponseStatus:!1,explainability_id:null!==(s=t.chatStream.continueChatResult.explainability_id)&&void 0!==s?s:"",isParallelToolResponse:!1})}return{orchestratorAndAgentsMessages:n}}}(t.__exports)),t.__exports};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@e-llm-studio/streaming-response/dist/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getAssistantObj = exports.explainabilityMap = exports.ChatbotService = exports.resetChatHistory = exports.getChatHistory = exports.deleteImage = exports.uploadImage = exports.stopStreaming = exports.stopStreamingSSE = exports.startChatStreamSSE = exports.startChatStream = exports.encodeParam = void 0;\nexports.replaceAsteriskInAnchor = replaceAsteriskInAnchor;\nconst graphql_ws_1 = require(\"graphql-ws\");\nconst axios_1 = __importDefault(require(\"axios\"));\nconst ws_1 = __importDefault(require(\"ws\"));\nconst uuid_1 = require(\"uuid\");\nconst clientManager_1 = __importDefault(require(\"./helperClasses/clientManager\"));\nconst utf8 = __importStar(require(\"utf8\"));\n// Utils\nfunction replaceAsteriskInAnchor(inputString) {\n // Regular expression to match an anchor tag with asterisk inside\n const regex = /<a [^>]*>.*?<\\/a>/g;\n // Check if the inputString contains an anchor tag with asterisk and replace it\n const replacedString = inputString === null || inputString === void 0 ? void 0 : inputString.replace(regex, (match) => {\n // Replace asterisk inside the anchor tag with *\n return match === null || match === void 0 ? void 0 : match.replace(/\\*/g, \"*\");\n });\n return replacedString;\n}\nconst encodeParam = (param) => {\n return utf8.encode(param);\n};\nexports.encodeParam = encodeParam;\n/**\n * Main function to start streaming chat messages.\n * It returns a continuous stream of event data, and the user can handle the stream data with the provided callbacks..\n */\nconst startChatStream = (params) => __awaiter(void 0, void 0, void 0, function* () {\n var _a, e_1, _b, _c;\n var _d, _e, _f, _g, _h, _j, _k, _l;\n const { WEBSOCKET_URL, organizationName, chatAssistantName, selectedAIModel, replyMessage = \"\", userName, userEmailId, userId, query, requestId, customPrompt = \"\", customRootOrchestratorModelName, customRootOrchestratorModelType, \n // notificationSessionId = '',\n enableForBackend = false, images, guestSessionId, chatPreviewId, isDocumentRetrieval, onStreamEvent, onStreamEnd, onError, customMetaData, multiAgentToggle, selectedAgent, runtimeAgents, isAudioAgent, agentSettings, textToSpeechAgentId, useTextToSpeech, XCrossAccessToken, userPrefferedLanguage, agent_parameter } = params;\n try {\n const client = (0, graphql_ws_1.createClient)(Object.assign(Object.assign({ url: WEBSOCKET_URL !== null && WEBSOCKET_URL !== void 0 ? WEBSOCKET_URL : \"\" }, (enableForBackend ? { webSocketImpl: ws_1.default } : {})), { connectionParams: {\n 'X-Cross-Domain-Access-Token': XCrossAccessToken,\n } }));\n clientManager_1.default.setClient(client, requestId);\n const subscription = client.iterate({\n query: `subscription Subscription($sessionId: String!,\n $name:String!,\n $organizationName:String!,\n $aiModel:String!, \n $prompt:String!, \n $userName:String!, \n $userEmailId:String!, \n $userId:String!, \n $requestId:String!,\n $replyMessage:String!,\n $customPrompt:String,\n $customRootOrchestratorModelName:String,\n $customRootOrchestratorModelType:String,\n $notificationSessionId:String, \n $images:String,\n $chatPreviewId:String,\n $guestSessionId:String,\n $isDocumentRetrieval:Boolean,\n $customMetaData: JSON,\n $multiAgentToggle: Boolean, \n $selectedAgent: String,\n $runtimeAgents: [JSON],\n $isAudioAgent:Boolean,\n $agentSettings: JSON,\n $textToSpeechAgentId:String,\n $useTextToSpeech:Boolean,\n $userPrefferedLanguage:String\n $agent_parameter:JSON\n ),\n {\n chatStream(sessionId: $sessionId, \n name:$name, \n organizationName:$organizationName, \n aiModel:$aiModel, \n prompt:$prompt, \n userName:$userName,\n userEmailId:$userEmailId, \n userId:$userId, \n requestId:$requestId, \n replyMessage:$replyMessage, \n customPrompt:$customPrompt,\n customRootOrchestratorModelName:$customRootOrchestratorModelName,\n customRootOrchestratorModelType:$customRootOrchestratorModelType,\n notificationSessionId:$notificationSessionId, \n images:$images,\n isDocumentRetrieval:$isDocumentRetrieval,\n chatPreviewId:$chatPreviewId,\n guestSessionId: $guestSessionId,\n customMetaData: $customMetaData,\n multiAgentToggle: $multiAgentToggle, \n selectedAgent: $selectedAgent,\n runtimeAgents: $runtimeAgents,\n isAudioAgent:$isAudioAgent,\n agentSettings: $agentSettings,\n textToSpeechAgentId:$textToSpeechAgentId,\n useTextToSpeech:$useTextToSpeech,\n userPrefferedLanguage:$userPrefferedLanguage\n agent_parameter:$agent_parameter) {\n \n continueChatResult {\n isEnd\n thinking_break\n is_orchestrator\n is_agent\n responded_by\n header_message\n error_state\n confidenceScore\n requestId\n replyMessage\n confidenceScore\n requestId\n sessionId\n card_details\n message {\n citations {\n citation_number\n customMetaData\n title\n url\n description\n metadata {\n page_index\n display_url\n display_name\n }\n }\n annotations {\n citations {\n citation_number\n title\n url\n description\n metadata {\n page_index\n display_url\n display_name\n }\n }\n text\n }\n citationDisplayType\n next_query_suggestions {\n query\n }\n response_type\n content\n id\n }\n resourceId\n speechData\n agent_metadata\n }\n }\n }`,\n variables: {\n sessionId: `${organizationName}-${chatAssistantName}-${(0, uuid_1.v4)()}`,\n name: (0, exports.encodeParam)(chatAssistantName),\n organizationName: (0, exports.encodeParam)(organizationName),\n guestSessionId: (_d = (0, exports.encodeParam)(guestSessionId !== null && guestSessionId !== void 0 ? guestSessionId : \"\")) !== null && _d !== void 0 ? _d : \"\",\n chatPreviewId: (_e = (0, exports.encodeParam)(chatPreviewId !== null && chatPreviewId !== void 0 ? chatPreviewId : \"\")) !== null && _e !== void 0 ? _e : \"\",\n aiModel: (0, exports.encodeParam)(selectedAIModel),\n prompt: replyMessage === \"\"\n ? query\n : (0, exports.encodeParam)(replyMessage + \"\\n\" + query),\n userName: (0, exports.encodeParam)(userName),\n userEmailId: (0, exports.encodeParam)(userEmailId),\n userId: (0, exports.encodeParam)(userId),\n requestId: (0, exports.encodeParam)(requestId),\n replyMessage: replyMessage,\n customPrompt: customPrompt,\n customRootOrchestratorModelName: customRootOrchestratorModelName,\n customRootOrchestratorModelType: customRootOrchestratorModelType,\n notificationSessionId: `chat-session-${(0, uuid_1.v4)()}`,\n images: JSON.stringify(images),\n isDocumentRetrieval: isDocumentRetrieval,\n customMetaData: customMetaData,\n multiAgentToggle: multiAgentToggle,\n selectedAgent: selectedAgent,\n runtimeAgents: runtimeAgents,\n isAudioAgent: isAudioAgent !== null && isAudioAgent !== void 0 ? isAudioAgent : false,\n agentSettings: agentSettings,\n textToSpeechAgentId: textToSpeechAgentId !== null && textToSpeechAgentId !== void 0 ? textToSpeechAgentId : '',\n useTextToSpeech: useTextToSpeech !== null && useTextToSpeech !== void 0 ? useTextToSpeech : false,\n userPrefferedLanguage: userPrefferedLanguage !== null && userPrefferedLanguage !== void 0 ? userPrefferedLanguage : null,\n agent_parameter: agent_parameter !== null && agent_parameter !== void 0 ? agent_parameter : null\n },\n });\n try {\n try {\n for (var _m = true, _o = __asyncValues(subscription), _p; _p = yield _o.next(), _a = _p.done, !_a; _m = true) {\n _c = _p.value;\n _m = false;\n const event = _c;\n // if (!ClientManager.matchesRequestId(requestId)) {\n // await client.dispose();\n // ClientManager.clearClient();\n // break;\n // }\n console.log(\"event:\", event);\n // console.log(\"event.data:\", event?.data);\n const chatStreamData = event.data;\n // Trigger user callback with the new stream event data\n onStreamEvent(chatStreamData);\n if ((_h = (_g = (_f = event === null || event === void 0 ? void 0 : event.data) === null || _f === void 0 ? void 0 : _f.chatStream) === null || _g === void 0 ? void 0 : _g.continueChatResult) === null || _h === void 0 ? void 0 : _h.isEnd) {\n console.log(\"IsEnd found succesfully for \", (_l = (_k = (_j = event === null || event === void 0 ? void 0 : event.data) === null || _j === void 0 ? void 0 : _j.chatStream) === null || _k === void 0 ? void 0 : _k.continueChatResult) === null || _l === void 0 ? void 0 : _l.requestId);\n if (onStreamEnd) {\n onStreamEnd(chatStreamData);\n }\n yield client.dispose();\n clientManager_1.default.clearClient();\n break;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (!_m && !_a && (_b = _o.return)) yield _b.call(_o);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n catch (subscriptionError) {\n if (onError)\n onError(subscriptionError);\n // Clean up on error\n yield client.dispose();\n clientManager_1.default.clearClient();\n }\n finally {\n // Clean up if the loop breaks\n if (clientManager_1.default.matchesRequestId(requestId)) {\n client.dispose();\n clientManager_1.default.clearClient();\n }\n }\n }\n catch (error) {\n console.log(\"Streaming error:\", error);\n if (onError) {\n onError(error);\n }\n }\n});\nexports.startChatStream = startChatStream;\nconst startChatStreamSSE = (params) => __awaiter(void 0, void 0, void 0, function* () {\n var _a, _b;\n const { API_URL, organizationName, chatAssistantName, selectedAIModel, replyMessage = \"\", userName, userEmailId, userId, query, requestId, customPrompt = \"\", customRootOrchestratorModelName, customRootOrchestratorModelType, images, guestSessionId, chatPreviewId, isDocumentRetrieval, onStreamEvent, onStreamEnd, onError, customMetaData, multiAgentToggle, selectedAgent, runtimeAgents, isAudioAgent, agentSettings, textToSpeechAgentId, useTextToSpeech, XCrossAccessToken, userPrefferedLanguage, agent_parameter, orchestratorMetadata, loadDynamicallyAttachedAgents, additionalHeaders = {}, } = params;\n try {\n // Prepare request body\n const requestBody = {\n sessionId: `${organizationName}-${chatAssistantName}-${(0, uuid_1.v4)()}`,\n name: (0, exports.encodeParam)(chatAssistantName),\n organizationName: (0, exports.encodeParam)(organizationName),\n guestSessionId: (0, exports.encodeParam)(guestSessionId !== null && guestSessionId !== void 0 ? guestSessionId : \"\"),\n chatPreviewId: (0, exports.encodeParam)(chatPreviewId !== null && chatPreviewId !== void 0 ? chatPreviewId : \"\"),\n aiModel: (0, exports.encodeParam)(selectedAIModel),\n prompt: replyMessage === \"\" ? query : (0, exports.encodeParam)(replyMessage + \"\\n\" + query),\n userName: (0, exports.encodeParam)(userName),\n userEmailId: (0, exports.encodeParam)(userEmailId),\n userId: (0, exports.encodeParam)(userId),\n requestId: (0, exports.encodeParam)(requestId),\n replyMessage: replyMessage,\n customPrompt: customPrompt,\n customRootOrchestratorModelName: customRootOrchestratorModelName,\n customRootOrchestratorModelType: customRootOrchestratorModelType,\n notificationSessionId: `chat-session-${(0, uuid_1.v4)()}`,\n images: JSON.stringify(images !== null && images !== void 0 ? images : {}),\n isDocumentRetrieval: isDocumentRetrieval !== null && isDocumentRetrieval !== void 0 ? isDocumentRetrieval : false,\n customMetaData: customMetaData,\n multiAgentToggle: multiAgentToggle !== null && multiAgentToggle !== void 0 ? multiAgentToggle : false,\n selectedAgent: selectedAgent !== null && selectedAgent !== void 0 ? selectedAgent : \"\",\n runtimeAgents: runtimeAgents,\n isAudioAgent: isAudioAgent !== null && isAudioAgent !== void 0 ? isAudioAgent : false,\n agentSettings: agentSettings,\n textToSpeechAgentId: textToSpeechAgentId !== null && textToSpeechAgentId !== void 0 ? textToSpeechAgentId : \"\",\n useTextToSpeech: useTextToSpeech !== null && useTextToSpeech !== void 0 ? useTextToSpeech : false,\n userPrefferedLanguage: userPrefferedLanguage !== null && userPrefferedLanguage !== void 0 ? userPrefferedLanguage : null,\n agent_parameter: agent_parameter !== null && agent_parameter !== void 0 ? agent_parameter : null,\n orchestratorMetadata: orchestratorMetadata !== null && orchestratorMetadata !== void 0 ? orchestratorMetadata : null,\n loadDynamicallyAttachedAgents: loadDynamicallyAttachedAgents !== null && loadDynamicallyAttachedAgents !== void 0 ? loadDynamicallyAttachedAgents : [],\n };\n // Prepare headers\n const headers = Object.assign({ \"Content-Type\": \"application/json\" }, additionalHeaders);\n if (XCrossAccessToken) {\n headers[\"X-Cross-Domain-Access-Token\"] = XCrossAccessToken;\n }\n // Make POST request to SSE endpoint\n const response = yield fetch(`${API_URL}/api/sse/chat-stream`, {\n method: \"POST\",\n headers: headers,\n body: JSON.stringify(requestBody),\n credentials: \"include\",\n });\n // Check response status\n if (!response.ok) {\n throw new Error(`HTTP error! status: ${response.status}`);\n }\n // Get reader from response body\n const reader = (_a = response.body) === null || _a === void 0 ? void 0 : _a.getReader();\n if (!reader) {\n throw new Error(\"Response body is not readable\");\n }\n const decoder = new TextDecoder();\n let buffer = \"\";\n try {\n while (true) {\n const { done, value } = yield reader.read();\n if (done) {\n // console.log(\"[SSE] Stream Done complete - connection closed\");\n break;\n }\n // Decode binary data to text\n buffer += decoder.decode(value, { stream: true });\n // Split into complete SSE messages (messages end with \\n\\n)\n const lines = buffer.split(\"\\n\\n\");\n buffer = lines.pop() || \"\";\n // Process each complete message\n for (const line of lines) {\n if (!line.trim())\n continue;\n if (line.startsWith(\"event:\")) {\n const eventMatch = line.match(/event: (\\w+)\\ndata: ([\\s\\S]+)/);\n if (eventMatch) {\n const [, eventType, eventDataStr] = eventMatch;\n try {\n // Handle different event types\n if (eventType === \"connected\") {\n const connectedData = JSON.parse(eventDataStr);\n console.log(\"[SSE] Connected event received:\", connectedData);\n continue;\n }\n if (eventType === \"end\") {\n const endData = JSON.parse(eventDataStr);\n console.log(\"[SSE] End event received:\", endData);\n break;\n }\n if (eventType === \"error\") {\n const errorData = JSON.parse(eventDataStr);\n console.error(\"[SSE] Error event received:\", errorData);\n if (onError) {\n onError(new Error(errorData.error || \"SSE stream error\"));\n }\n break;\n }\n if (eventType === \"chatStream\") {\n // Parse the JSON data\n const eventData = JSON.parse(eventDataStr);\n // eventData structure from backend: { continueChatResult: {...} }\n // Wrap it to match GraphQL format: { chatStream: { continueChatResult: {...} } }\n const chatStreamData = {\n chatStream: eventData\n };\n // Pass raw data to callback (same as GraphQL approach)\n onStreamEvent(chatStreamData);\n // Check if this is the final message\n if ((_b = eventData === null || eventData === void 0 ? void 0 : eventData.continueChatResult) === null || _b === void 0 ? void 0 : _b.isEnd) {\n // console.log(\n // \"[SSE] IsEnd found successfully for\",\n // eventData?.continueChatResult?.requestId\n // );\n if (onStreamEnd) {\n onStreamEnd(chatStreamData);\n }\n // Exit the while loop\n reader.releaseLock();\n return;\n }\n }\n }\n catch (parseError) {\n console.error(\"[SSE] Error parsing event data:\", parseError);\n console.error(\"[SSE] Raw event data:\", eventDataStr);\n }\n }\n }\n }\n }\n }\n catch (streamError) {\n console.error(\"[SSE] Stream reading error:\", streamError);\n if (onError) {\n onError(streamError);\n }\n }\n finally {\n try {\n reader.releaseLock();\n }\n catch (e) {\n // Reader might already be released\n }\n }\n }\n catch (error) {\n console.error(\"[SSE] Streaming error:\", error);\n if (onError) {\n onError(error);\n }\n throw error;\n }\n});\nexports.startChatStreamSSE = startChatStreamSSE;\n/**\n * Stop an ongoing SSE streaming session\n * @param {string} requestId - The request ID to stop\n * @param {string} API_URL - The base API URL\n * @param {Record<string, string>} additionalHeaders - Optional additional headers\n * @returns {Promise<any>} - Success response or error\n */\nconst stopStreamingSSE = (requestId, API_URL, additionalHeaders) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n // Prepare headers\n const headers = Object.assign({ \"Content-Type\": \"application/json\" }, additionalHeaders);\n const response = yield fetch(`${API_URL}/api/sse/stop-stream`, {\n method: \"POST\",\n headers: headers,\n body: JSON.stringify({ requestId }),\n credentials: \"include\",\n });\n // Check response status\n if (!response.ok) {\n const errorData = yield response.json().catch(() => ({}));\n throw new Error(errorData.error || `HTTP error! status: ${response.status}`);\n }\n // Parse success response\n const result = yield response.json();\n return {\n success: true,\n message: result.message || \"Streaming stopped successfully\",\n requestId: result.requestId,\n messageId: result.messageId,\n };\n }\n catch (error) {\n console.error(\"[SSE Stop] Error stopping stream:\", error);\n return {\n success: false,\n error: error.message || \"Failed to stop streaming\",\n };\n }\n});\nexports.stopStreamingSSE = stopStreamingSSE;\nconst stopStreaming = (reqid_1, WEBSOCKET_URL_1, ...args_1) => __awaiter(void 0, [reqid_1, WEBSOCKET_URL_1, ...args_1], void 0, function* (reqid, WEBSOCKET_URL, enableForBackend = false) {\n let stopClient = null;\n try {\n // First, try to close the original streaming connection\n if (clientManager_1.default.matchesRequestId(reqid)) {\n const originalClient = clientManager_1.default.getClient();\n if (originalClient) {\n try {\n yield originalClient.dispose();\n clientManager_1.default.clearClient();\n }\n catch (disposeError) {\n console.error('Error disposing original client:', disposeError);\n }\n }\n }\n // Create a new client instance for the stop request\n stopClient = (0, graphql_ws_1.createClient)(Object.assign({ url: WEBSOCKET_URL }, (enableForBackend ? { webSocketImpl: ws_1.default } : {})));\n const subscription = stopClient.iterate({\n query: `subscription ReceiveRequestId($requestId: String!) {\n receiveRequestId(requestId: $requestId) {\n requestId\n message\n }\n }`,\n variables: {\n requestId: reqid,\n },\n });\n let stopCompleted = false;\n try {\n // Set a shorter timeout for the stop request\n const timeoutPromise = new Promise((_, reject) => {\n setTimeout(() => reject(new Error('Stop streaming timeout')), 1500);\n });\n // Race between subscription and timeout\n yield Promise.race([\n (() => __awaiter(void 0, void 0, void 0, function* () {\n var _a, e_2, _b, _c;\n try {\n for (var _d = true, subscription_1 = __asyncValues(subscription), subscription_1_1; subscription_1_1 = yield subscription_1.next(), _a = subscription_1_1.done, !_a; _d = true) {\n _c = subscription_1_1.value;\n _d = false;\n const event = _c;\n stopCompleted = true;\n return event;\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (!_d && !_a && (_b = subscription_1.return)) yield _b.call(subscription_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }))(),\n timeoutPromise\n ]);\n // If we reached here without an error, consider it a success\n return {\n success: true,\n message: 'Streaming stopped successfully',\n stopCompleted\n };\n }\n catch (subError) {\n // If original client was disposed, consider it a success despite subscription timeout\n if (clientManager_1.default.matchesRequestId(reqid) === false) {\n return {\n success: true,\n message: 'Stream stopped via client disposal',\n stopCompleted: true\n };\n }\n throw subError;\n }\n }\n catch (error) {\n // Only return error if it's not a timeout and original client wasn't disposed\n if (error.message !== 'Stop streaming timeout' || clientManager_1.default.matchesRequestId(reqid)) {\n console.error(\"Error in stopStreaming:\", error);\n return { success: false, error: error.message || 'Unknown error occurred' };\n }\n // If we got here with a timeout but original client was disposed, it's still a success\n return {\n success: true,\n message: 'Stream stopped successfully despite timeout',\n stopCompleted: true\n };\n }\n finally {\n // Clean up the stop client\n if (stopClient) {\n try {\n yield stopClient.dispose();\n }\n catch (disposeError) {\n console.error('Error disposing stop client:', disposeError);\n }\n }\n }\n});\nexports.stopStreaming = stopStreaming;\n/**\n * Upload an image file to the server.\n * @param {string} baseURL - The base URL of the API.\n * @param {File} imageFile - The image file to be uploaded.\n * @returns {Promise<string>} - A success message if the image is uploaded successfully.\n */\nconst uploadImage = (baseURL, imageFile) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n const formData = new FormData();\n formData.append(\"file\", imageFile);\n const response = yield axios_1.default.post(`${baseURL}/api/chatbot/storeImageData`, formData, {\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n });\n return response.data.message;\n }\n catch (error) {\n console.error(\"Error uploading image:\", error);\n throw new Error(\"Image upload failed\");\n }\n});\nexports.uploadImage = uploadImage;\n/**\n * Delete an image from the server.\n * @param {string} baseURL - The base URL of the API..\n * @param {string} name - The user or entity name associated with the image.\n * @param {string} fileName - The name of the image file to delete.\n * @returns {Promise<string>} - A success message if the image is deleted successfully.\n */\nconst deleteImage = (baseURL, name, fileName) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n const response = yield axios_1.default.post(`${baseURL}/api/chatbot/deleteImage`, {\n name,\n fileName,\n });\n return response.data;\n }\n catch (error) {\n console.error(\"Error deleting image:\", error);\n throw new Error(\"Image deletion failed\");\n }\n});\nexports.deleteImage = deleteImage;\n/**\n * Get chat history from the server.\n * @param {string} baseURL - The base URL of the API.\n * @param {string} chatAssistantName - The name of the chat assistant.\n * @param {string} organizationName - The name of the organization.\n * @returns {Promise<any[]>} - The chat history as an array.\n */\nconst getChatHistory = (baseURL, chatAssistantName, organizationName, additionalHeaders) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n const response = yield axios_1.default.get(`${baseURL}/api/chat/history`, {\n params: { name: chatAssistantName, organizationName },\n withCredentials: true,\n headers: Object.assign({}, (additionalHeaders !== null && additionalHeaders !== void 0 ? additionalHeaders : {}))\n });\n return response.data;\n }\n catch (error) {\n console.error(\"Error getting chat history:\", error);\n throw new Error(\"Failed to get chat history\");\n }\n});\nexports.getChatHistory = getChatHistory;\n/**\n * Reset chat history on the server.\n * @param {string} baseURL - The base URL of the API.\n * @param {string} chatAssistantName - The name of the chat assistant.\n * @param {string} organizationName - The name of the organization.\n * @returns {Promise<string>} - A success message if the chat history is reset successfully.\n */\nconst resetChatHistory = (baseURL, chatAssistantName, organizationName, additionalHeaders) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n const response = yield axios_1.default.get(`${baseURL}/api/chat/resetHistory`, {\n params: { name: chatAssistantName, organizationName },\n withCredentials: true,\n headers: Object.assign({}, (additionalHeaders !== null && additionalHeaders !== void 0 ? additionalHeaders : {}))\n });\n return response.data; // The response is expected to be \"Chat History Reset\"\n }\n catch (error) {\n console.error(\"Error resetting chat history:\", error);\n throw new Error(\"Failed to reset chat history\");\n }\n});\nexports.resetChatHistory = resetChatHistory;\nclass ChatbotService {\n constructor(baseUrl, username, password, accessToken) {\n this.accessToken = null;\n this.baseUrl = baseUrl;\n this.username = username;\n this.password = password;\n if (accessToken) {\n this.accessToken = accessToken;\n }\n if (!accessToken && (!username || !password)) {\n throw new Error('Either accessToken or both username and password must be provided');\n }\n }\n // Login method to obtain the access token\n login() {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b;\n if (!this.username || !this.password) {\n throw new Error('Username and password are required for login');\n }\n const url = `${this.baseUrl}/auth/signInPackage`;\n const loginPayload = {\n credentials: {\n username: this.username,\n password: this.password,\n },\n };\n try {\n const response = yield axios_1.default.post(url, loginPayload, {\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n this.accessToken = response.data.accessToken;\n }\n catch (err) {\n const errorMessage = ((_b = (_a = err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message) || err.message || \"Login failed\";\n throw new Error(`Login failed: ${errorMessage}`);\n }\n });\n }\n ensureLoggedIn() {\n return __awaiter(this, void 0, void 0, function* () {\n if (!this.accessToken) {\n yield this.login();\n }\n });\n }\n toggleConsultativeMode(chatBotId_1, consultativeModePrompt_1, name_1, organizationName_1) {\n return __awaiter(this, arguments, void 0, function* (chatBotId, consultativeModePrompt, name, organizationName, isFetch = false, currentMode) {\n var _a;\n yield this.ensureLoggedIn();\n const headers = {\n authorization: `Bearer ${this.accessToken}`,\n };\n const defaultPrompt = `You are responsible for understanding the user’s needs by making sure that you gather enough relevant information before responding to achieve the goal described above. To achieve this, you will always ask clarifying follow-up questions, making sure to ask only one question at a time to maintain a focused and organized conversation. The follow-up questions should be short and crisp within 2 lines only. You should always follow a CARE framework which is about Curious:- being curious and interested to know about user needs, Acknowledge the responses given by the user and Respond with Empathy. Do not ask too many unnecessary questions.`;\n const body = {\n chatBotId,\n consultativeMode: isFetch ? currentMode : !currentMode,\n consultativeModePrompt: consultativeModePrompt || defaultPrompt,\n };\n try {\n const response = yield axios_1.default.post(`${this.baseUrl}/api/chatbot/toggleConsultativeMode?name=${name}&organizationName=${organizationName}`, body, { headers });\n return ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.isConsultativeMode) || false;\n }\n catch (error) {\n console.error(\"Error toggling consultative mode:\", error);\n throw new Error(\"Failed to toggle consultative mode\");\n }\n });\n }\n // Function to delete a chat message\n deleteChatMessage(guest_id, message_id) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.ensureLoggedIn();\n const headers = {\n authorization: `Bearer ${this.accessToken}`,\n };\n const body = {\n guest_id,\n message_id,\n };\n try {\n const response = yield axios_1.default.delete(`${this.baseUrl}/api/chat/delete-message`, {\n headers,\n data: body,\n });\n return response === null || response === void 0 ? void 0 : response.data;\n }\n catch (error) {\n console.error(\"Error deleting chat message:\", error);\n throw new Error(\"Failed to delete chat message\");\n }\n });\n }\n inheritanceflow(name, organizationName, description, agents, agentsData, selectedAssistants, prompt, vector_db, aiModel, source, target, assistant_type) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.ensureLoggedIn();\n const headers = {\n authorization: `Bearer ${this.accessToken}`,\n };\n const body = {\n name,\n organizationName,\n description,\n assistant_type,\n vector_db,\n aiModel,\n source,\n target,\n agents,\n agentsData,\n prompt,\n selectedAssistants,\n };\n try {\n const response = yield axios_1.default.post(`${this.baseUrl}/api/chatbot/createAndInheritAssistant`, body, { headers });\n return response === null || response === void 0 ? void 0 : response.data;\n }\n catch (error) {\n console.error(\"Error creating and ineheriting assistant:\", error);\n throw new Error(\"Failed to create and inherit assistant\");\n }\n });\n }\n getAgentSettings(name, organizationName) {\n return __awaiter(this, void 0, void 0, function* () {\n var _a;\n yield this.ensureLoggedIn();\n const agentSettingsIdResponse = yield axios_1.default.get(`${this.baseUrl}/api/chatbot/getAgentSettingsId?name=${name}&organizationName=${organizationName}`, {\n headers: {\n Authorization: `Bearer ${this.accessToken}`,\n },\n });\n const chatbotDetails = agentSettingsIdResponse.data;\n const agentSettingsResponse = yield axios_1.default.get(`${this.baseUrl}/api/agent/getAgentSettings?agentSettingsId=${chatbotDetails.agentSettingsId}`, {\n headers: {\n Authorization: `Bearer ${this.accessToken}`,\n },\n });\n const data = (_a = agentSettingsResponse === null || agentSettingsResponse === void 0 ? void 0 : agentSettingsResponse.data) === null || _a === void 0 ? void 0 : _a.agentSettings;\n return data;\n });\n }\n getModels() {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.ensureLoggedIn();\n const modelsResponse = yield axios_1.default.get(`${this.baseUrl}/api/agent/getAgentModels`, {\n headers: {\n Authorization: `Bearer ${this.accessToken}`,\n }\n });\n const data = modelsResponse === null || modelsResponse === void 0 ? void 0 : modelsResponse.data;\n return data;\n });\n }\n getChatbotData(chatAssistantName, organizationName, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n yield this.ensureLoggedIn();\n const chatBotData = yield axios_1.default.get(`${this.baseUrl}/api/chatbot/getChatbot?name=${chatAssistantName}&organizationName=${organizationName}`, {\n headers: Object.assign({ Authorization: `Bearer ${this.accessToken}` }, (additionalHeaders !== null && additionalHeaders !== void 0 ? additionalHeaders : {})),\n });\n return chatBotData === null || chatBotData === void 0 ? void 0 : chatBotData.data;\n }\n catch (error) {\n console.error('Error fetching chatbot data:', error);\n throw error;\n }\n });\n }\n getBasicChatbotDetails(chatAssistantName, organizationName, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n yield this.ensureLoggedIn();\n const chatBotData = yield axios_1.default.get(`${this.baseUrl}/api/chatbot/getBasicChatbotDetails?name=${chatAssistantName}&organizationName=${organizationName}`, {\n headers: Object.assign({ Authorization: `Bearer ${this.accessToken}` }, (additionalHeaders !== null && additionalHeaders !== void 0 ? additionalHeaders : {})),\n });\n return chatBotData === null || chatBotData === void 0 ? void 0 : chatBotData.data;\n }\n catch (error) {\n console.error('Error fetching chatbot data:', error);\n throw error;\n }\n });\n }\n getAccessToken(username, password, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b;\n const url = `${this.baseUrl}/auth/signInPackage`;\n const loginPayload = {\n credentials: {\n username: username,\n password: password,\n },\n };\n try {\n const response = yield axios_1.default.post(url, loginPayload, {\n headers: Object.assign({ Authorization: `Bearer ${this.accessToken}` }, (additionalHeaders !== null && additionalHeaders !== void 0 ? additionalHeaders : {})),\n });\n return this.accessToken = response.data.accessToken;\n }\n catch (err) {\n const errorMessage = ((_b = (_a = err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message) || err.message || \"Login failed\";\n throw new Error(`Login failed: ${errorMessage}`);\n }\n });\n }\n}\nexports.ChatbotService = ChatbotService;\nexports.explainabilityMap = new Map();\nconst getAssistantObj = (data, accordianMessageArray) => {\n var _a, _b, _c, _d;\n let streamedresponse = { role: \"assistant\", content: \"\", id: (0, uuid_1.v4)() };\n //orchestrator is sending message, we initially set it as normal message\n if (data.chatStream.continueChatResult.thinking_break === false &&\n data.chatStream.continueChatResult.is_orchestrator === true &&\n data.chatStream.continueChatResult.isEnd === false) {\n streamedresponse.content = replaceAsteriskInAnchor(data.chatStream.continueChatResult.message.content);\n }\n //orchestrator is sending message and thinking break is there, we add it to accordian\n if (data.chatStream.continueChatResult.thinking_break === true &&\n data.chatStream.continueChatResult.is_orchestrator === true &&\n data.chatStream.continueChatResult.isEnd === false) {\n //check for wait message deletion\n streamedresponse.content = \"\";\n accordianMessageArray.push({\n responsedata: data.chatStream.continueChatResult.message.content,\n responseFrom: data.chatStream.continueChatResult.responded_by,\n header_message: data.chatStream.continueChatResult.header_message,\n finalResponseStatus: false,\n });\n }\n //orchestrator replied with the final message, this is the final response, no need for accordian\n if (data.chatStream.continueChatResult.thinking_break === false &&\n data.chatStream.continueChatResult.is_orchestrator === true &&\n data.chatStream.continueChatResult.isEnd === true) {\n streamedresponse.content = replaceAsteriskInAnchor(data.chatStream.continueChatResult.message.content);\n }\n //agent responded it will directly be shown in collapsed form\n if (data.chatStream.continueChatResult.thinking_break === false &&\n data.chatStream.continueChatResult.is_orchestrator === false &&\n data.chatStream.continueChatResult.isEnd === false) {\n const continueChatResult = data.chatStream.continueChatResult;\n // Check for explainability_id and responded_by, and update the map\n if (continueChatResult.explainability_id &&\n continueChatResult.responded_by) {\n const explainabilityId = continueChatResult.explainability_id;\n const respondedBy = continueChatResult.responded_by;\n // Only set the value if the map does not already contain the explainabilityId\n if (!exports.explainabilityMap.has(explainabilityId)) {\n exports.explainabilityMap.set(explainabilityId, {\n responded_by: respondedBy,\n index: accordianMessageArray.length,\n });\n }\n }\n if (exports.explainabilityMap.has(data.chatStream.continueChatResult.explainability_id)) {\n const targetedIndexId = exports.explainabilityMap.get(data.chatStream.continueChatResult.explainability_id);\n const index = targetedIndexId === null || targetedIndexId === void 0 ? void 0 : targetedIndexId.index;\n //@ts-ignore\n accordianMessageArray[index] = {\n responsedata: data.chatStream.continueChatResult.message.content,\n responseFrom: data.chatStream.continueChatResult.responded_by,\n header_message: data.chatStream.continueChatResult.header_message,\n finalResponseStatus: true,\n explainability_id: (_a = data.chatStream.continueChatResult.explainability_id) !== null && _a !== void 0 ? _a : \"\",\n isParallelToolResponse: true,\n };\n }\n else {\n accordianMessageArray = [\n ...accordianMessageArray,\n {\n responsedata: data.chatStream.continueChatResult.message.content,\n responseFrom: data.chatStream.continueChatResult.responded_by,\n header_message: data.chatStream.continueChatResult.header_message,\n finalResponseStatus: true,\n explainability_id: (_b = data.chatStream.continueChatResult.explainability_id) !== null && _b !== void 0 ? _b : \"\",\n isParallelToolResponse: false,\n },\n ];\n }\n }\n //final response from agent\n if (data.chatStream.continueChatResult.thinking_break === true &&\n data.chatStream.continueChatResult.is_orchestrator === false &&\n data.chatStream.continueChatResult.isEnd === false) {\n const continueChatResult = data.chatStream.continueChatResult;\n // Check for explainability_id and responded_by, and update the map\n if (continueChatResult.explainability_id &&\n continueChatResult.responded_by) {\n const explainabilityId = continueChatResult.explainability_id;\n const respondedBy = continueChatResult.responded_by;\n // Only set the value if the map does not already contain the explainabilityId\n if (!exports.explainabilityMap.has(explainabilityId)) {\n exports.explainabilityMap.set(explainabilityId, {\n responded_by: respondedBy,\n index: accordianMessageArray.length,\n });\n }\n }\n if (exports.explainabilityMap.has(data.chatStream.continueChatResult.explainability_id)) {\n const targetedIndexId = exports.explainabilityMap.get(data.chatStream.continueChatResult.explainability_id);\n const index = targetedIndexId === null || targetedIndexId === void 0 ? void 0 : targetedIndexId.index;\n //@ts-ignore\n accordianMessageArray[index] = {\n responsedata: data.chatStream.continueChatResult.message.content,\n responseFrom: data.chatStream.continueChatResult.responded_by,\n header_message: data.chatStream.continueChatResult.header_message,\n finalResponseStatus: false,\n explainability_id: (_c = data.chatStream.continueChatResult.explainability_id) !== null && _c !== void 0 ? _c : \"\",\n isParallelToolResponse: true,\n };\n }\n else {\n accordianMessageArray.push({\n responsedata: data.chatStream.continueChatResult.message.content,\n responseFrom: data.chatStream.continueChatResult.responded_by,\n header_message: data.chatStream.continueChatResult.header_message,\n finalResponseStatus: false,\n explainability_id: (_d = data.chatStream.continueChatResult.explainability_id) !== null && _d !== void 0 ? _d : \"\",\n isParallelToolResponse: false,\n });\n }\n }\n let assistantObj = {\n orchestratorAndAgentsMessages: accordianMessageArray,\n };\n return assistantObj;\n};\nexports.getAssistantObj = getAssistantObj;\n"],"names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__setModuleDefault","__exports","v","value","__importStar","mod","result","prototype","hasOwnProperty","call","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","e","rejected","done","then","apply","__asyncValues","Symbol","asyncIterator","TypeError","i","__values","iterator","verb","n","d","settle","__importDefault","default","exports","getAssistantObj","explainabilityMap","ChatbotService","resetChatHistory","getChatHistory","deleteImage","uploadImage","stopStreaming","stopStreamingSSE","startChatStreamSSE","startChatStream","encodeParam","replaceAsteriskInAnchor","graphql_ws_1","require$$0","axios_1","ws_1","require$$2","uuid_1","require$$3","clientManager_1","require$$4","utf8","require$$5","inputString","replace","match","param","encode","params","_a","e_1","_b","_c","_d","_e","_f","_g","_h","_j","_k","_l","WEBSOCKET_URL","organizationName","chatAssistantName","selectedAIModel","replyMessage","userName","userEmailId","userId","query","requestId","customPrompt","customRootOrchestratorModelName","customRootOrchestratorModelType","enableForBackend","images","guestSessionId","chatPreviewId","isDocumentRetrieval","onStreamEvent","onStreamEnd","onError","customMetaData","multiAgentToggle","selectedAgent","runtimeAgents","isAudioAgent","agentSettings","textToSpeechAgentId","useTextToSpeech","XCrossAccessToken","userPrefferedLanguage","agent_parameter","client","createClient","assign","url","webSocketImpl","connectionParams","setClient","subscription","iterate","variables","sessionId","v4","name","aiModel","prompt","notificationSessionId","JSON","stringify","_p","_m","_o","event","console","log","chatStreamData","data","chatStream","continueChatResult","isEnd","dispose","clearClient","e_1_1","error","return","subscriptionError","matchesRequestId","API_URL","orchestratorMetadata","loadDynamicallyAttachedAgents","additionalHeaders","requestBody","headers","response","fetch","method","body","credentials","ok","Error","status","reader","getReader","decoder","TextDecoder","buffer","read","decode","stream","lines","split","pop","line","trim","startsWith","eventMatch","eventType","eventDataStr","connectedData","parse","endData","errorData","eventData","releaseLock","parseError","streamError","json","catch","success","message","messageId","reqid_1","WEBSOCKET_URL_1","args_1","reqid","stopClient","originalClient","getClient","disposeError","stopCompleted","timeoutPromise","_","setTimeout","race","e_2","subscription_1_1","subscription_1","e_2_1","subError","baseURL","imageFile","formData","FormData","append","post","fileName","withCredentials","constructor","baseUrl","username","password","accessToken","login","loginPayload","err","errorMessage","ensureLoggedIn","toggleConsultativeMode","chatBotId_1","consultativeModePrompt_1","name_1","organizationName_1","arguments","chatBotId","consultativeModePrompt","isFetch","currentMode","authorization","consultativeMode","isConsultativeMode","deleteChatMessage","guest_id","message_id","delete","inheritanceflow","description","agents","agentsData","selectedAssistants","vector_db","source","target","assistant_type","getAgentSettings","chatbotDetails","Authorization","agentSettingsResponse","agentSettingsId","getModels","modelsResponse","getChatbotData","chatBotData","getBasicChatbotDetails","getAccessToken","Map","accordianMessageArray","thinking_break","is_orchestrator","content","push","responsedata","responseFrom","responded_by","header_message","finalResponseStatus","explainability_id","explainabilityId","respondedBy","has","set","index","length","targetedIndexId","isParallelToolResponse","orchestratorAndAgentsMessages"],"mappings":"6bACA,IAAIA,EAAmBC,aAAQA,EAAAA,UAAKD,kBAAqBE,OAAOC,OAAM,SAAaC,EAAGC,EAAGC,EAAGC,QAC7EC,IAAPD,IAAkBA,EAAKD,GAC3B,IAAIG,EAAOP,OAAOQ,yBAAyBL,EAAGC,GACzCG,KAAS,QAASA,GAAQJ,EAAEM,WAAaF,EAAKG,UAAYH,EAAKI,gBAClEJ,EAAO,CAAEK,YAAY,EAAMC,IAAK,WAAa,OAAOV,EAAEC,EAAG,IAE3DJ,OAAOc,eAAeZ,EAAGG,EAAIE,EAChC,EAAA,SAAcL,EAAGC,EAAGC,EAAGC,QACTC,IAAPD,IAAkBA,EAAKD,GAC3BF,EAAEG,GAAMF,EAAEC,EACb,GACGW,EAAsBhB,EAAIiB,WAAIjB,YAAKgB,qBAAwBf,OAAOC,OAA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I,EAAmB1I,EAAmByI,kBACtCE,EAAc3I,EAAmBsI,aAElC5O,EAAQE,kBAAkBgP,IAAIF,IAC/BhP,EAAQE,kBAAkBiP,IAAIH,EAAkB,CAC5CJ,aAAcK,EACdG,MAAOf,EAAsBgB,QAGjD,CACQ,GAAIrP,EAAQE,kBAAkBgP,IAAI9I,EAAKC,WAAWC,mBAAmByI,mBAAoB,CACrF,MAAMO,EAAkBtP,EAAQE,kBAAkB3C,IAAI6I,EAAKC,WAAWC,mBAAmByI,mBAGzFV,EAFciB,aAAyD,EAASA,EAAgBF,OAEjE,CAC3BV,aAActI,EAAKC,WAAWC,mBAAmBmD,QAAQ+E,QACzDG,aAAcvI,EAAKC,WAAWC,mBAAmBsI,aACjDC,eAAgBzI,EAAKC,WAAWC,mBAAmBuI,eACnDC,qBAAqB,EACrBC,kBAAmF,QAA/D7M,EAAKkE,EAAKC,WAAWC,mBAAmByI,yBAAsC,IAAP7M,EAAgBA,EAAK,GAChHqN,wBAAwB,EAExC,MAEYlB,EAAsBI,KAAK,CACvBC,aAActI,EAAKC,WAAWC,mBAAmBmD,QAAQ+E,QACzDG,aAAcvI,EAAKC,WAAWC,mBAAmBsI,aACjDC,eAAgBzI,EAAKC,WAAWC,mBAAmBuI,eACnDC,qBAAqB,EACrBC,kBAAmF,QAA/D5M,EAAKiE,EAAKC,WAAWC,mBAAmByI,yBAAsC,IAAP5M,EAAgBA,EAAK,GAChHoN,wBAAwB,GAGxC,CAII,MAHmB,CACfC,8BAA+BnB"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@e-llm-studio/streaming-response/dist/index.js"],"sourcesContent":["\"use strict\";\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nvar __asyncValues = (this && this.__asyncValues) || function (o) {\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\n var m = o[Symbol.asyncIterator], i;\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getAssistantObj = exports.explainabilityMap = exports.ChatbotService = exports.resetChatHistory = exports.getChatHistory = exports.deleteImage = exports.uploadImage = exports.stopStreaming = exports.stopStreamingSSE = exports.startChatStreamSSE = exports.startChatStream = exports.encodeParam = void 0;\nexports.replaceAsteriskInAnchor = replaceAsteriskInAnchor;\nconst graphql_ws_1 = require(\"graphql-ws\");\nconst axios_1 = __importDefault(require(\"axios\"));\nconst ws_1 = __importDefault(require(\"ws\"));\nconst uuid_1 = require(\"uuid\");\nconst clientManager_1 = __importDefault(require(\"./helperClasses/clientManager\"));\nconst utf8 = __importStar(require(\"utf8\"));\n// Utils\nfunction replaceAsteriskInAnchor(inputString) {\n // Regular expression to match an anchor tag with asterisk inside\n const regex = /<a [^>]*>.*?<\\/a>/g;\n // Check if the inputString contains an anchor tag with asterisk and replace it\n const replacedString = inputString === null || inputString === void 0 ? void 0 : inputString.replace(regex, (match) => {\n // Replace asterisk inside the anchor tag with *\n return match === null || match === void 0 ? void 0 : match.replace(/\\*/g, \"*\");\n });\n return replacedString;\n}\nconst encodeParam = (param) => {\n return utf8.encode(param);\n};\nexports.encodeParam = encodeParam;\n/**\n * Main function to start streaming chat messages.\n * It returns a continuous stream of event data, and the user can handle the stream data with the provided callbacks..\n */\nconst startChatStream = (params) => __awaiter(void 0, void 0, void 0, function* () {\n var _a, e_1, _b, _c;\n var _d, _e, _f, _g, _h, _j, _k, _l;\n const { WEBSOCKET_URL, organizationName, chatAssistantName, selectedAIModel, replyMessage = \"\", userName, userEmailId, userId, query, requestId, customPrompt = \"\", customRootOrchestratorModelName, customRootOrchestratorModelType, \n // notificationSessionId = '',\n enableForBackend = false, images, guestSessionId, chatPreviewId, isDocumentRetrieval, onStreamEvent, onStreamEnd, onError, customMetaData, multiAgentToggle, selectedAgent, runtimeAgents, isAudioAgent, agentSettings, textToSpeechAgentId, useTextToSpeech, XCrossAccessToken, userPrefferedLanguage, agent_parameter } = params;\n try {\n const client = (0, graphql_ws_1.createClient)(Object.assign(Object.assign({ url: WEBSOCKET_URL !== null && WEBSOCKET_URL !== void 0 ? WEBSOCKET_URL : \"\" }, (enableForBackend ? { webSocketImpl: ws_1.default } : {})), { connectionParams: {\n 'X-Cross-Domain-Access-Token': XCrossAccessToken,\n } }));\n clientManager_1.default.setClient(client, requestId);\n const subscription = client.iterate({\n query: `subscription Subscription($sessionId: String!,\n $name:String!,\n $organizationName:String!,\n $aiModel:String!, \n $prompt:String!, \n $userName:String!, \n $userEmailId:String!, \n $userId:String!, \n $requestId:String!,\n $replyMessage:String!,\n $customPrompt:String,\n $customRootOrchestratorModelName:String,\n $customRootOrchestratorModelType:String,\n $notificationSessionId:String, \n $images:String,\n $chatPreviewId:String,\n $guestSessionId:String,\n $isDocumentRetrieval:Boolean,\n $customMetaData: JSON,\n $multiAgentToggle: Boolean, \n $selectedAgent: String,\n $runtimeAgents: [JSON],\n $isAudioAgent:Boolean,\n $agentSettings: JSON,\n $textToSpeechAgentId:String,\n $useTextToSpeech:Boolean,\n $userPrefferedLanguage:String\n $agent_parameter:JSON\n ),\n {\n chatStream(sessionId: $sessionId, \n name:$name, \n organizationName:$organizationName, \n aiModel:$aiModel, \n prompt:$prompt, \n userName:$userName,\n userEmailId:$userEmailId, \n userId:$userId, \n requestId:$requestId, \n replyMessage:$replyMessage, \n customPrompt:$customPrompt,\n customRootOrchestratorModelName:$customRootOrchestratorModelName,\n customRootOrchestratorModelType:$customRootOrchestratorModelType,\n notificationSessionId:$notificationSessionId, \n images:$images,\n isDocumentRetrieval:$isDocumentRetrieval,\n chatPreviewId:$chatPreviewId,\n guestSessionId: $guestSessionId,\n customMetaData: $customMetaData,\n multiAgentToggle: $multiAgentToggle, \n selectedAgent: $selectedAgent,\n runtimeAgents: $runtimeAgents,\n isAudioAgent:$isAudioAgent,\n agentSettings: $agentSettings,\n textToSpeechAgentId:$textToSpeechAgentId,\n useTextToSpeech:$useTextToSpeech,\n userPrefferedLanguage:$userPrefferedLanguage\n agent_parameter:$agent_parameter) {\n \n continueChatResult {\n isEnd\n thinking_break\n is_orchestrator\n is_agent\n responded_by\n header_message\n error_state\n confidenceScore\n requestId\n replyMessage\n confidenceScore\n requestId\n sessionId\n card_details\n message {\n citations {\n citation_number\n customMetaData\n title\n url\n description\n metadata {\n page_index\n display_url\n display_name\n }\n }\n annotations {\n citations {\n citation_number\n title\n url\n description\n metadata {\n page_index\n display_url\n display_name\n }\n }\n text\n }\n citationDisplayType\n next_query_suggestions {\n query\n }\n response_type\n content\n id\n }\n resourceId\n speechData\n agent_metadata\n }\n }\n }`,\n variables: {\n sessionId: `${organizationName}-${chatAssistantName}-${(0, uuid_1.v4)()}`,\n name: (0, exports.encodeParam)(chatAssistantName),\n organizationName: (0, exports.encodeParam)(organizationName),\n guestSessionId: (_d = (0, exports.encodeParam)(guestSessionId !== null && guestSessionId !== void 0 ? guestSessionId : \"\")) !== null && _d !== void 0 ? _d : \"\",\n chatPreviewId: (_e = (0, exports.encodeParam)(chatPreviewId !== null && chatPreviewId !== void 0 ? chatPreviewId : \"\")) !== null && _e !== void 0 ? _e : \"\",\n aiModel: (0, exports.encodeParam)(selectedAIModel),\n prompt: replyMessage === \"\"\n ? query\n : (0, exports.encodeParam)(replyMessage + \"\\n\" + query),\n userName: (0, exports.encodeParam)(userName),\n userEmailId: (0, exports.encodeParam)(userEmailId),\n userId: (0, exports.encodeParam)(userId),\n requestId: (0, exports.encodeParam)(requestId),\n replyMessage: replyMessage,\n customPrompt: customPrompt,\n customRootOrchestratorModelName: customRootOrchestratorModelName,\n customRootOrchestratorModelType: customRootOrchestratorModelType,\n notificationSessionId: `chat-session-${(0, uuid_1.v4)()}`,\n images: JSON.stringify(images),\n isDocumentRetrieval: isDocumentRetrieval,\n customMetaData: customMetaData,\n multiAgentToggle: multiAgentToggle,\n selectedAgent: selectedAgent,\n runtimeAgents: runtimeAgents,\n isAudioAgent: isAudioAgent !== null && isAudioAgent !== void 0 ? isAudioAgent : false,\n agentSettings: agentSettings,\n textToSpeechAgentId: textToSpeechAgentId !== null && textToSpeechAgentId !== void 0 ? textToSpeechAgentId : '',\n useTextToSpeech: useTextToSpeech !== null && useTextToSpeech !== void 0 ? useTextToSpeech : false,\n userPrefferedLanguage: userPrefferedLanguage !== null && userPrefferedLanguage !== void 0 ? userPrefferedLanguage : null,\n agent_parameter: agent_parameter !== null && agent_parameter !== void 0 ? agent_parameter : null\n },\n });\n try {\n try {\n for (var _m = true, _o = __asyncValues(subscription), _p; _p = yield _o.next(), _a = _p.done, !_a; _m = true) {\n _c = _p.value;\n _m = false;\n const event = _c;\n // if (!ClientManager.matchesRequestId(requestId)) {\n // await client.dispose();\n // ClientManager.clearClient();\n // break;\n // }\n console.log(\"event:\", event);\n // console.log(\"event.data:\", event?.data);\n const chatStreamData = event.data;\n // Trigger user callback with the new stream event data\n onStreamEvent(chatStreamData);\n if ((_h = (_g = (_f = event === null || event === void 0 ? void 0 : event.data) === null || _f === void 0 ? void 0 : _f.chatStream) === null || _g === void 0 ? void 0 : _g.continueChatResult) === null || _h === void 0 ? void 0 : _h.isEnd) {\n console.log(\"IsEnd found succesfully for \", (_l = (_k = (_j = event === null || event === void 0 ? void 0 : event.data) === null || _j === void 0 ? void 0 : _j.chatStream) === null || _k === void 0 ? void 0 : _k.continueChatResult) === null || _l === void 0 ? void 0 : _l.requestId);\n if (onStreamEnd) {\n onStreamEnd(chatStreamData);\n }\n yield client.dispose();\n clientManager_1.default.clearClient();\n break;\n }\n }\n }\n catch (e_1_1) { e_1 = { error: e_1_1 }; }\n finally {\n try {\n if (!_m && !_a && (_b = _o.return)) yield _b.call(_o);\n }\n finally { if (e_1) throw e_1.error; }\n }\n }\n catch (subscriptionError) {\n if (onError)\n onError(subscriptionError);\n // Clean up on error\n yield client.dispose();\n clientManager_1.default.clearClient();\n }\n finally {\n // Clean up if the loop breaks\n if (clientManager_1.default.matchesRequestId(requestId)) {\n client.dispose();\n clientManager_1.default.clearClient();\n }\n }\n }\n catch (error) {\n console.log(\"Streaming error:\", error);\n if (onError) {\n onError(error);\n }\n }\n});\nexports.startChatStream = startChatStream;\nconst startChatStreamSSE = (params) => __awaiter(void 0, void 0, void 0, function* () {\n var _a, _b;\n const { API_URL, organizationName, chatAssistantName, selectedAIModel, replyMessage = \"\", userName, userEmailId, userId, query, requestId, customPrompt = \"\", customRootOrchestratorModelName, customRootOrchestratorModelType, images, guestSessionId, chatPreviewId, isDocumentRetrieval, onStreamEvent, onStreamEnd, onError, customMetaData, multiAgentToggle, selectedAgent, runtimeAgents, isAudioAgent, agentSettings, textToSpeechAgentId, useTextToSpeech, XCrossAccessToken, userPrefferedLanguage, agent_parameter, orchestratorMetadata, loadDynamicallyAttachedAgents, additionalHeaders = {}, } = params;\n try {\n // Prepare request body\n const requestBody = {\n sessionId: `${organizationName}-${chatAssistantName}-${(0, uuid_1.v4)()}`,\n name: (0, exports.encodeParam)(chatAssistantName),\n organizationName: (0, exports.encodeParam)(organizationName),\n guestSessionId: (0, exports.encodeParam)(guestSessionId !== null && guestSessionId !== void 0 ? guestSessionId : \"\"),\n chatPreviewId: (0, exports.encodeParam)(chatPreviewId !== null && chatPreviewId !== void 0 ? chatPreviewId : \"\"),\n aiModel: (0, exports.encodeParam)(selectedAIModel),\n prompt: replyMessage === \"\" ? query : (0, exports.encodeParam)(replyMessage + \"\\n\" + query),\n userName: (0, exports.encodeParam)(userName),\n userEmailId: (0, exports.encodeParam)(userEmailId),\n userId: (0, exports.encodeParam)(userId),\n requestId: (0, exports.encodeParam)(requestId),\n replyMessage: replyMessage,\n customPrompt: customPrompt,\n customRootOrchestratorModelName: customRootOrchestratorModelName,\n customRootOrchestratorModelType: customRootOrchestratorModelType,\n notificationSessionId: `chat-session-${(0, uuid_1.v4)()}`,\n images: JSON.stringify(images !== null && images !== void 0 ? images : {}),\n isDocumentRetrieval: isDocumentRetrieval !== null && isDocumentRetrieval !== void 0 ? isDocumentRetrieval : false,\n customMetaData: customMetaData,\n multiAgentToggle: multiAgentToggle !== null && multiAgentToggle !== void 0 ? multiAgentToggle : false,\n selectedAgent: selectedAgent !== null && selectedAgent !== void 0 ? selectedAgent : \"\",\n runtimeAgents: runtimeAgents,\n isAudioAgent: isAudioAgent !== null && isAudioAgent !== void 0 ? isAudioAgent : false,\n agentSettings: agentSettings,\n textToSpeechAgentId: textToSpeechAgentId !== null && textToSpeechAgentId !== void 0 ? textToSpeechAgentId : \"\",\n useTextToSpeech: useTextToSpeech !== null && useTextToSpeech !== void 0 ? useTextToSpeech : false,\n userPrefferedLanguage: userPrefferedLanguage !== null && userPrefferedLanguage !== void 0 ? userPrefferedLanguage : null,\n agent_parameter: agent_parameter !== null && agent_parameter !== void 0 ? agent_parameter : null,\n orchestratorMetadata: orchestratorMetadata !== null && orchestratorMetadata !== void 0 ? orchestratorMetadata : null,\n loadDynamicallyAttachedAgents: loadDynamicallyAttachedAgents !== null && loadDynamicallyAttachedAgents !== void 0 ? loadDynamicallyAttachedAgents : [],\n };\n // Prepare headers\n const headers = Object.assign({ \"Content-Type\": \"application/json\" }, additionalHeaders);\n if (XCrossAccessToken) {\n headers[\"X-Cross-Domain-Access-Token\"] = XCrossAccessToken;\n }\n // Make POST request to SSE endpoint\n const response = yield fetch(`${API_URL}/api/sse/chat-stream`, {\n method: \"POST\",\n headers: headers,\n body: JSON.stringify(requestBody),\n credentials: \"include\",\n });\n // Check response status\n if (!response.ok) {\n throw new Error(`HTTP error! status: ${response.status}`);\n }\n // Get reader from response body\n const reader = (_a = response.body) === null || _a === void 0 ? void 0 : _a.getReader();\n if (!reader) {\n throw new Error(\"Response body is not readable\");\n }\n const decoder = new TextDecoder();\n let buffer = \"\";\n try {\n while (true) {\n const { done, value } = yield reader.read();\n if (done) {\n // console.log(\"[SSE] Stream Done complete - connection closed\");\n break;\n }\n // Decode binary data to text\n buffer += decoder.decode(value, { stream: true });\n // Split into complete SSE messages (messages end with \\n\\n)\n const lines = buffer.split(\"\\n\\n\");\n buffer = lines.pop() || \"\";\n // Process each complete message\n for (const line of lines) {\n if (!line.trim())\n continue;\n if (line.startsWith(\"event:\")) {\n const eventMatch = line.match(/event: (\\w+)\\ndata: ([\\s\\S]+)/);\n if (eventMatch) {\n const [, eventType, eventDataStr] = eventMatch;\n try {\n // Handle different event types\n if (eventType === \"connected\") {\n const connectedData = JSON.parse(eventDataStr);\n console.log(\"[SSE] Connected event received:\", connectedData);\n continue;\n }\n if (eventType === \"end\") {\n const endData = JSON.parse(eventDataStr);\n console.log(\"[SSE] End event received:\", endData);\n break;\n }\n if (eventType === \"error\") {\n const errorData = JSON.parse(eventDataStr);\n console.error(\"[SSE] Error event received:\", errorData);\n if (onError) {\n onError(new Error(errorData.error || \"SSE stream error\"));\n }\n break;\n }\n if (eventType === \"chatStream\") {\n // Parse the JSON data\n const eventData = JSON.parse(eventDataStr);\n // eventData structure from backend: { continueChatResult: {...} }\n // Wrap it to match GraphQL format: { chatStream: { continueChatResult: {...} } }\n const chatStreamData = {\n chatStream: eventData\n };\n // Pass raw data to callback (same as GraphQL approach)\n onStreamEvent(chatStreamData);\n // Check if this is the final message\n if ((_b = eventData === null || eventData === void 0 ? void 0 : eventData.continueChatResult) === null || _b === void 0 ? void 0 : _b.isEnd) {\n // console.log(\n // \"[SSE] IsEnd found successfully for\",\n // eventData?.continueChatResult?.requestId\n // );\n if (onStreamEnd) {\n onStreamEnd(chatStreamData);\n }\n // Exit the while loop\n reader.releaseLock();\n return;\n }\n }\n }\n catch (parseError) {\n console.error(\"[SSE] Error parsing event data:\", parseError);\n console.error(\"[SSE] Raw event data:\", eventDataStr);\n }\n }\n }\n }\n }\n }\n catch (streamError) {\n console.error(\"[SSE] Stream reading error:\", streamError);\n if (onError) {\n onError(streamError);\n }\n }\n finally {\n try {\n reader.releaseLock();\n }\n catch (e) {\n // Reader might already be released\n }\n }\n }\n catch (error) {\n console.error(\"[SSE] Streaming error:\", error);\n if (onError) {\n onError(error);\n }\n throw error;\n }\n});\nexports.startChatStreamSSE = startChatStreamSSE;\n/**\n * Stop an ongoing SSE streaming session\n * @param {string} requestId - The request ID to stop\n * @param {string} API_URL - The base API URL\n * @param {Record<string, string>} additionalHeaders - Optional additional headers\n * @returns {Promise<any>} - Success response or error\n */\nconst stopStreamingSSE = (requestId, API_URL, additionalHeaders) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n // Prepare headers\n const headers = Object.assign({ \"Content-Type\": \"application/json\" }, additionalHeaders);\n const response = yield fetch(`${API_URL}/api/sse/stop-stream`, {\n method: \"POST\",\n headers: headers,\n body: JSON.stringify({ requestId }),\n credentials: \"include\",\n });\n // Check response status\n if (!response.ok) {\n const errorData = yield response.json().catch(() => ({}));\n throw new Error(errorData.error || `HTTP error! status: ${response.status}`);\n }\n // Parse success response\n const result = yield response.json();\n return {\n success: true,\n message: result.message || \"Streaming stopped successfully\",\n requestId: result.requestId,\n messageId: result.messageId,\n };\n }\n catch (error) {\n console.error(\"[SSE Stop] Error stopping stream:\", error);\n return {\n success: false,\n error: error.message || \"Failed to stop streaming\",\n };\n }\n});\nexports.stopStreamingSSE = stopStreamingSSE;\nconst stopStreaming = (reqid_1, WEBSOCKET_URL_1, ...args_1) => __awaiter(void 0, [reqid_1, WEBSOCKET_URL_1, ...args_1], void 0, function* (reqid, WEBSOCKET_URL, enableForBackend = false) {\n let stopClient = null;\n try {\n // First, try to close the original streaming connection\n if (clientManager_1.default.matchesRequestId(reqid)) {\n const originalClient = clientManager_1.default.getClient();\n if (originalClient) {\n try {\n yield originalClient.dispose();\n clientManager_1.default.clearClient();\n }\n catch (disposeError) {\n console.error('Error disposing original client:', disposeError);\n }\n }\n }\n // Create a new client instance for the stop request\n stopClient = (0, graphql_ws_1.createClient)(Object.assign({ url: WEBSOCKET_URL }, (enableForBackend ? { webSocketImpl: ws_1.default } : {})));\n const subscription = stopClient.iterate({\n query: `subscription ReceiveRequestId($requestId: String!) {\n receiveRequestId(requestId: $requestId) {\n requestId\n message\n }\n }`,\n variables: {\n requestId: reqid,\n },\n });\n let stopCompleted = false;\n try {\n // Set a shorter timeout for the stop request\n const timeoutPromise = new Promise((_, reject) => {\n setTimeout(() => reject(new Error('Stop streaming timeout')), 1500);\n });\n // Race between subscription and timeout\n yield Promise.race([\n (() => __awaiter(void 0, void 0, void 0, function* () {\n var _a, e_2, _b, _c;\n try {\n for (var _d = true, subscription_1 = __asyncValues(subscription), subscription_1_1; subscription_1_1 = yield subscription_1.next(), _a = subscription_1_1.done, !_a; _d = true) {\n _c = subscription_1_1.value;\n _d = false;\n const event = _c;\n stopCompleted = true;\n return event;\n }\n }\n catch (e_2_1) { e_2 = { error: e_2_1 }; }\n finally {\n try {\n if (!_d && !_a && (_b = subscription_1.return)) yield _b.call(subscription_1);\n }\n finally { if (e_2) throw e_2.error; }\n }\n }))(),\n timeoutPromise\n ]);\n // If we reached here without an error, consider it a success\n return {\n success: true,\n message: 'Streaming stopped successfully',\n stopCompleted\n };\n }\n catch (subError) {\n // If original client was disposed, consider it a success despite subscription timeout\n if (clientManager_1.default.matchesRequestId(reqid) === false) {\n return {\n success: true,\n message: 'Stream stopped via client disposal',\n stopCompleted: true\n };\n }\n throw subError;\n }\n }\n catch (error) {\n // Only return error if it's not a timeout and original client wasn't disposed\n if (error.message !== 'Stop streaming timeout' || clientManager_1.default.matchesRequestId(reqid)) {\n console.error(\"Error in stopStreaming:\", error);\n return { success: false, error: error.message || 'Unknown error occurred' };\n }\n // If we got here with a timeout but original client was disposed, it's still a success\n return {\n success: true,\n message: 'Stream stopped successfully despite timeout',\n stopCompleted: true\n };\n }\n finally {\n // Clean up the stop client\n if (stopClient) {\n try {\n yield stopClient.dispose();\n }\n catch (disposeError) {\n console.error('Error disposing stop client:', disposeError);\n }\n }\n }\n});\nexports.stopStreaming = stopStreaming;\n/**\n * Upload an image file to the server.\n * @param {string} baseURL - The base URL of the API.\n * @param {File} imageFile - The image file to be uploaded.\n * @returns {Promise<string>} - A success message if the image is uploaded successfully.\n */\nconst uploadImage = (baseURL, imageFile) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n const formData = new FormData();\n formData.append(\"file\", imageFile);\n const response = yield axios_1.default.post(`${baseURL}/api/chatbot/storeImageData`, formData, {\n headers: {\n \"Content-Type\": \"multipart/form-data\",\n },\n });\n return response.data.message;\n }\n catch (error) {\n console.error(\"Error uploading image:\", error);\n throw new Error(\"Image upload failed\");\n }\n});\nexports.uploadImage = uploadImage;\n/**\n * Delete an image from the server.\n * @param {string} baseURL - The base URL of the API..\n * @param {string} name - The user or entity name associated with the image.\n * @param {string} fileName - The name of the image file to delete.\n * @returns {Promise<string>} - A success message if the image is deleted successfully.\n */\nconst deleteImage = (baseURL, name, fileName) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n const response = yield axios_1.default.post(`${baseURL}/api/chatbot/deleteImage`, {\n name,\n fileName,\n });\n return response.data;\n }\n catch (error) {\n console.error(\"Error deleting image:\", error);\n throw new Error(\"Image deletion failed\");\n }\n});\nexports.deleteImage = deleteImage;\n/**\n * Get chat history from the server.\n * @param {string} baseURL - The base URL of the API.\n * @param {string} chatAssistantName - The name of the chat assistant.\n * @param {string} organizationName - The name of the organization.\n * @returns {Promise<any[]>} - The chat history as an array.\n */\nconst getChatHistory = (baseURL, chatAssistantName, organizationName, additionalHeaders) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n const response = yield axios_1.default.get(`${baseURL}/api/chat/history`, {\n params: { name: chatAssistantName, organizationName },\n withCredentials: true,\n headers: Object.assign({}, (additionalHeaders !== null && additionalHeaders !== void 0 ? additionalHeaders : {}))\n });\n return response.data;\n }\n catch (error) {\n console.error(\"Error getting chat history:\", error);\n throw new Error(\"Failed to get chat history\");\n }\n});\nexports.getChatHistory = getChatHistory;\n/**\n * Reset chat history on the server.\n * @param {string} baseURL - The base URL of the API.\n * @param {string} chatAssistantName - The name of the chat assistant.\n * @param {string} organizationName - The name of the organization.\n * @returns {Promise<string>} - A success message if the chat history is reset successfully.\n */\nconst resetChatHistory = (baseURL, chatAssistantName, organizationName, additionalHeaders) => __awaiter(void 0, void 0, void 0, function* () {\n try {\n const response = yield axios_1.default.get(`${baseURL}/api/chat/resetHistory`, {\n params: { name: chatAssistantName, organizationName },\n withCredentials: true,\n headers: Object.assign({}, (additionalHeaders !== null && additionalHeaders !== void 0 ? additionalHeaders : {}))\n });\n return response.data; // The response is expected to be \"Chat History Reset\"\n }\n catch (error) {\n console.error(\"Error resetting chat history:\", error);\n throw new Error(\"Failed to reset chat history\");\n }\n});\nexports.resetChatHistory = resetChatHistory;\nclass ChatbotService {\n constructor(baseUrl, username, password, accessToken) {\n this.accessToken = null;\n this.baseUrl = baseUrl;\n this.username = username;\n this.password = password;\n if (accessToken) {\n this.accessToken = accessToken;\n }\n if (!accessToken && (!username || !password)) {\n throw new Error('Either accessToken or both username and password must be provided');\n }\n }\n // Login method to obtain the access token\n login() {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b;\n if (!this.username || !this.password) {\n throw new Error('Username and password are required for login');\n }\n const url = `${this.baseUrl}/auth/signInPackage`;\n const loginPayload = {\n credentials: {\n username: this.username,\n password: this.password,\n },\n };\n try {\n const response = yield axios_1.default.post(url, loginPayload, {\n headers: {\n \"Content-Type\": \"application/json\",\n },\n });\n this.accessToken = response.data.accessToken;\n }\n catch (err) {\n const errorMessage = ((_b = (_a = err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message) || err.message || \"Login failed\";\n throw new Error(`Login failed: ${errorMessage}`);\n }\n });\n }\n ensureLoggedIn() {\n return __awaiter(this, void 0, void 0, function* () {\n if (!this.accessToken) {\n yield this.login();\n }\n });\n }\n toggleConsultativeMode(chatBotId_1, consultativeModePrompt_1, name_1, organizationName_1) {\n return __awaiter(this, arguments, void 0, function* (chatBotId, consultativeModePrompt, name, organizationName, isFetch = false, currentMode) {\n var _a;\n yield this.ensureLoggedIn();\n const headers = {\n authorization: `Bearer ${this.accessToken}`,\n };\n const defaultPrompt = `You are responsible for understanding the user’s needs by making sure that you gather enough relevant information before responding to achieve the goal described above. To achieve this, you will always ask clarifying follow-up questions, making sure to ask only one question at a time to maintain a focused and organized conversation. The follow-up questions should be short and crisp within 2 lines only. You should always follow a CARE framework which is about Curious:- being curious and interested to know about user needs, Acknowledge the responses given by the user and Respond with Empathy. Do not ask too many unnecessary questions.`;\n const body = {\n chatBotId,\n consultativeMode: isFetch ? currentMode : !currentMode,\n consultativeModePrompt: consultativeModePrompt || defaultPrompt,\n };\n try {\n const response = yield axios_1.default.post(`${this.baseUrl}/api/chatbot/toggleConsultativeMode?name=${name}&organizationName=${organizationName}`, body, { headers });\n return ((_a = response === null || response === void 0 ? void 0 : response.data) === null || _a === void 0 ? void 0 : _a.isConsultativeMode) || false;\n }\n catch (error) {\n console.error(\"Error toggling consultative mode:\", error);\n throw new Error(\"Failed to toggle consultative mode\");\n }\n });\n }\n // Function to delete a chat message\n deleteChatMessage(guest_id, message_id) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.ensureLoggedIn();\n const headers = {\n authorization: `Bearer ${this.accessToken}`,\n };\n const body = {\n guest_id,\n message_id,\n };\n try {\n const response = yield axios_1.default.delete(`${this.baseUrl}/api/chat/delete-message`, {\n headers,\n data: body,\n });\n return response === null || response === void 0 ? void 0 : response.data;\n }\n catch (error) {\n console.error(\"Error deleting chat message:\", error);\n throw new Error(\"Failed to delete chat message\");\n }\n });\n }\n inheritanceflow(name, organizationName, description, agents, agentsData, selectedAssistants, prompt, vector_db, aiModel, source, target, assistant_type) {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.ensureLoggedIn();\n const headers = {\n authorization: `Bearer ${this.accessToken}`,\n };\n const body = {\n name,\n organizationName,\n description,\n assistant_type,\n vector_db,\n aiModel,\n source,\n target,\n agents,\n agentsData,\n prompt,\n selectedAssistants,\n };\n try {\n const response = yield axios_1.default.post(`${this.baseUrl}/api/chatbot/createAndInheritAssistant`, body, { headers });\n return response === null || response === void 0 ? void 0 : response.data;\n }\n catch (error) {\n console.error(\"Error creating and ineheriting assistant:\", error);\n throw new Error(\"Failed to create and inherit assistant\");\n }\n });\n }\n getAgentSettings(name, organizationName) {\n return __awaiter(this, void 0, void 0, function* () {\n var _a;\n yield this.ensureLoggedIn();\n const agentSettingsIdResponse = yield axios_1.default.get(`${this.baseUrl}/api/chatbot/getAgentSettingsId?name=${name}&organizationName=${organizationName}`, {\n headers: {\n Authorization: `Bearer ${this.accessToken}`,\n },\n });\n const chatbotDetails = agentSettingsIdResponse.data;\n const agentSettingsResponse = yield axios_1.default.get(`${this.baseUrl}/api/agent/getAgentSettings?agentSettingsId=${chatbotDetails.agentSettingsId}`, {\n headers: {\n Authorization: `Bearer ${this.accessToken}`,\n },\n });\n const data = (_a = agentSettingsResponse === null || agentSettingsResponse === void 0 ? void 0 : agentSettingsResponse.data) === null || _a === void 0 ? void 0 : _a.agentSettings;\n return data;\n });\n }\n getModels() {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.ensureLoggedIn();\n const modelsResponse = yield axios_1.default.get(`${this.baseUrl}/api/agent/getAgentModels`, {\n headers: {\n Authorization: `Bearer ${this.accessToken}`,\n }\n });\n const data = modelsResponse === null || modelsResponse === void 0 ? void 0 : modelsResponse.data;\n return data;\n });\n }\n getChatbotData(chatAssistantName, organizationName, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n yield this.ensureLoggedIn();\n const chatBotData = yield axios_1.default.get(`${this.baseUrl}/api/chatbot/getChatbot?name=${chatAssistantName}&organizationName=${organizationName}`, {\n headers: Object.assign({ Authorization: `Bearer ${this.accessToken}` }, (additionalHeaders !== null && additionalHeaders !== void 0 ? additionalHeaders : {})),\n });\n return chatBotData === null || chatBotData === void 0 ? void 0 : chatBotData.data;\n }\n catch (error) {\n console.error('Error fetching chatbot data:', error);\n throw error;\n }\n });\n }\n getBasicChatbotDetails(chatAssistantName, organizationName, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n try {\n yield this.ensureLoggedIn();\n const chatBotData = yield axios_1.default.get(`${this.baseUrl}/api/chatbot/getBasicChatbotDetails?name=${chatAssistantName}&organizationName=${organizationName}`, {\n headers: Object.assign({ Authorization: `Bearer ${this.accessToken}` }, (additionalHeaders !== null && additionalHeaders !== void 0 ? additionalHeaders : {})),\n });\n return chatBotData === null || chatBotData === void 0 ? void 0 : chatBotData.data;\n }\n catch (error) {\n console.error('Error fetching chatbot data:', error);\n throw error;\n }\n });\n }\n getAccessToken(username, password, additionalHeaders) {\n return __awaiter(this, void 0, void 0, function* () {\n var _a, _b;\n const url = `${this.baseUrl}/auth/signInPackage`;\n const loginPayload = {\n credentials: {\n username: username,\n password: password,\n },\n };\n try {\n const response = yield axios_1.default.post(url, loginPayload, {\n headers: Object.assign({ Authorization: `Bearer ${this.accessToken}` }, (additionalHeaders !== null && additionalHeaders !== void 0 ? additionalHeaders : {})),\n });\n return this.accessToken = response.data.accessToken;\n }\n catch (err) {\n const errorMessage = ((_b = (_a = err.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message) || err.message || \"Login failed\";\n throw new Error(`Login failed: ${errorMessage}`);\n }\n });\n }\n}\nexports.ChatbotService = ChatbotService;\nexports.explainabilityMap = new Map();\nconst getAssistantObj = (data, accordianMessageArray) => {\n var _a, _b, _c, _d;\n let streamedresponse = { role: \"assistant\", content: \"\", id: (0, uuid_1.v4)() };\n //orchestrator is sending message, we initially set it as normal message\n if (data.chatStream.continueChatResult.thinking_break === false &&\n data.chatStream.continueChatResult.is_orchestrator === true &&\n data.chatStream.continueChatResult.isEnd === false) {\n streamedresponse.content = replaceAsteriskInAnchor(data.chatStream.continueChatResult.message.content);\n }\n //orchestrator is sending message and thinking break is there, we add it to accordian\n if (data.chatStream.continueChatResult.thinking_break === true &&\n data.chatStream.continueChatResult.is_orchestrator === true &&\n data.chatStream.continueChatResult.isEnd === false) {\n //check for wait message deletion\n streamedresponse.content = \"\";\n accordianMessageArray.push({\n responsedata: data.chatStream.continueChatResult.message.content,\n responseFrom: data.chatStream.continueChatResult.responded_by,\n header_message: data.chatStream.continueChatResult.header_message,\n finalResponseStatus: false,\n });\n }\n //orchestrator replied with the final message, this is the final response, no need for accordian\n if (data.chatStream.continueChatResult.thinking_break === false &&\n data.chatStream.continueChatResult.is_orchestrator === true &&\n data.chatStream.continueChatResult.isEnd === true) {\n streamedresponse.content = replaceAsteriskInAnchor(data.chatStream.continueChatResult.message.content);\n }\n //agent responded it will directly be shown in collapsed form\n if (data.chatStream.continueChatResult.thinking_break === false &&\n data.chatStream.continueChatResult.is_orchestrator === false &&\n data.chatStream.continueChatResult.isEnd === false) {\n const continueChatResult = data.chatStream.continueChatResult;\n // Check for explainability_id and responded_by, and update the map\n if (continueChatResult.explainability_id &&\n continueChatResult.responded_by) {\n const explainabilityId = continueChatResult.explainability_id;\n const respondedBy = continueChatResult.responded_by;\n // Only set the value if the map does not already contain the explainabilityId\n if (!exports.explainabilityMap.has(explainabilityId)) {\n exports.explainabilityMap.set(explainabilityId, {\n responded_by: respondedBy,\n index: accordianMessageArray.length,\n });\n }\n }\n if (exports.explainabilityMap.has(data.chatStream.continueChatResult.explainability_id)) {\n const targetedIndexId = exports.explainabilityMap.get(data.chatStream.continueChatResult.explainability_id);\n const index = targetedIndexId === null || targetedIndexId === void 0 ? void 0 : targetedIndexId.index;\n //@ts-ignore\n accordianMessageArray[index] = {\n responsedata: data.chatStream.continueChatResult.message.content,\n responseFrom: data.chatStream.continueChatResult.responded_by,\n header_message: data.chatStream.continueChatResult.header_message,\n finalResponseStatus: true,\n explainability_id: (_a = data.chatStream.continueChatResult.explainability_id) !== null && _a !== void 0 ? _a : \"\",\n isParallelToolResponse: true,\n };\n }\n else {\n accordianMessageArray = [\n ...accordianMessageArray,\n {\n responsedata: data.chatStream.continueChatResult.message.content,\n responseFrom: data.chatStream.continueChatResult.responded_by,\n header_message: data.chatStream.continueChatResult.header_message,\n finalResponseStatus: true,\n explainability_id: (_b = data.chatStream.continueChatResult.explainability_id) !== null && _b !== void 0 ? _b : \"\",\n isParallelToolResponse: false,\n },\n ];\n }\n }\n //final response from agent\n if (data.chatStream.continueChatResult.thinking_break === true &&\n data.chatStream.continueChatResult.is_orchestrator === false &&\n data.chatStream.continueChatResult.isEnd === false) {\n const continueChatResult = data.chatStream.continueChatResult;\n // Check for explainability_id and responded_by, and update the map\n if (continueChatResult.explainability_id &&\n continueChatResult.responded_by) {\n const explainabilityId = continueChatResult.explainability_id;\n const respondedBy = continueChatResult.responded_by;\n // Only set the value if the map does not already contain the explainabilityId\n if (!exports.explainabilityMap.has(explainabilityId)) {\n exports.explainabilityMap.set(explainabilityId, {\n responded_by: respondedBy,\n index: accordianMessageArray.length,\n });\n }\n }\n if (exports.explainabilityMap.has(data.chatStream.continueChatResult.explainability_id)) {\n const targetedIndexId = exports.explainabilityMap.get(data.chatStream.continueChatResult.explainability_id);\n const index = targetedIndexId === null || targetedIndexId === void 0 ? void 0 : targetedIndexId.index;\n //@ts-ignore\n accordianMessageArray[index] = {\n responsedata: data.chatStream.continueChatResult.message.content,\n responseFrom: data.chatStream.continueChatResult.responded_by,\n header_message: data.chatStream.continueChatResult.header_message,\n finalResponseStatus: false,\n explainability_id: (_c = data.chatStream.continueChatResult.explainability_id) !== null && _c !== void 0 ? _c : \"\",\n isParallelToolResponse: true,\n };\n }\n else {\n accordianMessageArray.push({\n responsedata: data.chatStream.continueChatResult.message.content,\n responseFrom: data.chatStream.continueChatResult.responded_by,\n header_message: data.chatStream.continueChatResult.header_message,\n finalResponseStatus: false,\n explainability_id: (_d = data.chatStream.continueChatResult.explainability_id) !== null && _d !== void 0 ? _d : \"\",\n isParallelToolResponse: false,\n });\n }\n }\n let assistantObj = {\n orchestratorAndAgentsMessages: accordianMessageArray,\n };\n return assistantObj;\n};\nexports.getAssistantObj = getAssistantObj;\n"],"names":["__createBinding","this","Object","create","o","m","k","k2","undefined","desc","getOwnPropertyDescriptor","__esModule","writable","configurable","enumerable","get","defineProperty","__setModuleDefault","__exports","v","value","__importStar","mod","result","prototype","hasOwnProperty","call","__awaiter","thisArg","_arguments","P","generator","Promise","resolve","reject","fulfilled","step","next","e","rejected","done","then","apply","__asyncValues","Symbol","asyncIterator","TypeError","i","__values","iterator","verb","n","d","settle","__importDefault","default","exports","getAssistantObj","explainabilityMap","ChatbotService","resetChatHistory","getChatHistory","deleteImage","uploadImage","stopStreaming","stopStreamingSSE","startChatStreamSSE","startChatStream","encodeParam","replaceAsteriskInAnchor","graphql_ws_1","require$$0","axios_1","ws_1","require$$2","uuid_1","require$$3","clientManager_1","require$$4","utf8","require$$5","inputString","replace","match","param","encode","params","_a","e_1","_b","_c","_d","_e","_f","_g","_h","_j","_k","_l","WEBSOCKET_URL","organizationName","chatAssistantName","selectedAIModel","replyMessage","userName","userEmailId","userId","query","requestId","customPrompt","customRootOrchestratorModelName","customRootOrchestratorModelType","enableForBackend","images","guestSessionId","chatPreviewId","isDocumentRetrieval","onStreamEvent","onStreamEnd","onError","customMetaData","multiAgentToggle","selectedAgent","runtimeAgents","isAudioAgent","agentSettings","textToSpeechAgentId","useTextToSpeech","XCrossAccessToken","userPrefferedLanguage","agent_parameter","client","createClient","assign","url","webSocketImpl","connectionParams","setClient","subscription","iterate","variables","sessionId","v4","name","aiModel","prompt","notificationSessionId","JSON","stringify","_p","_m","_o","event","console","log","chatStreamData","data","chatStream","continueChatResult","isEnd","dispose","clearClient","e_1_1","error","return","subscriptionError","matchesRequestId","API_URL","orchestratorMetadata","loadDynamicallyAttachedAgents","additionalHeaders","requestBody","headers","response","fetch","method","body","credentials","ok","Error","status","reader","getReader","decoder","TextDecoder","buffer","read","decode","stream","lines","split","pop","line","trim","startsWith","eventMatch","eventType","eventDataStr","connectedData","parse","endData","errorData","eventData","releaseLock","parseError","streamError","json","catch","success","message","messageId","reqid_1","WEBSOCKET_URL_1","args_1","reqid","stopClient","originalClient","getClient","disposeError","stopCompleted","timeoutPromise","_","setTimeout","race","e_2","subscription_1_1","subscription_1","e_2_1","subError","baseURL","imageFile","formData","FormData","append","post","fileName","withCredentials","constructor","baseUrl","username","password","accessToken","login","loginPayload","err","errorMessage","ensureLoggedIn","toggleConsultativeMode","chatBotId_1","consultativeModePrompt_1","name_1","organizationName_1","arguments","chatBotId","consultativeModePrompt","isFetch","currentMode","authorization","consultativeMode","isConsultativeMode","deleteChatMessage","guest_id","message_id","delete","inheritanceflow","description","agents","agentsData","selectedAssistants","vector_db","source","target","assistant_type","getAgentSettings","chatbotDetails","Authorization","agentSettingsResponse","agentSettingsId","getModels","modelsResponse","getChatbotData","chatBotData","getBasicChatbotDetails","getAccessToken","Map","accordianMessageArray","thinking_break","is_orchestrator","content","push","responsedata","responseFrom","responded_by","header_message","finalResponseStatus","explainability_id","explainabilityId","respondedBy","has","set","index","length","targetedIndexId","isParallelToolResponse","orchestratorAndAgentsMessages"],"mappings":"4bACA,IAAIA,EAAmBC,aAAQA,EAAAA,UAAKD,kBAAqBE,OAAOC,OAAM,SAAaC,EAAGC,EAAGC,EAAGC,QAC7EC,IAAPD,IAAkBA,EAAKD,GAC3B,IAAIG,EAAOP,OAAOQ,yBAAyBL,EAAGC,GACzCG,KAAS,QAASA,GAAQJ,EAAEM,WAAaF,EAAKG,UAAYH,EAAKI,gBAClEJ,EAAO,CAAEK,YAAY,EAAMC,IAAK,WAAa,OAAOV,EAAEC,EAAG,IAE3DJ,OAAOc,eAAeZ,EAAGG,EAAIE,EAChC,EAAA,SAAcL,EAAGC,EAAGC,EAAGC,QACTC,IAAPD,IAAkBA,EAAKD,GAC3BF,EAAEG,GAAMF,EAAEC,EACb,GACGW,EAAsBhB,EAAIiB,WAAIjB,YAAKgB,qBAAwBf,OAAOC,OAAM,SAAaC,EAAGe,GACxFjB,OAAOc,eAAeZ,EAAG,UAAW,CAAEU,YAAY,EAAMM,MAAOD,GAClE,EAAI,SAASf,EAAGe,GACbf,EAAW,QAAIe,CACnB,GACIE,EAAgBpB,EAAIiB,WAAIjB,EAAIiB,UAACG,cAAiB,SAAUC,GACxD,GAAIA,GAAOA,EAAIX,WAAY,OAAOW,EAClC,IAAIC,EAAS,CAAA,EACb,GAAW,MAAPD,EAAa,IAAK,IAAIhB,KAAKgB,EAAe,YAANhB,GAAmBJ,OAA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,aAAyD,EAASA,EAAgBF,OAEjE,CAC3BV,aAActI,EAAKC,WAAWC,mBAAmBmD,QAAQ+E,QACzDG,aAAcvI,EAAKC,WAAWC,mBAAmBsI,aACjDC,eAAgBzI,EAAKC,WAAWC,mBAAmBuI,eACnDC,qBAAqB,EACrBC,kBAAmF,QAA/D7M,EAAKkE,EAAKC,WAAWC,mBAAmByI,yBAAsC,IAAP7M,EAAgBA,EAAK,GAChHqN,wBAAwB,EAExC,MAEYlB,EAAsBI,KAAK,CACvBC,aAActI,EAAKC,WAAWC,mBAAmBmD,QAAQ+E,QACzDG,aAAcvI,EAAKC,WAAWC,mBAAmBsI,aACjDC,eAAgBzI,EAAKC,WAAWC,mBAAmBuI,eACnDC,qBAAqB,EACrBC,kBAAmF,QAA/D5M,EAAKiE,EAAKC,WAAWC,mBAAmByI,yBAAsC,IAAP5M,EAAgBA,EAAK,GAChHoN,wBAAwB,GAGxC,CAII,MAHmB,CACfC,8BAA+BnB"}
|
|
@@ -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/objectWithoutProperties.js"),r=require("react"),i=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/objectWithoutProperties.js"),r=require("react"),i=require("../../../../../_virtual/index3.js"),o=require("../../../../clsx/dist/clsx.m.js"),l=require("../../../utils/esm/chainPropTypes.js");require("../../../utils/esm/elementAcceptingRef.js"),require("../../../utils/esm/elementTypeAcceptingRef.js"),require("../../../../../_virtual/index28.js"),require("../../../utils/esm/ponyfillGlobal.js"),require("../../../utils/esm/refType.js");var n=require("../styles/withStyles.js"),a=require("../utils/capitalize.js");function s(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)}var c=s(r),u=function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}},d=c.forwardRef(function(r,i){var l=r.children,n=r.classes,s=r.className,u=r.color,d=void 0===u?"inherit":u,f=r.component,m=void 0===f?"svg":f,p=r.fontSize,h=void 0===p?"medium":p,y=r.htmlColor,v=r.titleAccess,g=r.viewBox,S=void 0===g?"0 0 24 24":g,j=t.default(r,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return c.createElement(m,e.default({className:o.clsx(n.root,s,"inherit"!==d&&n["color".concat(a.default(d))],"default"!==h&&"medium"!==h&&n["fontSize".concat(a.default(h))]),focusable:"false",viewBox:S,color:y,"aria-hidden":!v||void 0,role:v?"img":void 0,ref:i},j),l,v?c.createElement("title",null,v):null)});"production"!==process.env.NODE_ENV&&(d.propTypes={children:i.default.node,classes:i.default.object,className:i.default.string,color:i.default.oneOf(["action","disabled","error","inherit","primary","secondary"]),component:i.default.elementType,fontSize:l.default(i.default.oneOf(["default","inherit","large","medium","small"]),function(e){if("default"===e.fontSize)throw new Error('Material-UI: `fontSize="default"` is deprecated. Use `fontSize="medium"` instead.');return null}),htmlColor:i.default.string,shapeRendering:i.default.string,titleAccess:i.default.string,viewBox:i.default.string}),d.muiName="SvgIcon";var f=n.default(u,{name:"MuiSvgIcon"})(d);exports.default=f,exports.styles=u;
|
|
2
2
|
//# sourceMappingURL=SvgIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SvgIcon.js","sources":["../../../../../../../node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n fill: 'currentColor',\n flexShrink: 0,\n fontSize: theme.typography.pxToRem(24),\n transition: theme.transitions.create('fill', {\n duration: theme.transitions.duration.shorter\n })\n },\n\n /* Styles applied to the root element if `color=\"primary\"`. */\n colorPrimary: {\n color: theme.palette.primary.main\n },\n\n /* Styles applied to the root element if `color=\"secondary\"`. */\n colorSecondary: {\n color: theme.palette.secondary.main\n },\n\n /* Styles applied to the root element if `color=\"action\"`. */\n colorAction: {\n color: theme.palette.action.active\n },\n\n /* Styles applied to the root element if `color=\"error\"`. */\n colorError: {\n color: theme.palette.error.main\n },\n\n /* Styles applied to the root element if `color=\"disabled\"`. */\n colorDisabled: {\n color: theme.palette.action.disabled\n },\n\n /* Styles applied to the root element if `fontSize=\"inherit\"`. */\n fontSizeInherit: {\n fontSize: 'inherit'\n },\n\n /* Styles applied to the root element if `fontSize=\"small\"`. */\n fontSizeSmall: {\n fontSize: theme.typography.pxToRem(20)\n },\n\n /* Styles applied to the root element if `fontSize=\"large\"`. */\n fontSizeLarge: {\n fontSize: theme.typography.pxToRem(35)\n }\n };\n};\nvar SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'inherit' : _props$color,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'svg' : _props$component,\n _props$fontSize = props.fontSize,\n fontSize = _props$fontSize === void 0 ? 'medium' : _props$fontSize,\n htmlColor = props.htmlColor,\n titleAccess = props.titleAccess,\n _props$viewBox = props.viewBox,\n viewBox = _props$viewBox === void 0 ? '0 0 24 24' : _props$viewBox,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"color\", \"component\", \"fontSize\", \"htmlColor\", \"titleAccess\", \"viewBox\"]);\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className, color !== 'inherit' && classes[\"color\".concat(capitalize(color))], fontSize !== 'default' && fontSize !== 'medium' && classes[\"fontSize\".concat(capitalize(fontSize))]),\n focusable: \"false\",\n viewBox: viewBox,\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref\n }, other), children, titleAccess ? /*#__PURE__*/React.createElement(\"title\", null, titleAccess) : null);\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n */\n color: PropTypes.oneOf(['action', 'disabled', 'error', 'inherit', 'primary', 'secondary']),\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n */\n fontSize: chainPropTypes(PropTypes.oneOf(['default', 'inherit', 'large', 'medium', 'small']), function (props) {\n var fontSize = props.fontSize;\n\n if (fontSize === 'default') {\n throw new Error('Material-UI: `fontSize=\"default\"` is deprecated. Use `fontSize=\"medium\"` instead.');\n }\n\n return null;\n }),\n\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this property.\n */\n shapeRendering: PropTypes.string,\n\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default withStyles(styles, {\n name: 'MuiSvgIcon'\n})(SvgIcon);"],"names":["styles","theme","root","userSelect","width","height","display","fill","flexShrink","fontSize","typography","pxToRem","transition","transitions","create","duration","shorter","colorPrimary","color","palette","primary","main","colorSecondary","secondary","colorAction","action","active","colorError","error","colorDisabled","disabled","fontSizeInherit","fontSizeSmall","fontSizeLarge","SvgIcon","React","forwardRef","props","ref","children","classes","className","_props$color","_props$component","component","Component","_props$fontSize","htmlColor","titleAccess","_props$viewBox","viewBox","other","_objectWithoutProperties","createElement","_extends","clsx","concat","capitalize","focusable","undefined","role","process","env","NODE_ENV","propTypes","PropTypes","node","object","string","oneOf","elementType","chainPropTypes","Error","shapeRendering","muiName","withStyles","name"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SvgIcon.js","sources":["../../../../../../../node_modules/@material-ui/core/esm/SvgIcon/SvgIcon.js"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { chainPropTypes } from '@material-ui/utils';\nimport withStyles from '../styles/withStyles';\nimport capitalize from '../utils/capitalize';\nexport var styles = function styles(theme) {\n return {\n /* Styles applied to the root element. */\n root: {\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n fill: 'currentColor',\n flexShrink: 0,\n fontSize: theme.typography.pxToRem(24),\n transition: theme.transitions.create('fill', {\n duration: theme.transitions.duration.shorter\n })\n },\n\n /* Styles applied to the root element if `color=\"primary\"`. */\n colorPrimary: {\n color: theme.palette.primary.main\n },\n\n /* Styles applied to the root element if `color=\"secondary\"`. */\n colorSecondary: {\n color: theme.palette.secondary.main\n },\n\n /* Styles applied to the root element if `color=\"action\"`. */\n colorAction: {\n color: theme.palette.action.active\n },\n\n /* Styles applied to the root element if `color=\"error\"`. */\n colorError: {\n color: theme.palette.error.main\n },\n\n /* Styles applied to the root element if `color=\"disabled\"`. */\n colorDisabled: {\n color: theme.palette.action.disabled\n },\n\n /* Styles applied to the root element if `fontSize=\"inherit\"`. */\n fontSizeInherit: {\n fontSize: 'inherit'\n },\n\n /* Styles applied to the root element if `fontSize=\"small\"`. */\n fontSizeSmall: {\n fontSize: theme.typography.pxToRem(20)\n },\n\n /* Styles applied to the root element if `fontSize=\"large\"`. */\n fontSizeLarge: {\n fontSize: theme.typography.pxToRem(35)\n }\n };\n};\nvar SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(props, ref) {\n var children = props.children,\n classes = props.classes,\n className = props.className,\n _props$color = props.color,\n color = _props$color === void 0 ? 'inherit' : _props$color,\n _props$component = props.component,\n Component = _props$component === void 0 ? 'svg' : _props$component,\n _props$fontSize = props.fontSize,\n fontSize = _props$fontSize === void 0 ? 'medium' : _props$fontSize,\n htmlColor = props.htmlColor,\n titleAccess = props.titleAccess,\n _props$viewBox = props.viewBox,\n viewBox = _props$viewBox === void 0 ? '0 0 24 24' : _props$viewBox,\n other = _objectWithoutProperties(props, [\"children\", \"classes\", \"className\", \"color\", \"component\", \"fontSize\", \"htmlColor\", \"titleAccess\", \"viewBox\"]);\n\n return /*#__PURE__*/React.createElement(Component, _extends({\n className: clsx(classes.root, className, color !== 'inherit' && classes[\"color\".concat(capitalize(color))], fontSize !== 'default' && fontSize !== 'medium' && classes[\"fontSize\".concat(capitalize(fontSize))]),\n focusable: \"false\",\n viewBox: viewBox,\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref\n }, other), children, titleAccess ? /*#__PURE__*/React.createElement(\"title\", null, titleAccess) : null);\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes = {\n // ----------------------------- Warning --------------------------------\n // | These PropTypes are generated from the TypeScript type definitions |\n // | To update them edit the d.ts file and run \"yarn proptypes\" |\n // ----------------------------------------------------------------------\n\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n\n /**\n * Override or extend the styles applied to the component.\n * See [CSS API](#css) below for more details.\n */\n classes: PropTypes.object,\n\n /**\n * @ignore\n */\n className: PropTypes.string,\n\n /**\n * The color of the component. It supports those theme colors that make sense for this component.\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n */\n color: PropTypes.oneOf(['action', 'disabled', 'error', 'inherit', 'primary', 'secondary']),\n\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes\n /* @typescript-to-proptypes-ignore */\n .elementType,\n\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n */\n fontSize: chainPropTypes(PropTypes.oneOf(['default', 'inherit', 'large', 'medium', 'small']), function (props) {\n var fontSize = props.fontSize;\n\n if (fontSize === 'default') {\n throw new Error('Material-UI: `fontSize=\"default\"` is deprecated. Use `fontSize=\"medium\"` instead.');\n }\n\n return null;\n }),\n\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this property.\n */\n shapeRendering: PropTypes.string,\n\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default withStyles(styles, {\n name: 'MuiSvgIcon'\n})(SvgIcon);"],"names":["styles","theme","root","userSelect","width","height","display","fill","flexShrink","fontSize","typography","pxToRem","transition","transitions","create","duration","shorter","colorPrimary","color","palette","primary","main","colorSecondary","secondary","colorAction","action","active","colorError","error","colorDisabled","disabled","fontSizeInherit","fontSizeSmall","fontSizeLarge","SvgIcon","React","forwardRef","props","ref","children","classes","className","_props$color","_props$component","component","Component","_props$fontSize","htmlColor","titleAccess","_props$viewBox","viewBox","other","_objectWithoutProperties","createElement","_extends","clsx","concat","capitalize","focusable","undefined","role","process","env","NODE_ENV","propTypes","PropTypes","node","object","string","oneOf","elementType","chainPropTypes","Error","shapeRendering","muiName","withStyles","name"],"mappings":"i+BAQWA,EAAS,SAAgBC,GAClC,MAAO,CAELC,KAAM,CACJC,WAAY,OACZC,MAAO,MACPC,OAAQ,MACRC,QAAS,eACTC,KAAM,eACNC,WAAY,EACZC,SAAUR,EAAMS,WAAWC,QAAQ,IACnCC,WAAYX,EAAMY,YAAYC,OAAO,OAAQ,CAC3CC,SAAUd,EAAMY,YAAYE,SAASC,WAKzCC,aAAc,CACZC,MA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