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MACLY,QAAS,OACTM,QAAS,WACTjB,aAAc,MACdwC,cAAe,MACfF,WAAY,SACZC,eAAgB,SAChBnB,WAAY,cACZG,OAAQ,aAAqC,OAAxBzB,EAAMU,OAAO,CAACC,IAAI,CAAC,IAAI,EAE5C,mBAAoB,CAAEuB,MAAOlC,EAAMU,OAAO,CAACC,IAAI,CAAC,IAAI,CACtD,IAAI,EAE0BjB,CAAAA,EAAAA,EAAAA,EAAAA,CAAMA,CAAC8pB,EAAAA,CAAgBA,EAAE,OAAC,OAAExpB,CAAK,CAAE,SAAM,CACrEkB,OAAQ,OAER+Z,KAAMjb,EAAMU,OAAO,CAACC,IAAI,CAAC,IAAI,IAC3B","sources":["webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogComparison/SampleDetailsDialogComparisonInteraction/SampleDetailsDialogComparisonInteraction.styles.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogComparison/SampleDetailsDialogComparisonInteraction/NoSampleDetailsDialogComparisonInteraction/NoSampleDetailsDialogComparisonInteraction.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogComparison/SampleDetailsDialogComparisonInteraction/SampleDetailsDialogComparisonInteractionContent/SampleDetailsDialogComparisonInteractionContent.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogComparison/SampleDetailsDialogComparisonInteraction/SampleDetailsDialogComparisonInteraction.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogComparison/SampleDetailsDialogComparisonInteractionHeader/SampleDetailsDialogComparisonInteractionHeader.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogComparison/SampleDetailsDialogComparison.tsx","webpack://_N_E/./src/helpers/utils/getMarkedText.tsx","webpack://_N_E/./src/helpers/hooks/useScoreColor.ts","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsBodyProperties.helpers.ts","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsDialogBodyCard/SampleDetailsDialogBodyCard.styles.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsDialogBodyCard/SamplesDetailsPropertyValue/SamplesDetailsPropertyCategoricalPopOver/SamplesDetailsPropertyCategoricalPopOver.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/sampleDetailsBodyProperties.constants.ts","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsDialogBodyCard/SamplesDetailsPropertyValue/SamplesDetailsPropertyValue.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsDialogBodyCard/SampleDetailsDialogBodyCard.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsBodyPropertiesAddPropertyDialog/SampleDetailsBodyPropertiesAddPropertyPopover.styles.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsBodyPropertiesAddPropertyDialog/SampleDetailsBodyPropertiesAddPropertyPopover.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsBodyProperties.tsx","webpack://_N_E/./src/components/Samples/SamplesTable/SamplesTablePopover/SamplesTablePopoverSortByProperty/SamplesTablePopoverSortByProperty.styles.tsx","webpack://_N_E/./src/components/Samples/SamplesTable/SamplesTablePopover/SamplesTablePopoverSortByProperty/SamplesTablePopoverSortByProperty.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogBody/SamplesDetailsBodyItem/SamplesDetailsBodyItem.styles.tsx","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogHeader/sampleDetailsDialogHeader.constants.ts","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogComparison/sampleDetailsDialogComparison.constants.ts","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogComparison/SampleDetailsDialogComparison.styles.tsx","webpack://_N_E/./src/helpers/utils/getPercentage.ts","webpack://_N_E/./src/components/Samples/SamplesTable/SamplesTablePopover/samplesTablePopover.constants.ts","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogHeader/SampleDetailsDialogHeader.styles.tsx","webpack://_N_E/./src/helpers/hooks/usePropertiesInfo.ts","webpack://_N_E/./src/components/shared/SampleDetailsDialog/SampleDetailsDialogComparison/SampleDetailsDialogComparisonInteractionHeader/SampleDetailsDialogComparisonInteractionHeader.styles.tsx"],"sourcesContent":["import { Stack, styled, alpha } from '@mui/material';\n\nimport { StyledContainer as DSStyledContainer, StyledText } from '@/components/lib';\n\nimport { fadeInAnimation } from '@/helpers/animations';\n\nexport const StyledContainer = styled(DSStyledContainer, {\n shouldForwardProp: prop => prop !== 'reason'\n})<{ first?: string; is_big_container?: string }>(({ first, is_big_container, theme }) => ({\n gap: '8px',\n borderRadius: 0,\n minHeight: is_big_container === 'true' ? '526.6px' : '465px',\n overflowY: 'auto',\n paddingRight: first === 'true' ? '32px' : '8px',\n paddingLeft: first === 'true' ? '8px' : '32px',\n animation: `${fadeInAnimation} 0.5s ease`,\n borderRight: first === 'true' ? `2px solid ${theme.palette.grey[200]}` : 'none'\n}));\n\nexport const StyledVersionsContainer = styled(DSStyledContainer, {\n shouldForwardProp: prop => prop !== 'nOfVersions'\n})<{ nOfVersions?: number }>(({ nOfVersions }) => ({\n display: 'grid',\n gridTemplateColumns: `repeat(${nOfVersions ?? 2}, 1fr)`\n}));\n\nexport const StyledAnnotationCellContainer = styled(Stack, {\n shouldForwardProp: prop => prop !== 'reason'\n})<{ reason?: string }>(({ reason, theme }) => ({\n height: '48px',\n padding: '0 8px',\n borderRadius: '8px',\n width: reason === 'true' ? '200px' : '50px',\n cursor: reason === 'true' ? 'auto' : 'pointer',\n background: theme.palette.common.white,\n border: `2px solid ${theme.palette.grey[300]}`\n}));\n\nexport const StyledSelectOption = styled(StyledText, {\n shouldForwardProp: prop => prop !== 'is_selected' && prop !== 'show'\n})<{ is_selected?: string; show?: string }>(({ theme, is_selected, show }) => ({\n height: 'auto',\n padding: '4px',\n margin: '0 4px',\n cursor: 'pointer',\n textAlign: 'center',\n overflow: 'visible',\n borderRadius: '0px',\n width: 'fit-content',\n whiteSpace: 'nowrap',\n transition: 'all 0.3s ease',\n display: show === 'true' ? 'auto' : 'none',\n color: is_selected === 'true' ? theme.palette.primary.main : theme.palette.grey[400],\n borderBottom: `2px solid ${is_selected === 'true' ? theme.palette.primary.main : 'transparent'}`\n}));\n\nexport const StyledGapRow = styled(Stack)<{ is_border_left?: string }>(({ is_border_left, theme }) => ({\n gap: '14px',\n overflowX: 'auto',\n alignItems: 'center',\n justifyContent: 'center',\n flexDirection: 'row',\n marginBottom: '16px',\n height: '47px',\n borderLeft: is_border_left === 'true' ? `2px solid ${theme.palette.grey[200]}` : 'none'\n}));\n\nexport const StyledRowList = styled(Stack)({\n gap: '4px',\n margin: '4px 0',\n overflowX: 'auto',\n alignItems: 'center',\n flexDirection: 'row',\n\n '.MuiInputBase-root': { width: '150px' },\n '.MuiTypography-h3': { whiteSpace: 'nowrap', width: '160px' }\n});\n\nexport const StyledEmptyContainer = styled(StyledContainer)({\n width: '100%',\n height: 'auto',\n margin: 'auto',\n textAlign: 'center',\n alignItems: 'center',\n minHeight: 'auto'\n});\n\nexport const StyledSubTitleText = styled(StyledText)(({ theme }) => ({\n maxWidth: '322px',\n color: theme.palette.grey[300]\n}));\n\nexport const StyledTitleText = styled(StyledText)(({ theme }) => ({\n color: theme.palette.grey[400]\n}));\n\nexport const StyledEmptyIconContainer = styled(Stack)(({ theme }) => ({\n background: alpha(theme.palette.primary.main, 0.2),\n width: '63px',\n height: '63px',\n borderRadius: '50%',\n marginBottom: '18px',\n alignItems: 'center',\n justifyContent: 'center'\n}));\n","import React from 'react';\n\nimport { JoinFullOutlined } from '@mui/icons-material';\n\nimport {\n StyledEmptyContainer,\n StyledEmptyIconContainer,\n StyledSubTitleText,\n StyledTitleText\n} from '../SampleDetailsDialogComparisonInteraction.styles';\n\nconst constants = {\n title: 'No Similar Interaction',\n subTitle:\n 'This interaction (same user_interaction_id) does not exist in this version. Change the selected version or see other interactions.'\n};\n\nconst { title, subTitle } = constants;\n\nexport const NoSampleDetailsDialogComparisonInteraction = () => {\n return (\n \n \n \n \n \n \n \n );\n};\n","import React, { useEffect, useState, RefObject } from 'react';\n\nimport { useRouter } from 'next/router';\n\nimport DiffViewer, { DiffMethod } from 'react-diff-viewer';\n\nimport { Stack } from '@mui/material';\n\nimport { StyledSkeleton, StyledText, StyledToggle, StyledToolTip } from '@/components/lib';\nimport { AnnotationCell } from '@/components/shared/SamplesAnnotationCell/SamplesAnnotationCell';\n\nimport {\n StepSchema,\n SimilarityScoreOut,\n InteractionSchemaOut,\n PropertyDefinitionSchema,\n getSimilarityScoreApiV1ApplicationVersionsGetSimilarityScoreGet\n} from '@/helpers/services/api';\nimport { getUserPreferences } from '@/helpers/utils/localStorage';\n\nimport { SamplesDetailsBodyPropertyType } from '../../../SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsBodyProperties';\n\nimport {\n StyledDiffContainer,\n StyledPropColorText,\n StyledContentContainer,\n StyledTogglerContainer,\n StyledInfoRetrievalText,\n StyledSimilarityContainer,\n StyledPropertyScoreContainer,\n StyledContentBottomContainer,\n StyledAnnotationContentContainer,\n StyledPropertyScoreNumberContainer\n} from './SampleDetailsDialogComparisonInteractionContent.styles';\nimport {\n StyledRowList,\n StyledSelectOption,\n StyledAnnotationCellContainer\n} from '../SampleDetailsDialogComparisonInteraction.styles';\nimport { StyledAnnotationCellText } from '../../../SampleDetailsDialogHeader/SampleDetailsDialogHeader.styles';\n\nimport { routes } from '@/helpers/routes';\n\nimport { constants } from '../../sampleDetailsDialogComparison.constants';\n\ninterface SampleDetailsInteractionContentProps {\n steps: StepSchema[];\n selectedTag: string;\n metricType?: string;\n isSelectable: boolean;\n selectedVersion?: string;\n interaction: InteractionSchemaOut;\n versionCompareInteraction?: boolean;\n scrollRef: RefObject;\n allPropsList: SamplesDetailsBodyPropertyType[];\n differentByPropData?: PropertyDefinitionSchema;\n dataToShow: { input?: string | null; output?: string | null };\n comparisonContent: { base: string; diff: string; show: boolean };\n comparedVersionData: { versionId?: number; interactionId?: string };\n initialVersion: { name?: string; id?: number; user_interaction_id?: string };\n setSelectedTag: (value: string) => void;\n handleScroll: (ref: RefObject) => void;\n setMainSelectedTag: React.Dispatch>;\n checkSectionData: (key: string) => { input?: string | null; output?: string | null };\n setComparisonContent: React.Dispatch>;\n updateAnnotation?: (interactionId: string, annotation: string, reason: string, isEstimated?: boolean) => void;\n}\n\nconst { keys, similarityContent, score, diffTooltip, documentTitle } = constants;\n\nexport const SampleDetailsDialogComparisonInteractionContent = (props: SampleDetailsInteractionContentProps) => {\n const {\n steps,\n scrollRef,\n dataToShow,\n selectedTag,\n interaction,\n allPropsList,\n isSelectable,\n initialVersion,\n selectedVersion,\n comparisonContent,\n comparedVersionData,\n differentByPropData,\n versionCompareInteraction,\n handleScroll,\n setSelectedTag,\n checkSectionData,\n updateAnnotation,\n setMainSelectedTag,\n setComparisonContent,\n metricType\n } = props;\n\n const [similarity, setSimilarity] = useState();\n const [isSimilarityLoading, setIsSimilarityLoading] = useState();\n\n const { pathname } = useRouter();\n const { darkMode } = getUserPreferences();\n\n const isDiffOn = !!comparisonContent?.show;\n const isVersionsPage = pathname?.includes(routes?.config?.versions);\n const isMultiSection = selectedTag === keys.infoRetrieval || selectedTag === keys.history;\n const isDiffAvailable = comparisonContent?.base && comparisonContent?.diff && selectedTag === keys?.output;\n\n const multiSectionContent =\n selectedTag === keys.infoRetrieval\n ? Array?.isArray(interaction?.information_retrieval)\n ? interaction?.information_retrieval\n : []\n : Array?.isArray(interaction?.history)\n ? interaction?.history\n : [];\n\n const differentByPropValue = allPropsList.find(el => el.name === differentByPropData?.property_name)?.value;\n const formattedValue =\n typeof differentByPropValue === 'number' ? +differentByPropValue.toFixed(2) || 0 : differentByPropValue || 'N/A';\n\n const handleTagChange = (key: StepSchema) => {\n setSelectedTag(key?.id);\n setMainSelectedTag('step');\n };\n\n const handleShowDiff = (show: boolean) => {\n setComparisonContent({ ...comparisonContent, show: show });\n };\n\n const isShowDiffLineNumbers = () => {\n if (isDiffAvailable && isDiffOn) {\n const regex = new RegExp(/[0-9](.| )/);\n return (\n regex.test(comparisonContent.base) ||\n regex.test(comparisonContent.diff) ||\n comparisonContent.base === comparisonContent.diff\n );\n }\n return false;\n };\n\n const curSimilarityScore =\n metricType && metricType.includes('blue_1')\n ? Number(similarity?.blue_1_score)?.toFixed(2)\n : metricType && metricType.includes('rouge_1')\n ? Number(similarity?.rouge_1_score)?.toFixed(2)\n : Number(similarity?.score)?.toFixed(2);\n\n useEffect(() => {\n if (initialVersion?.user_interaction_id && comparedVersionData?.interactionId && isSelectable) {\n setIsSimilarityLoading(true);\n getSimilarityScoreApiV1ApplicationVersionsGetSimilarityScoreGet({\n interaction_user_id_1: initialVersion?.user_interaction_id,\n interaction_user_id_2: comparedVersionData?.interactionId,\n interaction_version_id_1: Number(initialVersion?.id),\n interaction_version_id_2: Number(comparedVersionData?.versionId)\n })\n .then(res => (typeof res?.score === 'number' ? setSimilarity(res) : setSimilarity(null)))\n .finally(() => setIsSimilarityLoading(false));\n }\n }, [comparedVersionData?.interactionId]);\n\n useEffect(() => {\n if (!isVersionsPage) {\n setComparisonContent({\n show: !!comparisonContent.show,\n base: !isSelectable ? similarityContent.content(dataToShow?.input, dataToShow?.output) : comparisonContent.base,\n diff:\n versionCompareInteraction || isSelectable\n ? similarityContent.content(dataToShow?.input, dataToShow?.output)\n : comparisonContent.diff\n });\n }\n }, [selectedTag, interaction]);\n\n useEffect(() => {\n if (isVersionsPage) {\n const curOutput = similarityContent.content(dataToShow?.input, dataToShow?.output);\n if (!isSelectable && comparisonContent.base !== curOutput) {\n setComparisonContent({\n show: !!comparisonContent.show,\n base: curOutput,\n diff: comparisonContent.diff\n });\n } else if (isSelectable && comparisonContent.diff !== curOutput) {\n setComparisonContent({\n show: !!comparisonContent.show,\n base: comparisonContent.base,\n diff: curOutput\n });\n }\n }\n }, [selectedTag, interaction, isVersionsPage, comparisonContent]);\n\n return (\n <>\n \n {[keys?.input, keys?.infoRetrieval, keys?.history, keys?.fullPrompt, keys?.output, keys?.expectedOutput].map(\n key => (\n setMainSelectedTag(key)}\n show={`${!!checkSectionData(key)?.output || !!checkSectionData(key)?.input}`}\n />\n )\n )}\n {steps?.map(key => (\n \n ))}\n {isSimilarityLoading ? (\n \n ) : typeof similarity?.score === 'number' ? (\n \n \n \n \n \n \n ) : (\n <>\n )}\n \n handleScroll(scrollRef)}\n is_sticky={Boolean(!differentByPropData).toString()}\n >\n {isDiffAvailable && isDiffOn ? (\n \n \n \n ) : (\n <>\n {isMultiSection\n ? multiSectionContent?.map((el, index) => (\n \n \n \n \n ))\n : similarityContent.content(dataToShow?.input, dataToShow?.output)}\n \n )}\n {!differentByPropData && (\n \n {isDiffAvailable ? (\n \n \n \n \n \n ) : (\n <>\n )}\n {interaction?.annotation?.reason && (\n \n \n \n \n \n )}\n \n {interaction?.user_interaction_id && (\n \n )}\n \n \n )}\n \n \n {differentByPropData && (\n <>\n \n \n \n \n \n \n \n {interaction?.annotation?.reason && (\n \n \n \n \n \n )}\n\n \n {interaction?.user_interaction_id && (\n \n )}\n \n \n \n )}\n \n \n );\n};\n","import React, { RefObject, useEffect, useState } from 'react';\n\nimport { StyledLoader } from '@/components/lib';\n\nimport { getAppStorage } from '@/helpers/utils/localStorage';\nimport {\n StepSchema,\n AnnotationType,\n InteractionSchemaOut,\n retrieveInteraction,\n InputPropertiesSchema,\n ApplicationVersionSchema,\n PropertyDefinitionSchema,\n InteractionSchemaOutLlmProperties,\n InteractionSchemaOutOutputProperties,\n getStepsForInteractionApiV1ApplicationVersionsAppVersionIdInteractionsUserInteractionIdStepsGet\n} from '@/helpers/services/api';\n\nimport { NoSampleDetailsDialogComparisonInteraction } from './NoSampleDetailsDialogComparisonInteraction/NoSampleDetailsDialogComparisonInteraction';\nimport { SampleDetailsDialogComparisonInteractionContent } from './SampleDetailsDialogComparisonInteractionContent/SampleDetailsDialogComparisonInteractionContent';\nimport {\n SampleDetailsBodyProperties,\n SamplesDetailsBodyPropertyType\n} from '../../SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsBodyProperties';\n\nimport { StyledContainer } from './SampleDetailsDialogComparisonInteraction.styles';\n\nimport { constants } from '../sampleDetailsDialogComparison.constants';\n\ninterface SampleDetailsDialogComparisonInteractionProps {\n metricType?: string;\n mainSelectedTag: string;\n interactionToUseId?: string;\n isVersionComparison?: boolean;\n noInteractionToCompare?: boolean;\n versions?: { name: string; id: number }[];\n versionCompareInteraction: InteractionSchemaOut;\n differentByPropData?: PropertyDefinitionSchema;\n scrollRef: React.RefObject;\n comparisonProps: SamplesDetailsBodyPropertyType[];\n comparisonContent: { base: string; diff: string; show: boolean };\n initialVersion: { name?: string; id?: number; user_interaction_id?: string };\n selectedVersion: string;\n handleCloseComparison?: () => void;\n handleScroll: (ref: RefObject) => void;\n getPropertyInfo?: (name: string) => PropertyDefinitionSchema;\n setMainSelectedTag: React.Dispatch>;\n handleAddProperty?: (item: SamplesDetailsBodyPropertyType) => void;\n setSelectedComparisonVersionId?: (value: number | undefined) => void;\n handleDeleteProperty?: (item: SamplesDetailsBodyPropertyType) => void;\n setAllPropsArr?: React.Dispatch>;\n setSecondSelectedVersion?: React.Dispatch>;\n setComparisonContent: React.Dispatch>;\n updateAnnotation?: (\n interactionId: string,\n annotation: string,\n reason: string,\n isEstimated?: boolean,\n deleteAnnotation?: boolean,\n versionId?: number\n ) => void;\n}\n\nconst { keys } = constants;\n\nexport const SampleDetailsDialogComparisonInteraction = (props: SampleDetailsDialogComparisonInteractionProps) => {\n const {\n versions,\n scrollRef,\n initialVersion,\n comparisonProps,\n selectedVersion,\n comparisonContent,\n interactionToUseId,\n noInteractionToCompare,\n isVersionComparison,\n versionCompareInteraction,\n differentByPropData,\n mainSelectedTag,\n metricType,\n handleScroll,\n setAllPropsArr,\n getPropertyInfo,\n updateAnnotation,\n handleAddProperty,\n setMainSelectedTag,\n handleDeleteProperty,\n setComparisonContent,\n setSecondSelectedVersion,\n setSelectedComparisonVersionId\n } = props;\n\n const { appId, type } = getAppStorage();\n\n const [steps, setSteps] = useState([]);\n const [isLoading, setIsLoading] = useState(false);\n const [interaction, setInteraction] = useState();\n const [selectedTag, setSelectedTag] = useState(keys.output);\n\n const isSelectable = !!versions?.length;\n const isShowInteraction = !!interaction?.user_interaction_id && !noInteractionToCompare;\n\n const stepData = Array.isArray(steps) && steps?.filter(s => s?.id === selectedTag)[0];\n const selectedVersionId = Array?.isArray(versions)\n ? versions?.filter(v => v?.name === selectedVersion)[0]?.id\n : initialVersion?.id;\n\n const checkSectionData = (value: string) => {\n switch (value) {\n case keys.input:\n return { input: interaction?.input?.data, output: '' };\n\n case keys.output:\n return { input: '', output: interaction?.output?.data };\n\n case keys.expectedOutput:\n return { input: '', output: interaction?.expected_output?.data };\n\n case keys.infoRetrieval:\n return {\n input: '',\n output: Array?.isArray(interaction?.information_retrieval)\n ? interaction?.information_retrieval?.map(item => item?.data)?.join('\\n')\n : ''\n };\n\n case keys.history:\n return {\n input: '',\n output: Array?.isArray(interaction?.history) ? interaction?.history?.map(item => item?.data)?.join('\\n') : ''\n };\n\n case keys.fullPrompt:\n return { input: '', output: interaction?.prompt?.data };\n\n default:\n return stepData ? { output: stepData?.value } : {};\n }\n };\n\n const handleRetrieveInteraction = async () => {\n if (interactionToUseId) {\n setIsLoading(true);\n\n await getStepsForInteractionApiV1ApplicationVersionsAppVersionIdInteractionsUserInteractionIdStepsGet(\n Number(selectedVersionId),\n interactionToUseId\n ).then(res => (Array.isArray(res) ? setSteps(res) : setSteps([])));\n\n if (isSelectable) {\n setTimeout(async () => {\n await retrieveInteraction(Number(selectedVersionId), interactionToUseId).then(res => {\n res?.user_interaction_id ? setInteraction(res) : setInteraction(undefined);\n setTimeout(() => setIsLoading(false), 100);\n });\n }, 200);\n } else {\n await retrieveInteraction(Number(selectedVersionId), interactionToUseId).then(res => {\n res?.user_interaction_id ? setInteraction(res) : setInteraction(undefined);\n setTimeout(() => setIsLoading(false), 200);\n });\n }\n setSelectedTag(keys.output);\n }\n };\n\n const handleBuildCurProperties = (\n propertiesList:\n | InputPropertiesSchema\n | InteractionSchemaOutLlmProperties\n | InteractionSchemaOutOutputProperties\n | undefined,\n type: string\n ) => {\n return propertiesList\n ? Object.entries(propertiesList).map(([key, value]) => ({\n name: key,\n value,\n type: type as 'input' | 'output' | 'custom' | 'llm'\n }))\n : [];\n };\n\n const dataToShow = checkSectionData(selectedTag);\n\n const allProps: SamplesDetailsBodyPropertyType[] = [\n ...handleBuildCurProperties(interaction?.input_properties, 'input'),\n ...handleBuildCurProperties(interaction?.output_properties, 'output'),\n ...handleBuildCurProperties(interaction?.llm_properties, 'llm'),\n ...handleBuildCurProperties(interaction?.custom_properties, 'custom'),\n ...(type === 'PENTEST' ? handleBuildCurProperties(interaction?.garak_properties, 'garak') : [])\n ];\n\n const curProps = Array.isArray(comparisonProps)\n ? comparisonProps.reduce((acc, el) => {\n const findCurElemInAllProp = allProps.find(elem => elem.name === el.name && elem.type === el.type);\n\n return [...acc, ...(findCurElemInAllProp ? [findCurElemInAllProp] : [{ ...el, value: 'n/a' }])];\n }, [] as SamplesDetailsBodyPropertyType[])\n : ([] as SamplesDetailsBodyPropertyType[]);\n\n const allPropsList = allProps.filter(el => !curProps.find(elem => elem.name === el.name && elem.type === el.type));\n\n const updateCurAnnotation = (\n interactionId: string,\n annotation: string,\n reason: string,\n isEstimated?: boolean,\n deleteAnnotation?: boolean\n ) => {\n updateAnnotation &&\n updateAnnotation(\n interactionId,\n annotation,\n reason,\n isEstimated,\n deleteAnnotation,\n isVersionComparison ? interaction?.application_version_id : undefined\n );\n interaction &&\n setInteraction({\n ...interaction,\n annotation: deleteAnnotation\n ? null\n : {\n updated_at: interaction?.annotation?.updated_at ?? '',\n created_at: interaction?.annotation?.created_at ?? '',\n is_estimated: isEstimated ? true : false,\n value: annotation as AnnotationType,\n reason: reason as string,\n origin: interaction?.annotation?.origin ?? null,\n similarity_reason: interaction?.annotation?.similarity_reason ?? null\n }\n });\n };\n\n useEffect(() => {\n if (selectedVersionId && interactionToUseId) {\n const versionAllData = Array.isArray(versions) ? versions?.find(el => el.id === selectedVersionId) : undefined;\n if (versionAllData) {\n setSecondSelectedVersion && setSecondSelectedVersion(versionAllData as ApplicationVersionSchema);\n }\n if (!isVersionComparison) {\n handleRetrieveInteraction();\n }\n setSelectedComparisonVersionId && setSelectedComparisonVersionId(selectedVersionId);\n }\n }, [selectedVersionId]);\n\n useEffect(() => {\n if (setAllPropsArr && interaction && !isSelectable) {\n setAllPropsArr(allProps);\n }\n if (mainSelectedTag !== selectedTag) {\n setMainSelectedTag(keys.output);\n }\n }, [interaction]);\n\n useEffect(() => {\n if (isVersionComparison) {\n setInteraction(versionCompareInteraction);\n }\n }, [versionCompareInteraction]);\n\n useEffect(() => {\n if (\n mainSelectedTag !== 'step' &&\n selectedTag !== mainSelectedTag &&\n (!!checkSectionData(mainSelectedTag)?.output || !!checkSectionData(mainSelectedTag)?.input)\n ) {\n setSelectedTag(mainSelectedTag);\n }\n }, [mainSelectedTag]);\n\n return (\n \n {isLoading ? (\n \n ) : !isLoading && !isShowInteraction ? (\n \n ) : (\n isShowInteraction && (\n <>\n \n \n \n )\n )}\n \n );\n};\n","import React, { useState } from 'react';\nimport { useRouter } from 'next/router';\n\nimport { KeyboardArrowDown, KeyboardArrowUp } from '@mui/icons-material';\n\nimport { StyledDropdown, StyledText, StyledToolTip } from '@/components/lib';\n\nimport {\n ApplicationVersionExtendedSchema,\n Operator,\n PerEnvApplicationVersionExtendedSchema\n} from '@/helpers/services/api';\nimport { getPercentage } from '@/helpers/utils/getPercentage';\nimport { useScoreColor } from '@/helpers/hooks/useScoreColor';\n\nimport {\n StyledGapRow,\n StyledRowList\n} from '../SampleDetailsDialogComparisonInteraction/SampleDetailsDialogComparisonInteraction.styles';\nimport {\n StyledDescriptionTitleText,\n StyledInfoIcon,\n StyledMenuItem,\n StyledNumberContainer,\n StyledRootMenu,\n StyledScoreTypeDropdownContainer\n} from './SampleDetailsDialogComparisonInteractionHeader.styles';\n\nimport { constants } from '../sampleDetailsDialogComparison.constants';\n\nconst { scoreWithEst, score, noVersionDescription, numberOfInteractionText } = constants;\n\ninterface SampleDetailsDialogComparisonInteractionHeaderProps {\n version: string;\n isSelectable?: boolean;\n isBorderLeft?: boolean;\n selectedVersion?: string;\n versionsDropdownData: { name: string }[];\n initialVersion: { name?: string; id?: number; userInteractionId?: string };\n versionsExtendedList: ApplicationVersionExtendedSchema[];\n includeEstScore: boolean;\n setIncludeEstScore: React.Dispatch>;\n setSelectedVersion: (value: string) => void;\n pageCount: number;\n handleInitialVersionChange: (value: string) => void;\n}\n\nexport const SampleDetailsDialogComparisonInteractionHeader = (\n props: SampleDetailsDialogComparisonInteractionHeaderProps\n) => {\n const {\n version,\n isSelectable,\n initialVersion,\n selectedVersion,\n versionsDropdownData,\n isBorderLeft,\n versionsExtendedList,\n includeEstScore,\n pageCount,\n setIncludeEstScore,\n setSelectedVersion,\n handleInitialVersionChange\n } = props;\n\n const { query } = useRouter();\n\n const [anchorElRootMenu, setAnchorElRootMenu] = useState(null);\n\n const curVersionName = isSelectable ? selectedVersion : initialVersion?.name;\n\n const handleScoreChange = (value: boolean) => {\n setIncludeEstScore(value);\n setAnchorElRootMenu(null);\n };\n\n const handleOpenRootMenu = (event: React.MouseEvent) => setAnchorElRootMenu(event.currentTarget as HTMLElement);\n\n const curVersionFromExtendedList = versionsExtendedList.find(el => el.name === curVersionName);\n const curSelectedVersionEnvData = curVersionFromExtendedList\n ? (curVersionFromExtendedList[\n (query.env as string)?.toLowerCase() as keyof typeof curVersionFromExtendedList\n ] as PerEnvApplicationVersionExtendedSchema)\n : ({} as PerEnvApplicationVersionExtendedSchema);\n\n const scoreColor = useScoreColor(curSelectedVersionEnvData?.score, Operator['GE'], 0.5);\n\n return (\n \n \n \n \n {!isSelectable ? (\n \n ) : (\n \n )}\n \n \n \n \n \n \n \n \n \n \n \n {anchorElRootMenu ? : }\n \n setAnchorElRootMenu(null)}\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}\n transformOrigin={{ vertical: 'top', horizontal: 'center' }}\n open={!!anchorElRootMenu}\n anchorEl={anchorElRootMenu}\n >\n \n \n \n \n \n \n \n \n \n \n \n \n \n );\n};\n","import React, { useEffect, useRef, useState } from 'react';\n\nimport { ArrowBackIosRounded, ClearRounded } from '@mui/icons-material';\n\nimport { StyledSkeleton, StyledText, StyledToolTip } from '@/components/lib';\n\nimport { getAppStorage } from '@/helpers/utils/localStorage';\nimport { useStorageProperties } from '@/helpers/hooks/useStorageProperties';\nimport { handleFindElement } from '../SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsBodyProperties.helpers';\nimport {\n InteractionSchemaOut,\n listAppVersionsExtended,\n ApplicationVersionSchema,\n useListPropertiesConfigs,\n PropertyDefinitionSchema,\n ApplicationVersionExtendedSchema,\n getSimilarApiV1ApplicationVersionsComparisonPut\n} from '@/helpers/services/api';\n\nimport { NoDataAvailable } from '../../NoDataAvailable/NoDataAvailable';\nimport { SampleDetailsDialogComparisonInteraction } from './SampleDetailsDialogComparisonInteraction/SampleDetailsDialogComparisonInteraction';\nimport { SamplesDetailsBodyPropertyType } from '../SampleDetailsDialogBody/SamplesDetailsBodyItem/SampleDetailsBodyProperties/SampleDetailsBodyProperties';\nimport { SampleDetailsDialogComparisonInteractionHeader } from './SampleDetailsDialogComparisonInteractionHeader/SampleDetailsDialogComparisonInteractionHeader';\n\nimport {\n StyledContainer,\n StyledIconButton,\n StyledArrowContainer,\n StyledInputContainer,\n StyledArrowIconButton,\n StyledVersionsContainer,\n StyledInputTextContainer,\n StyledNoVersionsContainer\n} from './SampleDetailsDialogComparison.styles';\nimport {\n StyledPaginationButton,\n StyledPaginationContainer\n} from '../SampleDetailsDialogHeader/SampleDetailsDialogHeader.styles';\n\nimport { SelectedColumnType } from '@/components/Samples/Samples.types';\n\nimport { constants } from './sampleDetailsDialogComparison.constants';\nimport { constants as headerConstants } from '../SampleDetailsDialogHeader/sampleDetailsDialogHeader.constants';\n\ninterface SampleDetailsDialogComparisonProps {\n pageCount: number;\n metricType?: string;\n currentPage: number;\n isVersionComparison?: boolean;\n interaction: InteractionSchemaOut;\n isInteractionsLoading?: boolean;\n selectedColumns?: SelectedColumnType[];\n differentByPropData?: PropertyDefinitionSchema;\n curVersionsToComparison?: ApplicationVersionExtendedSchema[];\n interactionToCompare?: { application_version_id: number; user_interaction_id: string };\n handleBack?: () => void;\n closeDialog?: () => void;\n getPropertyInfo?: (name: string) => PropertyDefinitionSchema;\n setCurrentPage?: React.Dispatch>;\n updateAnnotation?: (interactionId: string, annotation: string, reason: string, isEstimated?: boolean) => void;\n}\n\nconst { input, propsLimit, version, keys, noVersionToCompare } = constants;\n\nconst { backButtonLabel, nextButtonLabel, paginationText } = headerConstants;\n\nexport const SampleDetailsDialogComparison = (props: SampleDetailsDialogComparisonProps) => {\n const {\n pageCount,\n metricType,\n currentPage,\n interaction,\n selectedColumns,\n differentByPropData,\n isVersionComparison,\n interactionToCompare,\n isInteractionsLoading,\n curVersionsToComparison,\n handleBack,\n closeDialog,\n setCurrentPage,\n getPropertyInfo,\n updateAnnotation\n } = props;\n\n const { appId, type, interactionType } = getAppStorage();\n\n const { data: listProperties = [] } = useListPropertiesConfigs({\n app_id: appId,\n interaction_type: interactionType?.value\n });\n\n const [includeEstScore, setIncludeEstScore] = useState(true);\n const [isLoading, setIsLoading] = useState(true);\n const [versions, setVersions] = useState([]);\n const [versionsExtendedList, setVersionsExtendedList] = useState([]);\n const [allPropsArr, setAllPropsArr] = useState([]);\n const [comparisonProps, setComparisonProps] = useState([]);\n const [secondSelectedVersion, setSecondSelectedVersion] = useState();\n const [comparisonContent, setComparisonContent] = useState<{ base: string; diff: string; show: boolean }>({\n base: '',\n diff: '',\n show: false\n });\n const [selectedVersion, setSelectedVersion] = useState('');\n const [initialVersion, setInitialVersion] = useState<\n | ApplicationVersionSchema\n | {\n name: string;\n id: number;\n }\n >({} as ApplicationVersionSchema);\n const [mainSelectedTag, setMainSelectedTag] = useState(keys.output);\n\n const firstContentRef = useRef(null);\n const secondContentRef = useRef(null);\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 { appStorageProperties } = useStorageProperties(appId, interactionType?.value);\n\n const noInteractionToCompare = Number(versions?.length) < 2;\n const allVersions = Array.isArray(versions) ? versions : [];\n const comparedVersion =\n Array?.isArray(versions) && versions?.filter(v => v?.id === interactionToCompare?.application_version_id)[0];\n\n const curSelectedColumns: SamplesDetailsBodyPropertyType[] = Array.isArray(selectedColumns)\n ? selectedColumns?.reduce((acc: SamplesDetailsBodyPropertyType[], el) => {\n const findCurElemInAllProp = handleFindElement(allPropsArr, {\n text_property: el?.propertyName || '',\n kind: el?.propertyType?.toLowerCase() || ''\n });\n if (findCurElemInAllProp && findCurElemInAllProp.value !== null) {\n return [...acc, findCurElemInAllProp];\n }\n\n return [...acc];\n }, [] as SamplesDetailsBodyPropertyType[])\n : [];\n\n const selectedDataPageProps: SamplesDetailsBodyPropertyType[] = Array.isArray(appStorageProperties)\n ? appStorageProperties?.reduce(\n (acc: SamplesDetailsBodyPropertyType[], el: { text_property: string; kind: string }) => {\n const findCurElemInAllProp = handleFindElement(allPropsArr, el);\n const findCurElemInSelectedColumns = handleFindElement(curSelectedColumns, el);\n if (findCurElemInAllProp && findCurElemInAllProp.value !== null && !findCurElemInSelectedColumns) {\n return [...acc, findCurElemInAllProp];\n }\n\n return [...acc];\n },\n [] as SamplesDetailsBodyPropertyType[]\n )\n : [];\n\n const curSelectedDataPageProps = [...(curSelectedColumns || []), ...(selectedDataPageProps || [])];\n\n const curListOfProperties: SamplesDetailsBodyPropertyType[] = Array.isArray(listProperties)\n ? listProperties.reduce((acc, el) => {\n if (curSelectedDataPageProps.length && !handleFindElement(curSelectedDataPageProps, el)) {\n const findCurElemInAllProp = handleFindElement(allPropsArr, el);\n\n return [\n ...acc,\n ...(findCurElemInAllProp && findCurElemInAllProp.value !== null ? [findCurElemInAllProp] : [])\n ];\n } else if (!curSelectedDataPageProps.length) {\n const curElData = handleFindElement(allPropsArr, el);\n\n return [...acc, ...(curElData ? [curElData] : [])];\n }\n\n return [...acc];\n }, [] as SamplesDetailsBodyPropertyType[])\n : ([] as SamplesDetailsBodyPropertyType[]);\n\n const getComparisonVersions = async () => {\n setIsLoading(true);\n await getSimilarApiV1ApplicationVersionsComparisonPut({\n user_interaction_id: interaction?.user_interaction_id,\n application_id: appId,\n env_type: type\n }).then(res => {\n Array.isArray(res) && setVersions(res);\n });\n setIsLoading(false);\n };\n\n const handleDeleteProperty = (item: SamplesDetailsBodyPropertyType) => {\n const newComparisonPropsArray = comparisonProps.filter(el => el.name !== item.name || el.type !== item.type);\n setComparisonProps(newComparisonPropsArray);\n };\n\n const handleAddProperty = (item: SamplesDetailsBodyPropertyType) => setComparisonProps([...comparisonProps, item]);\n\n const versionsDropdownData = Array?.isArray(allVersions)\n ? allVersions?.filter(v => v?.id !== initialVersion?.id && v?.name !== selectedVersion)\n : [];\n\n const handleNextPage = () => setCurrentPage && setCurrentPage((prev: number) => Math.min(prev + 1, pageCount - 1));\n\n const handlePrevPage = () => setCurrentPage && setCurrentPage((prev: number) => Math.max(prev - 1, 0));\n\n const handleInitialVersionChange = (value: string) => {\n const newInitialVersion = allVersions.find(el => el.name === value);\n\n newInitialVersion && setInitialVersion(newInitialVersion);\n };\n\n const isVersionsExist = Boolean(versions.length) && versions.length > 1;\n\n useEffect(() => {\n if (isVersionComparison && Array.isArray(curVersionsToComparison)) {\n setVersions(\n curVersionsToComparison.map(\n el =>\n ({\n ai_model: el.ai_model,\n application_id: el.application_id,\n created_at: el.created_at,\n id: el.id,\n name: el.name,\n updated_at: el.updated_at\n }) as ApplicationVersionSchema\n )\n );\n setIsLoading(false);\n } else {\n getComparisonVersions();\n }\n }, [interaction?.user_interaction_id]);\n\n useEffect(() => {\n if (listProperties?.length && allPropsArr?.length && selectedDataPageProps && !comparisonProps.length) {\n setComparisonProps(\n [...selectedDataPageProps, ...curSelectedColumns, ...curListOfProperties].slice(0, propsLimit)\n );\n }\n }, [listProperties, allPropsArr]);\n\n useEffect(() => {\n const curInitialVersion = Array?.isArray(versions)\n ? versions?.filter(v => v?.id === interaction?.application_version_id)[0]\n : {\n name: `${interaction?.application_version_id}`,\n id: interaction?.application_version_id\n };\n setInitialVersion(curInitialVersion);\n\n setSelectedVersion(\n comparedVersion\n ? comparedVersion?.name\n : secondSelectedVersion\n ? secondSelectedVersion.name\n : versionsDropdownData\n ? versionsDropdownData.filter(el => curInitialVersion?.name !== el.name)[0]?.name\n : ''\n );\n }, [versions]);\n\n useEffect(() => {\n if (secondSelectedVersion && !isLoading && !isVersionComparison) {\n listAppVersionsExtended({\n app_id: appId,\n interaction_type: interactionType?.value,\n only_user_annotations_score: !includeEstScore,\n overlapping_version_ids: [initialVersion?.id, secondSelectedVersion.id]\n }).then(res => {\n if (res?.length) {\n setVersionsExtendedList(res);\n }\n });\n }\n }, [secondSelectedVersion?.id, includeEstScore, initialVersion?.id]);\n\n useEffect(() => {\n if (isVersionComparison && isInteractionsLoading !== undefined) {\n setIsLoading(isInteractionsLoading);\n }\n }, [isInteractionsLoading]);\n\n return (\n <>\n {!isVersionComparison && (\n <>\n \n \n \n \n \n \n \n \n {!isVersionsExist && !isLoading ? (\n \n \n \n ) : (\n \n \n \n \n )}\n \n )}\n {isLoading ? (\n \n ) : (\n isVersionsExist && (\n \n \n \n \n \n \n \n \n {!!pageCount && (\n \n \n \n \n \n )}\n \n \n \n \n \n \n )\n )}\n \n );\n};\n","import React from 'react';\n\nimport { alpha } from '@mui/material';\n\nimport { theme } from '@/components/lib/theme';\n\nimport { PerPropertySchema } from '../services/api';\nimport { getUserPreferences } from './localStorage';\n\nexport const getMarkedText = (text: string, marking_details?: PerPropertySchema | undefined) => {\n if (!marking_details || marking_details.metadata?.length === 0) return text;\n\n const background = () => {\n try {\n return alpha(marking_details?.color || theme.palette.primary.main, 0.3);\n } catch {\n return alpha(theme.palette.primary.main, 0.3);\n }\n };\n\n const parts = [];\n const sortedIndexes = [...(marking_details.metadata ?? [])].sort((a, b) => a.start - b.start);\n\n let lastIndex = 0;\n\n sortedIndexes.forEach(({ start, end }, index) => {\n if (start < 0 || end < 0 || start > end || start >= text.length) {\n return;\n }\n\n parts.push(text.slice(lastIndex, start));\n parts.push(\n \n {text.slice(start, end + 1)}\n \n );\n\n lastIndex = end + 1;\n });\n\n parts.push(text.slice(lastIndex));\n\n // // Scroll to the marked area\n // setTimeout(() => {\n // const firstMarkedElement = document?.getElementById('first-marked');\n\n // if (firstMarkedElement) {\n // firstMarkedElement?.scrollIntoView({ behavior: 'smooth', block: 'center' });\n // }\n // }, 10);\n\n return <>{parts};\n};\n\nexport const propsMarkingColor = (marking_details?: PerPropertySchema) => {\n const { darkMode } = getUserPreferences();\n\n const isDarkMode = Boolean(darkMode).toString();\n\n return isDarkMode\n ? (marking_details?.color?.includes('#') && marking_details?.color) || theme.palette.primary.main\n : theme.palette.primary.main;\n};\n","import { useTheme } from '@mui/material';\n\nimport { Operator } from '../services/api';\n\nexport const useScoreColor = (score?: number, condition?: Operator, threshold?: number) => {\n const theme = useTheme();\n\n const red = theme.palette.error.main;\n const green = theme.palette.success.main;\n const grey = theme.palette.grey[400];\n\n const switchCondition = (!!score || score === 0) && (!!threshold || threshold === 0) && condition;\n\n if (switchCondition) {\n switch (condition) {\n case Operator['LE']:\n return Number(score) <= Number(threshold) ? green : red;\n case Operator['GE']:\n return Number(score) >= Number(threshold) ? green : red;\n default:\n return grey;\n }\n } else {\n return grey;\n }\n};\n","import { ReadPropertyConfigSchema } from '@/helpers/services/api';\n\nimport { SamplesDetailsBodyPropertyType } from './SampleDetailsBodyProperties';\n\nexport const handleFindElement = (\n propertiesList: SamplesDetailsBodyPropertyType[],\n el: { text_property: string; kind: string } | ReadPropertyConfigSchema\n) => {\n return propertiesList.find(\n (elem: { name: string; type: string }) => elem.name === el.text_property && elem.type === el.kind\n );\n};\n","import React from 'react';\n\nimport { CheckOutlined } from '@mui/icons-material';\nimport { alpha, Popover, PopoverProps, Stack, styled } from '@mui/material';\n\nimport { StyledText } from '@/components/lib';\n\nimport { PerPropertySchema } from '@/helpers/services/api';\nimport { propsMarkingColor } from '@/helpers/utils/getMarkedText';\n\nexport const StyledContainer = styled(Stack, {\n shouldForwardProp: prop => prop !== 'expand' && prop !== 'property' && prop !== 'clickable'\n})<{ expand?: string; property?: PerPropertySchema; clickable?: string; custom?: string }>(\n ({ expand, clickable, property, custom, theme }) => ({\n margin: 0,\n width: '100%',\n minWidth: '145px',\n maxWidth: '210px',\n transition: '0.3s',\n padding: '6px 10px !important',\n borderRadius: '8px',\n justifyContent: 'space-between',\n height: 'auto',\n maxHeight: expand === 'true' ? '345px' : '65px',\n border: `2px solid ${property ? propsMarkingColor(property) : theme.palette.grey[300]}`,\n backgroundColor: property\n ? alpha(propsMarkingColor(property), 0.1)\n : expand === 'true'\n ? theme.palette.grey[100]\n : 'transparent',\n\n '.MuiTypography-root': { whiteSpace: 'noWrap' },\n '.MuiTypography-subtitle2': { fontSize: '14px', lineHeight: '18px' },\n '.MuiTypography-body2 ': { color: expand === 'true' ? theme.palette.grey[500] : theme.palette.grey[400] },\n '.MuiTypography-subtitle1': { fontSize: '14px', color: theme.palette.grey[500], lineHeight: '16px' },\n '.MuiTypography-h3, .Editable-value': {\n fontWeight: 700,\n margin: '2px 0 0',\n borderRadius: '4px',\n border: '1px solid transparent',\n\n '.MuiSvgIcon-root': { display: 'none' }\n },\n\n ':hover > div > svg': { display: 'block' },\n ':hover':\n clickable === 'true'\n ? {\n cursor: 'pointer',\n borderColor: theme.palette.grey[400],\n backgroundColor: theme?.palette.grey[200],\n\n '.MuiTypography-body2': {\n color: theme.palette.grey[500]\n },\n\n '.Editable-value': {\n width: custom === 'true' ? '120px' : 'auto',\n borderColor: custom === 'true' ? theme.palette.grey[500] : 'transparent',\n\n '.MuiSvgIcon-root': { display: 'block', marginLeft: 'auto' }\n }\n }\n : { borderColor: theme.palette.grey[400] }\n })\n);\n\nexport const StyledRowContainer = styled(Stack)({\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n\n '.MuiTypography-h3': { padding: '0 1px' },\n '.MuiTypography-body1 ': { marginTop: '2px' }\n});\n\nexport const StyledReasonText = styled(StyledText)(({ theme }) => ({\n overflowY: 'auto',\n margin: '8px 0 12px',\n padding: '8px 2px 0 0',\n whiteSpace: 'pre-wrap !important',\n borderTop: `1px solid ${theme.palette.grey[400]}`,\n\n '&::-webkit-scrollbar': { width: '5px' },\n\n '&::-webkit-scrollbar-thumb': {\n borderRadius: '8px',\n backgroundColor: theme.palette.grey[300]\n }\n}));\n\nexport const StyledValueText = styled(StyledText)({\n overflow: 'hidden !important'\n});\n\nexport const StyledValueCategoricalTextContainer = styled(Stack)({\n alignItems: 'center',\n flexDirection: 'row'\n});\n\nexport const StyledValueTextContainer = styled(Stack)({\n marginRight: '8px',\n overflow: 'hidden !important',\n\n '.MuiInputBase-root ': { height: '24px' }\n});\n\nexport const StyledTitleContainer = styled(Stack)(({ theme }) => ({\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'space-between',\n\n '> svg': {\n display: 'none',\n cursor: 'pointer',\n fill: theme.palette.grey[300],\n\n ':hover': {\n fill: theme.palette.grey[500]\n }\n }\n}));\n\nexport const StyledUpdatePropertyPopover = styled((props: PopoverProps) => (\n \n))({});\n\nexport const StyledCheckIcon = styled(CheckOutlined)(({ theme }) => ({\n padding: '4px',\n cursor: 'pointer',\n borderRadius: '50%',\n fill: theme.palette.grey[100],\n backgroundColor: theme.palette.primary.main\n}));\n","import React, { useEffect, useState } from 'react';\n\nimport { StyledCheckbox, StyledLoader } from '@/components/lib';\nimport { StyledUpdatePropertyPopover } from '../../SampleDetailsDialogBodyCard.styles';\n\nimport { getAppStorage } from '@/helpers/utils/localStorage';\nimport { PropertyType, retrieveAggregatedPropertiesByFilter } from '@/helpers/services/api';\n\ninterface SamplesDetailsPropertyValueProps {\n name?: string;\n kind: PropertyType;\n popupAnchor: HTMLElement | null;\n curValue: string | number | string[];\n handleUpdateCustomProperty: (val: string[]) => void;\n setPopupAnchor: (anchor: HTMLElement | null) => void;\n}\n\nexport const SamplesDetailsPropertyCategoricalPopOver = (props: SamplesDetailsPropertyValueProps) => {\n const { name, kind, curValue, popupAnchor, setPopupAnchor, handleUpdateCustomProperty } = props;\n\n const { versionId, type, interactionType } = getAppStorage();\n\n const [isCategoriesLoading, setIsCategoriesLoading] = useState(false);\n const [categoricalValue, setCategoricalValue] = useState(Array?.isArray(curValue) ? curValue : []);\n const [options, setOptions] = useState<{ value: string; label: string }[]>([]);\n\n const handleClosePopover = () => {\n setPopupAnchor(null);\n handleUpdateCustomProperty(categoricalValue);\n };\n\n useEffect(() => {\n if (popupAnchor) {\n setIsCategoriesLoading(true);\n retrieveAggregatedPropertiesByFilter(versionId, {\n environment: type,\n interaction_type: interactionType?.value\n }).then(res => {\n const possibleValues = (res as never)?.[kind]?.[`${name}`];\n\n setOptions(\n possibleValues\n ? Object.keys(possibleValues)?.map(val => {\n return { value: val, label: val };\n })\n : []\n );\n setIsCategoriesLoading(false);\n });\n }\n }, [popupAnchor]);\n\n return (\n \n {isCategoriesLoading ? (\n \n ) : (\n \n )}\n \n );\n};\n","export const constants = {\n limit: 4,\n na: 'N/A',\n addCardLabel: '+ Add Property',\n propertiesTitle: (isComparison?: boolean) => (isComparison ? 'Selected Properties' : 'Properties:')\n};\n","import React, { useState } from 'react';\n\nimport { ArrowDropDownRounded } from '@mui/icons-material';\n\nimport { SamplesDetailsPropertyCategoricalPopOver } from './SamplesDetailsPropertyCategoricalPopOver/SamplesDetailsPropertyCategoricalPopOver';\n\nimport { StyledInput, StyledToolTip } from '@/components/lib';\nimport {\n StyledValueText,\n StyledValueTextContainer,\n StyledValueCategoricalTextContainer\n} from '../SampleDetailsDialogBodyCard.styles';\n\nimport { getAppStorage } from '@/helpers/utils/localStorage';\nimport { UpdatePropertySchema } from '@/helpers/utils/deepCloneUpdates';\nimport { PropertyType, PropertyDefinitionSchema, updateInteractionCustomProperty } from '@/helpers/services/api';\n\nimport { constants } from '../../sampleDetailsBodyProperties.constants';\n\ninterface SamplesDetailsPropertyValueProps {\n kind: PropertyType;\n isInputFieldOpen: boolean;\n userInteractionId?: string;\n popupAnchor: HTMLElement | null;\n value: string | number | string[];\n definition?: PropertyDefinitionSchema;\n setIsInputFieldOpen: (isOpen: boolean) => void;\n setPopupAnchor: (anchor: HTMLElement | null) => void;\n updateProperty?: (updateData: UpdatePropertySchema) => void;\n}\n\nconst { na } = constants;\n\nexport const SamplesDetailsPropertyValue = (props: SamplesDetailsPropertyValueProps) => {\n const {\n kind,\n value,\n definition,\n popupAnchor,\n isInputFieldOpen,\n userInteractionId,\n updateProperty,\n setPopupAnchor,\n setIsInputFieldOpen\n } = props;\n\n const [curValue, setCurValue] = useState(value);\n const [newNumericValue, setNewNumericValue] = useState(value);\n\n const { versionId } = getAppStorage();\n\n const isCategoricalValue = Array?.isArray(curValue);\n\n const handleUpdateCustomProperty = async (categoricalVal?: string[]) => {\n const valToUse = categoricalVal ?? Number(newNumericValue);\n\n await updateInteractionCustomProperty(versionId, `${userInteractionId}`, {\n value: valToUse,\n property_name: definition?.property_name ?? ''\n })?.then(() => {\n setPopupAnchor(null);\n setCurValue(valToUse);\n setIsInputFieldOpen(false);\n updateProperty &&\n updateProperty({\n value: valToUse,\n propertyType: kind,\n interactionId: userInteractionId ?? '',\n propertyName: definition?.property_name ?? ''\n });\n });\n };\n\n return (\n \n \n {isInputFieldOpen ? (\n setIsInputFieldOpen(false)}\n onChange={e => setNewNumericValue(e.target.value)}\n onKeyDown={e => e.key === 'Enter' && handleUpdateCustomProperty()}\n autoFocus\n data-testid={`SamplesDetailsPropertyValueProps_${kind}_${definition?.property_name}`}\n />\n ) : isCategoricalValue ? (\n \n \n \n \n ) : (\n \n )}\n \n \n \n );\n};\n","import React, { useState } from 'react';\n\nimport { useRouter } from 'next/router';\n\nimport { StackProps } from '@mui/material';\nimport { HighlightOff } from '@mui/icons-material';\n\nimport { PropertyTag } from '@/components/shared/PropertyTag/PropertyTag';\nimport { SamplesDetailsPropertyValue } from './SamplesDetailsPropertyValue/SamplesDetailsPropertyValue';\n\nimport { StyledText, StyledToolTip } from '@/components/lib';\nimport {\n StyledContainer,\n StyledReasonText,\n StyledRowContainer,\n StyledTitleContainer\n} from './SampleDetailsDialogBodyCard.styles';\n\nimport { routes } from '@/helpers/routes';\nimport { usePermission } from '@/components/shared/RBAC/RBAC';\nimport { propsMarkingColor } from '@/helpers/utils/getMarkedText';\nimport { UpdatePropertySchema } from '@/helpers/utils/deepCloneUpdates';\nimport {\n Permission,\n PropertyType,\n PerPropertySchema,\n PipelineElementType,\n PropertyDefinitionSchema\n} from '@/helpers/services/api';\n\nimport { constants as samplesConstants } from '@/components/Samples/SamplesTable/samplesTable.constants';\n\ninterface SamplesTableDialogBodyCardProps extends StackProps {\n reason?: string;\n kind: PropertyType;\n staticItem?: boolean;\n propertyToMark?: string;\n userInteractionId?: string;\n switchToTranslated?: boolean;\n ignoreReasoningTooltip?: boolean;\n allMarkingDetails?: PerPropertySchema[];\n propertyDefinition?: PropertyDefinitionSchema;\n card: { title: string; value: number | string };\n handleDelete?: () => void;\n setSection?: (section: string) => void;\n setPropertyToMark?: (property: string) => void;\n setIsTranslation?: (isTranslation: boolean) => void;\n updateProperty?: (updateData: UpdatePropertySchema) => void;\n}\n\nconst constants = {\n moreDetails: 'More details',\n markingExplanation: (propName?: string) =>\n propName === 'Grounded in Context'\n ? '* The highlighted sentences on the output received the lowest score'\n : '* The most relevant paragraph is highlighted in the document',\n tooltipText: (description?: string, reason?: string, value?: string) =>\n `${description ?? ''}${reason ? `\\n\\n Score Reasoning - \\n\\n ${reason}` : ''}${value ? `\\nValues: ${value}` : ''}`\n};\n\nconst { sampleKey, informationRetrievalKey } = samplesConstants;\n\nexport const SampleDetailsDialogBodyCard = (props: SamplesTableDialogBodyCardProps) => {\n const {\n card,\n kind,\n reason,\n propertyToMark,\n userInteractionId,\n allMarkingDetails,\n propertyDefinition,\n switchToTranslated,\n ignoreReasoningTooltip,\n setSection,\n handleDelete,\n updateProperty,\n setIsTranslation,\n setPropertyToMark,\n ...otherProps\n } = props;\n\n const [isReasonView, setIsReasonView] = useState(false);\n const [isInputFieldOpen, setIsInputFieldOpen] = useState(false);\n const [popupAnchor, setPopupAnchor] = useState(null);\n\n const { push } = useRouter();\n\n const { isAllowed } = usePermission(Permission['PROPERTIES_WRITE']);\n\n const title = card?.title;\n const isExpandLogic = reason && ignoreReasoningTooltip;\n const isMarkingAvailable = Array?.isArray(allMarkingDetails)\n ? allMarkingDetails?.map(property => property?.name)?.includes(title)\n : false;\n const isClickable = !!isExpandLogic || !!isMarkingAvailable || (kind === PropertyType['custom'] && isAllowed);\n\n const propertyToMarkDetails = Array?.isArray(allMarkingDetails)\n ? (allMarkingDetails?.find(property => property?.name === title) as PerPropertySchema & string)\n : undefined;\n\n const handleRedirect = () => {\n push(\n `${routes.config.properties}?drillDownPropertyName=${propertyDefinition?.property_name}&drillDownPropertyType=${kind}`\n );\n };\n\n const handleContainerClick = (e?: HTMLElement) => {\n if (isExpandLogic) {\n setIsReasonView(!isReasonView);\n } else if (isMarkingAvailable) {\n if (propertyToMark !== title) {\n setPropertyToMark && setPropertyToMark(title as string);\n switchToTranslated && setIsTranslation && setIsTranslation(true);\n\n const sectionToMark = () => {\n switch (propertyToMarkDetails?.element_to_mark) {\n case PipelineElementType['information_retrieval']:\n return informationRetrievalKey;\n default:\n return typeof propertyToMarkDetails?.metadata?.[0]?.document_index === 'number'\n ? informationRetrievalKey // Fallback if server is wrong about index <=> element_to_mark\n : sampleKey;\n }\n };\n\n setSection && setSection(sectionToMark());\n } else {\n setPropertyToMark && setPropertyToMark('');\n }\n } else if (kind === PropertyType['custom'] && isAllowed) {\n propertyDefinition?.column_type === 'numeric' ? setIsInputFieldOpen(true) : setPopupAnchor(e ?? null);\n }\n };\n\n return (\n ) => handleContainerClick(e?.currentTarget)}\n >\n \n \n \n {handleDelete && (\n \n )}\n \n \n \n \n \n \n {isReasonView || propertyToMark === title ? (\n \n ) : (\n <>\n )}\n \n );\n};\n","import React from 'react';\n\nimport { Popover, PopoverProps, styled } from '@mui/material';\n\nexport const StyledPopover = styled((props: PopoverProps) => (\n \n))({});\n","import React from 'react';\n\nimport { SamplesTablePopoverSortByProperty } from '@/components/Samples/SamplesTable/SamplesTablePopover/SamplesTablePopoverSortByProperty/SamplesTablePopoverSortByProperty';\n\nimport { StyledPopover } from './SampleDetailsBodyPropertiesAddPropertyPopover.styles';\n\nimport { OrderByModel, PropertyDefinitionSchema } from '@/helpers/services/api';\n\nimport { SamplesDetailsBodyPropertyType } from '../SampleDetailsBodyProperties';\n\nexport interface AddPropertyPopoverProps {\n anchorEl: HTMLElement | null;\n allPropsList?: SamplesDetailsBodyPropertyType[];\n setAnchorEl: React.Dispatch>;\n handleSubmit?: ((item: SamplesDetailsBodyPropertyType) => void) | undefined;\n}\n\nexport const SampleDetailsBodyPropertiesAddPropertyPopover = (props: AddPropertyPopoverProps) => {\n const { allPropsList, anchorEl, handleSubmit, setAnchorEl } = props;\n\n const curPropertiesList = Array?.isArray(allPropsList)\n ? allPropsList?.reduce((acc: PropertyDefinitionSchema[], el: SamplesDetailsBodyPropertyType) => {\n return [\n ...acc,\n {\n property_name: el.name,\n property_type: el.type\n } as PropertyDefinitionSchema\n ];\n }, [] as PropertyDefinitionSchema[])\n : [];\n\n const handleApplyClick = (newKind: OrderByModel, newProperty?: string) => {\n setAnchorEl(null);\n\n const newProp = allPropsList?.find(el => el.name === newProperty && el.type === newKind.split('_properties')[0]);\n\n handleSubmit && newProp && handleSubmit(newProp);\n };\n\n return (\n setAnchorEl(null)}>\n \n \n );\n};\n","import React, { useState } from 'react';\n\nimport { SampleDetailsDialogBodyCard } from './SampleDetailsDialogBodyCard/SampleDetailsDialogBodyCard';\nimport { SampleDetailsBodyPropertiesAddPropertyPopover } from './SampleDetailsBodyPropertiesAddPropertyDialog/SampleDetailsBodyPropertiesAddPropertyPopover';\n\nimport { StyledText } from '@/components/lib';\nimport {\n StyledRowContainer,\n StyledTitleDivider,\n PropertiesAddCardText,\n PropertyAddCardContainer,\n StyledPropertiesContainer,\n StyledPropertiesScrollContainer\n} from '../SamplesDetailsBodyItem.styles';\n\nimport { UpdatePropertySchema } from '@/helpers/utils/deepCloneUpdates';\nimport { handleFindElement } from './SampleDetailsBodyProperties.helpers';\nimport { useStorageProperties } from '@/helpers/hooks/useStorageProperties';\nimport {\n PropertyType,\n PerPropertySchema,\n PropReasonSchemaOut,\n InputPropertiesSchema,\n OutputPropertiesSchema,\n ReadPropertyConfigSchema,\n PropertyDefinitionSchema,\n InteractionSchemaOutLlmProperties,\n InteractionSchemaOutCustomProperties,\n InteractionSchemaOutOutputProperties\n} from '@/helpers/services/api';\n\nimport { constants } from './sampleDetailsBodyProperties.constants';\nimport { SelectedColumnType } from '@/components/Samples/Samples.types';\n\nconst { propertiesTitle, addCardLabel, limit } = constants;\n\nexport interface SamplesDetailsBodyPropertyType {\n name: string;\n value: number | string;\n type: 'input' | 'output' | 'custom' | 'llm' | 'garak';\n}\n\nexport interface SamplesDetailsBodyAllPropertiesType {\n input: InputPropertiesSchema | null;\n output: OutputPropertiesSchema | null;\n custom: InteractionSchemaOutCustomProperties | null;\n llm: InteractionSchemaOutLlmProperties | null;\n garak: InteractionSchemaOutLlmProperties | null;\n}\n\ninterface SamplesDetailsBodyPropertiesProps {\n appId?: number;\n isPentest?: boolean;\n isComparison?: boolean;\n propertyToMark?: string;\n userInteractionId?: string;\n switchToTranslated?: boolean;\n excludeStorageProps?: boolean;\n ignoreReasoningTooltip?: boolean;\n selectedColumns?: SelectedColumnType[];\n allMarkingDetails?: PerPropertySchema[];\n listOfProperties?: ReadPropertyConfigSchema[];\n properties: SamplesDetailsBodyAllPropertiesType;\n allPropsList?: SamplesDetailsBodyPropertyType[];\n comparisonProps?: SamplesDetailsBodyPropertyType[];\n llmAndCustomReasons?: PropReasonSchemaOut[];\n setSection?: (section: string) => void;\n setIsTranslation?: (isTranslation: boolean) => void;\n updateProperty?: (updateData: UpdatePropertySchema) => void;\n getPropertyInfo?: (name: string) => PropertyDefinitionSchema;\n setPropertyToMark?: React.Dispatch>;\n handleAddProperty?: (item: SamplesDetailsBodyPropertyType) => void;\n handleDeleteProperty?: (item: SamplesDetailsBodyPropertyType) => void;\n}\n\n// To hide the null props, uncomment the conditions curElData?.value !== null and findCurElemInAllProp?.value !== null\nexport const SampleDetailsBodyProperties = (props: SamplesDetailsBodyPropertiesProps) => {\n const {\n appId,\n isPentest,\n properties,\n allPropsList,\n isComparison,\n propertyToMark,\n comparisonProps,\n selectedColumns,\n listOfProperties,\n allMarkingDetails,\n userInteractionId,\n switchToTranslated,\n llmAndCustomReasons,\n excludeStorageProps,\n ignoreReasoningTooltip,\n setSection,\n updateProperty,\n getPropertyInfo,\n setIsTranslation,\n handleAddProperty,\n setPropertyToMark,\n handleDeleteProperty\n } = props;\n\n const [anchorEl, setAnchorEl] = useState(null);\n\n const { appStorageProperties } = useStorageProperties(appId);\n\n const noProperties = !properties.custom && !properties.llm && !properties.input && !properties.output;\n\n if (noProperties || (isComparison && !allPropsList?.length && !comparisonProps?.length)) {\n return <>;\n }\n\n const isCurComparison = isComparison && comparisonProps;\n\n const renderSampleDetailsCard = (key: string, value: number | string | null, kind: PropertyType) => {\n const formattedValue = typeof value === 'number' ? +value.toFixed(2) || 0 : value || 'N/A';\n const reason = Array.isArray(llmAndCustomReasons) && llmAndCustomReasons.find(el => el?.name === key)?.reason;\n\n const item: SamplesDetailsBodyPropertyType = {\n name: key,\n value: value || '',\n type: kind\n };\n\n if (!key) {\n return <>;\n } else {\n return (\n \n );\n }\n };\n\n const handleBuildCurProperties = (\n propertiesList:\n | InputPropertiesSchema\n | InteractionSchemaOutLlmProperties\n | InteractionSchemaOutOutputProperties\n | null,\n type: string\n ) => {\n return propertiesList\n ? Object.entries(propertiesList).map(([key, value]) => ({\n name: key,\n value,\n type: type as 'input' | 'output' | 'custom' | 'llm'\n }))\n : [];\n };\n\n const allPropsArr: SamplesDetailsBodyPropertyType[] = [\n ...handleBuildCurProperties(properties.input, 'input'),\n ...handleBuildCurProperties(properties.output, 'output'),\n ...handleBuildCurProperties(properties.llm, 'llm'),\n ...handleBuildCurProperties(properties.custom, 'custom'),\n ...(isPentest ? [...handleBuildCurProperties(properties.garak, 'garak')] : [])\n ];\n\n const propsFromStorage = appId && appStorageProperties && !excludeStorageProps;\n\n const curSelectedColumns: SamplesDetailsBodyPropertyType[] = Array.isArray(selectedColumns)\n ? selectedColumns?.reduce((acc: SamplesDetailsBodyPropertyType[], el) => {\n const findCurElemInAllProp = handleFindElement(allPropsArr, {\n text_property: el?.propertyName || '',\n kind: el?.propertyType?.toLowerCase() || ''\n });\n\n if (findCurElemInAllProp /* && findCurElemInAllProp?.value !== null */) {\n return [...acc, findCurElemInAllProp];\n }\n\n return [...acc];\n }, [] as SamplesDetailsBodyPropertyType[])\n : [];\n\n const selectedProps: SamplesDetailsBodyPropertyType[] = Array.isArray(propsFromStorage)\n ? propsFromStorage?.reduce((acc: SamplesDetailsBodyPropertyType[], el: { text_property: string; kind: string }) => {\n const findCurElemInAllProp = handleFindElement(allPropsArr, el);\n const findCurElemInSelectedColumns = handleFindElement(curSelectedColumns, el);\n\n if (findCurElemInAllProp /* && findCurElemInAllProp?.value !== null */ && !findCurElemInSelectedColumns) {\n return [...acc, findCurElemInAllProp];\n }\n\n return [...acc];\n }, [] as SamplesDetailsBodyPropertyType[])\n : [];\n\n const curSelectedProps = excludeStorageProps ? [] : [...(curSelectedColumns || []), ...(selectedProps || [])];\n const curListOfProperties: SamplesDetailsBodyPropertyType[] = Array.isArray(listOfProperties)\n ? listOfProperties.reduce((acc, el) => {\n if (curSelectedProps.length && !handleFindElement(curSelectedProps, el)) {\n const findCurElemInAllProp = handleFindElement(allPropsArr, el);\n\n return [\n ...acc,\n ...(findCurElemInAllProp /* && findCurElemInAllProp?.value !== null */ ? [findCurElemInAllProp] : [])\n ];\n } else if (!curSelectedProps.length) {\n const curElData = handleFindElement(allPropsArr, el);\n\n return [...acc, ...(curElData /* && curElData?.value !== null */ ? [curElData] : [])];\n }\n\n return [...acc];\n }, [] as SamplesDetailsBodyPropertyType[])\n : ([] as SamplesDetailsBodyPropertyType[]);\n\n const handleRenderOrderedProps = (propertiesList: SamplesDetailsBodyPropertyType[]) =>\n propertiesList?.length > 0 &&\n propertiesList.map(({ name, value, type }) => renderSampleDetailsCard(name, value, PropertyType[type]));\n\n const handleRenderNotOrderedProps = (\n propertiesList:\n | InputPropertiesSchema\n | InteractionSchemaOutCustomProperties\n | InteractionSchemaOutOutputProperties\n | null,\n type: 'input' | 'output' | 'custom' | 'llm'\n ) =>\n propertiesList &&\n Object.entries(propertiesList).map(([key, value]) => {\n if (Array.isArray(curSelectedProps) && curSelectedProps.find(el => el.name === key && el.type === type)) {\n return null;\n }\n\n return renderSampleDetailsCard(key, value, PropertyType[type]);\n });\n\n const isDefaultProps = !listOfProperties && !isComparison;\n\n const openAddDialog = (e: { currentTarget: HTMLElement | null }) => setAnchorEl(e.currentTarget);\n\n return (\n \n {isComparison ? (\n \n \n \n \n ) : (\n \n )}\n \n {isCurComparison ? (\n <>\n {handleRenderOrderedProps(comparisonProps)}\n {comparisonProps?.length < limit && handleAddProperty && Boolean(allPropsList?.length) && (\n <>\n \n \n \n \n \n )}\n \n ) : (\n <>\n {handleRenderOrderedProps(curSelectedProps)}\n {handleRenderOrderedProps(curListOfProperties)}\n {isDefaultProps && handleRenderNotOrderedProps(properties.input, 'input')}\n {isDefaultProps && handleRenderNotOrderedProps(properties.output, 'output')}\n {isDefaultProps && handleRenderNotOrderedProps(properties.custom, 'custom')}\n {isDefaultProps && handleRenderNotOrderedProps(properties.llm, 'llm')}\n \n )}\n \n \n );\n};\n","import { styled, Box, ListItem } from '@mui/material';\nimport List from '@mui/material/List';\n\nimport { StyledInput } from '@/components/lib';\n\nexport const StyledSearchInput = styled(StyledInput)({\n width: 'calc(100% - 32px)',\n margin: '0 16px'\n});\n\nexport const StyledList = styled(List)({\n height: '230px',\n overflow: 'auto',\n margin: '8px 0 0'\n});\n\nexport const StyledListItem = styled(ListItem)<{ is_active: string }>(({ is_active, theme }) => ({\n background: is_active === 'true' ? theme.palette.grey[100] : 'transparent'\n}));\n\nexport const StyledEmptyList = styled(Box)(({ theme }) => ({\n width: '100%',\n height: '254px',\n padding: '16px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n color: theme.palette.grey[500]\n}));\n","import React, { ReactElement, useEffect, useRef, useState } from 'react';\n\nimport { Stack, StackProps } from '@mui/material';\nimport ListItemButton from '@mui/material/ListItemButton';\n\nimport { PropertyTag } from '@/components/shared/PropertyTag/PropertyTag';\n\nimport { PropertyDefinitionSchema, OrderByModel, PropertyType } from '@/helpers/services/api';\n\nimport {\n StyledList,\n StyledListItem,\n StyledEmptyList,\n StyledSearchInput\n} from './SamplesTablePopoverSortByProperty.styles';\nimport { StyledListItemText } from '../../SamplesTable.styles';\n\nimport { constants, defaultProperty } from '../samplesTablePopover.constants';\n\nconst { inputPlaceholder, noPropsText } = constants;\n\ninterface SamplesTablePopoverSortByPropertyProps extends StackProps {\n column: string;\n model: OrderByModel;\n isEmptyState?: boolean;\n propertylist: PropertyDefinitionSchema[];\n handleApplyClick: (tab: OrderByModel, column?: string) => void;\n}\n\nexport const SamplesTablePopoverSortByProperty = (props: SamplesTablePopoverSortByPropertyProps) => {\n const { model, column, propertylist, isEmptyState, handleApplyClick } = props;\n\n const ulRef = useRef(null);\n const ulElement: ReactElement = ulRef.current || <>;\n\n const [inputValue, setInputValue] = useState('');\n const [properties, setProperties] = useState([]);\n const [selected, setSelected] = useState(defaultProperty);\n const [selectedItemIndex, setSelectedItemIndex] = useState(0);\n\n const handleInputCloseIconClick = () => setInputValue('');\n\n const handleTypeToColumn = (property_type: PropertyType) => `${property_type}_properties` as OrderByModel;\n\n const handleInputChange = (event: React.ChangeEvent) => setInputValue(event.target.value);\n\n const handleListItemClick = (\n _event: React.MouseEvent,\n property: PropertyDefinitionSchema\n ) => {\n setSelected(property);\n };\n\n const handleKeyDown = (e: { keyCode: number }) => {\n const isUlElementExist = typeof ulElement.type?.length === 'number';\n\n if (e.keyCode === 38 && selectedItemIndex > 0 && isUlElementExist) {\n const curElementIndex = selectedItemIndex - 1;\n setSelectedItemIndex(curElementIndex);\n (ulElement as unknown as HTMLElement)?.querySelectorAll('li')?.[curElementIndex - 1]?.scrollIntoView();\n } else if (e.keyCode === 40 && selectedItemIndex - 1 < properties?.length - 1 && isUlElementExist) {\n const curElementIndex = selectedItemIndex + 1;\n setSelectedItemIndex(curElementIndex);\n (ulElement as unknown as HTMLElement)?.querySelectorAll('li')?.[curElementIndex - 1]?.scrollIntoView();\n } else if (e.keyCode === 13 && selectedItemIndex > 0) {\n const curActiveElement = properties.find((_, index) => index === selectedItemIndex - 1);\n curActiveElement &&\n handleApplyClick(handleTypeToColumn(curActiveElement?.property_type), curActiveElement?.property_name);\n }\n };\n\n useEffect(() => {\n if (propertylist) {\n setProperties(\n propertylist.filter(\n el =>\n el?.property_name.toLowerCase().includes(inputValue.toLowerCase()) ||\n el?.property_type.toLowerCase().includes(inputValue.toLowerCase())\n )\n );\n }\n }, [propertylist, inputValue]);\n\n useEffect(() => {\n if (propertylist && !isEmptyState) {\n const foundColumn = propertylist.find(el => el?.property_name === column);\n\n if (foundColumn) {\n setSelected(foundColumn);\n } else {\n setSelected(properties[0]);\n }\n }\n }, [column, properties]);\n\n return (\n \n \n {Array?.isArray(properties) && properties?.length > 0 ? (\n \n {properties.map((property, index) => (\n handleApplyClick(handleTypeToColumn(property?.property_type), property?.property_name)}\n data-testid={`SamplesTablePropertyOrderByCustomTabItemLi${property.property_name}`}\n is_active={selectedItemIndex > 0 && index === selectedItemIndex - 1 ? 'true' : 'false'}\n >\n handleListItemClick(event, property)}\n data-testid={`SamplesTablePropertyOrderByCustomTabItem${property.property_name}`}\n >\n \n \n \n \n ))}\n \n ) : (\n {noPropsText}\n )}\n \n );\n};\n","import { styled, Stack, Divider } from '@mui/material';\n\nimport { StyledContainer, StyledText } from '@/components/lib';\n\nimport { fadeInAnimation } from '@/helpers/animations';\n\nexport const StyledSamplesDetailsBodyItemContainer = styled(StyledContainer)({\n gap: '24px',\n padding: '8px',\n display: 'grid',\n height: '580px',\n overflowX: 'auto',\n transition: '0.2s',\n overflowY: 'hidden',\n gridTemplateColumns: 'auto 240px',\n animation: `${fadeInAnimation} 0.5s ease`,\n\n '.MuiTypography-h5': { padding: '0 4px' },\n\n '@media (max-height: 790px)': { height: '70vh' },\n '@media (max-height: 610px)': { height: '67vh' }\n});\n\ninterface StyledSamplesDetailsBodySectionsContainerProps {\n step?: string;\n single?: string;\n is_info_retrieval?: string;\n is_only_output_step?: string;\n}\n\nexport const StyledSamplesDetailsBodySectionsContainer = styled(\n StyledContainer\n)(({ single, is_info_retrieval }) => ({\n gap: '24px',\n padding: '0',\n flexDirection: 'column',\n display: is_info_retrieval === 'true' ? 'flex' : 'grid',\n overflow: is_info_retrieval === 'true' ? 'auto' : 'none',\n gridTemplateColumns: is_info_retrieval === 'true' ? 'none' : single === 'true' ? '98%' : '49% 49%'\n}));\n\nexport const StyledSamplesDetailsBodyItemColumnContainer = styled(StyledContainer)({\n gap: '6px',\n width: '100%',\n height: '580px',\n minWidth: '250px',\n overflow: 'hidden',\n\n '@media (max-height: 790px)': { height: '70vh' },\n '@media (max-height: 610px)': { height: '67vh' },\n\n '.MuiTypography-h5': { minHeight: '22px' }\n});\n\nexport const StyledSamplesExpectedOutputContainer = styled(Stack)(({ theme }) => ({\n gap: '6px',\n marginTop: 'auto',\n paddingTop: '16px',\n maxHeight: '300px',\n minHeight: '200px',\n\n '.MuiTypography-h5': { color: theme.palette.primary.dark },\n '.MuiTypography-body1': { backgroundColor: theme.palette.primary.light }\n}));\n\nexport const StyledBodyItemContainer = styled(Stack)({\n overflow: 'unset'\n});\n\nexport const StyledPropertiesText = styled(StyledText)(({ theme }) => ({\n flexShrink: 0,\n fontWeight: 700,\n margin: '24px 0 0 0',\n color: theme.palette.grey[700]\n}));\n\nexport const StyledContent = styled(StyledText)<{ diff?: string; important?: string; translation?: string }>(\n ({ important, translation, diff, theme }) => ({\n padding: '16px',\n fontWeight: 700,\n overflow: 'auto',\n transition: '0.4s',\n borderRadius: '8px',\n wordBreak: 'break-word',\n maxHeight: 'calc(100% - 46px)',\n color: theme.palette.grey[700],\n background: diff === 'true' ? `${theme.palette.grey[200]} !important` : theme.palette.grey[100],\n border: `2px solid ${translation === 'true' ? theme.palette.primary.main : important === 'true' ? theme.palette.grey[600] : 'transparent'}`\n })\n);\n\nexport const StyledPropertiesContainer = styled(Stack)({\n height: 'auto',\n animation: `${fadeInAnimation} 0.5s ease`\n});\n\nexport const StyledPropertiesScrollContainer = styled(Stack, {\n shouldForwardProp: prop => prop !== 'row'\n})<{ row?: string }>(({ row }) => ({\n gap: '12px',\n overflow: 'auto',\n marginTop: row === 'true' ? '8px' : '0px',\n flexDirection: row === 'true' ? 'row' : 'column'\n}));\n\nexport const StyledRowContainer = styled(Stack)({\n gap: '12px',\n flexDirection: 'row',\n alignItems: 'center'\n});\n\nexport const StyledTitleDivider = styled(Divider)(({ theme }) => ({\n height: '2px',\n width: 'calc(100% - 155px)',\n background: theme.palette.grey[200]\n}));\n\nexport const PropertyAddCardContainer = styled(StyledContainer)(({ theme }) => ({\n cursor: 'pointer',\n maxWidth: '163px',\n minWidth: '163px',\n background: 'transparent',\n border: `2px solid ${theme.palette.grey[300]}`\n}));\n\nexport const PropertiesAddCardText = styled(StyledText)(({ theme }) => ({\n margin: 'auto',\n color: theme.palette.grey[400]\n}));\n","import { InteractionSchemaOutSessionId } from '@/helpers/services/api';\n\nexport const constants = {\n backButtonLabel: '<',\n nextButtonLabel: '>',\n similarityLinkLabel: 'Similar Response',\n copy: { linkCopied: 'Link Copied!', copyLinkText: 'Copy Link' },\n sessionIdText: (interactionIdText: InteractionSchemaOutSessionId | undefined) => `Session ID: ${interactionIdText}`,\n paginationText: (currentPage: number, pageCount: number) => `${currentPage + 1}/${pageCount}`\n};\n","export const constants = {\n input: 'Input:',\n version: 'Version',\n outPut: 'Interaction Output:',\n searchVersion: 'Search Version..',\n selectedProps: 'Selected properties',\n noVersionToCompare: 'No second version to compare',\n noVersionDescription: 'No version description has been provided',\n diffTooltip: (showDiff: boolean) => (showDiff ? 'Remove Diff Marking' : 'Mark Diff'),\n contentHeight: '280px',\n scoreWithEst: 'Score w. Est',\n score: 'Score',\n numberOfInteractionText: (allInteractionNumber: number, overlappingInteractionNumber: number) =>\n allInteractionNumber && allInteractionNumber\n ? `Showing ${overlappingInteractionNumber} overlapping interaction out of ${allInteractionNumber} interactions in environment`\n : '',\n keys: {\n input: 'Input',\n output: 'Output',\n history: 'History',\n fullPrompt: 'Full Prompt',\n expectedOutput: 'Expected Output',\n infoRetrieval: 'Information Retrieval'\n },\n documentTitle: (number: number) => `Document #${number}`,\n propsLimit: 4,\n similarityContent: {\n tooltip: (deepchecks?: number, blue_n1?: number, rouge_n1?: number) =>\n `Deepchecks Similarity: ${Number(deepchecks)?.toFixed(2)}\\nBLEU N1: ${Number(blue_n1)?.toFixed(2)}\\nRouge N1: ${Number(rouge_n1)?.toFixed(2)}`,\n similarityLabel: 'Similarity Score:',\n content: (input?: string | null, output?: string | null) =>\n input && output ? `Input:\\n ${input} \\n\\n Output:\\n ${output}` : input ? input : `${output}`\n }\n};\n","import { styled, Stack, IconButton } from '@mui/material';\n\nimport { StyledContainer as DSStyledContainer } from '@/components/lib';\n\nexport const StyledContainer = styled(Stack)<{ is_big_container?: string }>(({ is_big_container, theme }) => ({\n minHeight: is_big_container === 'true' ? '600.6px' : '539px',\n height: 'auto',\n borderRadius: '12px',\n background: theme.palette.grey[100]\n}));\n\nexport const StyledInputContainer = styled(DSStyledContainer)<{ is_two_items?: string }>(({ is_two_items, theme }) => ({\n gap: '0',\n height: 'auto',\n margin: '8px',\n borderRadius: 0,\n display: 'grid',\n padding: '16px 24px',\n width: 'calc(100% - 16px)',\n gridTemplateColumns: is_two_items === 'true' ? '50px auto' : '50px auto 120px',\n borderBottom: `2px solid ${theme.palette.grey[300]}`,\n\n '.MuiTypography-root': { whiteSpace: 'nowrap' },\n '.MuiTypography-body2': { color: theme.palette.grey[600] }\n}));\n\nexport const StyledInputTextContainer = styled(Stack)({\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n});\n\nexport const StyledArrowContainer = styled(Stack)({\n gap: 0,\n flexDirection: 'row',\n justifyContent: 'space-between',\n position: 'relative'\n});\n\nexport const StyledInputTextWrapper = styled(Stack)({\n flexDirection: 'row',\n alignItems: 'center',\n width: '80%'\n});\n\nexport const StyledArrowIconButton = styled(IconButton)(({ theme }) => ({\n padding: 0,\n color: theme.palette.grey[400],\n position: 'absolute',\n left: 0,\n top: '10px'\n}));\n\nexport const StyledIconButton = styled(IconButton)(({ theme }) => ({\n padding: 0,\n color: theme.palette.grey[400],\n position: 'absolute',\n right: 0,\n top: '10px'\n}));\n\nexport const StyledVersionsContainer = styled(DSStyledContainer)({\n display: 'grid',\n padding: '0 8px',\n gridTemplateColumns: `repeat(2, 1fr)`,\n gap: 0\n});\n\nexport const StyledNoVersionsContainer = styled(Stack)({\n alignItems: 'center',\n justifyContent: 'center',\n width: '100%',\n height: '663px'\n});\n","export const getPercentage = (number?: number, round?: boolean, defaultZero?: boolean) => {\n if ((!number && number !== 0) || `${number}` === 'Infinity') {\n return defaultZero ? '0%' : 'N/A';\n } else {\n const percentagedNumber = (Number(number) * 100)?.toFixed(2);\n const isZero = +percentagedNumber % 1 === 0;\n const finalizedNumber = isZero || round ? Math.round(+percentagedNumber) : percentagedNumber;\n\n return `${finalizedNumber}%`;\n }\n};\n","import { PropertyDefinitionSchema } from '@/helpers/services/api';\n\nexport const constants = {\n inputPlaceholder: 'Property search...',\n noPropsText: 'No Properties',\n removeColumnText: 'Remove column'\n};\n\nexport const propertiesObj = {\n 0: 'input',\n 1: 'output',\n 2: 'custom'\n};\n\nexport const defaultProperty: PropertyDefinitionSchema = {\n id: NaN,\n url: '',\n is_llm: false,\n description: '',\n is_builtin: true,\n in_dashboard: false,\n interaction_type: '',\n column_type: 'numeric',\n property_type: 'input',\n property_name: 'Text Length',\n property_column_name: 'TEXT_LENGTH',\n user_facing_property_type: 'Built-in'\n};\n","import { styled, Stack, IconButton } from '@mui/material';\n\nimport { StyledText, StyledButton } from '@/components/lib';\n\nexport const StyledContainer = styled(Stack)(({ theme }) => ({\n minHeight: '56px',\n padding: '4px 12px',\n marginBottom: '16px',\n alignItems: 'center',\n flexDirection: 'row',\n borderRadius: '8px 8px 8px 0',\n justifyContent: 'space-between',\n background: theme.palette.grey[200]\n}));\n\nexport const StyledPaginationContainer = styled(Stack)({\n gap: '8px',\n minWidth: '110px',\n flexDirection: 'row',\n alignItems: 'center',\n\n '.MuiTypography-root': { margin: '0 auto', width: 'fit-content' }\n});\n\nexport const StyledAnnotationAndPropsWrapper = styled(Stack)(({ theme }) => ({\n gap: '4px',\n overflow: 'auto',\n paddingLeft: '12px',\n paddingBottom: '16px',\n borderLeft: `2px solid ${theme.palette.grey[200]}`,\n\n '&::-webkit-scrollbar': { width: '7px' },\n '&::-webkit-scrollbar-thumb:hover': { background: theme.palette.grey[500] },\n '&::-webkit-scrollbar-thumb': { backgroundColor: theme.palette.grey[300], borderRadius: '8px' }\n}));\n\nexport const StyledAnnotationPropsContainer = styled(Stack)({\n gap: '16px',\n width: '210px',\n flexDirection: 'row',\n padding: '6px 0 2px 12px'\n});\n\nexport const StyledAnnotationCellContainer = styled(Stack)(({ theme }) => ({\n padding: '0 8px',\n cursor: 'pointer',\n maxWidth: '160px',\n borderRadius: '8px',\n marginLeft: '-12px',\n background: theme.palette.common.white,\n border: `2px solid ${theme.palette.grey[300]}`\n}));\n\nexport const StyledInteractionIdText = styled(StyledText)({\n minHeight: '32px',\n padding: '4px 4px 0',\n wordBreak: 'break-all'\n});\n\nexport const StyledAnnotationCellText = styled(StyledText)({\n maxWidth: '100%',\n margin: 'auto 0',\n overflow: 'hidden',\n WebkitLineClamp: '2',\n whiteSpace: 'initial',\n display: '-webkit-box',\n textOverflow: 'ellipsis',\n WebkitBoxOrient: 'vertical',\n fontWeight: 500\n});\n\nexport const StyledPaginationButton = styled(StyledButton)(({ theme }) => ({\n fontWeight: 700,\n background: theme.palette.grey[300],\n color: theme.palette.grey[600],\n minWidth: '24px',\n height: '24px',\n fontSize: '20px',\n padding: '4px',\n borderRadius: '4px',\n\n ':hover': {\n background: theme.palette.grey[400]\n }\n}));\n\nexport const StyledHeaderContainerBase = styled(Stack)(({ theme }) => ({\n gap: '12px',\n flexDirection: 'row',\n alignItems: 'center',\n\n '.MuiTypography-h2': { color: theme.palette.grey[700], fontSize: '16px' },\n '.MuiSvgIcon-root': { color: theme.palette.grey[400], cursor: 'pointer' }\n}));\n\nexport const StyledHeaderContainerSecondary = styled(Stack)({\n marginLeft: 'auto',\n flexDirection: 'row',\n gap: '16px'\n});\n\nexport const StyledIconButton = styled(IconButton)({\n padding: 0\n});\n","import { useState, useEffect } from 'react';\n\nimport { getAppStorage } from '../utils/localStorage';\nimport { PropertyDefinitionSchema, useListPropertiesDefinitions } from '@/helpers/services/api';\n\ninterface PropertyInfo {\n [key: string]: PropertyDefinitionSchema;\n}\n\nexport const usePropertiesInfo = () => {\n const { appId } = getAppStorage();\n\n const { data, isFetching: isPropertiesInfoFetching } = useListPropertiesDefinitions(appId);\n\n const [propertiesInfo, setPropertiesInfo] = useState({});\n\n useEffect(() => {\n if (Array.isArray(data)) {\n const result: PropertyInfo = {};\n\n data.forEach(\n e =>\n (result[e.property_name] = {\n id: e.id,\n url: e.url,\n is_llm: e?.is_llm,\n is_builtin: e?.is_builtin,\n description: e.description,\n column_type: e.column_type,\n in_dashboard: e?.in_dashboard,\n property_type: e.property_type,\n property_name: e.property_name,\n interaction_type: e?.interaction_type,\n property_column_name: e.property_column_name,\n user_facing_property_type: e?.user_facing_property_type\n })\n );\n setPropertiesInfo(result);\n }\n }, [data]);\n\n const getPropertyInfo = (name: string) => propertiesInfo[name] || { description: '', url: '' };\n\n return { propertiesInfo, isPropertiesInfoFetching, getPropertyInfo };\n};\n","import { Menu, MenuItem, Stack, alpha, styled } from '@mui/material';\nimport InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';\n\nimport { StyledText } from '@/components/lib';\n\nexport const StyledScoreTypeDropdownContainer = styled(Stack)(({ theme }) => ({\n gap: '0',\n display: 'flex',\n alignItems: 'center',\n flexDirection: 'row',\n cursor: 'pointer',\n\n ' svg': {\n color: theme.palette.grey[400]\n }\n}));\n\nexport const StyledDescriptionTitleText = styled(StyledText)(({ theme }) => ({\n color: theme.palette.grey[400]\n}));\n\nexport const StyledRootMenu = styled(Menu)({\n marginTop: '0',\n\n '& .MuiPaper-root': {\n overflow: 'visible',\n padding: '0 8px',\n borderRadius: '10px',\n boxShadow: '2px 2px 30px -10px #29354340'\n }\n});\n\nexport const StyledMenuItem = styled(MenuItem)<{ is_selected: string }>(({ is_selected, theme }) => ({\n position: 'relative',\n padding: '8px',\n\n ' p': {\n color: is_selected === 'true' ? theme.palette.primary.main : theme.palette.grey[400]\n },\n\n ':hover': {\n background: alpha(theme.palette.primary.main, 0.07),\n ' p': {\n color: theme.palette.primary.main\n }\n }\n}));\n\nexport const StyledNumberContainer = styled(Stack)(({ theme }) => ({\n gap: '4px',\n display: 'flex',\n padding: '8px 12px',\n borderRadius: '8px',\n flexDirection: 'row',\n alignItems: 'center',\n justifyContent: 'center',\n background: 'transparent',\n border: `2px solid ${theme.palette.grey[300]}`,\n\n '.MuiSvgIcon-root': { color: theme.palette.grey[400] }\n}));\n\nexport const StyledInfoIcon = styled(InfoOutlinedIcon)(({ theme }) => ({\n height: '24px',\n\n fill: theme.palette.grey[400]\n}));\n"],"names":["StyledContainer","styled","DSStyledContainer","shouldForwardProp","prop","first","is_big_container","theme","gap","borderRadius","minHeight","overflowY","paddingRight","paddingLeft","animation","fadeInAnimation","borderRight","palette","grey","nOfVersions","display","gridTemplateColumns","StyledAnnotationCellContainer","Stack","reason","height","padding","width","cursor","background","common","white","border","StyledText","is_selected","show","margin","textAlign","overflow","whiteSpace","transition","color","primary","main","borderBottom","is_border_left","overflowX","alignItems","justifyContent","flexDirection","marginBottom","borderLeft","StyledRowList","maxWidth","alpha","title","subTitle","constants","NoSampleDetailsDialogComparisonInteraction","StyledEmptyContainer","StyledEmptyIconContainer","JoinFullOutlined","fontSize","StyledTitleText","text","type","StyledSubTitleText","keys","similarityContent","score","diffTooltip","documentTitle","SampleDetailsDialogComparisonInteractionContent","routes","Array","allPropsList","Number","interaction","steps","scrollRef","dataToShow","selectedTag","isSelectable","initialVersion","selectedVersion","comparisonContent","comparedVersionData","differentByPropData","versionCompareInteraction","handleScroll","setSelectedTag","checkSectionData","updateAnnotation","setMainSelectedTag","setComparisonContent","metricType","props","similarity","setSimilarity","useState","isSimilarityLoading","setIsSimilarityLoading","pathname","useRouter","darkMode","getUserPreferences","isDiffOn","isVersionsPage","includes","config","versions","isMultiSection","infoRetrieval","history","isDiffAvailable","base","diff","output","multiSectionContent","isArray","information_retrieval","differentByPropValue","find","el","name","property_name","value","formattedValue","toFixed","handleTagChange","key","id","curSimilarityScore","blue_1_score","rouge_1_score","useEffect","user_interaction_id","interactionId","getSimilarityScoreApiV1ApplicationVersionsGetSimilarityScoreGet","interaction_user_id_1","interaction_user_id_2","interaction_version_id_1","interaction_version_id_2","versionId","then","res","finally","content","input","curOutput","fullPrompt","expectedOutput","map","StyledSelectOption","data-testid","onClick","bind","StyledSkeleton","StyledToolTip","tooltip","StyledSimilarityContainer","similarityLabel","StyledContentContainer","ref","onScroll","is_sticky","Boolean","toString","StyledDiffContainer","is_dark_mode","DiffViewer","splitView","showDiffOnly","compareMethod","DiffMethod","WORDS","oldValue","newValue","hideLineNumbers","isShowDiffLineNumbers","regex","RegExp","test","index","StyledInfoRetrievalText","data","is_margin","StyledAnnotationContentContainer","is_full_width","StyledTogglerContainer","StyledToggle","state","setState","handleShowDiff","annotation","StyledAnnotationCellText","AnnotationCell","disableTooltip","estAnnotation","estimated_annotation","interactionVersionId","application_version_id","StyledContentBottomContainer","StyledPropertyScoreContainer","StyledPropColorText","StyledPropertyScoreNumberContainer","SampleDetailsDialogComparisonInteraction","comparisonProps","interactionToUseId","noInteractionToCompare","isVersionComparison","mainSelectedTag","setAllPropsArr","getPropertyInfo","handleAddProperty","handleDeleteProperty","setSecondSelectedVersion","setSelectedComparisonVersionId","appId","getAppStorage","setSteps","isLoading","setIsLoading","setInteraction","length","isShowInteraction","stepData","filter","s","selectedVersionId","v","expected_output","item","join","prompt","handleRetrieveInteraction","getStepsForInteractionApiV1ApplicationVersionsAppVersionIdInteractionsUserInteractionIdStepsGet","setTimeout","retrieveInteraction","undefined","handleBuildCurProperties","propertiesList","Object","entries","allProps","input_properties","output_properties","llm_properties","custom_properties","garak_properties","curProps","reduce","acc","findCurElemInAllProp","elem","versionAllData","StyledLoader","isEstimated","deleteAnnotation","updated_at","created_at","is_estimated","origin","similarity_reason","SampleDetailsBodyProperties","isComparison","llmAndCustomReasons","llm_properties_reasons","custom_properties_reasons","properties","custom","llm","garak","scoreWithEst","noVersionDescription","numberOfInteractionText","SampleDetailsDialogComparisonInteractionHeader","query","version","versionsDropdownData","isBorderLeft","versionsExtendedList","includeEstScore","pageCount","setIncludeEstScore","setSelectedVersion","handleInitialVersionChange","anchorElRootMenu","setAnchorElRootMenu","curVersionName","handleScoreChange","curVersionFromExtendedList","curSelectedVersionEnvData","env","toLowerCase","scoreColor","useScoreColor","Operator","StyledGapRow","StyledDropdown","setValue","n_of_samples","StyledNumberContainer","StyledScoreTypeDropdownContainer","event","handleOpenRootMenu","currentTarget","StyledDescriptionTitleText","KeyboardArrowUp","KeyboardArrowDown","StyledRootMenu","onClose","anchorOrigin","vertical","horizontal","transformOrigin","open","anchorEl","StyledMenuItem","getPercentage","StyledInfoIcon","propsLimit","noVersionToCompare","backButtonLabel","nextButtonLabel","paginationText","headerConstants","SampleDetailsDialogComparison","currentPage","selectedColumns","interactionToCompare","isInteractionsLoading","curVersionsToComparison","handleBack","closeDialog","setCurrentPage","interactionType","listProperties","useListPropertiesConfigs","app_id","interaction_type","setVersions","setVersionsExtendedList","allPropsArr","setComparisonProps","secondSelectedVersion","setInitialVersion","firstContentRef","useRef","secondContentRef","containerRef","current","scrollTop","appStorageProperties","useStorageProperties","allVersions","comparedVersion","curSelectedColumns","handleFindElement","text_property","propertyName","kind","propertyType","selectedDataPageProps","findCurElemInSelectedColumns","curSelectedDataPageProps","curListOfProperties","curElData","getComparisonVersions","getSimilarApiV1ApplicationVersionsComparisonPut","application_id","env_type","newInitialVersion","isVersionsExist","ai_model","slice","curInitialVersion","listAppVersionsExtended","only_user_annotations_score","overlapping_version_ids","StyledArrowContainer","StyledArrowIconButton","ArrowBackIosRounded","StyledIconButton","ClearRounded","StyledVersionsContainer","StyledNoVersionsContainer","NoDataAvailable","customTitle","StyledInputContainer","is_two_items","StyledInputTextContainer","StyledPaginationContainer","StyledPaginationButton","label","disabled","handlePrevPage","prev","Math","max","handleNextPage","min","newComparisonPropsArray","getMarkedText","marking_details","metadata","parts","sortedIndexes","sort","a","b","start","lastIndex","forEach","end","push","span","style","backgroundColor","condition","threshold","useTheme","red","error","green","success","expand","clickable","property","minWidth","maxHeight","propsMarkingColor","lineHeight","fontWeight","borderColor","marginLeft","StyledRowContainer","marginTop","borderTop","marginRight","fill","StyledUpdatePropertyPopover","Popover","slotProps","paper","CheckOutlined","SamplesDetailsPropertyCategoricalPopOver","curValue","popupAnchor","setPopupAnchor","handleUpdateCustomProperty","isCategoriesLoading","setIsCategoriesLoading","categoricalValue","setCategoricalValue","options","setOptions","retrieveAggregatedPropertiesByFilter","environment","possibleValues","val","handleClosePopover","StyledCheckbox","withSelectAll","limit","na","addCardLabel","propertiesTitle","SamplesDetailsPropertyValue","definition","isInputFieldOpen","userInteractionId","updateProperty","setIsInputFieldOpen","setCurValue","newNumericValue","setNewNumericValue","isCategoricalValue","categoricalVal","updateInteractionCustomProperty","valToUse","StyledValueTextContainer","data-popover-trigger","StyledInput","onChange","e","target","onKeyDown","autoFocus","StyledValueCategoricalTextContainer","className","StyledValueText","ArrowDropDownRounded","moreDetails","tooltipText","description","sampleKey","informationRetrievalKey","samplesConstants","SampleDetailsDialogBodyCard","allMarkingDetails","card","propertyToMark","propertyDefinition","switchToTranslated","ignoreReasoningTooltip","setSection","handleDelete","setIsTranslation","setPropertyToMark","otherProps","isReasonView","setIsReasonView","isAllowed","usePermission","Permission","isMarkingAvailable","isClickable","isExpandLogic","PropertyType","propertyToMarkDetails","handleContainerClick","sectionToMark","element_to_mark","PipelineElementType","document_index","column_type","placement","link","handleRedirect","descriptions","StyledTitleContainer","HighlightOff","PropertyTag","user_facing_property_type","StyledReasonText","includeCopy","StyledPopover","handleSubmit","setAnchorEl","curPropertiesList","property_type","SamplesTablePopoverSortByProperty","model","column","handleApplyClick","newKind","newProperty","newProp","split","propertylist","isPentest","listOfProperties","excludeStorageProps","noProperties","isCurComparison","renderSampleDetailsCard","propsFromStorage","selectedProps","curSelectedProps","handleRenderOrderedProps","handleRenderNotOrderedProps","isDefaultProps","StyledPropertiesContainer","StyledTitleDivider","StyledPropertiesScrollContainer","row","PropertyAddCardContainer","openAddDialog","PropertiesAddCardText","SampleDetailsBodyPropertiesAddPropertyPopover","StyledSearchInput","List","ListItem","is_active","Box","inputPlaceholder","noPropsText","isEmptyState","ulRef","ulElement","inputValue","setInputValue","setProperties","selected","setSelected","defaultProperty","selectedItemIndex","setSelectedItemIndex","handleTypeToColumn","handleListItemClick","_event","foundColumn","searchField","handleInputChange","onCloseIconClick","handleInputCloseIconClick","placeholder","handleKeyDown","isUlElementExist","keyCode","curElementIndex","querySelectorAll","scrollIntoView","curActiveElement","_","StyledList","StyledListItem","disablePadding","ListItemButton","StyledListItemText","StyledEmptyList","StyledSamplesDetailsBodyItemContainer","single","is_info_retrieval","paddingTop","dark","light","flexShrink","StyledContent","important","translation","wordBreak","Divider","similarityLinkLabel","copy","linkCopied","copyLinkText","sessionIdText","interactionIdText","outPut","searchVersion","showDiff","contentHeight","allInteractionNumber","overlappingInteractionNumber","number","deepchecks","blue_n1","rouge_n1","textOverflow","position","IconButton","left","top","right","round","defaultZero","percentagedNumber","finalizedNumber","removeColumnText","NaN","url","is_llm","is_builtin","in_dashboard","property_column_name","paddingBottom","WebkitLineClamp","WebkitBoxOrient","StyledButton","usePropertiesInfo","isFetching","isPropertiesInfoFetching","useListPropertiesDefinitions","propertiesInfo","setPropertiesInfo","result","Menu","boxShadow","MenuItem","InfoOutlinedIcon"],"sourceRoot":"","ignoreList":[]}