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,gBAEZ,UAAW,CACT4K,QAAS,EACX,CACF,GAAG,EAEuBjM,CAAAA,EAAAA,EAAAA,EAAAA,CAAMA,CAAC6jB,EAAAA,CAAWA,CAAE,CAC5ClY,kBAAmBC,GAAiB,WAATA,CAC7B,GAAgB,OAAC,OAAE1L,CAAK,QAAE4jB,CAAM,CAAE,SAAM,CACtC1iB,OAAQ,UACR0S,KAAiB,SAAXgQ,EAAoB5jB,EAAMI,OAAO,CAACC,IAAI,CAAC,IAAI,CAAGL,EAAMI,OAAO,CAACC,IAAI,CAAC,IAAI,CAC3Ec,WAAY,gBAEZ,UAAW,CACT4K,QAAS,EACX,CACF,IAAI,EAEyBjM,CAAAA,EAAAA,EAAAA,EAAAA,CAAMA,CAAC+jB,EAAAA,CAAaA,CAAE,CACjDpY,kBAAmBC,GAAiB,WAATA,CAC7B,GAAgB,OAAC,OAAE1L,CAAK,QAAE4jB,CAAM,CAAE,SAAM,CACtC1iB,OAAQ,UACR0S,KAAiB,SAAXgQ,EAAoB5jB,EAAMI,OAAO,CAACC,IAAI,CAAC,IAAI,CAAGL,EAAMI,OAAO,CAACC,IAAI,CAAC,IAAI,CAC3Ec,WAAY,gBAEZ,UAAW,CACT4K,QAAS,EACX,CACF,IAAI","sources":["webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SamplesDetailsBodyInfoRetrievalItem/SamplesDetailsBodyInfoRetrievalItem.styles.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SamplesDetailsBodyInfoRetrievalItem/SamplesDetailsBodyInfoRetrievalItem.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SamplesDetailsBodyItem.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SamplesTranslationSelection/SamplesTranslationSelection.styles.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SamplesTranslationSelection/SamplesTranslationSelection.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SampleDetailsDialogBody.styles.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SampleDetailsDialogSelection/SampleDetailsDialogSelection.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsDialogInteractionSelections/SampleDetailsDialogInteractionSelections.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SampleDetailsDialogBody.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogHeader/SampleDetailsDialogHeaderCopy/SampleDetailsDialogHeaderCopy.styles.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogHeader/SampleDetailsDialogHeaderCopy/SampleDetailsDialogHeaderCopy.tsx","webpack://_N_E/./src/helpers/utils/getMilliseconds.ts","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogHeader/SampleDetailsDialogHeader.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialog.styles.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialog.tsx","webpack://_N_E/./src/components/shared/AppFilters/RotateContainer/RotateContainer.styles.tsx","webpack://_N_E/./src/components/shared/AppFilters/RotateContainer/RotateContainer.tsx","webpack://_N_E/./src/components/shared/AppFilters/InternalServerError/InternalServerError.styles.tsx","webpack://_N_E/./public/assets/overview/magnifying-glass-illustration.svg","webpack://_N_E/./src/components/shared/AppFilters/InternalServerError/InternalServerError.tsx","webpack://_N_E/./src/components/Samples/SamplesNoVersionSelected/SamplesNoVersionSelected.styles.tsx","webpack://_N_E/./src/components/Samples/SamplesNoVersionSelected/samplesNoVersionSelected.constants.ts","webpack://_N_E/./src/components/Samples/SamplesNoVersionSelected/SamplesNoVersionSelected.tsx","webpack://_N_E/./src/helpers/utils/getTimestamp.ts","webpack://_N_E/./src/components/shared/AppFilters/AppFilters.tsx","webpack://_N_E/./src/components/Samples/SamplesAnnotations/SamplesAnnotations.styles.tsx"],"sourcesContent":["import { styled, Stack } from '@mui/material';\n\nimport { StyledText } from '@/components/lib';\n\nexport const StyledInfoRetrievalText = styled(StyledText)<{ is_margin?: string; is_collapse?: string }>(\n ({ theme, is_margin, is_collapse }) => ({\n color: theme.palette.grey[600],\n marginBottom: is_margin === 'true' && is_collapse !== 'true' ? '16px' : 0,\n overflow: is_collapse === 'true' ? 'hidden' : 'visible',\n WebkitLineClamp: is_collapse === 'true' ? 1 : 'auto',\n WebkitBoxOrient: 'vertical',\n display: '-webkit-box',\n whiteSpace: 'break-spaces !important',\n minWidth: '119px'\n })\n);\n\nexport const SamplesDetailsBodyInfoRetrievalItemContainer = styled(Stack)<{\n is_collapse: string;\n translation?: string;\n}>(({ translation, is_collapse, theme }) => ({\n background: theme.palette.grey[100],\n padding: '16px',\n cursor: 'pointer',\n transition: '0.4s',\n borderRadius: '12px',\n height: 'fit-content',\n flexDirection: is_collapse === 'true' ? 'row' : 'column',\n border: `2px solid ${translation === 'true' ? theme.palette.primary?.main : 'transparent'}`,\n\n '&:hover': {\n background: theme.palette.grey[200],\n borderColor: theme.palette.grey[300]\n }\n}));\n","import React, { useState } from 'react';\n\nimport { getMarkedText } from '@/helpers/utils/getMarkedText';\nimport { GeneralMetadataChunk, PerPropertySchema, TextEntrySchemaOut } from '@/helpers/services/api';\n\nimport {\n StyledInfoRetrievalText,\n SamplesDetailsBodyInfoRetrievalItemContainer\n} from './SamplesDetailsBodyInfoRetrievalItem.styles';\n\nimport { constants } from '@/components/Samples/SamplesTable/samplesTable.constants';\n\ninterface SamplesDetailsBodyInfoRetrievalItemProps {\n index: number;\n sectionKey: string;\n isTranslation?: boolean;\n infoRetrievalItem: TextEntrySchemaOut;\n markingDetails?: PerPropertySchema;\n}\n\nconst { historyKey, documentTitle } = constants;\n\nexport const SamplesDetailsBodyInfoRetrievalItem = (props: SamplesDetailsBodyInfoRetrievalItemProps) => {\n const { index, sectionKey, isTranslation, markingDetails, infoRetrievalItem } = props;\n\n const [isOpen, setIsOpen] = useState(false);\n\n const isHistory = sectionKey === historyKey;\n\n const markingDetailsByIndex = markingDetails\n ? {\n ...markingDetails,\n metadata: Array?.isArray(markingDetails?.metadata)\n ? (markingDetails?.metadata?.filter(item => item?.document_index === index) as GeneralMetadataChunk[]) // Choose the relevant index marking details from the metadata\n : []\n }\n : undefined;\n\n return (\n setIsOpen(!isOpen)}\n >\n \n \n \n );\n};\n","import React, { useEffect, useRef, useState } from 'react';\n\nimport { Stack } from '@mui/material';\n\nimport DiffViewer, { DiffMethod } from 'react-diff-viewer';\n\nimport {\n SampleDetailsBodyProperties,\n SamplesDetailsBodyAllPropertiesType\n} from './SampleDetailsBodyProperties/SampleDetailsBodyProperties';\nimport { AnnotationCell } from '@/components/shared/SamplesAnnotationCell/SamplesAnnotationCell';\nimport { SamplesDetailsBodyInfoRetrievalItem } from './SamplesDetailsBodyInfoRetrievalItem/SamplesDetailsBodyInfoRetrievalItem';\n\nimport { StyledLoader, StyledText, StyledToggle, StyledToolTip } from '@/components/lib';\nimport { StyledDiffContainer } from '../../SampleDetailsDialogComparison/SampleDetailsDialogComparisonInteraction/SampleDetailsDialogComparisonInteractionContent/SampleDetailsDialogComparisonInteractionContent.styles';\nimport {\n StyledInteractionIdText,\n StyledAnnotationCellText,\n StyledAnnotationCellContainer,\n StyledAnnotationPropsContainer,\n StyledAnnotationAndPropsWrapper\n} from '../../SampleDetailsDialogHeader/SampleDetailsDialogHeader.styles';\nimport {\n StyledContent,\n StyledRowContainer,\n StyledSamplesExpectedOutputContainer,\n StyledSamplesDetailsBodyItemContainer,\n StyledSamplesDetailsBodySectionsContainer,\n StyledSamplesDetailsBodyItemColumnContainer\n} from './SamplesDetailsBodyItem.styles';\n\nimport { getAppStorage } from '@/helpers/utils/localStorage';\nimport { getMarkedText } from '@/helpers/utils/getMarkedText';\nimport { UpdatePropertySchema } from '@/helpers/utils/deepCloneUpdates';\nimport {\n TextEntrySchemaOut,\n PerPropertySchema,\n PropReasonSchemaOut,\n InteractionSchemaOut,\n listPropertiesConfigs,\n ReadPropertyConfigSchema,\n PropertyDefinitionSchema,\n useGetInteractionPropertiesMetadataApiV1ApplicationVersionsApplicationVersionIdInteractionsUserInteractionIdPropertiesMetadataGet\n} from '@/helpers/services/api';\n\nimport { SectionType, SelectedColumnType } from '@/components/Samples/Samples.types';\n\ninterface SamplesDetailsBodyItemProps {\n appId?: number;\n sectionKey: string;\n isPentest?: boolean;\n appVersionId: number;\n section: SectionType;\n isFullPrompt: boolean;\n isTranslation?: boolean;\n isMultiSection: boolean;\n isInfoRetrieval?: boolean;\n userInteractionId?: string;\n isTranslationExist?: boolean;\n interaction: InteractionSchemaOut;\n isAnnotationInteraction?: boolean;\n selectedColumns?: SelectedColumnType[];\n llmAndCustomReasons?: PropReasonSchemaOut[];\n listOfProperties?: ReadPropertyConfigSchema[];\n properties: SamplesDetailsBodyAllPropertiesType;\n multiSectionContent: TextEntrySchemaOut[] | undefined;\n setSection: (section: string) => void;\n setIsTranslation: (isTranslation: boolean) => void;\n getPropertyInfo?: (name: string) => PropertyDefinitionSchema;\n updateProperty?: (updateData: UpdatePropertySchema) => void;\n updateAnnotation?: (interactionId: string, annotation: string, reason: string, isEstimated?: boolean) => void;\n}\n\nconst constants = {\n annotationLabel: 'Annotation:',\n parametersLabel: 'Parameters:',\n inputLabel: 'Interaction Input:',\n outputLabel: 'Interaction Output:',\n diffToggleLabel: 'Highlight Changes',\n expectedOutputLabel: 'Expected Output:',\n userInteractionIdLabel: 'User Interaction ID:'\n};\n\nconst { inputLabel, outputLabel, diffToggleLabel, annotationLabel, expectedOutputLabel, userInteractionIdLabel } =\n constants;\n\nexport const SamplesDetailsBodyItem = (props: SamplesDetailsBodyItemProps) => {\n const {\n appId,\n section,\n isPentest,\n properties,\n sectionKey,\n interaction,\n isFullPrompt,\n appVersionId,\n isTranslation,\n isMultiSection,\n isInfoRetrieval,\n selectedColumns,\n listOfProperties,\n userInteractionId,\n isTranslationExist,\n llmAndCustomReasons,\n multiSectionContent,\n isAnnotationInteraction,\n setSection,\n updateProperty,\n getPropertyInfo,\n updateAnnotation,\n setIsTranslation\n } = props;\n\n const { interactionType } = getAppStorage();\n\n const [isDiff, setIsDiff] = useState(false);\n const [propertyToMark, setPropertyToMark] = useState('');\n const [isPropertiesLoading, setIsPropertiesLoading] = useState(false);\n const [listOfPropsToUse, setListOfPropsToUse] = useState(listOfProperties);\n\n const firstContentRef = useRef(null);\n const secondContentRef = useRef(null);\n\n const isStep = !!section?.value;\n const isExpectedOutput = !!section?.expected_output;\n const isMainInteraction = !!section?.input && !!section?.output && !isStep;\n const isSingleView = !isStep && !!((!section?.input && section?.output) || (section?.input && !section?.output));\n\n const pageInteractionType = interactionType?.value;\n const curInteractionType = interaction?.interaction_type?.name;\n\n const { data: allMarkingDetails } =\n useGetInteractionPropertiesMetadataApiV1ApplicationVersionsApplicationVersionIdInteractionsUserInteractionIdPropertiesMetadataGet(\n appVersionId,\n `${userInteractionId}`\n );\n\n const chosenPropertyToMarkDetails = Array?.isArray(allMarkingDetails)\n ? allMarkingDetails?.find(el => el?.name === propertyToMark)\n : ({} as PerPropertySchema);\n\n const handleScroll = (containerRef: React.RefObject) => {\n if (!containerRef.current) return;\n\n const scrollTop = containerRef.current.scrollTop;\n if (firstContentRef.current) firstContentRef.current.scrollTop = scrollTop;\n if (secondContentRef.current) secondContentRef.current.scrollTop = scrollTop;\n };\n\n const isShowDiffLineNumbers = () => {\n if (isDiff) {\n const regex = new RegExp(/[0-9](.| )/);\n\n return (\n regex.test(section?.output ?? '') ||\n regex.test(section?.expected_output ?? '') ||\n section?.output === section?.expected_output\n );\n }\n\n return false;\n };\n\n useEffect(() => {\n if (isTranslationExist && !isTranslation) {\n setPropertyToMark('');\n }\n }, [isTranslationExist, isTranslation]);\n\n useEffect(() => {\n setIsPropertiesLoading(true);\n\n // If the current interaction type is not the same like the one on the page, need to fetch the properties of the new one\n if (curInteractionType && curInteractionType !== pageInteractionType) {\n listPropertiesConfigs({ app_id: Number(appId), interaction_type: curInteractionType }).then(res => {\n Array.isArray(res) && setListOfPropsToUse(res);\n setIsPropertiesLoading(false);\n });\n } else {\n // Set the list of properties to use to the one that is already fetched\n setListOfPropsToUse(listOfProperties);\n setIsPropertiesLoading(false);\n }\n }, [curInteractionType]);\n\n return (\n \n \n {section?.input && (\n \n {isMainInteraction && }\n \n \n )}\n {isMultiSection &&\n multiSectionContent?.map((el, index) => (\n el?.document_index === index) && isInfoRetrieval\n ? chosenPropertyToMarkDetails\n : undefined\n }\n />\n ))}\n {!isMultiSection && section?.output && (\n \n {isMainInteraction && (\n \n \n {isExpectedOutput /* To Turn off the diff replace isExpectedOutput with false*/ ? (\n \n ) : (\n <>\n )}\n \n )}\n \n \n \n ) : (\n getMarkedText(\n section?.output,\n chosenPropertyToMarkDetails?.element_to_mark === 'output' && !isFullPrompt && !isStep\n ? chosenPropertyToMarkDetails\n : undefined\n )\n )\n }\n onScroll={() => handleScroll(firstContentRef)}\n />\n {isExpectedOutput ? (\n \n \n \n \n \n ) : (\n section?.expected_output\n )\n }\n onScroll={() => handleScroll(secondContentRef)}\n />\n \n ) : (\n <>\n )}\n \n )}\n {isStep && (\n \n \n \n )}\n \n \n \n \n \n \n \n \n \n {(!!updateAnnotation || isAnnotationInteraction) && (\n \n \n \n )}\n {interaction?.annotation?.reason && (\n \n \n \n \n \n )}\n \n \n {isPropertiesLoading ? (\n \n ) : (\n \n )}\n \n \n );\n};\n","import { alpha, styled } from '@mui/material';\n\nimport { StyledContainer } from '@/components/lib';\n\nexport const SamplesTranslationSelectionContainer = styled(StyledContainer, {\n shouldForwardProp: prop => prop !== 'translation'\n})<{ translation?: string }>(({ translation, theme }) => ({\n gap: '12px',\n margin: '12px 0',\n cursor: 'pointer',\n padding: '4px 8px',\n transition: '0.3s',\n borderRadius: '8px',\n alignItems: 'center',\n flexDirection: 'row',\n background: translation === 'true' ? alpha(theme.palette.primary.main, 0.1) : 'transparent',\n border: `2px solid ${translation === 'true' ? theme?.palette?.primary?.main : theme.palette.grey[200]}`,\n\n '.MuiTypography-subtitle2': {\n color: theme.palette.primary.main\n },\n\n '.MuiSvgIcon-root': {\n padding: '4px',\n borderRadius: '50%',\n color: theme.palette.primary.main,\n background: theme.palette.grey[200]\n },\n\n '&:hover': { opacity: 0.8 }\n}));\n","import React from 'react';\n\nimport { TranslateOutlined } from '@mui/icons-material';\n\nimport { StyledText } from '@/components/lib';\nimport { SamplesTranslationSelectionContainer } from './SamplesTranslationSelection.styles';\n\nimport { InteractionTranslatedTextEntriesSchemaOut } from '@/helpers/services/api';\n\nconst constants = {\n changeViewBtnLabel: (isTranslation: boolean) => (isTranslation ? 'Show Original Text' : 'Show Translated Text')\n};\n\ninterface SamplesTranslationSelectionProps {\n isTranslation: boolean;\n translation: InteractionTranslatedTextEntriesSchemaOut;\n setIsTranslation: (isTranslation: boolean) => void;\n}\n\nconst { changeViewBtnLabel } = constants;\n\nexport const SamplesTranslationSelection = (props: SamplesTranslationSelectionProps) => {\n const { translation, isTranslation, setIsTranslation } = props;\n\n const isTranslated = translation?.information_retrieval?.length || translation?.input || translation?.output;\n\n if (!isTranslated) {\n return null;\n }\n\n return (\n setIsTranslation(!isTranslation)}\n >\n \n \n \n );\n};\n","import { Stack, styled } from '@mui/material';\n\nimport { StyledButton } from '@/components/lib';\nimport { paletteOptions } from '@/components/lib/theme/palette';\n\nimport { fadeInAnimation } from '@/helpers/animations';\n\nexport const SampleDetailsDialogBodyContainer = styled(Stack, {\n shouldForwardProp: prop => prop !== 'empty'\n})<{ empty?: string }>(({ empty }) => ({\n gap: '7px',\n padding: '0',\n height: '600px',\n display: 'grid',\n gridTemplateColumns: empty === 'true' ? 'auto' : '250px auto',\n\n '@media (max-height: 790px)': { height: '70vh' },\n '@media (max-height: 610px)': { height: '67vh' }\n}));\n\nexport const SampleDetailsDialogSessionsSelectionContainer = styled(Stack)(({ theme }) => ({\n display: 'flow',\n overflow: 'auto',\n marginTop: '-28px',\n padding: '28px 0 0',\n position: 'relative',\n\n '&::after': {\n top: '36px',\n right: '0',\n bottom: '0',\n width: '2px',\n content: '\"\"',\n position: 'absolute',\n backgroundColor: theme.palette.grey[200]\n }\n}));\n\nexport const SampleDetailsDialogSelectionsContainer = styled(Stack)(({ theme }) => ({\n gap: '8px',\n width: 'auto',\n overflow: 'auto',\n position: 'relative',\n margin: '-16px 0 -64px',\n padding: '36px 16px 54px',\n animation: `${fadeInAnimation} 0.5s ease`,\n borderLeft: `2px solid ${theme.palette.grey[200]}`,\n\n '&::before': {\n left: 0,\n right: 0,\n top: '62px',\n content: '\"\"',\n height: '2px',\n width: '24px',\n position: 'absolute',\n backgroundColor: theme.palette.grey[200]\n },\n\n ':last-of-type:nth-of-type(n+2)': { borderLeft: 'none' },\n\n ':only-child': {\n borderLeft: 'none',\n\n '&::before': {\n top: 0,\n left: 0,\n content: '\"\"',\n width: '1.5px',\n height: '64px',\n position: 'absolute',\n backgroundColor: theme.palette.grey[200]\n },\n\n '&::after': {\n left: 0,\n top: '63px',\n width: '24px',\n height: '2px',\n content: '\"\"',\n position: 'absolute',\n backgroundColor: theme.palette.grey[200]\n }\n }\n}));\n\nexport const SampleDetailsDialogSelectionsComparisonButton = styled(StyledButton)(({ theme }) => ({\n border: 'none',\n transition: '0.5s',\n fontSize: '13px !important',\n padding: '7px auto !important',\n background: theme.palette.grey[200],\n\n ':hover': { opacity: 0.8 },\n '&:disabled': { border: 'none', color: theme.palette.grey[400] }\n}));\n\nexport const SampleDetailsDialogSelectionsInnerContainer = styled(Stack)<{ count?: number }>(({ count, theme }) => ({\n overflow: 'auto',\n marginTop: '-8px',\n paddingTop: '6px',\n position: 'relative',\n\n '&::after': {\n top: '0px',\n left: '0px',\n content: '\"\"',\n position: 'absolute',\n height: count && count > 0 ? `8px` : 0,\n borderLeft: `2px solid ${theme.palette.grey[200]}`\n }\n}));\n\nexport const SampleDetailsDialogSelectionsRowContainer = styled(Stack)<{ border?: string; sample_data_only?: string }>(\n ({ border, sample_data_only, theme }) => ({\n width: '100%',\n position: 'relative',\n flexDirection: 'row',\n borderLeft: border ? `2px solid ${theme.palette.grey[200]}` : 'none',\n\n '&:last-child': {\n borderLeft: 'none',\n\n '&::after': {\n top: '0px',\n left: '0px',\n content: '\"\"',\n height: '28px',\n position: 'absolute',\n borderLeft: sample_data_only === 'true' ? 'none' : `2px solid ${theme.palette.grey[200]}`\n }\n }\n })\n);\n\ninterface SampleDetailsDialogBodySelectionContainerProps {\n type?: string;\n is_selected?: string;\n important?: string;\n llm_call_err?: string;\n sample_data_only?: string;\n}\n\nexport const SampleDetailsDialogBodySelectionContainer = styled(Stack, {\n shouldForwardProp: prop =>\n prop !== 'is_selected' && prop !== 'important' && prop !== 'type' && prop !== 'sample_data_only'\n})(\n ({ is_selected, llm_call_err, important, type, sample_data_only, theme }) => ({\n zIndex: 1,\n height: '58px',\n padding: '8px',\n fontWeight: 700,\n cursor: 'pointer',\n transition: '0.3s',\n justifyContent: 'center',\n width: important === 'true' ? '220px' : '200px',\n borderRadius: important === 'true' && sample_data_only === 'false' ? '8px 8px 8px 0' : '8px',\n background: type ? theme.palette.grey[100] : 'transparent',\n border:\n is_selected === 'true'\n ? `2px solid ${theme.palette.primary.main}`\n : `2px solid ${important === 'true' ? theme.palette.grey[200] : 'transparent'}`,\n\n ':hover': {\n background: theme.palette.grey[200],\n borderColor: is_selected === 'true' ? theme.palette.primary.main : theme.palette.grey[200]\n },\n\n '.MuiTypography-body2': {\n textWrap: 'nowrap',\n color:\n llm_call_err === 'true'\n ? paletteOptions.severity?.medium\n : is_selected === 'true'\n ? theme.palette.primary.main\n : theme.palette.grey[600]\n },\n\n '.MuiSvgIcon-root': {\n display: llm_call_err === 'true' ? 'auto' : 'none',\n color: paletteOptions.severity?.medium\n }\n })\n);\n\nexport const SampleDetailsDialogSelectionHeaderContainer = styled(Stack)({\n gap: '6px',\n flexDirection: 'row'\n});\n\nexport const SampleDetailsDialogSelectionsBranchLine = styled(Stack)(({ theme }) => ({\n width: '16px',\n height: '2px',\n margin: 'auto 0',\n background: theme.palette.grey[200]\n}));\n","import React from 'react';\n\nimport { WarningRounded } from '@mui/icons-material';\n\nimport { StyledText } from '@/components/lib';\nimport {\n SampleDetailsDialogSelectionsBranchLine,\n SampleDetailsDialogSelectionsRowContainer,\n SampleDetailsDialogBodySelectionContainer,\n SampleDetailsDialogSelectionHeaderContainer\n} from '../SampleDetailsDialogBody.styles';\n\nimport { StepSchema } from '@/helpers/services/api';\n\nimport { constants } from '../../../../Samples/SamplesTable/samplesTable.constants';\n\ninterface SampleDetailsDialogSelectionProps {\n step?: StepSchema;\n value: string;\n section: string;\n needBorder?: boolean;\n interactionType?: string;\n onlySampleData?: boolean;\n setSection: (section: string) => void;\n checkSectionData: (val: string) => { created?: string; data?: { input?: string; output?: string } };\n}\n\nconst { sampleKey } = constants;\n\nexport const SampleDetailsDialogSelection = (props: SampleDetailsDialogSelectionProps) => {\n const { step, value, section, needBorder, interactionType, onlySampleData, setSection, checkSectionData } = props;\n\n const { data } = checkSectionData(value);\n\n const isImportant = sampleKey === value;\n const formattedLabel = value?.includes('ID') ? step?.name : value;\n const dataToUse = step ? !!step?.value : !!data?.input || !!data?.output;\n\n if (dataToUse) {\n return (\n \n {!isImportant && }\n setSection(value)}\n >\n \n \n \n \n \n \n \n );\n }\n\n return <>;\n};\n","import React from 'react';\n\nimport { SamplesTranslationSelection } from '../SamplesTranslationSelection/SamplesTranslationSelection';\nimport { SampleDetailsDialogSelection } from '../../SampleDetailsDialogSelection/SampleDetailsDialogSelection';\n\nimport {\n SampleDetailsDialogSelectionsComparisonButton,\n SampleDetailsDialogSelectionsContainer,\n SampleDetailsDialogSelectionsInnerContainer\n} from '../../SampleDetailsDialogBody.styles';\nimport { InteractionSchemaOut, StepSchema } from '@/helpers/services/api';\n\nimport { constants } from '@/components/Samples/SamplesTable/samplesTable.constants';\n\ninterface SampleDetailsDialogInteractionSelectionsProps {\n sample: InteractionSchemaOut;\n section: string;\n isTranslation: boolean;\n isCompareDisabled: boolean;\n selectionsInnerCount: number;\n steps: StepSchema[] | undefined;\n selectedInteraction: InteractionSchemaOut;\n setSection: (section: string) => void;\n setIsTranslation: (isTranslation: boolean) => void;\n setIsComparisonView: (isComparisonView: boolean) => void;\n setSelectedInteraction: (interaction: InteractionSchemaOut) => void;\n checkSectionData: (val: string) => { created?: string; data?: { input?: string; output?: string } };\n}\n\nconst { sampleKey, historyKey, informationRetrievalKey, fullPromptKey, comparisonBtnLabel, stepNameKey } = constants;\n\nexport const SampleDetailsDialogInteractionSelections = (props: SampleDetailsDialogInteractionSelectionsProps) => {\n const {\n steps,\n sample,\n section,\n isTranslation,\n isCompareDisabled,\n selectedInteraction,\n selectionsInnerCount,\n setSection,\n checkSectionData,\n setIsTranslation,\n setIsComparisonView,\n setSelectedInteraction\n } = props;\n\n // If the selected interaction is not the current interaction (sample), then show the sample selection\n if (selectedInteraction?.user_interaction_id !== sample?.user_interaction_id) {\n return (\n setSelectedInteraction(sample)}>\n \n \n );\n } else {\n return (\n \n \n \n {[informationRetrievalKey, historyKey]?.map(val => (\n \n ))}\n {steps?.[0] &&\n steps?.map(step => (\n \n ))}\n \n \n \n {!isCompareDisabled && (\n setIsComparisonView(true)}\n />\n )}\n \n );\n }\n};\n","import React, { useEffect, useState, useMemo } from 'react';\n\nimport { StackProps } from '@mui/material';\n\nimport { SamplesDetailsBodyItem } from './SamplesDetailsBodyItem/SamplesDetailsBodyItem';\nimport { SamplesDetailsBodyAllPropertiesType } from './SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsBodyProperties';\nimport { SampleDetailsDialogInteractionSelections } from './SamplesDetailsBodyItem/SampleDetailsDialogInteractionSelections/SampleDetailsDialogInteractionSelections';\n\nimport { StyledLoader } from '@/components/lib';\nimport {\n SampleDetailsDialogBodyContainer,\n SampleDetailsDialogSessionsSelectionContainer\n} from './SampleDetailsDialogBody.styles';\n\nimport {\n TextEntrySchemaOut,\n AnnotationSchemaOut,\n InteractionSchemaOut,\n PropertyDefinitionSchema,\n listInteractionsByFilter,\n ReadPropertyConfigSchema,\n getSimilarApiV1ApplicationVersionsComparisonPut,\n useGetStepsForInteractionApiV1ApplicationVersionsAppVersionIdInteractionsUserInteractionIdStepsGet\n} from '@/helpers/services/api';\nimport { getAppStorage } from '@/helpers/utils/localStorage';\nimport { UpdatePropertySchema } from '@/helpers/utils/deepCloneUpdates';\n\nimport { SectionType, SelectedColumnType } from '@/components/Samples/Samples.types';\nimport { constants } from '../../../Samples/SamplesTable/samplesTable.constants';\n\ninterface SampleDetailsDialogBodyProps extends StackProps {\n appId?: number;\n isOutput?: boolean;\n isPentest?: boolean;\n sample: InteractionSchemaOut;\n isAnnotationInteraction?: boolean;\n selectedColumns?: SelectedColumnType[];\n listOfProperties?: ReadPropertyConfigSchema[];\n setIsComparisonView: (isComparisonView: boolean) => void;\n updateProperty?: (updateData: UpdatePropertySchema) => void;\n getPropertyInfo?: (name: string) => PropertyDefinitionSchema;\n updateAnnotation?: (interactionId: string, annotation: string, reason: string, isEstimated?: boolean) => void;\n}\n\nconst { sampleKey, historyKey, informationRetrievalKey, fullPromptKey, na, stepNameKey } = constants;\n\nexport const SampleDetailsDialogBody = (props: SampleDetailsDialogBodyProps) => {\n const {\n appId,\n sample,\n isPentest,\n selectedColumns,\n listOfProperties,\n isAnnotationInteraction,\n updateProperty,\n getPropertyInfo,\n updateAnnotation,\n setIsComparisonView\n } = props;\n\n const [section, setSection] = useState(sampleKey);\n const [isTranslation, setIsTranslation] = useState(false);\n const [isCompareDisabled, setIsCompareDisabled] = useState(true);\n const [isSessionInteractionsLoading, setIsSessionInteractionsLoading] = useState(false);\n const [sessionInteractions, setSessionInteractions] = useState([]);\n const [selectedInteraction, setSelectedInteraction] = useState(sample);\n\n const { versionId, type } = getAppStorage();\n\n const { data: steps } =\n useGetStepsForInteractionApiV1ApplicationVersionsAppVersionIdInteractionsUserInteractionIdStepsGet(\n versionId,\n selectedInteraction?.user_interaction_id\n );\n\n const stepData = Array.isArray(steps) && steps?.filter(s => stepNameKey(s?.id, s?.name) === section)[0];\n const properties = {\n input: selectedInteraction?.input_properties,\n output: selectedInteraction?.output_properties,\n custom: selectedInteraction?.custom_properties,\n llm: selectedInteraction?.llm_properties,\n ...(isPentest && { garak: selectedInteraction?.garak_properties })\n } as SamplesDetailsBodyAllPropertiesType;\n\n const updateAnnotationAndSessionInteraction = (\n interactionId: string,\n annotation: string,\n reason: string,\n isEstimated?: boolean\n ) => {\n if (updateAnnotation) {\n updateAnnotation(interactionId, annotation, reason, isEstimated);\n\n // Update the annotation of the selected interaction and the sessions list so it will be visible in the UI immediately\n const newSessionsInteractions = sessionInteractions.map(sessionInteraction => {\n if (sessionInteraction.user_interaction_id === interactionId) {\n // Update the annotation of the selected interaction\n setSelectedInteraction({\n ...sessionInteraction,\n annotation: {\n ...sessionInteraction.annotation,\n reason,\n annotation,\n is_estimated: !!isEstimated\n } as AnnotationSchemaOut\n });\n\n return {\n ...sessionInteraction,\n annotation: {\n ...sessionInteraction.annotation,\n reason,\n annotation,\n is_estimated: !!isEstimated\n } as AnnotationSchemaOut\n };\n }\n\n return sessionInteraction;\n });\n\n // Update the sessions list\n setSessionInteractions(newSessionsInteractions);\n }\n };\n\n const checkSectionData = (\n value: string\n ): {\n created?: string;\n data?: {\n input?: string;\n output?: string;\n expected_output?: string;\n };\n } => {\n switch (value) {\n case sampleKey:\n return {\n created: selectedInteraction?.input?.created_at,\n data: {\n input: isTranslation\n ? selectedInteraction?.translated?.input?.data || na\n : selectedInteraction?.input?.data,\n output: isTranslation\n ? selectedInteraction?.translated?.output?.data || na\n : selectedInteraction?.output?.data,\n expected_output: isTranslation\n ? selectedInteraction?.translated?.expected_output?.data\n : selectedInteraction?.expected_output?.data\n }\n };\n case informationRetrievalKey: {\n const latestInformationRetrieval = Array?.isArray(selectedInteraction?.information_retrieval)\n ? selectedInteraction?.information_retrieval?.reduce((latest, current) => {\n return new Date(latest?.created_at || 0) > new Date(current.created_at) ? latest : current;\n }, {} as TextEntrySchemaOut)\n : null;\n\n return {\n created: latestInformationRetrieval?.created_at,\n data: {\n output: isTranslation\n ? Array?.isArray(selectedInteraction?.translated?.information_retrieval)\n ? selectedInteraction?.translated?.information_retrieval?.map(item => item?.data)?.join('\\n')\n : ''\n : Array?.isArray(selectedInteraction?.information_retrieval)\n ? selectedInteraction?.information_retrieval?.map(item => item?.data)?.join('\\n')\n : ''\n }\n };\n }\n case historyKey: {\n const latestHistory = Array?.isArray(selectedInteraction?.history)\n ? selectedInteraction?.history?.reduce((latest, current) => {\n return new Date(latest?.created_at || 0) > new Date(current.created_at) ? latest : current;\n }, {} as TextEntrySchemaOut)\n : null;\n\n return {\n created: latestHistory?.created_at,\n data: {\n output: isTranslation\n ? Array?.isArray(selectedInteraction?.translated?.history)\n ? selectedInteraction?.translated?.history?.map(item => item?.data)?.join('\\n')\n : ''\n : Array?.isArray(selectedInteraction?.history)\n ? selectedInteraction?.history?.map(item => item?.data)?.join('\\n')\n : ''\n }\n };\n }\n case fullPromptKey:\n return {\n created: selectedInteraction?.prompt?.created_at,\n data: {\n output: isTranslation ? selectedInteraction?.translated?.prompt?.data : selectedInteraction?.prompt?.data\n }\n };\n\n default:\n return { created: '', data: {} };\n }\n };\n\n const { data: sectionData } = checkSectionData(section);\n\n const isFullPrompt = section === fullPromptKey;\n const isMultiSection = section === informationRetrievalKey || section === historyKey;\n const isTheOriginalInteraction = selectedInteraction?.user_interaction_id === sample?.user_interaction_id;\n const multiSectionContent =\n section === informationRetrievalKey\n ? isTranslation\n ? (selectedInteraction?.translated?.information_retrieval as TextEntrySchemaOut[])\n : (selectedInteraction?.information_retrieval as TextEntrySchemaOut[])\n : isTranslation\n ? (selectedInteraction?.translated?.history as TextEntrySchemaOut[])\n : (selectedInteraction?.history as TextEntrySchemaOut[]);\n\n const reversedSessionInteractions = Array?.isArray(sessionInteractions)\n ? sessionInteractions?.slice()?.reverse()\n : [];\n\n useEffect(() => {\n setSection(sampleKey);\n setSelectedInteraction(sample);\n\n if (sample?.session_id && sample?.user_interaction_id) {\n setIsSessionInteractionsLoading(true);\n listInteractionsByFilter(versionId, {\n pagination_schema: {},\n filter_schema: { session_ids: [sample?.session_id] }\n })?.then(res => {\n setSessionInteractions(res);\n setIsSessionInteractionsLoading(false);\n });\n }\n }, [sample?.user_interaction_id, sample?.session_id]);\n\n const selectionsInnerCount = useMemo(() => {\n const historyKeyData = checkSectionData(historyKey).data || {};\n const fullPromptKeyData = checkSectionData(fullPromptKey).data || {};\n const informationRetrievalKeyData = checkSectionData(informationRetrievalKey).data || {};\n\n return (\n (steps?.[0] && steps?.length ? steps?.length : 0) +\n (fullPromptKeyData?.input || fullPromptKeyData?.output ? 1 : 0) +\n (informationRetrievalKeyData?.input || informationRetrievalKeyData?.output ? 1 : 0) +\n (historyKeyData?.input || historyKeyData?.output ? 1 : 0)\n );\n }, [steps?.[0], steps]);\n\n useEffect(() => {\n if (appId) {\n getSimilarApiV1ApplicationVersionsComparisonPut({\n env_type: type,\n application_id: appId,\n user_interaction_id: sample?.user_interaction_id\n }).then(res => {\n Array.isArray(res) && res.length >= 2 && setIsCompareDisabled(false);\n });\n }\n }, []);\n\n return (\n \n {isSessionInteractionsLoading ? (\n \n ) : (\n <>\n \n {reversedSessionInteractions?.map((sessionInteraction, index) => (\n \n ))}\n \n \n \n )}\n \n );\n};\n","import { Stack, styled } from '@mui/material';\n\ninterface StyledContentCopyContainerProps {\n is_link_copied: string;\n}\n\nexport const StyledContentCopyContainer = styled(Stack)(\n ({ theme, is_link_copied }) => ({\n flexDirection: 'row',\n alignItems: 'center',\n marginLeft: '8px',\n cursor: 'pointer',\n\n ' svg': {\n width: '17px',\n fill: is_link_copied === 'true' ? theme.palette.grey[700] : theme.palette.grey[500]\n },\n\n ' p': {\n marginLeft: '2px',\n color: is_link_copied === 'true' ? theme.palette.grey[700] : theme.palette.grey[500]\n },\n\n ':hover': {\n ' svg': {\n fill: theme.palette.grey[700]\n },\n ' p': {\n color: theme.palette.grey[700]\n }\n }\n })\n);\n","import React, { useEffect, useState } from 'react';\n\nimport { ContentCopy } from '@mui/icons-material';\n\nimport { StyledText } from '@/components/lib';\nimport { StyledContentCopyContainer } from './SampleDetailsDialogHeaderCopy.styles';\n\nimport { routes } from '@/helpers/routes';\nimport { getAppStorage } from '@/helpers/utils/localStorage';\n\nimport { constants } from '../sampleDetailsDialogHeader.constants';\n\ninterface SampleDetailsDialogHeaderCopyProps {\n versionId: number;\n currentPage: number;\n interactionId: string;\n}\n\nconst { copyLinkText, linkCopied } = constants.copy;\n\nexport const SampleDetailsDialogHeaderCopy = (props: SampleDetailsDialogHeaderCopyProps) => {\n const { interactionId, currentPage, versionId } = props;\n\n const [isLinkCopied, setIsLinkCopied] = useState(false);\n\n const { appName, versionName, type } = getAppStorage();\n\n const handleCopyInteractionLink = () => {\n const curUrl = typeof window !== 'undefined' ? window?.location?.origin : 'https://app.llm.deepchecks.com/';\n const copyText = `${curUrl}${routes?.samples}?appName=${encodeURIComponent(\n appName\n )}&versionName=${encodeURIComponent(versionName)}&env=${type}&versionId=${versionId}&search_text=${interactionId}&is_exact=true`;\n\n navigator.clipboard.writeText(copyText);\n setIsLinkCopied(true);\n };\n\n useEffect(() => {\n if (isLinkCopied) {\n setIsLinkCopied(false);\n }\n }, [currentPage]);\n\n return (\n \n \n \n \n );\n};\n","export const getMilliseconds = (startTime?: string | null, endTime?: string | null) => {\n if (startTime && endTime) {\n const startTimestamp = Date.parse(startTime);\n const endTimestamp = Date.parse(endTime);\n\n if (!isNaN(startTimestamp) && !isNaN(endTimestamp)) {\n const duration = endTimestamp - startTimestamp;\n const formattedDuration = duration.toLocaleString();\n\n return `| ${formattedDuration}ms`;\n } else {\n return '';\n }\n } else {\n return '';\n }\n};\n","import React from 'react';\n\nimport dayjs from 'dayjs';\n\nimport { ArrowBackIosRounded, ClearRounded } from '@mui/icons-material';\n\nimport { SampleDetailsDialogHeaderCopy } from './SampleDetailsDialogHeaderCopy/SampleDetailsDialogHeaderCopy';\n\nimport { StyledText } from '@/components/lib';\nimport {\n StyledContainer,\n StyledIconButton,\n StyledPaginationButton,\n StyledPaginationContainer,\n StyledHeaderContainerBase,\n StyledHeaderContainerSecondary\n} from './SampleDetailsDialogHeader.styles';\n\nimport { InteractionSchemaOut } from '@/helpers/services/api';\nimport { getMilliseconds } from '@/helpers/utils/getMilliseconds';\n\nimport { constants } from './sampleDetailsDialogHeader.constants';\n\nconst { backButtonLabel, nextButtonLabel, paginationText, sessionIdText } = constants;\n\ninterface SampleDetailsDialogHeaderProps {\n versionId: number;\n pageCount: number;\n currentPage: number;\n iscComparisonView?: boolean;\n interaction: InteractionSchemaOut;\n isAnnotationInteraction?: boolean;\n closeDialog: () => void;\n setIsComparisonView: (isComparisonView: boolean) => void;\n setCurrentPage: React.Dispatch>;\n}\n\nexport const SampleDetailsDialogHeader = (props: SampleDetailsDialogHeaderProps) => {\n const {\n interaction,\n pageCount,\n currentPage,\n versionId,\n iscComparisonView,\n isAnnotationInteraction,\n closeDialog,\n setCurrentPage,\n setIsComparisonView\n } = props;\n\n const interactionDate = `${dayjs(interaction?.interaction_datetime).format('lll')} ${getMilliseconds(\n interaction?.started_at,\n interaction?.finished_at\n )}`;\n\n const handleNextPage = () => setCurrentPage((prev: number) => Math.min(prev + 1, pageCount - 1));\n\n const handlePrevPage = () => setCurrentPage((prev: number) => Math.max(prev - 1, 0));\n\n return (\n \n \n {iscComparisonView && setIsComparisonView(false)} />}\n \n {!isAnnotationInteraction && (\n \n )}\n \n \n \n {!!pageCount && (\n \n \n \n \n \n )}\n \n \n \n \n \n );\n};\n","export const sxStyles = { minWidth: '1150px', overflowX: 'auto' };\n","import React, { useEffect, useState } from 'react';\n\nimport { useRouter } from 'next/router';\n\nimport { DialogProps, Stack } from '@mui/material';\n\nimport { NoDataAvailable } from '../NoDataAvailable/NoDataAvailable';\nimport { SampleDetailsDialogBody } from './SampleDetailsDialogBody/SampleDetailsDialogBody';\nimport { SampleDetailsDialogHeader } from './SampleDetailsDialogHeader/SampleDetailsDialogHeader';\nimport { SampleDetailsDialogComparison } from './SampleDetailsDialogComparison/SampleDetailsDialogComparison';\n\nimport { sxStyles } from './SampleDetailsDialog.styles';\nimport { StyledDialogBase, StyledLoader } from '@/components/lib';\n\nimport { getAppStorage } from '@/helpers/utils/localStorage';\nimport { usePropertiesInfo } from '@/helpers/hooks/usePropertiesInfo';\nimport { UpdatePropertySchema } from '@/helpers/utils/deepCloneUpdates';\nimport { ReadPropertyConfigSchema, InteractionSchemaOut } from '@/helpers/services/api';\n\nimport { SelectedColumnType } from '@/components/Samples/Samples.types';\n\ninterface SampleDetailsDialogProps extends DialogProps {\n appId?: number;\n isPentest?: boolean;\n isFetching?: boolean;\n samplesCount?: number;\n samples?: InteractionSchemaOut[];\n isAnnotationInteraction?: boolean;\n sample: InteractionSchemaOut | undefined;\n selectedColumns?: SelectedColumnType[];\n listOfProperties?: ReadPropertyConfigSchema[];\n interactionToCompare?: { application_version_id: number; user_interaction_id: string };\n closeDialog: () => void;\n getMoreInteractions?: () => void;\n updateProperty?: (updateData: UpdatePropertySchema) => void;\n updateAnnotation?: (interactionId: string, annotation: string, reason: string, isEstimated?: boolean) => void;\n}\n\nexport const SampleDetailsDialog = (props: SampleDetailsDialogProps) => {\n const {\n appId,\n sample,\n samples,\n isPentest,\n samplesCount,\n selectedColumns,\n listOfProperties,\n isFetching = false,\n interactionToCompare,\n isAnnotationInteraction,\n closeDialog,\n updateProperty,\n updateAnnotation,\n getMoreInteractions,\n ...otherProps\n } = props;\n const { versionId } = getAppStorage();\n\n const [currentPage, setCurrentPage] = useState(() =>\n samples ? samples.findIndex(s => s.user_interaction_id === sample?.user_interaction_id) : 0\n );\n\n const [isComparisonView, setIsComparisonView] = useState(false);\n const [similarInteractionToCompare, setSimilarInteractionToCompare] = useState<\n { application_version_id: number; user_interaction_id: string } | undefined\n >();\n\n const { query, pathname, replace } = useRouter();\n\n const { getPropertyInfo } = usePropertiesInfo();\n\n const isTheLastPageOfTheList = (currentPage + 1) % 20 === 0;\n const sampleToUse = (samples && samples[currentPage]) || sample;\n const pageCount = interactionToCompare || similarInteractionToCompare ? 0 : Math.ceil(samplesCount || 0 / 1); // Pagination is hidden for similarity view\n const interactionId = samples ? samples[currentPage]?.user_interaction_id : sampleToUse?.user_interaction_id;\n\n const handleBack = () => setIsComparisonView(false);\n\n useEffect(() => {\n if (isTheLastPageOfTheList && getMoreInteractions) {\n getMoreInteractions();\n }\n\n if (interactionId && !isAnnotationInteraction) {\n replace(\n {\n pathname,\n query: {\n ...query,\n versionId: versionId,\n search_text: interactionId\n }\n },\n undefined,\n {}\n );\n }\n\n if (interactionToCompare) {\n setIsComparisonView(true);\n }\n }, [currentPage]);\n\n const curCloseDialog = () => {\n if (interactionId && !isAnnotationInteraction) {\n const queryCopy = { ...query };\n\n delete queryCopy.is_exact;\n delete queryCopy.versionId;\n delete queryCopy.search_text;\n delete queryCopy.field_names;\n\n replace(\n {\n pathname,\n query: queryCopy\n },\n undefined,\n {}\n );\n }\n\n closeDialog();\n setSimilarInteractionToCompare(undefined);\n };\n\n return (\n \n {isFetching ? (\n \n ) : sampleToUse ? (\n \n {isComparisonView ? (\n \n ) : (\n <>\n \n \n \n )}\n \n ) : (\n \n )}\n \n );\n};\n","import { styled, Box } from '@mui/material';\n\nimport { spinAnimation } from '@/helpers/animations';\n\ninterface RotateContainerProps {\n rotate: string;\n}\n\nexport const StyledRotateContainer = styled(Box, {\n shouldForwardProp: prop => prop !== 'rotate'\n})(({ rotate }) => ({\n animation: rotate === 'true' ? `${spinAnimation} 1.2s infinite linear` : ''\n}));\n","import React, { ReactNode } from 'react';\n\nimport { BoxProps } from '@mui/material';\n\nimport { StyledRotateContainer } from './RotateContainer.styles';\n\ninterface RotateContainerProps extends BoxProps {\n rotate: boolean;\n children: ReactNode;\n}\n\nexport const RotateContainer = ({ rotate, children, ...otherProps }: RotateContainerProps) => {\n return (\n \n {children}\n \n );\n};\n","import { styled } from '@mui/material';\n\nimport { StyledContainer } from '@/components/lib';\n\nexport const StyledErrContainer = styled(StyledContainer)({\n width: '450px',\n margin: '10vh auto',\n justifyContent: 'center',\n textAlign: 'center',\n gap: '36px',\n alignItems: 'center'\n});\n","export default {\"src\":\"/_next/static/media/magnifying-glass-illustration.693b4303.svg\",\"height\":188,\"width\":188,\"blurWidth\":0,\"blurHeight\":0};","import React from 'react';\n\nimport Image from 'next/image';\n\nimport { StyledButton, StyledText } from '@/components/lib';\nimport { StyledErrContainer } from './InternalServerError.styles';\n\nimport magnifyingGlassIllustration from '@/public/assets/overview/magnifying-glass-illustration.svg';\n\nimport { constants } from '../appFilters.constants';\n\nconst { imgAlt, title, buttonLabel } = constants.internalServerErr;\n\nexport const InternalServerError = ({ isFetched, isError }: { isFetched?: boolean; isError: boolean }) => {\n if (!isFetched || !isError) {\n return <>;\n }\n\n return (\n \n {imgAlt}\n \n window.location.reload()} variant=\"outlined\" />\n \n );\n};\n","import { Stack, styled, alpha } from '@mui/material';\n\nimport { StyledContainer, StyledText } from '@/components/lib';\n\nimport { fadeInAnimation } from '@/helpers/animations';\n\nexport const SamplesNoVersionSelectedContainer = styled(StyledContainer)({\n width: '100%',\n height: '100%',\n margin: 'auto',\n marginTop: '27vh',\n alignItems: 'center',\n justifyContent: 'center',\n animation: `${fadeInAnimation} 0.5s ease`,\n gap: 0\n});\n\nexport const SamplesNoVersionSelectedButton = styled(StyledText)(({ theme }) => ({\n color: theme.palette.primary.main,\n display: 'inline',\n marginLeft: '4px',\n textDecoration: 'underline',\n cursor: 'pointer'\n}));\n\nexport const StyledImageContainer = styled(Stack)(({ theme }) => ({\n background: alpha(theme.palette.primary.main, 0.2),\n marginBottom: '32px',\n width: '80px',\n height: '80px',\n borderRadius: '48px',\n justifyContent: 'center',\n alignItems: 'center',\n\n '& svg': {\n height: '48px',\n width: '48px'\n }\n}));\n\nexport const StyledTitleText = styled(StyledText)(({ theme }) => ({\n color: theme.palette.grey[400]\n}));\n\nexport const StyledSubTitleText = styled(StyledText)(({ theme }) => ({\n color: theme.palette.grey[300],\n maxWidth: '250px',\n textAlign: 'center',\n marginTop: '4px'\n}));\n","export const constants = {\n noVersion: 'No Version',\n createVersion: 'Please create a version for this application',\n here: 'here'\n};\n","import React from 'react';\n\nimport { useRouter } from 'next/router';\n\nimport { ListAltOutlined } from '@mui/icons-material';\n\nimport { routes } from '@/helpers/routes';\n\nimport {\n SamplesNoVersionSelectedContainer,\n SamplesNoVersionSelectedButton,\n StyledImageContainer,\n StyledTitleText,\n StyledSubTitleText\n} from './SamplesNoVersionSelected.styles';\n\nimport { constants } from './samplesNoVersionSelected.constants';\n\nconst { noVersion, createVersion, here } = constants;\n\nexport const SamplesNoVersionSelected = () => {\n const { push } = useRouter();\n\n const handleGoToVersionsPage = () => push(routes.config.versions);\n\n return (\n \n \n \n \n \n \n {createVersion}\n \n \n }\n type=\"h3\"\n />\n \n );\n};\n","export const getTimestamp = (daysAgo: number) => {\n const now = new Date();\n const past = new Date(now.setDate(now.getDate() - daysAgo));\n\n return Math.floor(past.getTime() / 1000);\n};\n","import React, { useEffect, useRef, useState } from 'react';\n\nimport { useRouter } from 'next/router';\n\nimport { RotateContainer } from './RotateContainer/RotateContainer';\nimport { InternalServerError } from './InternalServerError/InternalServerError';\nimport { OverviewNoAppList } from './../../Overview/OverviewNoAppList/OverviewNoAppList';\nimport { InteractionTypeDropDown } from '../InteractionTypeDropDown/InteractionTypeDropDown';\nimport { SamplesNoVersionSelected } from '@/components/Samples/SamplesNoVersionSelected/SamplesNoVersionSelected';\n\nimport { StyledDateTimePicker, StyledSelect, StyledToolTip } from '@/components/lib';\nimport {\n StyledLabelText,\n StyledRefreshIcon,\n AppFiltersContainer,\n AppFiltersInnerContainer,\n AppFiltersVersionsDropdown,\n AppFiltersInnerItemContainer\n} from './AppFilters.styles';\n\nimport { routes } from '@/helpers/routes';\nimport { resError } from '@/helpers/services/resHandlers';\nimport { getTimestamp } from '@/helpers/utils/getTimestamp';\nimport { getAppStorage, setStorageItem, storageKeys } from '@/helpers/utils/localStorage';\nimport {\n EnvType,\n useListApps,\n ApplicationSchema,\n ApplicationVersionSchema,\n ReadInteractionTypeSchema,\n getDefaultTimeRangeApiV1ApplicationVersionsApplicationVersionIdDefaultTimeRangeGet\n} from '@/helpers/services/api';\n\nimport { constants, srcRadioOptions } from './appFilters.constants';\n\ninterface AppFiltersProps {\n isOverview?: boolean;\n refreshValue?: boolean;\n initialLoading?: boolean;\n samplesSelectedApp?: {\n appId: number;\n type: EnvType;\n versionId: number;\n interactionType: string;\n timestamp: { start: number; end: number };\n };\n refresh?: () => void;\n resetAdditionalFilters: () => void;\n setInitialLoading?: React.Dispatch>;\n setSelectedApp: (arg: {\n appId: number;\n type: EnvType;\n versionId: number;\n interactionType: string;\n timestamp: { start: number; end: number };\n }) => void;\n}\n\nexport const AppFilters = (props: AppFiltersProps) => {\n const {\n isOverview,\n refreshValue,\n initialLoading,\n samplesSelectedApp,\n refresh,\n setSelectedApp,\n setInitialLoading,\n resetAdditionalFilters\n } = props;\n\n const {\n type,\n appName,\n versionName,\n timestamp: timeStampStorage,\n interactionType: interactionTypeStorage\n } = getAppStorage();\n\n const { pathname, query, replace, push } = useRouter();\n const { data: applications, isFetching, refetch } = useListApps();\n\n const wrongVersionDebounceTimeout = useRef(null);\n\n const appNameQuery = query?.appName && query.appName !== 'undefined' && decodeURIComponent(`${query?.appName}`);\n const versionNameQuery =\n query?.versionName && query.versionName !== 'undefined' && decodeURIComponent(`${query?.versionName}`);\n const envQuery = query?.env && query.env !== 'undefined' && (decodeURIComponent(`${query?.env}`) as EnvType);\n const startTimeQuery =\n query?.start_time_epoch && query.start_time_epoch !== 'undefined' && Number(query?.start_time_epoch);\n const endTimeQuery = query?.end_time_epoch && query.end_time_epoch !== 'undefined' && Number(query?.end_time_epoch);\n const interactionTypeQuery =\n query?.interactionType && query.interactionType !== 'undefined' && query?.interactionType;\n\n const [envType, setEnvType] = useState(envQuery || type || EnvType['EVAL']);\n const [application, setApplication] = useState(appNameQuery || appName || '');\n const [version, setVersion] = useState(versionNameQuery || versionName || '');\n const [interactionType, setInteractionType] = useState(interactionTypeQuery || interactionTypeStorage?.value || '');\n const [timestamp, setTimestamp] = useState<{ start: number; end: number }>(\n envType === EnvType['PROD']\n ? { start: startTimeQuery || timeStampStorage?.start, end: endTimeQuery || timeStampStorage?.end }\n : { start: startTimeQuery || undefined, end: endTimeQuery || undefined } // If no query exist always reset for non EnvType['PROD']\n );\n\n const selectedApp = (() => {\n if (Array.isArray(applications)) {\n const selected = Array.isArray(applications)\n ? applications.find(app => app?.name === application)\n : ({} as ApplicationSchema);\n return (\n selected ||\n (applications?.length > 0 && (application || (!appNameQuery && !appName)) ? applications?.[0] : null)\n );\n } else {\n return null;\n }\n })();\n\n const selectedVersion = (() => {\n const selected = Array.isArray(selectedApp?.versions)\n ? selectedApp?.versions?.find(val => val?.name === version)\n : ({} as ApplicationVersionSchema);\n return selected || selectedApp?.versions?.[0] || null;\n })();\n\n const hideTime = isOverview && EnvType['PROD'] !== envType;\n const samplesNoData = !(Number(selectedApp?.id) && selectedVersion) && !isFetching && !isOverview;\n\n const setTrueInitialLoading = () => setInitialLoading && setInitialLoading(true);\n\n const handleQueryChange = (\n appState: string,\n versionsState: string,\n envTypeName: string,\n timestampState: { start: number; end: number }\n ) => {\n if (Array.isArray(applications)) {\n const selectedCurApp = appState ? applications.find(app => app.name === appState) : selectedApp;\n const selectedCurVersion =\n versionsState && Array.isArray(selectedCurApp?.versions)\n ? selectedCurApp?.versions.find(val => val?.name === versionsState)\n : selectedVersion;\n\n replace({\n pathname,\n query: {\n env: envTypeName,\n appName: encodeURIComponent(`${selectedCurApp?.name}`),\n versionName: encodeURIComponent(selectedCurVersion?.name as string | number | boolean),\n interactionType: interactionType,\n start_time_epoch: timestampState?.start,\n end_time_epoch: timestampState?.end,\n ...(initialLoading ? {} : { ...query })\n }\n });\n\n if (initialLoading) {\n resetAdditionalFilters();\n }\n }\n };\n\n // Should be triggered on env/app/version change\n const handleResetDates = async (envTypeProp: EnvType, versionId: number) => {\n const defaultTimeStamp =\n envTypeProp === EnvType['PROD'] ? { start: getTimestamp(21), end: getTimestamp(0) } : { start: NaN, end: NaN };\n\n if (versionId) {\n await getDefaultTimeRangeApiV1ApplicationVersionsApplicationVersionIdDefaultTimeRangeGet(versionId, {\n env_type: envTypeProp\n }).then(defaultTimes => {\n if (defaultTimes?.start_time && defaultTimes?.end_time && envTypeProp === EnvType['PROD']) {\n setTimestamp({ start: defaultTimes.start_time, end: defaultTimes.end_time });\n } else {\n setTimestamp(defaultTimeStamp);\n }\n });\n } else {\n setTimestamp(defaultTimeStamp);\n }\n };\n\n // Should be triggered on app change\n const handleInteractionTypeChange = (typesProp?: ReadInteractionTypeSchema[]) => {\n const curTypes = typesProp || selectedApp?.interaction_types || [];\n const curAvailableTypes = curTypes?.filter(val => !!val?.is_active)?.map((type: { name: string }) => type?.name);\n const selectedType = curAvailableTypes?.[0] || interactionType;\n\n setInteractionType(selectedType);\n setStorageItem(storageKeys.app, {\n ...getAppStorage(),\n interactionType: { ...getAppStorage()?.interactionType, value: selectedType }\n });\n };\n\n // Should be triggered on app change\n const handleVersionChange = (versionName: string, versionId?: number) => {\n setTrueInitialLoading();\n setVersion(versionName);\n handleResetDates(envType, Number(versionId || selectedVersion?.id));\n };\n\n // Should be triggered only on env click\n const handleEnvTypeChange = (envTypeProp: EnvType) => {\n setTrueInitialLoading();\n setEnvType(envTypeProp);\n handleResetDates(envTypeProp, Number(selectedVersion?.id));\n };\n\n // Should be triggered on app click\n const handleApplicationChange = (state: string | undefined) => {\n const newAppSelected = Array.isArray(applications)\n ? applications.find(el => el?.name === state)\n : ({} as ApplicationSchema);\n\n const newAppVersionId = newAppSelected?.versions[0]?.id;\n const newAppVersionName = newAppSelected?.versions[0]?.name;\n\n setApplication(state);\n handleVersionChange(newAppVersionName ?? '', Number(newAppVersionId));\n handleInteractionTypeChange(newAppSelected?.interaction_types);\n };\n\n // Lifecycle triggered by filters change\n useEffect(() => {\n if (selectedApp?.name) {\n handleQueryChange(selectedApp?.name, selectedVersion?.name || version, envType, {\n start: timestamp.start,\n end: timestamp.end\n });\n setSelectedApp({\n type: envType,\n timestamp: timestamp,\n appId: Number(selectedApp?.id),\n interactionType: interactionType,\n versionId: Number(selectedVersion?.id)\n });\n setStorageItem(storageKeys.app, {\n type: envType,\n timestamp: timestamp,\n appName: selectedApp?.name,\n appId: Number(selectedApp?.id),\n versionId: Number(selectedVersion?.id),\n versionName: selectedVersion?.name ?? null,\n interactionType: { value: interactionType ?? '', options: selectedApp?.interaction_types ?? [] }\n });\n\n // FALLBACK - if version doesn't exist in the current app versions, set the version again\n if (wrongVersionDebounceTimeout.current !== null) {\n clearTimeout(wrongVersionDebounceTimeout.current as NodeJS.Timeout);\n }\n\n wrongVersionDebounceTimeout.current = setTimeout(() => {\n if (selectedVersion?.name !== version) {\n handleVersionChange(selectedVersion?.name ?? '');\n }\n }, 500);\n }\n }, [selectedApp?.id, selectedVersion?.id, envType, interactionType, timestamp?.start, timestamp?.end]);\n\n // Lifecycle triggered by the initial load\n useEffect(() => {\n if (Array.isArray(applications) && applications.length && !isFetching) {\n // Current application data\n const findApplicationByNameFromQuery = applications.find(el => el?.name === appNameQuery);\n const findApplicationByNameFromStore = applications.find(el => el?.name === appName);\n\n // Current version data\n const findVersionByNameFromQuery = Array.isArray(findApplicationByNameFromQuery?.versions)\n ? findApplicationByNameFromQuery?.versions.find(el => el?.name === versionNameQuery)\n : undefined;\n const findVersionByNameFromStore = Array.isArray(findApplicationByNameFromStore?.versions)\n ? findApplicationByNameFromStore?.versions.find(el => el?.name === versionName)\n : undefined;\n\n const curEnvType = envQuery || envType || samplesSelectedApp?.type;\n const curVersionData = findVersionByNameFromQuery || findVersionByNameFromStore;\n const curAppData =\n findApplicationByNameFromQuery || findApplicationByNameFromStore || selectedApp || applications?.[0];\n const curInteractionType =\n interactionTypeQuery || interactionTypeStorage?.value || curAppData?.interaction_types?.[0]?.name;\n const curTimestamp = {\n start: startTimeQuery || timeStampStorage?.start || timestamp?.start,\n end: endTimeQuery || timeStampStorage?.end || timestamp?.end\n };\n\n curEnvType && setEnvType(curEnvType);\n curAppData && setApplication(curAppData?.name);\n curVersionData && setVersion(curVersionData?.name);\n curInteractionType && setInteractionType(curInteractionType);\n curTimestamp?.end && curTimestamp?.start && setTimestamp(curTimestamp);\n\n handleQueryChange(curAppData?.name, curVersionData?.name ?? version, curEnvType, {\n start: curTimestamp?.start,\n end: curTimestamp?.end\n });\n setSelectedApp({\n type: curEnvType,\n appId: curAppData?.id,\n timestamp: curTimestamp,\n interactionType: interactionType,\n versionId: curVersionData?.id ?? NaN\n });\n setStorageItem(storageKeys.app, {\n type: curEnvType,\n appId: curAppData?.id,\n timestamp: curTimestamp,\n appName: curAppData?.name,\n versionId: curVersionData?.id,\n versionName: curVersionData?.name ?? null,\n interactionType: {\n value: curInteractionType ?? '',\n options: curAppData?.interaction_types ?? []\n }\n });\n setTrueInitialLoading();\n }\n }, [applications, isFetching]);\n\n // Lifecycle triggered by the refresh button\n useEffect(() => {\n refetch();\n }, [refreshValue]);\n\n if ((applications as unknown as resError)?.error_message) {\n return (\n \n );\n } else if (!applications?.length && !(Number(selectedApp?.id) && selectedVersion) && !isFetching) {\n return ;\n }\n\n return (\n <>\n \n void}\n textOnlyEndAdornmentWhenActive={\n refresh && (\n \n \n \n \n \n )\n }\n />\n \n \n \n handleResetDates(envType, Number(selectedVersion?.id))}\n />\n \n \n setInteractionType(type)}\n />\n \n \n \n push(routes?.config?.versions)\n }}\n setValue={handleVersionChange}\n />\n \n \n \n push(routes?.config?.applications) }}\n setValue={handleApplicationChange}\n />\n \n \n \n {samplesNoData && }\n \n );\n};\n","import { Divider, Stack, styled } from '@mui/material';\nimport { HelpOutline, UpdateRounded } from '@mui/icons-material';\n\nimport { StyledThumbs } from '@/components/lib';\n\nimport { fadeInAnimation } from '@/helpers/animations';\n\ninterface SharedProps {\n expanded?: string;\n active?: string;\n}\n\nexport const StyledContainerBase = styled(Stack)({\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between'\n});\n\nexport const StyledContainer = styled(Stack, {\n shouldForwardProp: prop => prop !== 'expanded' && prop !== 'active'\n})(({ theme }) => ({\n width: '176px',\n height: '127px',\n padding: '12px',\n border: `2px solid ${theme.palette.grey[200]}`,\n borderRadius: '8px',\n transition: '0.4s',\n animation: `${fadeInAnimation} 0.5s ease`,\n\n '&:hover': {\n background: theme.palette.grey[200]\n }\n}));\n\nexport const StyledDivider = styled(Divider)(({ theme }) => ({\n margin: '9px 0',\n border: `1.5px solid ${theme.palette.grey[300]}`\n}));\n\nexport const StyledThumb = styled(StyledThumbs)({\n cursor: 'pointer',\n transition: 'all ease 0.3s',\n\n '&:hover': {\n opacity: 0.7\n }\n});\n\nexport const StyledHelp = styled(HelpOutline, {\n shouldForwardProp: prop => prop !== 'active'\n})(({ theme, active }) => ({\n cursor: 'pointer',\n fill: active === 'true' ? theme.palette.grey[600] : theme.palette.grey[400],\n transition: 'all ease 0.3s',\n\n '&:hover': {\n opacity: 0.7\n }\n}));\n\nexport const StyledPending = styled(UpdateRounded, {\n shouldForwardProp: prop => prop !== 'active'\n})(({ theme, active }) => ({\n cursor: 'pointer',\n fill: active === 'true' ? theme.palette.grey[600] : theme.palette.grey[400],\n transition: 'all ease 0.3s',\n\n '&:hover': {\n opacity: 0.7\n }\n}));\n"],"names":["StyledInfoRetrievalText","styled","StyledText","theme","is_margin","is_collapse","color","palette","grey","marginBottom","overflow","WebkitLineClamp","WebkitBoxOrient","display","whiteSpace","minWidth","SamplesDetailsBodyInfoRetrievalItemContainer","Stack","translation","background","padding","cursor","transition","borderRadius","height","flexDirection","border","primary","main","borderColor","historyKey","documentTitle","constants","SamplesDetailsBodyInfoRetrievalItem","Array","markingDetails","index","sectionKey","isTranslation","infoRetrievalItem","props","isOpen","setIsOpen","useState","isHistory","markingDetailsByIndex","metadata","isArray","filter","item","document_index","undefined","toString","data-testid","onClick","type","text","includeCopy","copyOnTopPosition","getMarkedText","data","inputLabel","outputLabel","diffToggleLabel","annotationLabel","expectedOutputLabel","userInteractionIdLabel","parametersLabel","SamplesDetailsBodyItem","interaction","appId","section","isPentest","properties","isFullPrompt","appVersionId","isMultiSection","isInfoRetrieval","selectedColumns","listOfProperties","userInteractionId","isTranslationExist","llmAndCustomReasons","multiSectionContent","isAnnotationInteraction","setSection","updateProperty","getPropertyInfo","updateAnnotation","setIsTranslation","interactionType","getAppStorage","isDiff","setIsDiff","propertyToMark","setPropertyToMark","isPropertiesLoading","setIsPropertiesLoading","listOfPropsToUse","setListOfPropsToUse","firstContentRef","useRef","secondContentRef","isStep","value","isExpectedOutput","expected_output","isMainInteraction","input","output","isSingleView","pageInteractionType","curInteractionType","interaction_type","name","allMarkingDetails","useGetInteractionPropertiesMetadataApiV1ApplicationVersionsApplicationVersionIdInteractionsUserInteractionIdPropertiesMetadataGet","chosenPropertyToMarkDetails","find","el","handleScroll","containerRef","current","scrollTop","isShowDiffLineNumbers","regex","RegExp","test","useEffect","listPropertiesConfigs","app_id","then","res","StyledSamplesDetailsBodyItemContainer","StyledSamplesDetailsBodySectionsContainer","step","single","is_info_retrieval","StyledSamplesDetailsBodyItemColumnContainer","StyledContent","element_to_mark","map","StyledRowContainer","marginRight","StyledToggle","state","setState","label","labelPlacement","diff","ref","StyledDiffContainer","DiffViewer","splitView","showDiffOnly","newValue","compareMethod","DiffMethod","WORDS","oldValue","hideLineNumbers","onScroll","StyledSamplesExpectedOutputContainer","StyledAnnotationAndPropsWrapper","StyledInteractionIdText","contrast","StyledAnnotationPropsContainer","StyledAnnotationCellContainer","AnnotationCell","disableTooltip","annotation","interactionId","user_interaction_id","estAnnotation","estimated_annotation","reason","StyledToolTip","StyledAnnotationCellText","StyledLoader","SampleDetailsBodyProperties","excludeStorageProps","switchToTranslated","ignoreReasoningTooltip","JSON","stringify","length","SamplesTranslationSelectionContainer","StyledContainer","shouldForwardProp","prop","gap","margin","alignItems","alpha","opacity","changeViewBtnLabel","SamplesTranslationSelection","isTranslated","information_retrieval","TranslateOutlined","fontSize","SampleDetailsDialogBodyContainer","empty","gridTemplateColumns","marginTop","position","top","right","bottom","width","content","backgroundColor","animation","fadeInAnimation","borderLeft","left","StyledButton","count","paddingTop","sample_data_only","paletteOptions","is_selected","llm_call_err","important","zIndex","fontWeight","justifyContent","textWrap","severity","medium","sampleKey","SampleDetailsDialogSelection","needBorder","onlySampleData","checkSectionData","isImportant","formattedLabel","includes","dataToUse","SampleDetailsDialogSelectionsRowContainer","SampleDetailsDialogSelectionsBranchLine","SampleDetailsDialogBodySelectionContainer","SampleDetailsDialogSelectionHeaderContainer","WarningRounded","informationRetrievalKey","fullPromptKey","comparisonBtnLabel","stepNameKey","SampleDetailsDialogInteractionSelections","sample","steps","isCompareDisabled","selectedInteraction","selectionsInnerCount","setIsComparisonView","setSelectedInteraction","SampleDetailsDialogSelectionsContainer","SampleDetailsDialogSelectionsInnerContainer","val","id","translated","SampleDetailsDialogSelectionsComparisonButton","variant","na","SampleDetailsDialogBody","sessionInteractions","setIsCompareDisabled","isSessionInteractionsLoading","setIsSessionInteractionsLoading","setSessionInteractions","versionId","useGetStepsForInteractionApiV1ApplicationVersionsAppVersionIdInteractionsUserInteractionIdStepsGet","s","input_properties","output_properties","custom","custom_properties","llm","llm_properties","garak","garak_properties","created","created_at","latestInformationRetrieval","reduce","latest","Date","join","latestHistory","history","prompt","sectionData","isTheOriginalInteraction","reversedSessionInteractions","slice","reverse","session_id","listInteractionsByFilter","pagination_schema","filter_schema","session_ids","useMemo","historyKeyData","fullPromptKeyData","informationRetrievalKeyData","getSimilarApiV1ApplicationVersionsComparisonPut","env_type","application_id","SampleDetailsDialogSessionsSelectionContainer","sessionInteraction","stepData","llm_properties_reasons","custom_properties_reasons","isEstimated","newSessionsInteractions","is_estimated","StyledContentCopyContainer","is_link_copied","marginLeft","fill","copyLinkText","linkCopied","copy","SampleDetailsDialogHeaderCopy","currentPage","isLinkCopied","setIsLinkCopied","appName","versionName","handleCopyInteractionLink","window","curUrl","location","origin","copyText","encodeURIComponent","routes","samples","navigator","clipboard","writeText","ContentCopy","startTime","endTime","startTimestamp","parse","endTimestamp","isNaN","formattedDuration","duration","toLocaleString","backButtonLabel","nextButtonLabel","paginationText","sessionIdText","SampleDetailsDialogHeader","pageCount","iscComparisonView","closeDialog","setCurrentPage","interactionDate","getMilliseconds","dayjs","interaction_datetime","format","started_at","finished_at","StyledHeaderContainerBase","ArrowBackIosRounded","StyledHeaderContainerSecondary","StyledPaginationContainer","StyledPaginationButton","disabled","handlePrevPage","prev","Math","max","handleNextPage","min","StyledIconButton","ClearRounded","sxStyles","overflowX","SampleDetailsDialog","samplesCount","isFetching","interactionToCompare","getMoreInteractions","otherProps","findIndex","isComparisonView","similarInteractionToCompare","setSimilarInteractionToCompare","query","pathname","replace","useRouter","usePropertiesInfo","isTheLastPageOfTheList","sampleToUse","ceil","search_text","curCloseDialog","queryCopy","is_exact","field_names","StyledDialogBase","fullWidth","maxWidth","onClose","sx","SampleDetailsDialogComparison","handleBack","NoDataAvailable","StyledRotateContainer","Box","rotate","spinAnimation","children","StyledErrContainer","textAlign","imgAlt","title","buttonLabel","internalServerErr","InternalServerError","isFetched","isError","Image","src","magnifyingGlassIllustration","alt","reload","SamplesNoVersionSelectedContainer","textDecoration","noVersion","createVersion","here","SamplesNoVersionSelected","push","StyledImageContainer","ListAltOutlined","StyledTitleText","StyledSubTitleText","SamplesNoVersionSelectedButton","handleGoToVersionsPage","config","versions","getTimestamp","now","floor","past","setDate","getDate","daysAgo","getTime","AppFilters","isOverview","refreshValue","initialLoading","samplesSelectedApp","refresh","setSelectedApp","setInitialLoading","resetAdditionalFilters","timestamp","timeStampStorage","interactionTypeStorage","applications","refetch","useListApps","wrongVersionDebounceTimeout","appNameQuery","decodeURIComponent","versionNameQuery","envQuery","env","startTimeQuery","start_time_epoch","Number","endTimeQuery","end_time_epoch","interactionTypeQuery","envType","setEnvType","EnvType","application","setApplication","version","setVersion","setInteractionType","setTimestamp","start","end","selectedApp","selected","app","hideTime","samplesNoData","selectedVersion","setTrueInitialLoading","handleQueryChange","appState","versionsState","envTypeName","timestampState","selectedCurApp","selectedCurVersion","handleResetDates","envTypeProp","defaultTimeStamp","NaN","getDefaultTimeRangeApiV1ApplicationVersionsApplicationVersionIdDefaultTimeRangeGet","defaultTimes","start_time","end_time","handleInteractionTypeChange","curTypes","typesProp","interaction_types","curAvailableTypes","is_active","selectedType","setStorageItem","storageKeys","handleVersionChange","options","clearTimeout","setTimeout","curAppData","curVersionData","findApplicationByNameFromQuery","findApplicationByNameFromStore","findVersionByNameFromQuery","findVersionByNameFromStore","curEnvType","curTimestamp","error_message","AppFiltersContainer","StyledSelect","textOnly","connected","selections","srcRadioOptions","handleEnvTypeChange","textOnlyEndAdornmentWhenActive","refreshTooltip","RotateContainer","StyledRefreshIcon","AppFiltersInnerContainer","AppFiltersInnerItemContainer","StyledLabelText","time","StyledDateTimePicker","resetToDefault","InteractionTypeDropDown","appInteractionTypes","AppFiltersVersionsDropdown","noEmptyText","placeholder","bottomBtn","manageVersionBtnLabel","action","setValue","searchField","manageBtnLabel","handleApplicationChange","newAppSelected","newAppVersionId","newAppVersionName","OverviewNoAppList","StyledContainerBase","Divider","StyledThumbs","HelpOutline","active","UpdateRounded"],"sourceRoot":"","ignoreList":[]}