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KAAzBA,KAAAA,IAAAA,EAAAA,KAAAA,EAAD,EAA+BrU,MAAM,CAClFwU,QAAYA,QAAAA,CAAAA,QAAAA,EAAAA,EAASC,gBAAAA,GAATD,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAA2B/G,WAAW,aAAOxC,EAAAA,KAAAA,EAAAA,EAAiBwC,WAAW,MAMrF2G,qBAAuBL,GAAqB,CAAC,CAC/C,EAGO,CACLI,qBAAuBE,GAAyB,EAAE,CAClDD,qBAAuBL,GAAqB,CAAC,CAC/C,CAEJ,CAOF,EAAE,IAPO,8BC7BF,IAAMvH,EAAS,IACpBkI,QAAQ7R,KAAK,CAAC8R,EAGhB,EAAE,kCCJK,IAAM3C,EAAwB,GACnC,OAAI4C,EAAAA,KAAAA,EAAAA,EAAKjX,KAALiX,CAAW,EAAG,EACTA,CADY,CAIQA,EAAIC,MAAM,CAAC,GAAGC,WAAW,GACrBF,EAAIlX,KAAK,CAAC,GAAG+P,WAAW","sources":["webpack://_N_E/./src/components/Samples/SamplesTable/SamplesTable.helpers.tsx","webpack://_N_E/./src/components/Samples/SamplesTable/SamplesTable.styles.tsx","webpack://_N_E/./src/components/Samples/SamplesTable/samplesTable.constants.ts","webpack://_N_E/./src/components/shared/AppFilters/AppFilters.styles.tsx","webpack://_N_E/./src/components/shared/AppFilters/appFilters.constants.ts","webpack://_N_E/./src/components/shared/InOutIcon/InOutIcon.styles.tsx","webpack://_N_E/./src/components/shared/InOutIcon/inOutIcon.constants.ts","webpack://_N_E/./src/components/shared/InOutIcon/InOutIcon.tsx","webpack://_N_E/./src/components/shared/InteractionTypeDropDown/InteractionTypeDropDown.styles.tsx","webpack://_N_E/./src/components/shared/InteractionTypeDropDown/InteractionTypeDropDown.tsx","webpack://_N_E/./src/components/shared/InteractionTypeDropDown/interactionTypes.constants.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogComparison/SampleDetailsDialogComparisonInteraction/SampleDetailsDialogComparisonInteractionContent/SampleDetailsDialogComparisonInteractionContent.styles.tsx","webpack://_N_E/./src/components/shared/SamplesAnnotationCell/SamplesAnnotationMenu/SamplesAnnotationEst/SamplesAnnotationEst.styles.tsx","webpack://_N_E/./src/components/shared/SamplesAnnotationCell/SamplesAnnotationMenu/SamplesAnnotationEst/SamplesAnnotationEst.tsx","webpack://_N_E/./src/components/shared/SamplesAnnotationCell/SamplesAnnotationCell.styles.tsx","webpack://_N_E/./src/components/shared/SamplesAnnotationCell/SamplesAnnotationMenu/SamplesAnnotationMenu.tsx","webpack://_N_E/./src/components/shared/SamplesAnnotationCell/SamplesAnnotationCell.tsx","webpack://_N_E/./src/components/shared/SamplesAnnotationCell/samplesAnnotationCell.constants.ts","webpack://_N_E/./src/helpers/animations/index.ts","webpack://_N_E/./src/helpers/hooks/useStorageProperties.ts","webpack://_N_E/./src/helpers/services/logger.ts","webpack://_N_E/./src/helpers/utils/capitalizeFirstLetter.ts"],"sourcesContent":["import React from 'react';\n\nimport ThumbUpIcon from '@mui/icons-material/ThumbUp';\nimport ThumbDownIcon from '@mui/icons-material/ThumbDown';\nimport { HelpOutline, ThumbDownOutlined, ThumbUpOutlined, UpdateRounded } from '@mui/icons-material';\n\nimport { StyledText } from '@/components/lib';\n\nimport { AnnotationType, PropertyDefinitionSchema } from '@/helpers/services/api';\n\nimport { SelectedColumnType } from '../Samples.types';\nimport { sxErrorStyles, sxGreyStyles, sxLowGreyStyles, sxSuccessStyles } from './SamplesTable.styles';\n\nimport { constants } from './samplesTable.constants';\n\ntype Selected = string[];\n\nexport const selectMultiple = (\n event: React.MouseEvent,\n id: string,\n selected: Selected,\n setSelected: React.Dispatch>\n) => {\n event.stopPropagation();\n\n const selectedIndex = selected.indexOf(id);\n let newSelected: string[] = [];\n\n if (selectedIndex === -1) {\n newSelected = newSelected.concat(selected, id);\n } else if (selectedIndex === 0) {\n newSelected = newSelected.concat(selected.slice(1));\n } else if (selectedIndex === selected.length - 1) {\n newSelected = newSelected.concat(selected.slice(0, -1));\n } else if (selectedIndex > 0) {\n newSelected = newSelected.concat(selected.slice(0, selectedIndex), selected.slice(selectedIndex + 1));\n }\n\n setSelected(newSelected);\n};\n\nexport const isSelected = (id: string, selected: Selected) => selected.indexOf(id) !== -1;\n\nexport function getAnnotation(annotation: AnnotationType | undefined | null, isEstimated?: boolean) {\n switch (annotation) {\n case 'good':\n return isEstimated ? (\n <>\n \n \n \n ) : (\n \n );\n\n case 'bad':\n return isEstimated ? (\n <>\n \n \n \n ) : (\n \n );\n\n case 'unknown':\n return ;\n\n default:\n return ;\n }\n}\n\nconst { inputKey, outputKey } = constants;\n\nfunction foundProperty(propertylist: PropertyDefinitionSchema[], column: string) {\n return propertylist.find(e => e.property_name === column) ? column : propertylist[0]?.property_name;\n}\n\nexport function saveCurrentSelectedColumn(\n setSelectedColumn: (value: React.SetStateAction) => void,\n propertylist: PropertyDefinitionSchema[],\n column: string | undefined,\n renderedColumn: string,\n isPenTest: boolean,\n selectedColumns: SelectedColumnType[],\n setSelectedColumns: React.Dispatch>\n) {\n const outputProperties = propertylist.filter(el => el.property_type === 'output');\n const inputProperties = propertylist.filter(el => el.property_type === 'input');\n const customProperties = propertylist.filter(el => el.property_type === 'custom');\n const garakProperties = propertylist.filter(el => el.property_type === 'garak');\n\n if (isPenTest && garakProperties?.length) {\n !selectedColumns.length &&\n setSelectedColumns([\n {\n selected: false,\n propertyName: garakProperties[0].property_name,\n propertyType: garakProperties[0].property_type\n }\n ]);\n setSelectedColumn(garakProperties[0]?.property_name);\n return;\n }\n\n if (!column) {\n setSelectedColumn(outputProperties[outputProperties.length - 3]?.property_name);\n return;\n }\n\n if (renderedColumn === inputKey) {\n setSelectedColumn(foundProperty(inputProperties, column));\n return;\n } else if (renderedColumn === outputKey) {\n setSelectedColumn(foundProperty(outputProperties, column));\n return;\n } else {\n const selectedColumn = customProperties.find(e => e.property_name === column)\n ? column\n : customProperties[0]?.property_name;\n\n if (selectedColumn) {\n setSelectedColumn(foundProperty(customProperties, column));\n return;\n } else {\n setSelectedColumn(inputProperties[0]?.property_name);\n }\n }\n}\n","import React from 'react';\n\nimport { Stack, styled, Theme } from '@mui/material';\n\nimport { StyledMUICheckbox, StyledText } from '@/components/lib';\nimport { TextProps } from '@/components/lib/components/Text/Text';\n\nexport const StyledContainer = styled(Stack)({\n width: '100%',\n minWidth: '700px',\n maxWidth: '2150px'\n});\n\nexport const StyledRowContainer = styled(Stack)(({ theme }) => ({\n borderRadius: '10px',\n flexDirection: 'row',\n alignItems: 'center',\n padding: '5px 22px 5px 10px',\n background: theme.palette.common.white\n}));\n\ninterface StyledRowBaseContainerProps {\n row?: string;\n column_count?: number;\n}\n\nexport const StyledRowBaseContainer = styled(Stack)(({ row, column_count }) => ({\n flexDirection: 'row',\n width: row\n ? `calc(100% - (${(column_count || 1) * 110}px + 110px + 145px))`\n : `calc(100% - (${column_count === 3 ? 0 : 52}px + ${(column_count || 1) * 110}px + 110px + 145px))`,\n alignItems: 'center'\n}));\n\nexport const StyledColumnContainer = styled(Stack)(({ row, column_count, theme }) => ({\n gap: 0,\n padding: 0,\n flexDirection: 'row',\n alignItems: 'center',\n width: `calc(${row || column_count === 3 ? 0 : 52}px + ${(column_count || 1) * 110}px + 110px + 145px)`,\n\n '.MuiSvgIcon-root': { color: theme.palette.grey[400] }\n}));\n\nexport const StyledCheckBox = styled(StyledMUICheckbox)(({ theme, checked, disabled, indeterminate }) => ({\n padding: 0,\n margin: '0 8px 0 -3px',\n\n '& svg': {\n fill: (checked || indeterminate) && !disabled ? theme.palette.primary.main : theme.palette.grey[300]\n }\n}));\n\nexport const StyledTableBody = styled(Stack, {\n shouldForwardProp: prop => prop !== 'isTopicsAvailable'\n})<{ isTopicsAvailable: boolean }>(({ isTopicsAvailable, theme }) => ({\n gap: '8px',\n overflow: 'auto',\n height: `calc(100vh - ${isTopicsAvailable ? 390 : 310}px)`,\n\n '&::-webkit-scrollbar': { width: '4px', marginLeft: '8px' },\n '&::-webkit-scrollbar-thumb:hover': { background: theme.palette.grey[400] },\n '&::-webkit-scrollbar-thumb': { backgroundColor: theme.palette.grey[300], borderRadius: '8px' },\n\n '@media (max-width: 770px)': { height: `calc(100vh - ${isTopicsAvailable ? 400 : 330}px)` },\n '@media (max-width: 1115px)': { height: `calc(100vh - ${isTopicsAvailable ? 350 : 280}px)` }\n}));\n\ninterface StyledListItemTextProps {\n selected?: boolean;\n}\n\nexport const StyledListItemText = styled((props: TextProps) => , {\n shouldForwardProp: prop => prop !== 'selected'\n})(({ theme, selected }) => ({\n whiteSpace: 'nowrap',\n marginRight: 'auto',\n color: selected ? theme.palette.primary.main : theme.palette.grey[600]\n}));\n\nexport const sxSuccessStyles = (theme: Theme) => ({ fill: theme.palette.success.main });\nexport const sxLowGreyStyles = (theme: Theme) => ({ color: theme.palette.grey[300] });\nexport const sxErrorStyles = (theme: Theme) => ({ fill: theme.palette.error.main });\nexport const sxGreyStyles = (theme: Theme) => ({ fill: theme.palette.grey[500] });\n","import { SearchSchemaFieldNamesItem } from '@/helpers/services/api';\n\nexport const INPUT_PROPERTIES = [\n 'Text Length',\n 'Average Word Length',\n 'Max Word Length',\n '% Special Characters',\n 'Sentiment',\n 'Subjectivity',\n 'Toxicity',\n 'Fluency',\n 'Formality',\n 'Reading Ease',\n 'Reading Time',\n 'English Text',\n 'Lexical Density',\n 'Unique Noun Count',\n 'Average Words Per Sentence',\n 'URLs Count',\n 'Email Addresses Count',\n 'Sentences Count'\n];\n\nexport const OUTPUT_PROPERTIES = [...INPUT_PROPERTIES, 'Grounded in Context', 'Avoided Answer', 'Relevance'];\n\nexport const constants = {\n outputKey: 'Output',\n addColumn: 'Add Column',\n inputKey: 'Input',\n llmKey: 'LLM',\n garakKey: 'Garak',\n customKey: 'Custom',\n columnLimit: 3,\n sampleKey: 'Interaction',\n responseKey: 'Response',\n historyKey: 'History',\n informationRetrievalKey: 'Information Retrieval',\n searchFields: {\n tooltip: 'Click to modify your search fields',\n options: Object.keys(SearchSchemaFieldNamesItem).map(field => {\n return { value: field, label: field };\n })\n },\n fullPromptKey: 'Full Prompt',\n stepId: (id: string) => `ID=${id}`,\n stepNameKey: (id: string, name: string) => `${name} (ID=${id})`,\n documentTitle: (number: number, history?: boolean) => `${history ? 'History' : 'Document'} #${number}`,\n dateTitle: 'Date',\n annotation: 'Annotation',\n details: 'Details',\n reason: 'Reason',\n searchFieldPlaceholder: 'Search by field...',\n samplesPageLength: 20,\n selectAllTitle: (nFiltered?: number, nVersion?: number) =>\n `Select all ${nFiltered ? `( ${nFiltered} ${nVersion ? `of ${nVersion} ` : ''})` : ''}`,\n na: 'N/A',\n comparisonBtnLabel: 'Compare to Other Version',\n propertiesSection: 'Properties:',\n actionButtons: {\n download: {\n tooltip: 'Download',\n submitBtn: 'Download to CSV',\n dialogTitle: 'Download Interactions',\n description: 'Select which fields to download',\n sections: {\n data: 'Data',\n properties: {\n general: 'Properties',\n pentest: 'Pentest properties',\n input: 'Built-in properties (input)',\n output: 'Built-in properties (output)',\n custom: 'Custom properties',\n llm: 'LLM properties',\n typesSelected: (selected?: number) => (selected ? `${selected} types selected` : '')\n },\n annotations: 'Annotations',\n topics: 'Topics',\n similarities: 'Similarity Scores'\n }\n },\n copyTooltip: 'Copy to Evaluation',\n deleteTooltip: 'Delete',\n dialogTitle: (isDeletion: boolean) => (isDeletion ? 'Delete Interactions' : 'Copy Interactions to Evaluation'),\n dialogSubmitButtonLabel: 'Ok',\n snackbarMessage: 'Copied!',\n dialogMessage: (selectedSamples: number, isDeletion: boolean, deleteAll?: boolean) =>\n deleteAll\n ? 'You are about to delete all the interactions from the evaluation, please confirm.'\n : isDeletion\n ? `You are about to delete ${selectedSamples} sample${\n selectedSamples > 1 ? 's' : ''\n } from the evaluation, please confirm.`\n : `You are about to copy ${selectedSamples} sample${\n selectedSamples > 1 ? 's' : ''\n } to the evaluation, please confirm.`\n },\n skeletonHeight: '62.2px'\n};\n","import { Stack, styled } from '@mui/material';\nimport RefreshIcon from '@mui/icons-material/Refresh';\n\nimport { StyledContainer, StyledDropdown, StyledText } from '@/components/lib';\n\nexport const AppFiltersContainer = styled(StyledContainer)({\n gap: '16px',\n flexWrap: 'wrap',\n padding: '8px',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n\n '.css-i4bv87-MuiSvgIcon-root': { cursor: 'pointer', margin: '6px -12px 0 0' }\n});\n\nexport const AppFiltersInnerContainer = styled(StyledContainer)({\n gap: '16px',\n padding: '0',\n width: 'auto',\n flexWrap: 'wrap',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'left'\n});\n\nexport const AppFiltersVersionsDropdown = styled(StyledDropdown)({\n width: '225px'\n});\n\nexport const AppFiltersInnerItemContainer = styled(Stack)({\n gap: '8px',\n alignItems: 'center',\n flexDirection: 'row'\n});\n\nexport const StyledLabelText = styled(StyledText)({ marginLeft: '0px' });\n\nexport const StyledRefreshIcon = styled(RefreshIcon)(({ theme }) => ({\n cursor: 'pointer',\n fill: theme.palette.primary.main,\n transition: 'opacity ease 0.3s',\n\n ':hover': { opacity: 0.7 }\n}));\n","import { EnvType } from '@/helpers/services/api';\n\nimport { getUserPreferences } from '@/helpers/utils/localStorage';\n\nexport const envs = [\n { value: EnvType['EVAL'], label: 'Evaluation' },\n { value: EnvType['PENTEST'], label: 'Pentest' },\n { value: EnvType['PROD'], label: 'Production' }\n];\n\nexport const constants = {\n time: { label: 'Time Range' },\n application: { label: 'Application', placeholder: 'application' },\n version: { label: 'Version', placeholder: 'Click to create' },\n noVersion: 'No Application Version Selected',\n refreshTooltip: 'Refresh Content',\n manageBtnLabel: 'Manage Applications >',\n manageVersionBtnLabel: 'Manage Versions >',\n internalServerErr: {\n title: 'Sorry, we had some technical issues during your last operation',\n buttonLabel: 'Reload',\n imgAlt: 'magnifying glass illustration'\n }\n};\n\nexport const srcRadioOptions = () => {\n return Array.isArray(getUserPreferences()?.activeEnvs)\n ? envs.filter(env => getUserPreferences().activeEnvs.includes(env.value))\n : envs;\n};\n","import { Box, styled } from '@mui/material';\n\nimport { StyledText } from '@/components/lib';\n\nexport const StyledInOutIcon = styled(StyledText)(({ theme }) => ({\n padding: '0 4px',\n height: '21px',\n width: 'auto',\n border: `2px solid ${theme.palette.grey[300]}`,\n color: theme.palette.grey[500],\n borderRadius: '5px',\n overflow: 'unset',\n fontSize: '10px !important',\n fontWeight: '700',\n textAlign: 'center'\n}));\n\nexport const StyledInOutContainer = styled(Box)(({ theme }) => ({\n height: '20px',\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n\n '.MuiSvgIcon-root': { fontSize: '20px', color: theme.palette.grey[500] }\n}));\n","export const constants = {\n input: 'IN',\n inputTooltip: 'Input',\n output: 'OUT',\n outputTooltip: 'Output',\n custom: 'CUSTOM',\n customTooltip: 'Custom Property',\n llm: 'LLM',\n llmTooltip: 'LLM Property'\n};\n","import React from 'react';\n\nimport { StyledToolTip } from '@/components/lib';\nimport { StyledInOutContainer, StyledInOutIcon } from './InOutIcon.styles';\n\nimport { PropertyType } from '@/helpers/services/api';\n\nimport { constants } from './inOutIcon.constants';\n\ninterface InOutIconProps {\n kind?: PropertyType;\n margin?: string;\n noTooltip?: boolean;\n}\n\nexport const InOutIcon = ({ kind, margin = '0', noTooltip }: InOutIconProps) => {\n const { input, inputTooltip, output, outputTooltip, custom, customTooltip, llm, llmTooltip } = constants;\n\n if (!kind) {\n return <>;\n }\n\n const iconData = () => {\n switch (kind) {\n case PropertyType['input']:\n return { text: input, tooltip: inputTooltip };\n case PropertyType['output']:\n return { text: output, tooltip: outputTooltip };\n case PropertyType['custom']:\n return { text: custom, tooltip: customTooltip };\n case PropertyType['llm']:\n return { text: llm, tooltip: llmTooltip };\n default:\n return { text: 'Detector', tooltip: '' };\n }\n };\n\n return (\n <>\n {noTooltip ? (\n \n \n \n ) : (\n \n \n \n \n \n )}\n \n );\n};\n","import React from 'react';\n\nimport { Popover, PopoverProps, Stack, styled } from '@mui/material';\n\nexport const InteractionTypeDDContainer = styled(Stack)<{ outline?: boolean }>(({ outline, theme }) => ({\n opacity: 1,\n gap: '8px',\n width: '360px',\n border: 'none',\n padding: 'none',\n borderRadius: '4px',\n alignItems: 'center',\n flexDirection: 'row',\n pointerEvents: 'auto',\n\n '.Mui-disabled': { background: `${theme?.palette?.common?.white} !important` },\n '.MuiButtonBase-root': {\n gap: '4px',\n width: '225px',\n fontWeight: 500,\n boxShadow: 'none',\n overflow: 'hidden',\n margin: '0 0 0 0',\n borderRadius: '6px',\n padding: '8px 12px',\n whiteSpace: 'nowrap',\n justifyContent: 'left',\n textOverflow: 'ellipsis',\n color: theme.palette.grey?.[500],\n border: outline ? `1px solid ${theme.palette.grey?.[300]}` : 'none',\n backgroundColor: outline ? 'transparent' : theme.palette.grey?.[200],\n\n '&:hover': { boxShadow: 'none' },\n\n '.MuiButton-endIcon': { marginLeft: 'auto' }\n }\n}));\n\nexport const StyledInteractionsTypePopover = styled((props: PopoverProps) => (\n \n))(({ theme }) => ({\n '.MuiButtonBase-root': {\n border: 'none',\n padding: '8px',\n width: '200px',\n boxShadow: 'none',\n textAlign: 'left',\n borderRadius: '2px',\n justifyContent: 'flex-start',\n backgroundColor: 'transparent',\n color: theme.palette.grey?.[400]\n }\n}));\n","import React, { useEffect, useState } from 'react';\n\nimport { useRouter } from 'next/router';\n\nimport { alpha, Stack } from '@mui/material';\nimport { KeyboardArrowDownOutlined, KeyboardArrowUpOutlined } from '@mui/icons-material';\n\nimport { StyledButton, StyledText } from '@/components/lib';\nimport { InteractionTypeDDContainer, StyledInteractionsTypePopover } from './InteractionTypeDropDown.styles';\n\nimport { logger } from '@/helpers/services/logger';\nimport { ReadInteractionTypeSchema } from '@/helpers/services/api';\nimport { getStorageItem, setStorageItem, storageKeys } from '@/helpers/utils/localStorage';\n\nimport { constants, iconsDictionary } from './interactionTypes.constants';\n\ninterface InteractionTypeDropDownProps {\n noLabel?: boolean;\n outline?: boolean;\n interactionType: string;\n appInteractionTypes?: ReadInteractionTypeSchema[];\n additionalCallback?: () => void;\n setInteractionType: (value: string) => void;\n}\n\nconst { label, types } = constants;\n\nexport const InteractionTypeDropDown = (props: InteractionTypeDropDownProps) => {\n const { noLabel, outline, interactionType, appInteractionTypes, additionalCallback, setInteractionType } = props;\n\n const { query, pathname, replace } = useRouter();\n\n const [anchorEl, setAnchorEl] = useState(null);\n\n const appStorage = getStorageItem(storageKeys.app);\n\n const noAppInteractionTypesFallback = Array?.isArray(appStorage?.interactionType?.options)\n ? appStorage?.interactionType?.options\n : types;\n\n const availableTypes: ReadInteractionTypeSchema[] = appInteractionTypes || noAppInteractionTypesFallback;\n\n const activeTypes = Array?.isArray(availableTypes) ? availableTypes?.filter(val => !!val?.is_active) : types;\n\n const handleOpen = (event: React.MouseEvent) => setAnchorEl(anchorEl ? null : event?.currentTarget);\n\n const handleChooseType = (type: string) => {\n if (type !== interactionType) {\n setAnchorEl(null);\n setInteractionType(type);\n setStorageItem(storageKeys.app, {\n ...appStorage,\n interactionType: { options: availableTypes, value: type }\n });\n\n additionalCallback && additionalCallback();\n } else {\n setAnchorEl(null);\n }\n };\n\n useEffect(() => {\n try {\n if (!interactionType || !availableTypes?.find(type => type?.name === interactionType)) {\n setInteractionType(availableTypes?.[0]?.name);\n setStorageItem(storageKeys.app, {\n ...appStorage,\n interactionType: {\n value: availableTypes?.[0]?.name,\n options: availableTypes\n }\n });\n } else {\n replace({ pathname, query: { ...query, interactionType: interactionType } }, undefined, {});\n }\n } catch (err) {\n logger(err);\n setInteractionType(types?.[0]?.name);\n }\n }, [interactionType, appInteractionTypes]);\n\n try {\n return (\n <>\n \n {!noLabel && }\n : \n }\n label={interactionType}\n startIcon={iconsDictionary?.[Number(activeTypes?.find(type => type?.name === interactionType)?.icon_id)]}\n onClick={handleOpen}\n data-testid=\"InteractionTypeButton\"\n />\n \n setAnchorEl(null)}>\n \n {activeTypes?.map(type => (\n handleChooseType(type?.name)}\n data-testid={`InteractionTypeButton_${type?.name}`}\n />\n ))}\n \n \n \n );\n } catch (err) {\n logger(err);\n\n return ;\n }\n};\n","import React, { JSX } from 'react';\n\nimport {\n TaskRounded,\n HelpRounded,\n CloudRounded,\n FileOpenRounded,\n CategoryRounded,\n SummarizeRounded,\n TableChartRounded,\n AccessTimeRounded,\n AutoAwesomeRounded,\n ConstructionRounded,\n FolderSpecialRounded\n} from '@mui/icons-material';\n\nimport { ReadInteractionTypeSchema } from '@/helpers/services/api';\n\nexport const colorsList = [\n '#9159F7',\n '#00B2C2',\n '#02A5E6',\n '#C23EC0',\n '#367BF4',\n '#DD268D',\n '#2A0B63',\n '#5C36A4',\n '#B28FF3',\n '#2052AA',\n '#79A7F8',\n '#007681',\n '#016E99',\n '#47C9FD',\n '#822980',\n '#95175E',\n '#95175E'\n];\n\nexport const iconsDictionary: { [key: number]: JSX.Element } = {\n 1: ,\n 2: ,\n 3: ,\n 4: ,\n 5: ,\n 6: ,\n 7: ,\n 8: ,\n 10: ,\n 11: ,\n 12: \n};\n\nexport const constants = {\n label: 'Interaction Type',\n types: [\n { name: 'Q&A', color_code: `${colorsList[0]}`, icon_id: 1, id: NaN, is_builtin_type: true, is_active: false },\n { name: 'Other', color_code: `${colorsList[1]}`, icon_id: 2, id: NaN, is_builtin_type: true, is_active: false },\n {\n name: 'Summarization',\n color_code: `${colorsList[2]}`,\n icon_id: 3,\n id: NaN,\n is_builtin_type: true,\n is_active: false\n },\n {\n name: 'Classification',\n color_code: `${colorsList[3]}`,\n icon_id: 4,\n id: NaN,\n is_builtin_type: true,\n is_active: false\n },\n {\n name: 'Generation',\n color_code: `${colorsList[4]}`,\n icon_id: 5,\n id: NaN,\n is_builtin_type: true,\n is_active: false\n },\n {\n name: 'Feature Extraction',\n color_code: `${colorsList[5]}`,\n icon_id: 6,\n id: NaN,\n is_builtin_type: true,\n is_active: false\n }\n ] as ReadInteractionTypeSchema[]\n};\n","import { Stack, styled } from '@mui/material';\n\nimport { StyledContainer as DSStyledContainer, StyledContainer, StyledText } from '@/components/lib';\n\nimport { fadeInAnimation } from '@/helpers/animations';\n\nexport const StyledDiffContainer = styled(Stack, {\n shouldForwardProp: prop => prop !== 'diff'\n})<{ diff?: boolean; isDarkMode?: string }>(({ theme, diff, isDarkMode }) => ({\n overflowY: 'auto',\n borderRadius: '8px',\n color: theme.palette.grey[700],\n animation: `${fadeInAnimation} 0.5s ease`,\n\n '.css-vl0irh-content': { background: `${theme?.palette?.grey[200]} !important` },\n '.css-cncyp1-word-diff': { padding: '0 2px' },\n '.css-1u4zuq6-word-added': {\n fontWeight: 600,\n background: isDarkMode === 'true' ? 'rgba(1, 110, 153, 1)' : 'rgba(163, 229, 255, 1)'\n },\n '.css-hf3w1f-word-removed': {\n fontWeight: 600,\n background: isDarkMode === 'true' ? 'rgba(92, 54, 164, 1)' : 'rgba(218, 201, 249, 1)'\n },\n '.css-cnnxkz-diff-added': { display: diff ? 'auto' : 'none', background: `${theme?.palette?.grey[200]} !important` },\n '.css-rq9a2a-diff-removed': {\n display: diff ? 'none' : 'auto',\n background: `${theme?.palette?.grey[200]} !important`\n },\n // '.css-1ks9aww-gutter, .css-17vezug-marker': { display: 'none' },\n '.MuiTypography-body2': { fontWeight: 800, color: theme.palette.grey[700] },\n '.css-1klnsbn-empty-gutter, .css-17vezug-marker, .css-1ks9aww-gutter': { display: 'none' },\n '.MuiTypography-body1': { fontWeight: 500, color: theme.palette.grey[600], fontSize: '12px' },\n '.css-1ks9aww-gutter': {\n minWidth: '24px',\n background: `${theme?.palette?.grey[200]} !important`\n },\n '.css-h84nzi-line-number': {\n fontWeight: 800,\n color: `${diff ? 'rgba(54, 123, 244, 1)' : 'rgba(145, 89, 247, 1)'} !important`\n },\n\n table: { background: `${theme?.palette?.grey[200]} !important` },\n pre: { fontSize: '12px', color: `${theme.palette.grey[600]} !important`, fontFamily: 'Manrope' }\n}));\n\nexport const StyledContentBottomContainer = styled(StyledContainer)(({ theme }) => ({\n gap: 0,\n marginTop: '-12px',\n borderRadius: '12px',\n alignItems: 'center',\n flexDirection: 'row',\n padding: '0 24px 16px',\n borderTopLeftRadius: '0',\n borderTopRightRadius: '0',\n justifyContent: 'space-between',\n color: theme.palette.grey[600],\n background: theme?.palette?.grey[200]\n}));\n\nexport const StyledAnnotationContentContainer = styled(StyledContainer)<{ is_sticky?: string; is_full_width?: string }>(\n ({ is_sticky, is_full_width, theme }) => ({\n gap: '4px',\n bottom: 0,\n alignItems: 'center',\n flexDirection: 'row',\n marginLeft: 'auto',\n background: is_sticky === 'true' ? theme?.palette?.grey[200] : 'transparent',\n marginTop: is_sticky === 'true' ? 'auto' : 0,\n position: is_sticky === 'true' ? 'sticky' : 'static',\n width: is_full_width === 'true' ? '100%' : 'auto',\n borderRadius: is_full_width === 'true' ? '0' : '12px'\n })\n);\n\nexport const StyledPropertyScoreContainer = styled(StyledContainer)({\n alignItems: 'center',\n flexDirection: 'row',\n gap: '12px',\n width: 'auto',\n padding: 0\n});\n\nexport const StyledTogglerContainer = styled(Stack)(({ theme }) => ({\n padding: '2px',\n borderRadius: '12px',\n alignContent: 'center',\n background: theme.palette.grey[200],\n marginRight: 'auto',\n\n '.MuiFormControlLabel-labelPlacementEnd': {\n marginLeft: '0'\n }\n}));\n\nexport const StyledPropertyScoreNumberContainer = styled(StyledContainer)(({ theme }) => ({\n alignItems: 'center',\n justifyContent: 'center',\n height: '40px',\n gap: 0,\n padding: '0 8px',\n border: `2px solid ${theme.palette.grey[300]}`,\n borderRadius: '8px',\n width: '50px'\n}));\n\nexport const StyledPropColorText = styled(StyledText)(({ theme }) => ({\n color: theme.palette.grey[600]\n}));\n\nexport const StyledInfoRetrievalText = styled(StyledText)<{ is_margin?: string }>(({ theme, is_margin }) => ({\n color: theme.palette.grey[600],\n marginBottom: is_margin === 'true' ? '8px' : 0,\n overflow: 'visible'\n}));\n\nexport const StyledContentContainer = styled(DSStyledContainer)<{ is_sticky?: string }>(({ theme, is_sticky }) => ({\n overflowY: 'auto',\n fontSize: '12px',\n borderRadius: '12px',\n whiteSpace: 'pre-line',\n borderBottomLeftRadius: '0',\n borderBottomRightRadius: '0',\n color: theme.palette.grey[600],\n background: theme?.palette?.grey[200],\n animation: `${fadeInAnimation} 0.5s ease`,\n height: is_sticky === 'true' ? '318px' : '270px',\n paddingBottom: is_sticky === 'true' ? 0 : '12px',\n\n '&::-webkit-scrollbar-thumb': {\n borderRadius: '8px',\n backgroundColor: theme.palette.grey[300]\n }\n}));\n\nexport const StyledSimilarityContainer = styled(StyledContainer)(({ theme }) => ({\n gap: '0',\n padding: '0',\n display: 'grid',\n marginLeft: 'auto',\n alignItems: 'center',\n width: 'fit-content',\n gridTemplateColumns: '98px 44px',\n animation: `${fadeInAnimation} 0.5s ease-in-out`,\n\n '.MuiTypography-h5': { fontWeight: 500 },\n '.MuiTypography-body2': {\n padding: '2px 4px',\n textAlign: 'center',\n borderRadius: '6px',\n color: theme.palette.grey[600],\n background: theme.palette.grey[200]\n },\n\n '@media (min-width:1440px)': {\n gridTemplateColumns: '110px 44px'\n }\n}));\n\nexport const StyledContentHeader = styled(Stack)({\n gap: '24px',\n height: '30px',\n padding: '0 6px',\n alignItems: 'center',\n flexDirection: 'row',\n justifyContent: 'space-between'\n});\n","import { Stack, styled } from '@mui/material';\n\nimport { StyledContainer as DSStyledContainer } from '@/components/lib';\n\nexport const StyledContainer = styled(Stack)({\n gap: '8px',\n\n '.MuiTypography-h5': {\n margin: '16px auto 8px'\n }\n});\n\nexport const StyledInnerContainer = styled(DSStyledContainer)(({ theme }) => ({\n padding: '16px',\n background: theme.palette.grey[100],\n\n '.MuiButton-text': {\n padding: '0',\n fontSize: '12px',\n color: theme.palette.primary.main\n }\n}));\n\nexport const StyledRowInnerContainer = styled(StyledContainer)({\n gap: '8px',\n display: 'grid',\n alignItems: 'center',\n gridTemplateColumns: '36px auto'\n});\n","import React from 'react';\n\nimport { Stack } from '@mui/material';\nimport { SettingsBackupRestoreRounded } from '@mui/icons-material';\n\nimport { StyledButton, StyledText } from '@/components/lib';\nimport { StyledContainer, StyledRowInnerContainer, StyledInnerContainer } from './SamplesAnnotationEst.styles';\n\nimport { AnnotationSchema } from '@/helpers/services/api';\nimport { getAnnotation } from '@/components/Samples/SamplesTable/SamplesTable.helpers';\n\nimport { constants } from '../../samplesAnnotationCell.constants';\n\ninterface SamplesAnnotationEstProps {\n estAnnotation?: AnnotationSchema | null;\n handleCloseRootMenu: (e: { stopPropagation?: () => void }, isRevert?: boolean) => void;\n handleModifyAnnotationId: (annotation: string | null, isRevert?: boolean) => void;\n annotationVal: string | undefined;\n}\n\nconst { deleteButtonLabel, estAnnotation } = constants;\nconst { title, buttonLabel, noReason, calculating } = estAnnotation;\n\nexport const SamplesAnnotationEst = (props: SamplesAnnotationEstProps) => {\n const { estAnnotation, handleCloseRootMenu, handleModifyAnnotationId, annotationVal } = props;\n\n if (!annotationVal && !estAnnotation?.value) {\n return <>;\n }\n\n const handleRevertClick = (event: React.MouseEvent) => {\n estAnnotation?.value ? handleModifyAnnotationId(estAnnotation.value, true) : handleModifyAnnotationId(null, true);\n handleCloseRootMenu && handleCloseRootMenu(event, true);\n };\n\n return (\n \n \n \n \n {getAnnotation(estAnnotation?.value, estAnnotation?.is_estimated)}\n \n \n handleRevertClick(e)}\n startIcon={}\n />\n \n \n );\n};\n","import { Box, Menu, MenuItem, styled } from '@mui/material';\n\nexport const StyledContainer = styled(Box)({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: '44px'\n});\n\nexport const StyledRowContainer = styled(Box)({\n margin: '0 auto 16px',\n width: 'fit-content',\n display: 'flex',\n flexDirection: 'row'\n});\n\nexport const StyledRootMenu = styled(Menu)(({ theme }) => ({\n marginTop: '9px',\n\n '& .MuiPaper-root': {\n width: '290px',\n padding: '16px',\n overflow: 'visible',\n borderRadius: '10px',\n justifyContent: 'center',\n boxShadow: `2px 2px 30px -10px ${theme.palette.grey[400]}`\n }\n}));\n\ninterface styledMenuItemProps {\n selected?: boolean;\n}\n\nexport const StyledMenuItem = styled(MenuItem, {\n shouldForwardProp: prop => prop !== 'selected'\n})(({ selected, theme }) => ({\n gap: '12px',\n padding: '2px 16px',\n position: 'relative',\n flexDirection: 'column',\n background: selected ? theme.palette.grey[200] : 'transparent',\n\n '& svg': {\n color: theme.palette.primary.main\n },\n\n '&:not(:last-child)': {\n borderRight: `2px solid ${theme.palette.grey[200]}`\n }\n}));\n","import React from 'react';\n\nimport { MenuProps } from '@mui/material';\n\nimport { SamplesAnnotationEst } from './SamplesAnnotationEst/SamplesAnnotationEst';\n\nimport { StyledInput, StyledText } from '@/components/lib';\nimport { StyledMenuItem, StyledRootMenu } from '../SamplesAnnotationCell.styles';\nimport { StyledRowContainer } from '../SamplesAnnotationCell.styles';\n\nimport { getAnnotation } from '@/components/Samples/SamplesTable/SamplesTable.helpers';\n\nimport { AnnotationSchema, AnnotationType } from '@/helpers/services/api';\nimport { capitalizeFirstLetter } from '@/helpers/utils/capitalizeFirstLetter';\n\nimport { constants } from '../samplesAnnotationCell.constants';\n\ninterface SamplesAnnotationMenuProps extends MenuProps {\n reason: string;\n isEstimated: boolean | undefined;\n annotationVal: AnnotationType | undefined;\n estAnnotation?: AnnotationSchema | null;\n setReason: (reason: string) => void;\n handleModifyAnnotationId: (annotation: string | null, isRevert?: boolean) => void;\n handleCloseRootMenu: (e: { stopPropagation?: () => void }, isRevert?: boolean) => void;\n setAnnotationVal: (annotation: AnnotationType | undefined) => void;\n}\n\nconst { options, inputPlaceHolder } = constants.menu;\n\nexport const SamplesAnnotationMenu = (props: SamplesAnnotationMenuProps) => {\n const {\n reason,\n isEstimated,\n annotationVal,\n estAnnotation,\n setReason,\n setAnnotationVal,\n handleCloseRootMenu,\n handleModifyAnnotationId,\n ...otherProps\n } = props;\n\n const isSelected = (annotation: string) => annotation === annotationVal && !isEstimated;\n\n const handleSelect = async (event: React.SyntheticEvent, annotation: AnnotationType) => {\n event.stopPropagation();\n setAnnotationVal(annotation);\n handleModifyAnnotationId(annotation);\n };\n\n const handleKeyDown = (event: React.KeyboardEvent) => {\n event.code === 'Enter' && handleCloseRootMenu(event);\n event.code === 'KeyG' && event.stopPropagation();\n };\n\n return (\n \n \n {options.map(annotation => (\n handleSelect(e, annotation as AnnotationType)}\n selected={isSelected(annotation)}\n >\n {getAnnotation(annotation as AnnotationType)}\n \n \n ))}\n \n setReason(e.target.value)}\n onKeyDown={e => handleKeyDown(e)}\n />\n \n \n );\n};\n","import React, { useEffect, useState } from 'react';\n\nimport { BoxProps, Stack } from '@mui/material';\n\nimport { StyledToolTip } from '@/components/lib';\nimport { SamplesAnnotationMenu } from './SamplesAnnotationMenu/SamplesAnnotationMenu';\n\nimport { StyledContainer } from './SamplesAnnotationCell.styles';\n\nimport { getAppStorage } from '@/helpers/utils/localStorage';\nimport { getAnnotation } from '@/components/Samples/SamplesTable/SamplesTable.helpers';\nimport { AnnotationSchema, AnnotationType, updateAnnotationsApiV1AnnotationsPut } from '@/helpers/services/api';\n\ninterface AnnotationCellProps extends BoxProps {\n interactionId: string;\n interactionVersionId?: number;\n nonEditable?: boolean;\n disableTooltip?: boolean;\n annotation: AnnotationSchema | null;\n estAnnotation?: AnnotationSchema | null;\n updateAnnotation?: (\n interactionId: string,\n annotation: string,\n reason: string,\n isEstimated?: boolean,\n deleteAnnotation?: boolean\n ) => void;\n}\n\nexport const AnnotationCell = (props: AnnotationCellProps) => {\n const {\n annotation,\n interactionId,\n interactionVersionId,\n nonEditable,\n disableTooltip,\n estAnnotation,\n updateAnnotation,\n ...otherProps\n } = props;\n\n const [reason, setReason] = useState(annotation?.reason ?? '');\n const [annotationVal, setAnnotationVal] = useState(annotation?.value as AnnotationType);\n const [isEstimated, setIsEstimated] = useState(annotation?.is_estimated);\n const [anchorElRootMenu, setAnchorElRootMenu] = useState(null);\n\n const { versionId } = getAppStorage();\n\n const estimatedAnnotation = !annotation?.is_estimated ? estAnnotation : undefined;\n\n const handleOpenRootMenu = (event: React.MouseEvent) => {\n if (!nonEditable) {\n event.stopPropagation();\n setAnchorElRootMenu(event.currentTarget);\n }\n };\n\n const handleModifyAnnotationId = (annotation: string | null, isRevert?: boolean) => {\n setIsEstimated(false);\n\n updateAnnotationsApiV1AnnotationsPut({\n application_version_id: interactionVersionId || versionId,\n user_interaction_id: interactionId,\n value: isRevert ? undefined : (annotation as AnnotationType),\n reason: isRevert ? undefined : reason,\n revert_to_estimated: isRevert\n });\n\n if (isRevert && annotation === null && updateAnnotation) {\n const finalReason = isRevert ? `${estAnnotation?.reason}` : reason;\n const finalAnnotation = `${estAnnotation?.value}`;\n\n updateAnnotation(interactionId, finalAnnotation, finalReason, isRevert, true);\n setAnnotationVal(undefined);\n } else if (annotation && updateAnnotation) {\n const finalReason = isRevert ? `${estAnnotation?.reason}` : reason;\n const finalAnnotation = isRevert ? `${estAnnotation?.value}` : annotation;\n updateAnnotation(interactionId, finalAnnotation, finalReason, isRevert);\n }\n };\n\n const handleCloseRootMenu = (event: { stopPropagation?: () => void }, isRevert?: boolean) => {\n event?.stopPropagation && event?.stopPropagation();\n setAnchorElRootMenu(null);\n\n if (!isRevert && reason !== annotation?.reason && annotationVal) {\n handleModifyAnnotationId(annotationVal);\n }\n };\n\n useEffect(() => {\n setReason(annotation?.reason ?? '');\n setIsEstimated(annotation?.is_estimated);\n setAnnotationVal(annotation?.value as AnnotationType);\n }, [annotation?.value, annotation?.is_estimated, annotation?.reason]);\n\n return (\n \n \n {getAnnotation(annotationVal, isEstimated)}\n \n handleCloseRootMenu(e)}\n handleCloseRootMenu={handleCloseRootMenu}\n handleModifyAnnotationId={handleModifyAnnotationId}\n />\n \n );\n};\n","export const constants = {\n similarityLinkLabel: 'Similar Response',\n menu: { options: ['good', 'bad', 'unknown'], inputPlaceHolder: 'Type Reason...' },\n estAnnotation: {\n title: 'Estimated Annotation',\n noReason: 'No reason provided',\n buttonLabel: 'Revert back to estimated',\n calculating: 'Estimated annotation is being calculated...'\n },\n deleteButtonLabel: 'Delete User Annotation'\n};\n","import { keyframes } from '@emotion/react';\n\nexport const shakingAnimation = keyframes`\n 0% { transform: rotate(0deg); }\n 25% { transform: rotate(0.8deg); }\n 50% { transform: rotate(0eg); }\n 75% { transform: rotate(-0.8deg); }\n 100% { transform: rotate(0deg); }\n`;\n\nexport const fadeInAnimation = keyframes`\n 0% { opacity: 0; }\n 100% { opacity: 1; }\n`;\n\nexport const spinAnimation = keyframes`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n`;\n","import { ReadPropertyConfigSchema } from '../services/api';\n\nimport { getSessionStorageItem, sessionStorageKeys } from '../utils/sessionStorage';\n\ntype StoragePropertiesType = { [key: number]: { prop_filters: ReadPropertyConfigSchema[] } };\n\nexport const useStorageProperties = (appId?: number, interactionType?: string | null) => {\n const propertiesStorage = getSessionStorageItem(sessionStorageKeys.propFilters) as StoragePropertiesType;\n\n if (appId) {\n const applicationProperties = propertiesStorage?.[appId]?.prop_filters;\n\n if (interactionType && interactionType !== '') {\n const applicationPropertiesByInteractionType = (applicationProperties || [])?.filter(\n property => property.interaction_type?.toLowerCase() === interactionType?.toLowerCase()\n ) as ReadPropertyConfigSchema[];\n\n // Return app properties by interaction type\n return {\n appStorageProperties: applicationPropertiesByInteractionType,\n allStorageProperties: (propertiesStorage || {}) as StoragePropertiesType\n };\n } else {\n // Return app properties\n return {\n appStorageProperties: (applicationProperties || []) as ReadPropertyConfigSchema[],\n allStorageProperties: (propertiesStorage || {}) as StoragePropertiesType\n };\n }\n } else {\n // Return all properties\n return {\n appStorageProperties: [] as ReadPropertyConfigSchema[],\n allStorageProperties: (propertiesStorage || {}) as StoragePropertiesType\n };\n }\n};\n","export const logger = (msg: unknown) => {\n console.error(msg);\n\n // Todo - implement a real logger to datadog logs\n};\n","export const capitalizeFirstLetter = (arg: string) => {\n if (arg?.length < 3) {\n return arg;\n }\n\n const firstLetterUppercase = arg.charAt(0).toUpperCase();\n const restOfTheStringLowercase = arg.slice(1).toLowerCase();\n\n return firstLetterUppercase + restOfTheStringLowercase;\n};\n"],"names":["selectMultiple","event","id","selected","setSelected","stopPropagation","selectedIndex","indexOf","newSelected","concat","slice","length","getAnnotation","annotation","isEstimated","ThumbUpOutlined","sx","sxSuccessStyles","StyledText","text","type","sxLowGreyStyles","ThumbUpIcon","ThumbDownOutlined","sxErrorStyles","ThumbDownIcon","HelpOutline","sxGreyStyles","UpdateRounded","inputKey","outputKey","constants","foundProperty","propertylist","column","find","e","property_name","saveCurrentSelectedColumn","setSelectedColumn","renderedColumn","isPenTest","selectedColumns","setSelectedColumns","garakProperties","outputProperties","customProperties","inputProperties","filter","el","property_type","propertyName","propertyType","selectedColumn","StyledContainer","styled","Stack","width","minWidth","maxWidth","theme","borderRadius","flexDirection","alignItems","padding","background","palette","common","white","row","column_count","gap","color","grey","StyledMUICheckbox","checked","disabled","indeterminate","margin","fill","primary","main","shouldForwardProp","prop","isTopicsAvailable","overflow","height","marginLeft","backgroundColor","props","whiteSpace","marginRight","success","error","addColumn","llmKey","garakKey","customKey","columnLimit","sampleKey","responseKey","historyKey","informationRetrievalKey","searchFields","tooltip","options","Object","keys","SearchSchemaFieldNamesItem","map","field","value","label","fullPromptKey","stepId","stepNameKey","name","documentTitle","number","history","dateTitle","details","reason","searchFieldPlaceholder","samplesPageLength","selectAllTitle","nFiltered","nVersion","na","comparisonBtnLabel","propertiesSection","actionButtons","download","submitBtn","dialogTitle","description","sections","data","properties","general","pentest","input","output","custom","llm","typesSelected","annotations","topics","similarities","copyTooltip","deleteTooltip","isDeletion","dialogSubmitButtonLabel","snackbarMessage","dialogMessage","selectedSamples","deleteAll","skeletonHeight","AppFiltersContainer","flexWrap","justifyContent","cursor","StyledDropdown","StyledLabelText","RefreshIcon","transition","opacity","envs","EnvType","time","application","placeholder","version","noVersion","refreshTooltip","manageBtnLabel","manageVersionBtnLabel","internalServerErr","title","buttonLabel","imgAlt","srcRadioOptions","getUserPreferences","Array","isArray","activeEnvs","env","includes","StyledInOutIcon","border","fontSize","fontWeight","textAlign","Box","display","inputTooltip","outputTooltip","customTooltip","llmTooltip","kind","noTooltip","iconData","PropertyType","StyledInOutContainer","StyledToolTip","placement","InteractionTypeDDContainer","outline","pointerEvents","boxShadow","textOverflow","Popover","anchorOrigin","vertical","horizontal","transformOrigin","slotProps","paper","style","maxHeight","types","InteractionTypeDropDown","appStorage","activeTypes","noLabel","interactionType","appInteractionTypes","additionalCallback","setInteractionType","query","pathname","replace","useRouter","anchorEl","setAnchorEl","useState","getStorageItem","storageKeys","app","noAppInteractionTypesFallback","availableTypes","val","is_active","handleChooseType","setStorageItem","useEffect","undefined","err","logger","StyledButton","endIcon","KeyboardArrowUpOutlined","KeyboardArrowDownOutlined","startIcon","iconsDictionary","Number","icon_id","onClick","handleOpen","currentTarget","data-testid","StyledInteractionsTypePopover","open","Boolean","onClose","toLowerCase","color_code","alpha","colorsList","HelpRounded","ConstructionRounded","SummarizeRounded","CategoryRounded","AutoAwesomeRounded","TaskRounded","FileOpenRounded","TableChartRounded","AccessTimeRounded","CloudRounded","FolderSpecialRounded","NaN","is_builtin_type","StyledDiffContainer","diff","isDarkMode","overflowY","animation","fadeInAnimation","table","pre","fontFamily","marginTop","borderTopLeftRadius","borderTopRightRadius","is_sticky","is_full_width","bottom","position","alignContent","is_margin","marginBottom","DSStyledContainer","borderBottomLeftRadius","borderBottomRightRadius","paddingBottom","gridTemplateColumns","deleteButtonLabel","estAnnotation","noReason","calculating","SamplesAnnotationEst","handleCloseRootMenu","handleModifyAnnotationId","annotationVal","handleRevertClick","StyledInnerContainer","StyledRowInnerContainer","is_estimated","variant","SettingsBackupRestoreRounded","Menu","MenuItem","borderRight","inputPlaceHolder","menu","SamplesAnnotationMenu","setReason","setAnnotationVal","otherProps","isSelected","handleSelect","handleKeyDown","code","StyledRootMenu","StyledRowContainer","StyledMenuItem","capitalizeFirstLetter","StyledInput","onChange","target","onKeyDown","AnnotationCell","interactionId","interactionVersionId","nonEditable","disableTooltip","updateAnnotation","setIsEstimated","anchorElRootMenu","setAnchorElRootMenu","versionId","getAppStorage","estimatedAnnotation","isRevert","updateAnnotationsApiV1AnnotationsPut","application_version_id","user_interaction_id","revert_to_estimated","finalReason","finalAnnotation","handleOpenRootMenu","similarityLinkLabel","shakingAnimation","keyframes","spinAnimation","useStorageProperties","appId","propertiesStorage","getSessionStorageItem","sessionStorageKeys","propFilters","appStorageProperties","allStorageProperties","applicationProperties","prop_filters","applicationPropertiesByInteractionType","property","interaction_type","console","msg","arg","charAt","toUpperCase"],"sourceRoot":"","ignoreList":[]}