@reltio/remotes 1.4.1545 → 1.4.1546
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2890.js +1 -1
- package/2890.js.map +1 -1
- package/3396.js +1 -1
- package/3396.js.map +1 -1
- package/4806.js +3 -0
- package/4806.js.map +1 -0
- package/6396.js +2 -0
- package/6396.js.map +1 -0
- package/7416.js +1 -1
- package/7416.js.map +1 -1
- package/8340.js +1 -1
- package/8340.js.map +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/remoteEntry.js.map +1 -1
- package/2899.js +0 -3
- package/2899.js.map +0 -1
- package/6299.js +0 -2
- package/6299.js.map +0 -1
- /package/{2899.js.LICENSE.txt → 4806.js.LICENSE.txt} +0 -0
package/6396.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"6396.js","mappings":"wIAIKA,E,6QAAAA,GAAAA,EAAAA,EAAAA,UAAAA,GAAAA,YAAAA,EAAAA,EAAAA,UAAAA,GAAAA,YAAAA,EAAAA,EAAAA,WAAAA,GAAAA,a,CAAAA,IAAAA,EAAAA,KAeL,MAmCA,EAnC2B,IAAsE,IAArE,UAACC,EAAD,KAAYC,EAAZ,WAAkBC,EAAlB,YAA8BC,GAAuC,EAAvBC,E,kXAAuB,oDAC7F,MAAOC,EAAOC,IAAYC,EAAAA,EAAAA,UAAuB,OACjDC,EAAAA,EAAAA,YAAU,KAEFF,EADAL,EACSF,EAAaU,UAEbV,EAAaW,aAE3B,CAACT,EAAMC,IACV,MAAMS,EAAkB,KACpBL,EAASP,EAAaa,aAG1B,OAAQP,GACJ,KAAKN,EAAaU,UACd,OACI,kBAAC,EAAAI,OAAD,GACIb,UAAWc,GAAAA,CAAWd,EAAWG,MAAAA,OAAZ,EAAYA,EAAaY,UAC9CC,IAAKf,EACLgB,QAASN,GACLP,IAGhB,KAAKL,EAAaW,UAClB,KAAKX,EAAaa,WACd,OACI,kBAAC,EA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,IAAoBC,EAAAA,EAAAA,yBAAwB,CAC9CC,iBAAkB,yBAClBC,eAAe,ICtBnB,GDgC+B,IAAsD,IAArD,MAACC,EAAD,OAAQ/1C,EAAR,UAAgByxC,EAAhB,cAA2B92C,GAA0B,EACjF,MAAMq7C,GAAiEl6C,EAAAA,EAAAA,cACnEm6C,EAAAA,EAAAA,KAAkBt7C,GAClB,CAACA,IAEL,OACI,kBAAC,EAAA0B,SAAD,CAAU05C,MAAOA,GACb,kBAAC,EAAAG,wBAAD,CAAyB9iB,MAAO+iB,EAAAA,GAC5B,kBAAC,gBAAD,CAAkBrkD,MAAO2jD,IACrB,kBAAC,EAAAW,eAAD,CAAgBT,kBAAmBA,IAC/B,kBAACn6C,EAAD,KACI,kBAACiD,EAAD,KACI,kBAACsB,EAAD,CAAqBC,OAAQA,GACzB,kBAACpC,EAAD,KACI,kBAAC0E,EAAkBjG,SAAnB,CAA4BC,MAAO0D,EAAO4a,gBACtC,kBAAC,GAAD,CACI5a,OAAQA,EACRyxC,UAAWA,EACX92C,cAAeq7C","sources":["webpack://@reltio/remotes/../components/src/components/AvatarWithFallback/AvatarWithFallback.tsx","webpack://@reltio/remotes/../components/src/components/BasicViewContent/styles.ts","webpack://@reltio/remotes/../components/src/components/BasicViewContent/BasicViewContent.tsx","webpack://@reltio/remotes/../components/src/components/EmptyState/styles.ts","webpack://@reltio/remotes/../components/src/components/EmptyState/EmptyState.tsx","webpack://@reltio/remotes/../components/src/icons/EmptySearchResults.tsx","webpack://@reltio/remotes/../components/src/icons/SelectAttributes.tsx","webpack://@reltio/remotes/../components/src/icons/NoData.tsx","webpack://@reltio/remotes/../components/src/icons/Error.tsx","webpack://@reltio/remotes/../components/src/components/HideOnShrink/HideOnShrink.js","webpack://@reltio/remotes/../components/src/components/SourceIcon/SourceIcon.tsx","webpack://@reltio/remotes/../components/src/components/VerticalDivider/VerticalDivider.js","webpack://@reltio/remotes/../components/src/components/charts/HOCs/withPercents.tsx","webpack://@reltio/remotes/../components/src/components/charts/hooks/useClickableStyle.ts","webpack://@reltio/remotes/../components/src/hooks/useSavedState.ts","webpack://@reltio/remotes/../components/src/types/index.ts","webpack://@reltio/remotes/../dq-dashboard/src/contexts/ReloadFacetContext/index.tsx","webpack://@reltio/remotes/../dq-dashboard/src/contexts/DateRangesProvider/index.tsx","webpack://@reltio/remotes/../dq-dashboard/src/contexts/EntityAndAttributeTypeProvider/index.tsx","webpack://@reltio/remotes/../dq-dashboard/src/types/DQDateRangeValue.ts","webpack://@reltio/remotes/../dq-dashboard/src/services/dateRange.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardPerspectiveView/helpers.ts","webpack://@reltio/remotes/../dq-dashboard/src/contexts/PermissionsProvider/index.tsx","webpack://@reltio/remotes/../dq-dashboard/src/hooks/usePermissionsRequest.ts","webpack://@reltio/remotes/../dq-dashboard/src/contexts/ThresholdsContext/index.ts","webpack://@reltio/remotes/../dq-dashboard/src/theme/index.ts","webpack://@reltio/remotes/../dq-dashboard/src/contexts/DVFContext/index.ts","webpack://@reltio/remotes/../dq-dashboard/src/contexts/ChartsDataProvider/index.tsx","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useEntityCount.ts","webpack://@reltio/remotes/../dq-dashboard/src/constants/ChartDataType.ts","webpack://@reltio/remotes/../dq-dashboard/src/constants/ViewType.ts","webpack://@reltio/remotes/../dq-dashboard/src/constants/RdmLookupState.ts","webpack://@reltio/remotes/../dq-dashboard/src/constants/defaultConfig.ts","webpack://@reltio/remotes/../dq-dashboard/src/services/advancedFilters.ts","webpack://@reltio/remotes/../dq-dashboard/src/services/charts.ts","webpack://@reltio/remotes/../dq-dashboard/src/services/mlDq.ts","webpack://@reltio/remotes/../dq-dashboard/src/contexts/DataLevelContext/index.ts","webpack://@reltio/remotes/../dq-dashboard/src/services/attributes.ts","webpack://@reltio/remotes/../dq-dashboard/src/types/DetailedAttributeType.ts","webpack://@reltio/remotes/../dq-dashboard/src/services/attributeFilters.ts","webpack://@reltio/remotes/../dq-dashboard/src/services/attributeDetails.ts","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useChartsDataRequest.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartDataTooltip/data-renderers/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartDataTooltip/data-renderers/InfoDataRenderer.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartDataTooltip/data-renderers/ChartDataRenderer.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartDataTooltip/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartDataTooltip/ChartDataTooltip.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartDataTooltip/TooltipWithSquares/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartDataTooltip/TooltipWithSquares/TooltipWithSquares.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DQLayoutItemHeader/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQLayoutItemHeader/DQLayoutItemHeader.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DQLayoutItemView/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQLayoutItemView/DQLayoutItemView.tsx","webpack://@reltio/remotes/../dq-dashboard/src/services/fillRate.ts","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useChartData.ts","webpack://@reltio/remotes/../dq-dashboard/src/services/rawFilters.ts","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useSearchRedirect.ts","webpack://@reltio/remotes/../dq-dashboard/src/types/EmptyStateVariants.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardError/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardError/DQDashboardError.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DQLayoutItemContent/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQLayoutItemContent/DQLayoutItemContent.tsx","webpack://@reltio/remotes/../dq-dashboard/src/constants/AnomalyDataKey.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartLegends/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartLegends/CustomLegend.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartLegends/ChartLegends.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/StackedHorizontalBarChart/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/StackedHorizontalBarChart/Bar.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/StackedHorizontalBarChart/StackedHorizontalBarChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/FillRateChart/FillRateChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useMlDqDataRequest.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/LineChart/helpers.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartInfoPanel/positiveDynamic.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartInfoPanel/negativeDynamic.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartInfoPanel/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartInfoPanel/ChartInfoPanel.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartInfoPanel/TimeSeriesInfoPanel.tsx","webpack://@reltio/remotes/../dq-dashboard/src/services/barCharts.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/LineChart/getLineChartSettings.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/LineChart/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/LineChart/LineChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/ChartDataTooltip/data-renderers/AnomalyDataRenderer.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/FillRateChart/FillRateTimeSeriesChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/PeriodChip/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/PeriodChip/PeriodChip.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/FillRateChart/index.tsx","webpack://@reltio/remotes/../dq-dashboard/src/services/uniquenessAnalysis.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/UniquenessAnalysisChart/UniquenessAnalysisChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/UniquenessAnalysisChart/UniquenessAnalysisTimeSeriesChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/UniquenessAnalysisChart/index.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetailIcon/icons/dvf.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetailIcon/icons/includedInMatching.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetailIcon/icons/rdm.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetailIcon/icons/reference.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetailIcon/icons/required.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetailIcon/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetailIcon/AttributeTypeDetailIcon.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetailChip/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetailChip/AttributeTypeDetailChip.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetails/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetails/AttributeTypeDetails.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/Summary/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/Summary/HeaderInfo.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeIcon/icons/boolean.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeIcon/icons/date.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeIcon/icons/float.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeIcon/icons/integer.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeIcon/icons/ssn.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeIcon/icons/string.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeIcon/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeIcon/AttributeTypeIcon.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/Summary/AttributeTypeSummary.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/Summary/EntityTypeSummary.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/Summary/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/Summary/Summary.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/DQDashboardErrorView/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/DQDashboardErrorView/DQDashboardErrorView.tsx","webpack://@reltio/remotes/../dq-dashboard/src/services/tableCharts.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ViolatedValidationFuncChart/helpers.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/icons/niceOne.svg","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/icons/settingsIcon.svg","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/icons/notSupportedIcon.svg","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ViolatedValidationFuncChart/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ViolatedValidationFuncChart/VVFChartNodata.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ViolatedValidationFuncChart/hooks/useNoDataDvfType.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ViolatedValidationFuncChart/hooks/useDvfs.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/CustomTableWithBars/helpers.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/CustomTableWithBars/cell-renderers/OverflowingHandler.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/CustomTableWithBars/cell-renderers/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/CustomTableWithBars/cell-renderers/HeadCellRenderer.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/CustomTableWithBars/cell-renderers/TableCellTooltip.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/CustomTableWithBars/cell-renderers/LabelCellRenderer.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/CustomTableWithBars/cell-renderers/NumberCellValueRenderer.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/CustomTableWithBars/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/CustomTableWithBars/TableWithBars.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomTableWithBarsChart/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomTableWithBarsChart/CustomTableWithBarsChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ViolatedValidationFuncChart/TotalInfo.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ViolatedValidationFuncChart/ViolatedValidationFuncChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useInvalidProfiles.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ViolatedValidationFuncChart/ViolatedValidationFuncTimeSeriesChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ViolatedValidationFuncChart/index.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/FrequencyAnalysisChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomBarChart/XAxisLabel/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomBarChart/XAxisLabel/XAxisLabel.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomBarChart/getBarChartSettings.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomBarChart/BarTooltip/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomBarChart/BarTooltip/BarTooltip.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomBarChart/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomBarChart/InfoPanel.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomBarChart/CustomBackgroundOnHover.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomBarChart/CustomBar.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomBarChart/CustomBarChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/LengthStatisticsChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/SourceLabelRenderer/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/SourceLabelRenderer/SourceLabelRenderer.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CrosswalkAnalysisChart/CrosswalkAnalysisChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ValueDistributionChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/MonthDistributionChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/DayOfWeekDistributionChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/DayOfMonthDistributionChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/PatternAnalysisChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/CustomBarChart/StackedBarChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ConsolidationRateChart/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ConsolidationRateChart/ConsolidationPercentage.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ConsolidationRateChart/YAxisTickRenderer.tsx","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/ConsolidationRateChart/ConsolidationRateChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/services/rdmTranscode.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/RDMTranscodeChart/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/charts/RDMTranscodeChart/RDMTranscodeChart.tsx","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useRDMChartDataRequest.ts","webpack://@reltio/remotes/../dq-dashboard/src/views/ViewsFactory.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardLayoutItem/DQDashboardLayoutItem.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardLayout/DQDashboardLayout.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/Warning/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/Warning/Warning.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardPerspectiveView/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardPerspectiveView/AttributeLevelLayout.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DataLevelBreadcrumbs/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DataLevelBreadcrumbs/DataLevelBreadcrumbs.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/ContentSlider/helpers.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/ContentSlider/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/ContentSlider/ContentSlider.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardPerspectiveView/DataLevelSwitcher/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardPerspectiveView/DataLevelSwitcher/DataLevelSwitcher.tsx","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useAttrTypeDetails.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardAttributesList/helpers.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetailsIcons/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeTypeDetailsIcons/AttributeTypeDetailsIcons.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/FillRateLine/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/FillRateLine/FillRateLine.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeListItem/TreeLines/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeListItem/TreeLines/TreeLines.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeListItem/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributeListItem/AttributeListItem.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributesFilters/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributesFilters/Option.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributesFilters/helpers.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/AttributesFilters/AttributesFilters.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardAttributesList/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardAttributesList/DQDashboardAttributesList.tsx","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useFillRateRequest.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardHeader/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardHeader/DQDashboardHeader.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardNoContent/DQDashboardNoContent.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardPerspectiveView/EntityLevelLayout/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardPerspectiveView/EntityLevelLayout/EntityLevelLayout.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/Selector/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/Selector/Selector.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/EntityTypeSelector/EntityTypeSelector.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/LoadingComponent/icons/Loading.svg","webpack://@reltio/remotes/../dq-dashboard/src/components/LoadingComponent/LoadingComponent.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/UpdateTimeHeader/styles.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/UpdateTimeHeader/UpdateTimeHeader.tsx","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardPerspectiveView/DQDashboardPerspectiveView.tsx","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useEntityTypes.ts","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useDvfConfigLink.ts","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useDVF.ts","webpack://@reltio/remotes/../dq-dashboard/src/hooks/useDebounceFunction.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardPerspectiveView/constants.ts","webpack://@reltio/remotes/../dq-dashboard/src/components/DQDashboardPerspectiveView/index.tsx","webpack://@reltio/remotes/./src/dq-dashboard.ts"],"sourcesContent":["import {Avatar as Avatar} from '@material-ui/core';\nimport classnames from 'classnames';\nimport React, {useEffect, useState} from 'react';\n\nenum AvatarStates {\n ICON_MODE,\n TEXT_MODE,\n ERROR_MODE\n}\ntype Props = {\n className?: string;\n icon?: string;\n avatarText?: string;\n variant?: 'circle' | 'circular' | 'rounded' | 'square';\n rootClasses?: {\n iconRoot?: string;\n textRoot?: string;\n };\n};\nconst AvatarWithFallback = ({className, icon, avatarText, rootClasses, ...otherProps}: Props) => {\n const [state, setState] = useState<AvatarStates>(null);\n useEffect(() => {\n if (icon) {\n setState(AvatarStates.ICON_MODE);\n } else {\n setState(AvatarStates.TEXT_MODE);\n }\n }, [icon, avatarText]);\n const onImageLoadFail = () => {\n setState(AvatarStates.ERROR_MODE);\n };\n\n switch (state) {\n case AvatarStates.ICON_MODE:\n return (\n <Avatar\n className={classnames(className, rootClasses?.iconRoot)}\n src={icon}\n onError={onImageLoadFail}\n {...otherProps}\n />\n );\n case AvatarStates.TEXT_MODE:\n case AvatarStates.ERROR_MODE:\n return (\n <Avatar className={classnames(className, rootClasses?.textRoot)} {...otherProps}>\n {avatarText}\n </Avatar>\n );\n default:\n return null;\n }\n};\n\nexport default AvatarWithFallback;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n 'basic-view-content': {\n flex: '1 1 auto',\n padding: '0 24px 24px',\n '&:first-child': {\n paddingTop: '24px'\n }\n }\n});\n","import React from 'react';\nimport classnames from 'classnames';\nimport {useStyles} from './styles';\n\ntype Props = React.ComponentPropsWithoutRef<'div'>;\n\nconst BasicViewContent = ({children, className, ...otherProps}: Props) => {\n const styles = useStyles();\n return (\n <div className={classnames(styles['basic-view-content'], className)} {...otherProps}>\n {children}\n </div>\n );\n};\n\nexport default BasicViewContent;\n","import {makeStyles} from '@material-ui/core/styles';\n\nconst maxWidth = 500;\n\nexport const useStyles = makeStyles((theme) => ({\n root: {\n display: 'flex',\n flex: '1 1 auto',\n flexWrap: 'nowrap',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n padding: '10px',\n overflow: 'auto',\n height: '100%',\n minHeight: '350px',\n boxSizing: 'border-box',\n '&$root_small': {\n minHeight: '160px'\n },\n '& $text': {\n color: theme.palette.text.primary,\n fontSize: '20px',\n fontWeight: 500,\n lineHeight: '24px',\n letterSpacing: '0.25px',\n textAlign: 'center'\n },\n '& $secondaryText': {\n color: theme.palette.text.secondary,\n fontSize: '15px',\n fontWeight: 300,\n lineHeight: '18px',\n letterSpacing: '0.11px',\n textAlign: 'center',\n paddingTop: '3px'\n }\n },\n root_small: {},\n embedded: {\n flexShrink: 0,\n width: '190px',\n height: '190px',\n padding: '8px'\n },\n full: {\n width: '256px',\n height: '256px'\n },\n textBox: {\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n maxWidth: maxWidth,\n marginTop: '16px'\n },\n text: {},\n secondaryText: {},\n button: {\n minHeight: 36,\n minWidth: 64,\n maxWidth: maxWidth,\n padding: '10px 16px',\n borderRadius: '2px',\n boxShadow:\n '0 0 2px 0 rgba(0,0,0,0.12), 0 2px 2px 0 rgba(0,0,0,0.24), 0 0 8px 0 rgba(0,0,0,0.12), 0 8px 8px 0 rgba(0,0,0,0.24)',\n fontSize: '14px',\n fontWeight: 500,\n lineHeight: '16px',\n marginTop: '24px'\n }\n}));\n","import React from 'react';\nimport classnames from 'classnames';\nimport {identity} from 'ramda';\nimport {Typography as Typography} from '@material-ui/core';\nimport {Button as Button} from '@material-ui/core';\nimport EmptySearchResultsIcon from '../../icons/EmptySearchResults';\nimport SelectAttributesIcon from '../../icons/SelectAttributes';\nimport NoData from '../../icons/NoData';\nimport Error from '../../icons/Error';\nimport {useStyles} from './styles';\n\nexport enum EMPTY_STATE_VARIANTS {\n full = 'full',\n embedded = 'embedded',\n small = 'small'\n}\n\nexport const EMPTY_STATE_ICONS = {\n SEARCH_RESULTS: EmptySearchResultsIcon,\n SELECT_ATTRIBUTES: SelectAttributesIcon,\n NO_DATA: NoData,\n ERROR: Error\n};\n\ntype Props = {\n variant?: EMPTY_STATE_VARIANTS;\n LogoRenderer?: React.ElementType;\n text: string;\n secondaryText?: string;\n buttonTitle?: string;\n access?: boolean;\n onClick?: React.MouseEventHandler<HTMLButtonElement>;\n};\n\nconst EmptyState = ({\n variant = EMPTY_STATE_VARIANTS.full,\n LogoRenderer = EMPTY_STATE_ICONS.SEARCH_RESULTS,\n text,\n secondaryText,\n buttonTitle,\n onClick = identity,\n access\n}: Props) => {\n const styles = useStyles();\n const showButton = access && buttonTitle;\n\n return (\n <div className={classnames(styles.root, styles[`root_${variant}`])}>\n <LogoRenderer className={styles[`${variant}`]} />\n <div className={styles.textBox}>\n <Typography variant=\"h5\" classes={{h5: styles.text}}>\n {text}\n </Typography>\n {secondaryText && (\n <Typography variant=\"subtitle1\" classes={{subtitle1: styles.secondaryText}}>\n {secondaryText}\n </Typography>\n )}\n </div>\n {showButton && (\n <Button className={styles.button} variant=\"contained\" color=\"primary\" onClick={onClick}>\n {buttonTitle}\n </Button>\n )}\n </div>\n );\n};\n\nexport default EmptyState;\n","import React from 'react';\n\nconst SvgEmptySearchResults: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {\n return (\n <svg\n width={256}\n height={256}\n viewBox=\"0 0 256 256\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n {...props}\n >\n <defs>\n <radialGradient\n cx=\"50%\"\n cy=\"100%\"\n fx=\"50%\"\n fy=\"100%\"\n r=\"81.681%\"\n gradientTransform=\"matrix(.98998 0 0 .612 .005 .388)\"\n id=\"EmptySearchResults_svg__c\"\n >\n <stop stopColor=\"#00BFFF\" stopOpacity={0.5} offset=\"0%\" />\n <stop stopColor=\"#9EE8FF\" stopOpacity={0} offset=\"100%\" />\n </radialGradient>\n <radialGradient\n cx=\"50%\"\n cy=\"111.651%\"\n fx=\"50%\"\n fy=\"111.651%\"\n r=\"87.693%\"\n gradientTransform=\"matrix(0 -.97693 .7263 0 -.31 1.605)\"\n id=\"EmptySearchResults_svg__f\"\n >\n <stop stopColor=\"#91F8E5\" stopOpacity={0.6} offset=\"0%\" />\n <stop stopColor=\"#14F7FF\" stopOpacity={0} offset=\"100%\" />\n </radialGradient>\n <radialGradient\n cx=\"50%\"\n cy=\"103.659%\"\n fx=\"50%\"\n fy=\"103.659%\"\n r=\"90.207%\"\n gradientTransform=\"matrix(0 -1 2.23905 0 -1.821 1.537)\"\n id=\"EmptySearchResults_svg__g\"\n >\n <stop stopColor=\"#FFF\" offset=\"0%\" />\n <stop stopColor=\"#73FAFF\" stopOpacity={0.21} offset=\"59.38%\" />\n <stop stopColor=\"#14F7FF\" stopOpacity={0} offset=\"100%\" />\n </radialGradient>\n <linearGradient x1=\"50%\" y1=\"170.771%\" x2=\"50%\" y2=\"10.303%\" id=\"EmptySearchResults_svg__e\">\n <stop stopColor=\"#91F8E5\" offset=\"0%\" />\n <stop stopColor=\"#99FCFF\" stopOpacity={0} offset=\"100%\" />\n </linearGradient>\n <filter\n x=\"-25.9%\"\n y=\"-26.2%\"\n width=\"151.8%\"\n height=\"152.3%\"\n filterUnits=\"objectBoundingBox\"\n id=\"EmptySearchResults_svg__d\"\n >\n <feGaussianBlur stdDeviation={15} in=\"SourceGraphic\" />\n </filter>\n <circle id=\"EmptySearchResults_svg__a\" cx={128} cy={128} r={128} />\n </defs>\n <g stroke=\"none\" strokeWidth={1} fill=\"none\" fillRule=\"evenodd\">\n <mask id=\"EmptySearchResults_svg__b\" fill=\"#fff\">\n <use xlinkHref=\"#EmptySearchResults_svg__a\" />\n </mask>\n <use fillOpacity={0.2} fill=\"#A792CD\" xlinkHref=\"#EmptySearchResults_svg__a\" />\n <g mask=\"url(#EmptySearchResults_svg__b)\">\n <g transform=\"translate(56 34)\">\n <g opacity={0.9} strokeWidth={1} fill=\"#FFF\">\n <path d=\"M0 6.99C0 3.13 3.137 0 7 0h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H7c-3.866 0-7-3.143-7-6.99V6.99z\" />\n <path\n d=\"M13 25.99c0-3.86 3.137-6.99 7-6.99h247.067c3.866 0 7 3.144 7 6.99v169.353c0 3.86-3.137 6.99-7 6.99H20c-3.866 0-7-3.143-7-6.99V25.99z\"\n opacity={0.4}\n />\n </g>\n <g strokeWidth={1} fill=\"none\" transform=\"translate(21.756 45.833)\">\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={213.204} cy={5.456} rx={4.351} ry={4.365} />\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={197.976} cy={5.456} rx={4.351} ry={4.365} />\n <path\n d=\"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z\"\n fill=\"#E3EBF4\"\n />\n <path\n d=\"M35.365.861h69.768a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z\"\n fill=\"#B1AABD\"\n opacity={0.5}\n />\n <path\n d=\"M34.274 15.048h126.164a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z\"\n fill=\"#B1AABD\"\n opacity={0.43}\n />\n <path\n d=\"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z\"\n fill=\"#B1AABD\"\n opacity={0.2}\n />\n </g>\n <rect\n fill=\"#645F6D\"\n opacity={0.5}\n x={21.756}\n y={17.46}\n width={87.022}\n height={12.004}\n rx={6.002}\n />\n <g strokeWidth={1} fill=\"none\" transform=\"translate(21.756 87.302)\">\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={213.204} cy={5.456} rx={4.351} ry={4.365} />\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={197.976} cy={5.456} rx={4.351} ry={4.365} />\n <rect fill=\"#E3EBF4\" x={0} y={1.091} width={20.668} height={20.734} rx={10.334} />\n <path\n d=\"M35.365.861h82.647a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z\"\n fill=\"#B1AABD\"\n opacity={0.5}\n />\n <path\n d=\"M34.274 15.048H174.58a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z\"\n fill=\"#B1AABD\"\n opacity={0.43}\n />\n <path\n d=\"M33.182 24.869h113.119a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z\"\n fill=\"#B1AABD\"\n opacity={0.2}\n />\n </g>\n <g strokeWidth={1} fill=\"none\" transform=\"translate(21.756 128.77)\">\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={213.204} cy={5.456} rx={4.351} ry={4.365} />\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={197.976} cy={5.456} rx={4.351} ry={4.365} />\n <path\n d=\"M10.334 1.091c5.707 0 10.334 4.627 10.334 10.334v.067c0 5.707-4.627 10.333-10.334 10.333S0 17.2 0 11.492v-.067C0 5.718 4.627 1.091 10.334 1.091z\"\n fill=\"#E3EBF4\"\n />\n <path\n d=\"M35.365.861h110.929a3.82 3.82 0 010 7.639H35.365a3.82 3.82 0 010-7.639z\"\n fill=\"#B1AABD\"\n opacity={0.5}\n />\n <path\n d=\"M34.274 15.048h92.443a2.728 2.728 0 010 5.456H34.274a2.728 2.728 0 110-5.456z\"\n fill=\"#B1AABD\"\n opacity={0.43}\n />\n <path\n d=\"M33.182 24.869H73.89a1.637 1.637 0 110 3.274H33.182a1.637 1.637 0 010-3.274z\"\n fill=\"#B1AABD\"\n opacity={0.2}\n />\n </g>\n </g>\n </g>\n <g mask=\"url(#EmptySearchResults_svg__b)\">\n <path\n fill=\"#446275\"\n d=\"M72.246 84.033l8.66 5-35.5 61.488-8.66-5-12.556-24.729-51.307-29.622 20.431-35.388 50.648 29.242z\"\n />\n <path\n d=\"M62.906 120.21l-80.091-46.24 10.5-18.188 50.647 29.242 28.284-.99 8.66 5-18 31.176z\"\n fillOpacity={0.2}\n fill=\"#FFF\"\n />\n <path\n d=\"M27.566 75.558L3.877 109.065l-5.013-2.895 26.045-32.146 2.657 1.534zm9.467 5.466L13.345 114.53l-5.014-2.895L34.377 79.49l2.656 1.534zm8.158 4.71l-22.32 34.297-5.013-2.895L43.903 84.99l1.288.744z\"\n fill=\"#527585\"\n />\n <path\n d=\"M11.524 90.544l13.385-16.52 2.657 1.534-12.174 17.22-3.868-2.234zm9.467 5.467L34.377 79.49l2.656 1.534-12.174 17.22-3.868-2.233zm9.527 5.5L43.903 84.99l1.288.744-11.47 17.626-3.203-1.85z\"\n fill=\"#76A2B5\"\n opacity={0.6}\n />\n <path\n d=\"M.355 59.848l-23.689 33.507-5.013-2.895 26.045-32.146 2.657 1.534zm9.468 5.466L-13.866 98.82l-5.013-2.895L7.166 63.78l2.657 1.534zm8.158 4.71L-4.34 104.32l-5.014-2.895L16.692 69.28l1.289.744z\"\n fillOpacity={0.1}\n fill=\"#000\"\n />\n <g>\n <path\n fill=\"url(#EmptySearchResults_svg__c)\"\n opacity={0.993}\n filter=\"url(#EmptySearchResults_svg__d)\"\n d=\"M.63 0h173.74L123 172H52z\"\n transform=\"rotate(120 90.404 138.861)\"\n />\n <path\n fill=\"url(#EmptySearchResults_svg__e)\"\n opacity={0.3}\n d=\"M4 9h166.37L120.73 172.299H53.64z\"\n transform=\"rotate(120 90.404 138.861)\"\n />\n <path\n fill=\"url(#EmptySearchResults_svg__f)\"\n opacity={0.3}\n d=\"M4 2h166.37L120.73 172.299H53.64z\"\n transform=\"rotate(120 90.404 138.861)\"\n />\n <path\n fill=\"url(#EmptySearchResults_svg__g)\"\n d=\"M4 9h166.37L120.73 172.299H53.64z\"\n transform=\"rotate(120 90.404 138.861)\"\n />\n <path fill=\"#FFF\" opacity={0.196} d=\"M212.363 205.344l-1 1.732L60.418 124.52l4.977-8.62z\" />\n </g>\n <path fill=\"#76A2B5\" d=\"M73.112 84.533l-35.5 61.488-.866-.5 35.5-61.488z\" />\n <path fill=\"#F3F3F3\" d=\"M80.906 89.033l-35.5 61.488-.866-.5 35.5-61.488z\" />\n <path fill=\"#538196\" d=\"M55.112 115.71l-17.5 30.311-.866-.5 17.5-30.31z\" />\n </g>\n </g>\n </svg>\n );\n};\n\nexport default SvgEmptySearchResults;\n","import React from 'react';\n\nconst SvgSelectAttributes: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {\n return (\n <svg width={256} height={256} viewBox=\"0 0 256 256\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <circle cx={128} cy={128} r={128} fill=\"#0072CE\" fillOpacity={0.1} />\n <mask\n id=\"SelectAttributes_svg__a\"\n style={{\n maskType: 'alpha'\n }}\n maskUnits=\"userSpaceOnUse\"\n x={0}\n y={0}\n width={256}\n height={256}\n >\n <circle cx={128} cy={128} r={128} fill=\"#fff\" />\n </mask>\n <g mask=\"url(#SelectAttributes_svg__a)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M-16 9h256v247H-16V9z\"\n fill=\"url(#SelectAttributes_svg__paint0_linear_0_19219)\"\n />\n <path\n opacity={0.05}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M187.761 56.865l58.639 58.639v148.871H93.383L52 225.083V56.865h135.761z\"\n fill=\"url(#SelectAttributes_svg__paint1_linear_0_19219)\"\n />\n <path\n opacity={0.06}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M47 58h202a7 7 0 017 7v157a7 7 0 01-7 7H47a7 7 0 01-7-7V65a7 7 0 017-7z\"\n fill=\"#000\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M50 56h201a5 5 0 015 5v157a5 5 0 01-5 5H50a5 5 0 01-5-5V61a5 5 0 015-5z\"\n fill=\"#fff\"\n />\n <path\n opacity={0.8}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M105.376 72.635a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z\"\n fill=\"#B6C7DB\"\n />\n <path\n opacity={0.2}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M105 84.635a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z\"\n fill=\"#979797\"\n />\n <path\n opacity={0.8}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M105.376 163a3 3 0 013-3H150a3 3 0 110 6h-41.624a3 3 0 01-3-3z\"\n fill=\"#B6C7DB\"\n />\n <path\n opacity={0.2}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M105 175a3 3 0 013-3h64.205a3 3 0 110 6H108a3 3 0 01-3-3z\"\n fill=\"#979797\"\n />\n <path\n opacity={0.8}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M105.376 193a3 3 0 013-3H190a3 3 0 110 6h-81.624a3 3 0 01-3-3z\"\n fill=\"#B6C7DB\"\n />\n <path\n opacity={0.2}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M105 205a3 3 0 013-3h74.205a3 3 0 110 6H108a3 3 0 01-3-3z\"\n fill=\"#979797\"\n />\n <path\n opacity={0.8}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M138.376 103a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z\"\n fill=\"#B6C7DB\"\n />\n <path\n opacity={0.2}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M138 115a3 3 0 013-3h64.205a3 3 0 110 6H141a3 3 0 01-3-3z\"\n fill=\"#979797\"\n />\n <circle cx={67} cy={79} r={9} fill=\"#B6C7DB\" />\n <circle cx={67} cy={79} r={9} fill=\"#B6C7DB\" />\n <circle cx={120} cy={106} r={6} fill=\"#B6C7DB\" />\n <circle cx={120} cy={136} r={6} fill=\"#B6C7DB\" />\n <circle cx={67} cy={169} r={9} fill=\"#B6C7DB\" />\n <circle cx={67} cy={199} r={9} fill=\"#B6C7DB\" />\n <path\n opacity={0.8}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M138.376 133a3 3 0 013-3H223a3 3 0 110 6h-81.624a3 3 0 01-3-3z\"\n fill=\"#B6C7DB\"\n />\n <path\n opacity={0.2}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M138 145a3 3 0 013-3h74.205a3 3 0 110 6H141a3 3 0 01-3-3z\"\n fill=\"#979797\"\n />\n <path\n opacity={0.2}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M92.514 108v-8h-2V140.365h11.178v-2h-9.178V110h9.178v-2h-9.178z\"\n fill=\"#2B98F0\"\n />\n <path\n opacity={0.54}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M95.071 77l-3.535 3.535L88 77h7.071z\"\n fill=\"#000\"\n />\n <path\n opacity={0.6}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M50 22h186a6 6 0 016 6v18a6 6 0 01-6 6H50a6 6 0 01-6-6V28a6 6 0 016-6z\"\n fill=\"#fff\"\n />\n <path\n opacity={0.2}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M58 37a6 6 0 016-6h70a6 6 0 110 12H64a6 6 0 01-6-6zM148 37a6 6 0 016-6h10a6 6 0 110 12h-10a6 6 0 01-6-6z\"\n fill=\"#979797\"\n />\n </g>\n <defs>\n <linearGradient\n id=\"SelectAttributes_svg__paint0_linear_0_19219\"\n x1={-16}\n y1={9}\n x2={-16}\n y2={256}\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stopColor=\"#FAFAFA\" stopOpacity={0.01} />\n <stop offset={1} stopColor=\"#F4F4F4\" />\n </linearGradient>\n <linearGradient\n id=\"SelectAttributes_svg__paint1_linear_0_19219\"\n x1={266.117}\n y1={181.111}\n x2={154.882}\n y2={77.681}\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stopOpacity={0.01} />\n <stop offset={1} />\n </linearGradient>\n </defs>\n </svg>\n );\n};\n\nexport default SvgSelectAttributes;\n","import React from 'react';\n\nconst SvgNoData: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {\n return (\n <svg\n width={256}\n height={256}\n viewBox=\"0 0 256 256\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlnsXlink=\"http://www.w3.org/1999/xlink\"\n {...props}\n >\n <defs>\n <linearGradient x1=\"50%\" y1=\"0%\" x2=\"50%\" y2=\"100%\" id=\"NoData_svg__b\">\n <stop stopColor=\"#FAFAFA\" stopOpacity={0} offset=\"0%\" />\n <stop stopColor=\"#F4F4F4\" offset=\"100%\" />\n </linearGradient>\n <linearGradient x1=\"69.573%\" y1=\"86.747%\" x2=\"38.144%\" y2=\"33.403%\" id=\"NoData_svg__d\">\n <stop stopColor=\"#000\" stopOpacity={0} offset=\"0%\" />\n <stop stopColor=\"#000\" offset=\"100%\" />\n </linearGradient>\n <linearGradient x1=\"50%\" y1=\"0%\" x2=\"50%\" y2=\"100%\" id=\"NoData_svg__e\">\n <stop stopColor=\"#EEFBFF\" offset=\"0%\" />\n <stop stopColor=\"#0072CE\" offset=\"100%\" />\n </linearGradient>\n <filter\n x=\"-7.7%\"\n y=\"-7.5%\"\n width=\"115.3%\"\n height=\"115%\"\n filterUnits=\"objectBoundingBox\"\n id=\"NoData_svg__f\"\n >\n <feOffset dx={0} dy={2} in=\"SourceAlpha\" result=\"shadowOffsetOuter1\" />\n <feGaussianBlur stdDeviation={2} in=\"shadowOffsetOuter1\" result=\"shadowBlurOuter1\" />\n <feColorMatrix\n values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0\"\n type=\"matrix\"\n in=\"shadowBlurOuter1\"\n result=\"shadowMatrixOuter1\"\n />\n <feMerge>\n <feMergeNode in=\"shadowMatrixOuter1\" />\n <feMergeNode in=\"SourceGraphic\" />\n </feMerge>\n </filter>\n <circle id=\"NoData_svg__a\" cx={128} cy={128} r={128} />\n </defs>\n <g stroke=\"none\" strokeWidth={1} fill=\"none\" fillRule=\"evenodd\">\n <mask id=\"NoData_svg__c\" fill=\"#fff\">\n <use xlinkHref=\"#NoData_svg__a\" />\n </mask>\n <use fillOpacity={0.1} fill=\"#0072CE\" xlinkHref=\"#NoData_svg__a\" />\n <path fill=\"url(#NoData_svg__b)\" mask=\"url(#NoData_svg__c)\" d=\"M0 9h256v247H0z\" />\n <g mask=\"url(#NoData_svg__c)\">\n <g transform=\"translate(29 37)\">\n <g opacity={0.9} strokeWidth={1} fill=\"#FFF\">\n <path fillOpacity={0.8} opacity={0.5} d=\"M14.565 8h228.144v176.476H14.565z\" />\n <path d=\"M0 8.01C0 3.586 3.576 0 7.997 0h223.838a7.997 7.997 0 017.997 8.01v152.401c0 4.424-3.577 8.01-7.997 8.01H7.997A7.997 7.997 0 010 160.411V8.01z\" />\n </g>\n <g strokeWidth={1} fill=\"none\" transform=\"translate(19.986 42.105)\">\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={195.862} cy={5.013} rx={3.997} ry={4.01} />\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={181.872} cy={5.013} rx={3.997} ry={4.01} />\n <path\n d=\"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z\"\n fill=\"#E3EBF4\"\n />\n <path\n d=\"M32.488.791h64.093a3.509 3.509 0 110 7.018H32.488a3.509 3.509 0 110-7.018z\"\n fill=\"#B1AABD\"\n opacity={0.5}\n />\n <path\n d=\"M31.486 13.824h115.902a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z\"\n fill=\"#B1AABD\"\n opacity={0.43}\n />\n <path\n d=\"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z\"\n fill=\"#B1AABD\"\n opacity={0.2}\n />\n </g>\n <rect\n fill=\"#645F6D\"\n opacity={0.5}\n x={19.986}\n y={16.04}\n width={79.944}\n height={11.028}\n rx={5.514}\n />\n <g strokeWidth={1} fill=\"none\" transform=\"translate(19.986 80.2)\">\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={195.862} cy={5.013} rx={3.997} ry={4.01} />\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={181.872} cy={5.013} rx={3.997} ry={4.01} />\n <rect fill=\"#E3EBF4\" x={0} y={1.003} width={18.987} height={19.048} rx={9.493} />\n <path\n d=\"M32.488.791h75.925a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z\"\n fill=\"#B1AABD\"\n opacity={0.5}\n />\n <path\n d=\"M31.486 13.824h128.893a2.506 2.506 0 110 5.012H31.486a2.506 2.506 0 010-5.012z\"\n fill=\"#B1AABD\"\n opacity={0.43}\n />\n <path\n d=\"M30.483 22.846h103.918a1.504 1.504 0 010 3.008H30.483a1.504 1.504 0 110-3.008z\"\n fill=\"#B1AABD\"\n opacity={0.2}\n />\n </g>\n <g strokeWidth={1} fill=\"none\" transform=\"translate(19.986 118.296)\">\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={195.862} cy={5.013} rx={3.997} ry={4.01} />\n <ellipse fill=\"#6DBCFF\" opacity={0.5} cx={181.872} cy={5.013} rx={3.997} ry={4.01} />\n <path\n d=\"M9.493 1.003a9.493 9.493 0 019.494 9.493v.06a9.493 9.493 0 01-18.987 0v-.06a9.493 9.493 0 019.493-9.493z\"\n fill=\"#E3EBF4\"\n />\n <path\n d=\"M32.488.791h101.906a3.509 3.509 0 010 7.018H32.488a3.509 3.509 0 110-7.018z\"\n fill=\"#B1AABD\"\n opacity={0.5}\n />\n <path\n d=\"M31.486 13.824h84.924a2.506 2.506 0 010 5.012H31.486a2.506 2.506 0 010-5.012z\"\n fill=\"#B1AABD\"\n opacity={0.43}\n />\n <path\n d=\"M30.483 22.846H67.88a1.504 1.504 0 110 3.008H30.483a1.504 1.504 0 110-3.008z\"\n fill=\"#B1AABD\"\n opacity={0.2}\n />\n </g>\n </g>\n </g>\n <g mask=\"url(#NoData_svg__c)\">\n <path\n d=\"M154.445 45.134v154.072H36.625V45.134h.811C35.508 62.52 41.07 80.609 54.12 93.944c22.74 23.235 59.61 23.235 82.352 0 13.05-13.335 18.612-31.424 16.683-48.81h1.29z\"\n fill=\"url(#NoData_svg__d)\"\n opacity={0.1}\n transform=\"rotate(-30 291.014 34.548)\"\n />\n <path\n d=\"M27.473 93.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z\"\n fill=\"url(#NoData_svg__e)\"\n opacity={0.2}\n transform=\"translate(70 86)\"\n />\n <g filter=\"url(#NoData_svg__f)\" strokeWidth={1} fill=\"none\" transform=\"translate(70 86)\">\n <path\n d=\"M59.697 0c32.97 0 59.697 26.746 59.697 59.738 0 15.185-5.662 29.047-14.988 39.587l51.204 51.24a89.336 89.336 0 01-10.097 9.392l-51.38-51.416c-9.73 6.888-21.61 10.936-34.436 10.936C26.727 119.477 0 92.73 0 59.738 0 26.746 26.727 0 59.697 0zm0 17.756c-23.17 0-41.953 18.796-41.953 41.982s18.783 41.982 41.953 41.982 41.953-18.796 41.953-41.982-18.783-41.982-41.953-41.982z\"\n fill=\"#B5C8C9\"\n />\n <path\n d=\"M21.508 105.656C8.365 94.698 0 78.196 0 59.738 0 26.746 26.727 0 59.697 0c18.444 0 34.935 8.37 45.885 21.523l-9.794 9.8c-8.408-10.68-21.45-17.537-36.091-17.537-25.361 0-45.92 20.573-45.92 45.952 0 14.652 6.852 27.702 17.525 36.117l-9.794 9.8z\"\n fillOpacity={0.4}\n fill=\"#FFF\"\n />\n </g>\n <path\n d=\"M97.473 179.234c17.964 18.355 47.09 18.355 65.054 0s17.964-48.113 0-66.468c-17.964-18.355-47.09-18.355-65.054 0s-17.964 48.113 0 66.468z\"\n fill=\"#D9F5FF\"\n opacity={0.4}\n style={{\n mixBlendMode: 'soft-light'\n }}\n />\n <path\n d=\"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z\"\n fillOpacity={0.87}\n fill=\"#000\"\n style={{\n mixBlendMode: 'overlay'\n }}\n />\n <path\n d=\"M123.885 158.736c0-3.929.444-7.03 1.332-9.304.888-2.274 2.328-4.245 4.32-5.914 1.99-1.668 3.504-3.195 4.54-4.581 1.037-1.386 1.555-2.913 1.555-4.581 0-4.064-1.75-6.095-5.248-6.095-1.614 0-2.92.592-3.915 1.776-.996 1.184-1.52 2.785-1.574 4.803H111.25c.054-5.382 1.75-9.573 5.086-12.574 3.337-3 8.02-4.5 14.047-4.5 6.001 0 10.65 1.386 13.946 4.157 3.297 2.772 4.945 6.714 4.945 11.827 0 2.234-.444 4.265-1.332 6.095-.888 1.83-2.315 3.7-4.279 5.61l-4.642 4.32c-1.318 1.265-2.233 2.563-2.745 3.895-.51 1.332-.793 3.02-.847 5.066h-11.545zm-1.655 12.27c0-1.99.72-3.625 2.16-4.904 1.44-1.278 3.236-1.917 5.389-1.917 2.152 0 3.949.64 5.388 1.917 1.44 1.279 2.16 2.913 2.16 4.905 0 1.991-.72 3.626-2.16 4.904-1.44 1.278-3.236 1.917-5.388 1.917-2.153 0-3.95-.639-5.389-1.917-1.44-1.278-2.16-2.913-2.16-4.904z\"\n fillOpacity={0.38}\n fill=\"#3C74B4\"\n />\n </g>\n </g>\n </svg>\n );\n};\n\nexport default SvgNoData;\n","import React from 'react';\n\nconst SvgError: React.FC<React.SVGProps<SVGSVGElement>> = (props) => {\n return (\n <svg width={88} height={88} viewBox=\"0 0 88 88\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" {...props}>\n <mask\n id=\"Error_svg__a\"\n style={{\n maskType: 'alpha'\n }}\n maskUnits=\"userSpaceOnUse\"\n x={0}\n y={0}\n width={88}\n height={88}\n >\n <path d=\"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z\" fill=\"#fff\" />\n </mask>\n <g mask=\"url(#Error_svg__a)\">\n <path\n d=\"M44 88c24.3 0 44-19.7 44-44S68.3 0 44 0 0 19.7 0 44s19.7 44 44 44z\"\n fill=\"#CAC4D5\"\n fillOpacity={0.3}\n />\n <path\n opacity={0.3}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M19.987 6.73l49.449 6.072a.687.687 0 01.596.767l-7.845 63.888a.688.688 0 01-.766.6L7.214 71.4a.688.688 0 01-.599-.763l.408-3.326L19.987 6.73z\"\n fill=\"#fff\"\n />\n <path\n opacity={0.2}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M1.267 25.921l45.86-19.466a.687.687 0 01.9.366l25.15 59.251a.61.61 0 01-.386.84L22.34 82.765a.719.719 0 01-.887-.445l-20.185-56.4z\"\n fill=\"#fff\"\n />\n <path\n d=\"M65.631 9.23H11.017a.688.688 0 00-.687.687v64.37c0 .38.307.687.687.687h54.614c.38 0 .688-.308.688-.687V9.917a.688.688 0 00-.688-.688z\"\n fill=\"#F9F9F9\"\n />\n <path\n opacity={0.1}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M14.885 34.95l3.105-1.666 7.31-4.025 8.852 3.472 7.89-5.223 8.036-2.628 8.113 5.193 3.352-10.255v16.967H14.935l-.05-1.835z\"\n fill=\"#9C6CF0\"\n />\n <path\n opacity={0.2}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M14.885 32.331l3.105-3.761 7.31 4.31 8.852 1.656 7.89-2.205 8.036 1.827 8.113-12.643 3.352.742V36.36H14.935l-.05-4.029z\"\n fill=\"#FA82AA\"\n />\n <path\n opacity={0.2}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M14.885 34.946l3.105.432 7.31 1.01 8.852-5.117 7.89 3.675 8.036 1.839 8.113-1.839 3.352.811v1.028H14.935l-.05-1.839z\"\n fill=\"#4DBEE9\"\n />\n <path\n opacity={0.1}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M61.543 35.288l-.05 1.497H14.885v-5.239l3.352-.276 8.114 4.697 8.036-.679 7.889.82 8.852-.616 7.31-1.601 3.105 1.397z\"\n fill=\"#4DBEE9\"\n />\n <path d=\"M21.036 40.178h-5.09a.636.636 0 000 1.272h5.09a.636.636 0 100-1.272z\" fill=\"#ACACAC\" />\n <path\n opacity={0.3}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M16.582 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM25.914 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM39.91 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM21.248 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272zM35.245 55.872c.703 0 1.273.57 1.273 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM30.58 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.272 1.272 0 11-2.545 0V57.144c0-.702.57-1.272 1.272-1.272zM44.577 55.872c.702 0 1.272.57 1.272 1.273V69.02a1.273 1.273 0 01-2.545 0V57.144c0-.702.57-1.272 1.273-1.272z\"\n fill=\"#BDBDBD\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M16.582 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.272-1.273zM25.914 62.658c.702 0 1.272.57 1.272 1.273v5.09a1.272 1.272 0 11-2.545 0v-5.09c0-.703.57-1.273 1.273-1.273zM39.91 65.628c.703 0 1.273.57 1.273 1.272v2.121a1.272 1.272 0 11-2.545 0v-2.12c0-.703.57-1.273 1.273-1.273zM21.248 66.477c.702 0 1.272.57 1.272 1.272v1.273a1.273 1.273 0 01-2.545 0v-1.273c0-.703.57-1.272 1.273-1.272z\"\n fill=\"#4DBEE9\"\n />\n <path\n d=\"M36.518 65.628a1.272 1.272 0 00-2.545 0v3.393a1.272 1.272 0 102.545 0v-3.393zM31.852 62.234a1.272 1.272 0 10-2.545 0v6.787a1.272 1.272 0 102.545 0v-6.787z\"\n fill=\"#4DBEE9\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M44.577 60.962c.702 0 1.272.57 1.272 1.272v6.787a1.273 1.273 0 01-2.545 0v-6.787c0-.702.57-1.272 1.273-1.272z\"\n fill=\"#4DBEE9\"\n />\n <path d=\"M18.915 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z\" fill=\"#9C6CF0\" />\n <path\n opacity={0.5}\n d=\"M34.185 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z\"\n fill=\"#4DBEE9\"\n />\n <path\n opacity={0.3}\n d=\"M49.454 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z\"\n fill=\"#4DBEE9\"\n />\n <path opacity={0.8} d=\"M26.55 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z\" fill=\"#FB6597\" />\n <path d=\"M41.82 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z\" fill=\"#4DBEE9\" />\n <path opacity={0.2} d=\"M57.09 18.546a1.909 1.909 0 100-3.817 1.909 1.909 0 000 3.817z\" fill=\"#4DBEE9\" />\n <path\n opacity={0.5}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M16.582 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM31.851 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 110-.849zM47.121 19.818h4.666a.424.424 0 010 .849h-4.666a.424.424 0 010-.849zM24.217 19.818h4.665a.424.424 0 010 .849h-4.665a.424.424 0 010-.849zM39.486 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849zM54.756 19.818h4.666a.424.424 0 110 .849h-4.666a.424.424 0 110-.849z\"\n fill=\"#ACACAC\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M15.946 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM15.946 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM15.946 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM23.58 43.571h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 010-1.273zM23.58 46.116h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 010-1.273zM23.58 48.661h5.09a.636.636 0 010 1.273h-5.09a.636.636 0 110-1.273zM49.454 43.571h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 46.116h11.028a.636.636 0 010 1.273H49.454a.636.636 0 010-1.273zM49.454 48.661h11.028a.636.636 0 010 1.273H49.454a.636.636 0 110-1.273zM31.215 43.571h15.27a.636.636 0 110 1.273h-15.27a.636.636 0 010-1.273zM31.215 46.116h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM31.215 48.661h15.27a.636.636 0 010 1.273h-15.27a.636.636 0 010-1.273zM15.946 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM23.58 51.206h5.09a.636.636 0 110 1.272h-5.09a.636.636 0 110-1.272zM49.454 51.206h11.028a.636.636 0 010 1.272H49.454a.636.636 0 110-1.272zM31.215 51.206h15.27a.636.636 0 110 1.272h-15.27a.636.636 0 010-1.272z\"\n fill=\"#E9E9E9\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M49.878 55.872h5.09a.636.636 0 110 1.273h-5.09a.636.636 0 110-1.273z\"\n fill=\"#ACACAC\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M49.878 59.69h11.029a.636.636 0 010 1.272H49.878a.636.636 0 110-1.273zM49.878 62.234h11.029a.636.636 0 010 1.273H49.878a.636.636 0 010-1.273zM49.878 64.78h11.029a.636.636 0 010 1.272H49.878a.636.636 0 010-1.273z\"\n fill=\"#E9E9E9\"\n />\n <path d=\"M54.968 67.324h-5.09a.636.636 0 000 1.273h5.09a.636.636 0 000-1.273z\" fill=\"#E9E9E9\" />\n <g filter=\"url(#Error_svg__filter0_d)\">\n <path\n d=\"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z\"\n fill=\"#000\"\n />\n </g>\n <path\n d=\"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z\"\n fill=\"#F25252\"\n />\n <path\n opacity={0.15}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z\"\n fill=\"#F25252\"\n />\n <path\n opacity={0.3}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z\"\n fill=\"#F25252\"\n />\n <path\n opacity={0.05}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z\"\n fill=\"#F25252\"\n />\n <path\n d=\"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z\"\n fill=\"#FF6A6A\"\n />\n <path\n opacity={0.05}\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M58.298 46.448L75.18 63.331l-9.114 12.078h-2.029l-7.582-7.582 1.006-3.178.837-18.2z\"\n fill=\"url(#Error_svg__paint0_linear)\"\n />\n <g filter=\"url(#Error_svg__filter1_d)\">\n <path d=\"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z\" fill=\"#000\" />\n </g>\n <path d=\"M57.406 68.063a1.719 1.719 0 100-3.438 1.719 1.719 0 000 3.438z\" fill=\"#fff\" />\n <g filter=\"url(#Error_svg__filter2_d)\">\n <path\n d=\"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z\"\n fill=\"#000\"\n />\n </g>\n <path\n d=\"M57.406 46.063c.95 0 1.719.769 1.719 1.718v12.375a1.719 1.719 0 11-3.438 0V47.781c0-.949.77-1.718 1.72-1.718z\"\n fill=\"#fff\"\n />\n </g>\n <defs>\n <filter\n id=\"Error_svg__filter0_d\"\n x={36.219}\n y={37.875}\n width={42.375}\n height={42.375}\n filterUnits=\"userSpaceOnUse\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feFlood floodOpacity={0} result=\"BackgroundImageFix\" />\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" />\n <feOffset dy={2} />\n <feGaussianBlur stdDeviation={2} />\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0\" />\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow\" />\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow\" result=\"shape\" />\n </filter>\n <filter\n id=\"Error_svg__filter1_d\"\n x={51.688}\n y={62.625}\n width={11.438}\n height={11.438}\n filterUnits=\"userSpaceOnUse\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feFlood floodOpacity={0} result=\"BackgroundImageFix\" />\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" />\n <feOffset dy={2} />\n <feGaussianBlur stdDeviation={2} />\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0\" />\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow\" />\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow\" result=\"shape\" />\n </filter>\n <filter\n id=\"Error_svg__filter2_d\"\n x={51.688}\n y={44.063}\n width={11.438}\n height={23.813}\n filterUnits=\"userSpaceOnUse\"\n colorInterpolationFilters=\"sRGB\"\n >\n <feFlood floodOpacity={0} result=\"BackgroundImageFix\" />\n <feColorMatrix in=\"SourceAlpha\" type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\" />\n <feOffset dy={2} />\n <feGaussianBlur stdDeviation={2} />\n <feColorMatrix type=\"matrix\" values=\"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0\" />\n <feBlend mode=\"normal\" in2=\"BackgroundImageFix\" result=\"effect1_dropShadow\" />\n <feBlend mode=\"normal\" in=\"SourceGraphic\" in2=\"effect1_dropShadow\" result=\"shape\" />\n </filter>\n <linearGradient\n id=\"Error_svg__paint0_linear\"\n x1={68.438}\n y1={71.571}\n x2={60.119}\n y2={58.801}\n gradientUnits=\"userSpaceOnUse\"\n >\n <stop stopOpacity={0} />\n <stop offset={1} />\n </linearGradient>\n </defs>\n </svg>\n );\n};\n\nexport default SvgError;\n","import PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactResizeDetector from 'react-resize-detector';\n\nconst EmptyStub = () => <div style={{display: 'none'}} />;\n\nconst HideOnShrink = ({widthToHide, children}) => (\n <ReactResizeDetector\n handleWidth={true}\n render={({width}) => (width > widthToHide ? <>{children}</> : <EmptyStub />)}\n />\n);\n\nHideOnShrink.propTypes = {\n children: PropTypes.node,\n widthToHide: PropTypes.number.isRequired\n};\n\nexport default HideOnShrink;\n","import React from 'react';\nimport {useSelector} from 'react-redux';\nimport mdmModule from '@reltio/mdm-module';\nimport {findSourceSystemByUri, getAbsoluteImageUrl, getSourceSystemLabel, Source} from '@reltio/mdm-sdk';\nimport AvatarWithFallback from '../AvatarWithFallback/AvatarWithFallback';\n\ntype Props = {\n sourceType: string;\n className?: string;\n classes?: {\n iconRoot?: string;\n textRoot?: string;\n };\n};\nconst SOURCE_URL = 'https://s3.amazonaws.com/reltio.images/api';\nconst SourceIcon = ({sourceType, className, classes}: Props) => {\n const metadata = useSelector(mdmModule.selectors.getMetadata);\n const {uri, icon}: Source = findSourceSystemByUri(metadata, sourceType) || {};\n const avatarText = uri ? getSourceSystemLabel(metadata, uri)[0] : '';\n const sourceIcon = icon ? getAbsoluteImageUrl(SOURCE_URL, icon) : null;\n\n return (\n <AvatarWithFallback\n className={className}\n avatarText={avatarText}\n icon={sourceIcon}\n variant=\"square\"\n rootClasses={classes}\n />\n );\n};\n\nexport default SourceIcon;\n","import PropTypes from 'prop-types';\nimport React from 'react';\n\nconst VerticalDivider = ({height, margin}) => (\n <div\n style={{\n width: '1px',\n height: `${height}px`,\n borderLeft: '1px solid rgba(0,0,0,0.38)',\n margin: `0 ${margin}px`,\n flexShrink: '0'\n }}\n />\n);\n\nVerticalDivider.propTypes = {\n height: PropTypes.number,\n margin: PropTypes.number\n};\n\nexport default VerticalDivider;\n","import React, {useMemo} from 'react';\nimport {countPercents} from '@reltio/mdm-sdk';\nimport {pluck} from 'ramda';\nimport {ChartData} from '../types';\n\ntype PropsWithChartData = {\n data: ChartData[];\n};\n\nexport const enrichDataWithPercents = (data: ChartData[]): ChartData[] => {\n const percents = countPercents(pluck('value', data), 1);\n return data.map((item, i) => ({...item, percent: percents[i]}));\n};\n\nconst withPercents = <T extends PropsWithChartData>(Component: React.ComponentType<T>) => {\n const WithPercents = ({data, ...otherProps}: T) => {\n const dataWithPercents = useMemo(() => data && enrichDataWithPercents(data), [data]);\n return <Component data={dataWithPercents} {...(otherProps as T)} />;\n };\n\n WithPercents.displayName = 'WithPercents';\n\n return WithPercents;\n};\n\nexport default withPercents;\n","import {makeStyles} from '@material-ui/core/styles';\n\nconst useStyles = makeStyles({\n clickable: {\n cursor: 'pointer'\n }\n});\n\nexport const useClickableStyle = (clickable) => {\n const styles = useStyles();\n return clickable ? styles.clickable : undefined;\n};\n","import {useEffect, useState} from 'react';\n\nexport const useSavedState = <T>(getSavedState: () => Promise<T>) => {\n const [isLoaded, setIsLoaded] = useState(false);\n const [savedState, setSavedState] = useState<T | Record<string, never>>({});\n\n useEffect(() => {\n getSavedState()\n .then((savedState) => {\n setSavedState(savedState || {});\n })\n .then((_) => setIsLoaded(true))\n .catch((_) => setIsLoaded(true));\n }, []); // eslint-disable-line\n\n return {isLoaded, savedState};\n};\n","import React from 'react';\nimport {AttributeType, SearchFilter} from '@reltio/mdm-sdk';\n\nexport type ReactGridLayoutItem = {\n i: string;\n x: number;\n y: number;\n w: number;\n h: number;\n minW?: number;\n minH?: number;\n maxW?: number;\n maxH?: number;\n static?: boolean;\n};\n\nexport type ReltioGridLayoutOptions = {\n cols: number;\n rowHeight: number;\n margin: [number, number];\n};\n\nexport type AttributeOption = {\n label: string;\n value: string;\n attrType: AttributeType;\n chipLabel: string;\n level: number;\n};\n\nexport type QueryBuilderAttributeData = {\n title: string;\n pathToTitle: Array<string>;\n fieldName: string;\n entityTypeUri: string;\n attrType: AttributeType;\n uri: string;\n groupName: string;\n filterOptions: Array<string>;\n};\n\nexport type QueryBuilderAttribute = {\n id: string;\n values: Array<unknown>;\n data: QueryBuilderAttributeData;\n filter: string;\n operator: string;\n};\n\nexport type FiltersRowData = {\n attribute: AttributeSelectorItem;\n filter: string;\n id: number;\n values: SearchFilter['values'];\n};\n\nexport type AttributeSelectorItem = {\n attrType?: AttributeType;\n entityTypeUri?: string;\n fieldName: string;\n groupName?: string;\n title: string;\n uri?: string;\n children?: AttributeSelectorItem[];\n pathToTitle?: string[];\n};\n\nexport type AttributeSelectorItemsGroup = {\n id?: string;\n title: string;\n attributes: AttributeSelectorItem[];\n};\n\nexport type AttributeSelectionInfo = {\n index: number;\n checked: boolean;\n attribute: AttributeSelectorItem;\n selectedAttributes: AttributeSelectorItem[];\n};\n\nexport type BasicAttributeSelectorProps = {\n className?: string;\n itemsGroups: AttributeSelectorItemsGroup[];\n value: AttributeSelectorItem;\n onSelect: (selectInfo: AttributeSelectionInfo) => void;\n onRestoreFocus?: () => void;\n onOpenPopup?: () => void;\n getLabel?: (value: {fieldName?: string; pathToTitle?: string[]; title: string}) => string;\n disableRestoreFocus?: boolean;\n disableEnforceFocus?: boolean;\n single?: boolean;\n ungroup?: boolean;\n disabled?: boolean;\n hideCheckBox?: boolean;\n};\nexport enum RequestStates {\n INIT = 'init',\n LOADING = 'loading',\n LOADED = 'loaded',\n ERROR = 'error'\n}\n\nexport type SelectableItem = {\n text?: string;\n disabled?: boolean;\n tooltip?: string;\n id?: string;\n onClick?: (e) => void;\n selected?: boolean;\n};\n\nexport type DropDownMenuItem = {\n text?: string;\n disabled?: boolean;\n tooltip?: string;\n id?: string;\n onClick?: (e) => void;\n selectable?: boolean;\n selected?: boolean;\n};\n\nexport type PerspectivesSettings = Record<string, PerspectiveSettingItem>;\n\nexport type PerspectiveSettingItem = {\n active?: number;\n width?: number;\n};\n\nexport type RightPanelTab = {\n content?: React.ReactElement;\n title?: React.ReactElement;\n buttonProps?: {\n id: number;\n icon: React.FC;\n tooltipTitle: string;\n showForDisabled?: boolean;\n };\n headerProps?:\n | {content: React.ReactElement}\n | {mainTitle: string; secondTitle?: string; rightContent?: React.ReactElement};\n hidden?: boolean;\n};\n","import React, {createContext, useCallback, useContext, useEffect, useMemo, useState} from 'react';\nimport {assoc, assocPath, propOr} from 'ramda';\nimport {nanoid} from 'nanoid';\n\nimport {RequestStates} from '@reltio/components';\nimport {DQDataLevel} from '@reltio/mdm-sdk';\n\ntype RefreshSignals = Partial<Record<DQDataLevel, number>>;\ntype UpdateTime = {[actionId: string]: number};\ntype UpdateTimes = Partial<Record<DQDataLevel, UpdateTime>>;\ntype RequestsUpdateTimeContextType = {\n updateTime: ({dataLevel, actionId}: {dataLevel: DQDataLevel; actionId: string}) => void;\n updateTimes: UpdateTimes;\n resetUpdateTimes: (dataLevel: DQDataLevel) => void;\n};\nconst ReloadFacetSignalContext = createContext<RefreshSignals>(null);\nconst ReloadFacetActionContext = createContext<(dataLevel: DQDataLevel) => void>(null);\nconst RequestsUpdateTimeContext = createContext<RequestsUpdateTimeContextType>(null);\n\ntype Props = {\n children: React.ReactNode;\n};\n\nexport const ReloadFacetProvider = ({children}: Props) => {\n const [refreshSignals, setRefreshSignals] = useState<RefreshSignals>({});\n const [updateTimes, setUpdateTimes] = useState<UpdateTimes>({});\n\n const resetUpdateTimes = useCallback(\n (dataLevel?: DQDataLevel) => (dataLevel ? setUpdateTimes(assoc(dataLevel, {})) : setUpdateTimes({})),\n []\n );\n const refreshAll = useCallback(\n (dataLevel: DQDataLevel) => {\n setRefreshSignals((signals) => {\n const nextSignal = propOr(0, dataLevel, signals) + 1;\n return assoc(dataLevel, nextSignal, signals);\n });\n },\n [setRefreshSignals]\n );\n\n const updateTime = ({dataLevel, actionId}) => {\n const time = Date.now();\n setUpdateTimes(assocPath([dataLevel, actionId], time));\n };\n return (\n <ReloadFacetActionContext.Provider value={refreshAll}>\n <ReloadFacetSignalContext.Provider value={refreshSignals}>\n <RequestsUpdateTimeContext.Provider value={{updateTime, updateTimes, resetUpdateTimes}}>\n {children}\n </RequestsUpdateTimeContext.Provider>\n </ReloadFacetSignalContext.Provider>\n </ReloadFacetActionContext.Provider>\n );\n};\n\nexport const useReloadAllFacets = () => {\n const refreshAll = useContext(ReloadFacetActionContext);\n\n if (refreshAll === undefined) {\n throw new Error('useReloadAllFacets must be used within a ReloadFacetProvider');\n }\n\n return refreshAll;\n};\n\ntype useReloadFacetProps = {\n state: RequestStates;\n reload: () => void;\n dataLevel?: DQDataLevel;\n};\n\nexport const useReloadFacet = ({state, reload, dataLevel}: useReloadFacetProps) => {\n const refreshSignals = useContext(ReloadFacetSignalContext);\n\n if (refreshSignals === undefined) {\n throw new Error('useReloadFacet must be used within a ReloadFacetProvider');\n }\n\n const refreshSignal = refreshSignals[dataLevel];\n useEffect(() => {\n if (state === RequestStates.LOADED || state === RequestStates.ERROR) {\n reload();\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [refreshSignal]);\n};\n\nexport const useRefreshAction = ({action, dataLevel}: {action: () => void; dataLevel: DQDataLevel}) => {\n const {updateTime} = useContext(RequestsUpdateTimeContext);\n\n const actionId = useMemo(() => nanoid(), []);\n return useCallback(() => {\n updateTime({actionId, dataLevel});\n action();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [action, dataLevel]);\n};\n\nexport const useUpdateTime = (dataLevel: DQDataLevel) => {\n const {updateTimes, resetUpdateTimes} = useContext(RequestsUpdateTimeContext);\n\n return {\n updateTime: Math.min(...(Object.values(updateTimes[dataLevel] || {}) as number[])),\n resetUpdateTimes\n };\n};\n","import React, {useState, useContext, useCallback} from 'react';\n\nimport {DatePeriod} from '@reltio/mdm-sdk';\n\ntype Props = {\n children: React.ReactNode;\n};\n\ntype Zoom = [string, string];\n\nconst PeriodContext = React.createContext<{\n period?: DatePeriod;\n changePeriod?: (period: DatePeriod) => void;\n }>(null);\n\nconst ZoomContext = React.createContext<{\n zoom?: [string, string];\n getDateRange?: () => DatePeriod;\n changeZoom?: (zoom: [string, string]) => void;\n }>({});\n\nexport const DateRangesProvider = ({children}: Props) => {\n const [zoom, setZoom] = useState<Zoom>(null);\n const [period, setPeriod] = useState<DatePeriod>(null);\n const changePeriod = useCallback(\n (newPeriod: DatePeriod) => {\n setPeriod(newPeriod);\n period && setZoom(null);\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [period]\n );\n const changeZoom = useCallback((zoom: Zoom) => {\n if (zoom) {\n const validatedZoom: [string, string] =\n new Date(zoom[0]) > new Date(zoom[1]) ? [zoom[1], zoom[0]] : [zoom[0], zoom[1]];\n setZoom(validatedZoom);\n }\n }, []);\n\n const getDateRange: () => DatePeriod = useCallback(\n () => (zoom ? [new Date(zoom[0]), new Date(zoom[1])] : period),\n [zoom, period]\n );\n return (\n <PeriodContext.Provider value={{period, changePeriod}}>\n <ZoomContext.Provider value={{zoom, getDateRange, changeZoom}}>{children}</ZoomContext.Provider>\n </PeriodContext.Provider>\n );\n};\n\nexport const usePeriod = () => {\n return useContext(PeriodContext);\n};\n\nexport const useZoom = () => {\n return useContext(ZoomContext);\n};\n","import React, {useContext, useState} from 'react';\n\nimport {TEntityType} from '@reltio/mdm-sdk';\n\nimport {DetailedAttributeType} from '../../types/DetailedAttributeType';\n\nconst EntityAndAttributeTypeContext = React.createContext<{\n detailedAttributeType: DetailedAttributeType;\n setDetailedAttributeType: (detailedAttributeType: DetailedAttributeType) => void;\n entityType: TEntityType;\n setEntityType: (entityType: TEntityType) => void;\n }>(null);\n\ntype Props = {\n children: React.ReactNode;\n};\n\nexport const EntityAndAttributeTypeProvider = ({children}: Props) => {\n const [detailedAttributeType, setDetailedAttributeType] = useState<DetailedAttributeType>(null);\n const [entityType, setEntityType] = useState<TEntityType>(null);\n return (\n <EntityAndAttributeTypeContext.Provider\n value={{detailedAttributeType, setDetailedAttributeType, entityType, setEntityType}}\n >\n {children}\n </EntityAndAttributeTypeContext.Provider>\n );\n};\n\nexport const useEntityAndAttributeType = () => useContext(EntityAndAttributeTypeContext);\n","import {omit} from 'ramda';\n\nimport {DateRangeValue} from '@reltio/mdm-sdk';\n\nexport type DQDateRangeValue = Exclude<DateRangeValue, DateRangeValue.LAST_DAY>;\nexport const DQDateRangeValue = omit(['LAST_DAY'], {...DateRangeValue});\n","import moment from 'moment';\nimport {DatePeriod, DateRangeValue, getDateRangeByValue} from '@reltio/mdm-sdk';\n\ntype GetDQDateRangeByValue = (value: DatePeriod | [number, number]) => [number, number];\nexport const getDQDateRangeByValue: GetDQDateRangeByValue = (value) => {\n const currentDate = moment();\n\n switch (value) {\n case DateRangeValue.LAST_WEEK:\n return [moment(currentDate).subtract(6, 'days').valueOf(), currentDate.valueOf()];\n default:\n return getDateRangeByValue(value);\n }\n};\n","import {ascend, assoc, defaultTo, map, path, pipe, prop, sortWith, includes, propEq, __, isEmpty} from 'ramda';\n\nimport {TEntityType, TenantPermission, Permission} from '@reltio/mdm-sdk';\n\nimport {DQDateRangeValue} from '../../types/DQDateRangeValue';\nimport {getDQDateRangeByValue} from '../../services/dateRange';\n\nexport const sortEntityTypesWithCount = ({entityTypes, getEntityCount}) =>\n pipe(\n map((entityType: TEntityType) => assoc('entityCount', getEntityCount(entityType.uri))(entityType)),\n sortWith([\n ({entityCount: a}: {entityCount: number}, {entityCount: b}: {entityCount: number}) =>\n a === b || (a > 0 && b > 0) ? 0 : a === 0 ? 1 : -1,\n ascend(prop('label'))\n ])\n )(entityTypes);\n\nexport const getFirstEntityTypeUri = path([0, 'uri']);\n\nexport const dateRangeValues: DQDateRangeValue[] = Object.values(DQDateRangeValue);\n\nexport const getValuesDateRange = pipe(\n getDQDateRangeByValue,\n defaultTo([]),\n map((value) => value && new Date(value))\n);\n\nexport const checkPermissions = ({\n roles,\n tenantPermissions,\n entityTypeUri\n}: {\n roles: string[];\n tenantPermissions: TenantPermission[];\n entityTypeUri: string;\n}) => {\n const canReadWithoutFilter = ({filter, access}: Permission) => {\n return access && includes('READ', access) && !filter;\n };\n const getPermissionsForRoles = (permissions: Permission[], roles: string[]) =>\n (permissions || []).filter(pipe(prop('role'), includes(__, roles)));\n const getPermissionByUri = (uri: string) => tenantPermissions.find(propEq('uri', uri))?.permissions;\n const configurationLevelPermission = getPermissionsForRoles(getPermissionByUri('configuration'), roles);\n const entityLevelPermission = getPermissionsForRoles(getPermissionByUri(entityTypeUri), roles);\n if (!isEmpty(configurationLevelPermission)) {\n return configurationLevelPermission.some(canReadWithoutFilter);\n }\n if (!isEmpty(entityLevelPermission)) {\n return entityLevelPermission.some(canReadWithoutFilter);\n }\n return true;\n};\n","import {RequestStates} from '@reltio/components';\nimport React, {useContext, useMemo} from 'react';\nimport {isEmpty} from 'ramda';\nimport {usePermissionsRequest} from '../../hooks/usePermissionsRequest';\nimport {checkPermissions} from '../../components/DQDashboardPerspectiveView/helpers';\nimport {useEntityAndAttributeType} from '../EntityAndAttributeTypeProvider';\nimport {useSelector} from 'react-redux';\nimport mdmModule from '@reltio/mdm-module';\nimport {DQDashboardPerspectiveConfig} from '../../types/DQDashboardPerspectiveConfig';\n\ntype Props = {children: React.ReactNode; config: DQDashboardPerspectiveConfig};\n\nexport const PermissionsContext = React.createContext<{\n isTimeSeriesAvailable: boolean;\n hasRestrictions: boolean;\n canGetDQStatistic: boolean;\n permissionsLoadingState: RequestStates;\n}>(null);\n\nexport const PermissionsProvider = ({children, config}: Props) => {\n const {permissions: tenantPermissions, requestState: permissionsLoadingState} = usePermissionsRequest();\n const entityTypeUri = useEntityAndAttributeType()?.entityType?.uri;\n const roles = useSelector(mdmModule.selectors.getUserRoles);\n const canGetDQStatistic = useSelector(mdmModule.selectors.getCanUserGetDQStatistic);\n const noMetaDataRestrictions = useMemo(\n () =>\n permissionsLoadingState === RequestStates.LOADED &&\n checkPermissions({roles, tenantPermissions, entityTypeUri}),\n [tenantPermissions, permissionsLoadingState, roles, entityTypeUri]\n );\n const hasRestrictions = !isEmpty(tenantPermissions);\n const {showTimeSeries = true} = config;\n return (\n <PermissionsContext.Provider\n value={{\n isTimeSeriesAvailable: showTimeSeries && noMetaDataRestrictions,\n hasRestrictions,\n canGetDQStatistic,\n permissionsLoadingState\n }}\n >\n {children}\n </PermissionsContext.Provider>\n );\n};\n\nexport const usePermissionsContext = () => useContext(PermissionsContext);\n","import {useState, useCallback, useEffect, useMemo} from 'react';\nimport {useSelector} from 'react-redux';\n\nimport {RequestStates, useSafePromise} from '@reltio/components';\nimport {getTenantPermissions, TenantPermission} from '@reltio/mdm-sdk';\nimport mdmModule from '@reltio/mdm-module';\n\nexport const usePermissionsRequest = () => {\n const [permissions, setPermissions] = useState<TenantPermission[]>(null);\n const [requestState, setRequestState] = useState<RequestStates>(RequestStates.INIT);\n const safePromise = useSafePromise();\n const apiPath: string = useSelector(mdmModule.selectors.getApiPath);\n const tenant: string = useSelector(mdmModule.selectors.getTenant);\n\n const onRequestFinished = (permissions) => {\n setPermissions(permissions);\n setRequestState(RequestStates.LOADED);\n };\n\n const onError = (error: {errorCode: number}) => {\n console.error(error); // eslint-disable-line\n setRequestState(RequestStates.ERROR);\n setPermissions(null);\n };\n\n const loadPermissions = useCallback(() => {\n setRequestState(RequestStates.LOADING);\n safePromise(getTenantPermissions({tenant, apiPath})).then(onRequestFinished).catch(onError);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [apiPath, tenant]);\n useEffect(() => {\n loadPermissions();\n }, [loadPermissions]);\n\n return useMemo(\n () => ({\n permissions,\n requestState,\n reload: loadPermissions\n }),\n [permissions, requestState]\n );\n};\n","import React from 'react';\n\nexport const ThresholdsContext = React.createContext<boolean>(false);\n\nThresholdsContext.displayName = 'ThresholdsContext';\n","import {theme as defaultTheme} from '@reltio/mdm-sdk';\n\nexport const theme = {\n ...defaultTheme,\n tooltip: {\n borderRadius: '4px',\n backgroundColor: 'rgba(96, 96, 96, 0.9)',\n maxWidth: '300px'\n }\n};\n","import React from 'react';\n\nimport {DataValidationFunction} from '@reltio/mdm-sdk';\nimport {RequestStates} from '@reltio/components';\n\ntype ContextType = {\n dvfs?: {\n data: DataValidationFunction[];\n state: RequestStates;\n reload: () => Promise<void>;\n errorCode?: number;\n };\n dvfConfigLink?: string;\n};\n\nexport const DVFContext = React.createContext<ContextType>(null);\n\nDVFContext.displayName = 'DVFContext';\n","import React, {useContext, useState} from 'react';\n\nimport {ChartsDataWithState} from '../../types/ChartsDataWithState';\n\ntype Props = {children: React.ReactNode};\n\nexport const ChartsDataContext = React.createContext<{\n chartsData: ChartsDataWithState | Record<string, never>;\n changeChartsData: (chartsData: ChartsDataWithState) => void;\n }>(null);\n\nexport const ChartsDataProvider = ({children}: Props) => {\n const [chartsData, setChartsData] = useState<ChartsDataWithState | Record<string, never>>({});\n const changeChartsData = (chartsData: ChartsDataWithState) => setChartsData(chartsData);\n return <ChartsDataContext.Provider value={{chartsData, changeChartsData}}>{children}</ChartsDataContext.Provider>;\n};\n\nexport const useChartsDataContext = () => useContext(ChartsDataContext);\n","import {pluck} from 'ramda';\nimport {useCallback, useEffect, useMemo, useState} from 'react';\nimport {RequestStates, useSafePromise} from '@reltio/components';\nimport {\n buildFilterQueryString,\n FilterOptions,\n generateValuableQueryString,\n getFacets,\n getLastUriPart,\n TEntityType\n} from '@reltio/mdm-sdk';\n\nexport const useEntityCount = (entityTypes: TEntityType[]) => {\n const [entitiesCountMap, setEntitiesCountMap] = useState(null);\n const [requestState, setRequestState] = useState<RequestStates>(RequestStates.INIT);\n const safePromise = useSafePromise();\n\n const onRequestFinished = ({type: entitiesCountMap}) => {\n setEntitiesCountMap(entitiesCountMap);\n setRequestState(RequestStates.LOADED);\n };\n\n const onError = (error: {errorCode: number}) => {\n console.error(error); // eslint-disable-line\n setRequestState(RequestStates.ERROR);\n setEntitiesCountMap(null);\n };\n\n const getEntityCount = useCallback(() => {\n setRequestState(RequestStates.LOADING);\n const filter = buildFilterQueryString()([\n {\n fieldName: 'type',\n filter: FilterOptions.EQUALS,\n values: pluck('uri', entityTypes)\n }\n ]);\n\n safePromise(\n getFacets({\n query: generateValuableQueryString({activeness: 'active', filter}),\n body: [{fieldName: 'type', pageSize: 101, pageNo: 1}]\n })\n )\n .then(onRequestFinished)\n .catch(onError);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [entityTypes]);\n useEffect(() => {\n getEntityCount();\n }, [getEntityCount]);\n\n return useMemo(\n () => ({\n getEntityCount: (entityTypeUri: string) =>\n Number(entitiesCountMap?.[getLastUriPart(entityTypeUri)] || null),\n state: requestState\n }),\n [entitiesCountMap, requestState]\n );\n};\n","export enum ChartDataType {\n STRING = 'string',\n FLOAT = 'float',\n INTEGER = 'integer',\n BOOLEAN = 'boolean',\n DATE = 'date',\n SSN = 'SSN',\n UNKNOWN = 'unknown'\n}\n","import {DQMetric} from '@reltio/mdm-sdk';\n\nenum CustomViewType {\n UNSUPPORTED = 'unsupported',\n SUMMARY = 'summary',\n MONTH_DISTRIBUTION = 'monthDistribution',\n DAY_OF_WEEK_DISTRIBUTION = 'dayOfWeekDistribution',\n DAY_OF_MONTH_DISTRIBUTION = 'dayOfMonthDistribution',\n RDM_TRANSCODE = 'rdmTranscode'\n}\n\nexport type ViewType = DQMetric | CustomViewType;\nexport const ViewType = {...DQMetric, ...CustomViewType};\n","export enum RDMLookupState {\n RDM_LOOKUP_EXIST = 'rdmLookupExist',\n RDM_LOOKUP_NOT_EXIST = 'rdmLookupNotExist'\n}\n","import i18n from 'ui-i18n';\n\nimport {DQDataLevel} from '@reltio/mdm-sdk';\n\nimport {LayoutsByAttributeType, ViewsByDataLevel} from '../types/DQDashboardPerspectiveConfig';\nimport {ChartDataType} from './ChartDataType';\nimport {ViewType} from './ViewType';\nimport {RDMLookupState} from '../constants/RdmLookupState';\n\nexport const defaultViewsByDataLevel: ViewsByDataLevel = {\n [DQDataLevel.ATTRIBUTE_TYPE]: [\n {\n id: 'FillRateView',\n type: ViewType.FILL_RATE,\n title: i18n.text('Fill rate')\n },\n {\n id: 'UniquenessAnalysisView',\n type: ViewType.UNIQUENESS,\n title: i18n.text('Uniqueness analysis')\n },\n {\n id: 'SummaryView',\n type: ViewType.SUMMARY,\n title: i18n.text('Summary')\n },\n {\n id: 'ValidationView',\n type: ViewType.DATA_VALIDATION,\n title: i18n.text('Profiles with invalid data')\n },\n {\n id: 'FrequencyAnalysis',\n type: ViewType.FREQUENCY,\n title: i18n.text('Frequency analysis')\n },\n {\n id: 'LengthStatistics',\n type: ViewType.LENGTH_STATISTIC,\n title: i18n.text('Length statistics')\n },\n {\n id: 'PatternAnalysis',\n type: ViewType.PATTERN,\n title: i18n.text('Pattern analysis')\n },\n {\n id: 'CrosswalkAnalysis',\n type: ViewType.CROSSWALK_ANALYSIS,\n title: i18n.text('Source system analysis')\n },\n {\n id: 'ValueDistribution',\n type: ViewType.VALUE_DISTRIBUTION,\n title: i18n.text('Value distribution')\n },\n {\n id: 'UnsupportedDataType',\n type: ViewType.UNSUPPORTED,\n title: i18n.text('Unsupported Data Type')\n },\n {\n id: 'FillRateViewTimeSeries',\n type: ViewType.FILL_RATE,\n title: i18n.text('Fill rate over time'),\n options: {\n timeSeries: true\n }\n },\n {\n id: 'UniquenessAnalysisViewTimeSeries',\n type: ViewType.UNIQUENESS,\n title: i18n.text('Uniqueness analysis over time'),\n options: {\n timeSeries: true\n }\n },\n {\n id: 'ValidationViewTimeSeries',\n type: ViewType.DATA_VALIDATION,\n title: i18n.text('Profiles with invalid data over time'),\n options: {\n timeSeries: true\n }\n }\n ],\n [DQDataLevel.ENTITY_TYPE]: [\n {\n id: 'SummaryView',\n type: ViewType.SUMMARY,\n title: i18n.text('Summary')\n },\n {\n id: 'ValidationView',\n type: ViewType.DATA_VALIDATION,\n title: i18n.text('Profiles with invalid data')\n },\n {\n id: 'ConsolidationRate',\n type: ViewType.CONSOLIDATION_RATE,\n title: i18n.text('Consolidation rate')\n },\n {\n id: 'RDMTranscode',\n type: ViewType.RDM_TRANSCODE,\n title: i18n.text('RDM value mapping status')\n }\n ]\n};\n\nexport const defaultLayoutsByDataLevel = {\n [DQDataLevel.ATTRIBUTE_TYPE]: {\n today: {\n default: [\n {x: 0, y: 0, width: 3, height: 11, id: 'SummaryView'},\n {x: 3, y: 0, width: 3, height: 11, id: 'ValidationView'},\n {x: 0, y: 11, width: 3, height: 8, id: 'FillRateView'},\n {x: 3, y: 11, width: 3, height: 8, id: 'UniquenessAnalysisView'},\n {x: 0, y: 19, width: 3, height: 19, id: 'FrequencyAnalysis'},\n {x: 3, y: 19, width: 3, height: 19, id: 'CrosswalkAnalysis'},\n {x: 0, y: 38, width: 6, height: 19, id: 'LengthStatistics'}\n ],\n [ChartDataType.SSN]: [\n {x: 0, y: 0, width: 3, height: 11, id: 'SummaryView'},\n {x: 3, y: 0, width: 3, height: 11, id: 'ValidationView'},\n {x: 0, y: 11, width: 3, height: 8, id: 'FillRateView'},\n {x: 3, y: 11, width: 3, height: 8, id: 'UniquenessAnalysisView'},\n {x: 0, y: 19, width: 3, height: 19, id: 'FrequencyAnalysis'},\n {x: 3, y: 19, width: 3, height: 19, id: 'CrosswalkAnalysis'},\n {x: 0, y: 38, width: 3, height: 19, id: 'PatternAnalysis'}\n ],\n [ChartDataType.BOOLEAN]: [\n {x: 0, y: 0, width: 3, height: 11, id: 'SummaryView'},\n {x: 3, y: 0, width: 3, height: 11, id: 'ValidationView'},\n {x: 0, y: 11, width: 3, height: 8, id: 'FillRateView'},\n {x: 3, y: 11, width: 3, height: 8, id: 'FrequencyAnalysis'},\n {x: 0, y: 19, width: 3, height: 19, id: 'CrosswalkAnalysis'}\n ],\n [ChartDataType.DATE]: [\n {x: 0, y: 0, width: 3, height: 11, id: 'SummaryView'},\n {x: 3, y: 0, width: 3, height: 11, id: 'ValidationView'},\n {x: 0, y: 11, width: 3, height: 8, id: 'FillRateView'},\n {x: 3, y: 11, width: 3, height: 8, id: 'UniquenessAnalysisView'},\n {x: 0, y: 19, width: 3, height: 19, id: 'FrequencyAnalysis'},\n {x: 3, y: 19, width: 3, height: 19, id: 'CrosswalkAnalysis'},\n {x: 0, y: 38, width: 6, height: 19, id: 'ValueDistribution'}\n ],\n [ChartDataType.INTEGER]: [\n {x: 0, y: 0, width: 3, height: 11, id: 'SummaryView'},\n {x: 3, y: 0, width: 3, height: 11, id: 'ValidationView'},\n {x: 0, y: 11, width: 3, height: 8, id: 'FillRateView'},\n {x: 3, y: 11, width: 3, height: 8, id: 'UniquenessAnalysisView'},\n {x: 0, y: 19, width: 3, height: 19, id: 'FrequencyAnalysis'},\n {x: 3, y: 19, width: 3, height: 19, id: 'CrosswalkAnalysis'},\n {x: 0, y: 38, width: 6, height: 19, id: 'ValueDistribution'}\n ],\n [ChartDataType.FLOAT]: [\n {x: 0, y: 0, width: 3, height: 11, id: 'SummaryView'},\n {x: 3, y: 0, width: 3, height: 11, id: 'ValidationView'},\n {x: 0, y: 11, width: 3, height: 8, id: 'FillRateView'},\n {x: 3, y: 11, width: 3, height: 8, id: 'UniquenessAnalysisView'},\n {x: 0, y: 19, width: 3, height: 19, id: 'FrequencyAnalysis'},\n {x: 3, y: 19, width: 3, height: 19, id: 'CrosswalkAnalysis'},\n {x: 0, y: 38, width: 6, height: 19, id: 'ValueDistribution'}\n ]\n },\n timeRange: {\n default: [\n {x: 0, y: 0, width: 6, height: 6, id: 'SummaryView'},\n {x: 0, y: 6, width: 3, height: 12, id: 'ValidationView'},\n {x: 3, y: 6, width: 3, height: 12, id: 'ValidationViewTimeSeries'},\n {x: 0, y: 18, width: 3, height: 12, id: 'FillRateView'},\n {x: 3, y: 18, width: 3, height: 12, id: 'FillRateViewTimeSeries'},\n {x: 0, y: 30, width: 3, height: 12, id: 'UniquenessAnalysisView'},\n {x: 3, y: 30, width: 3, height: 12, id: 'UniquenessAnalysisViewTimeSeries'},\n {x: 0, y: 42, width: 3, height: 14, id: 'FrequencyAnalysis'},\n {x: 3, y: 42, width: 3, height: 14, id: 'CrosswalkAnalysis'},\n {x: 0, y: 56, width: 6, height: 19, id: 'LengthStatistics'}\n ],\n SSN: [\n {x: 0, y: 0, width: 6, height: 6, id: 'SummaryView'},\n {x: 0, y: 6, width: 3, height: 12, id: 'ValidationView'},\n {x: 3, y: 6, width: 3, height: 12, id: 'ValidationViewTimeSeries'},\n {x: 0, y: 18, width: 3, height: 12, id: 'FillRateView'},\n {x: 3, y: 18, width: 3, height: 12, id: 'FillRateViewTimeSeries'},\n {x: 0, y: 30, width: 3, height: 12, id: 'UniquenessAnalysisView'},\n {x: 3, y: 30, width: 3, height: 12, id: 'UniquenessAnalysisViewTimeSeries'},\n {x: 0, y: 42, width: 3, height: 14, id: 'FrequencyAnalysis'},\n {x: 3, y: 42, width: 3, height: 14, id: 'CrosswalkAnalysis'},\n {x: 0, y: 56, width: 3, height: 14, id: 'PatternAnalysis'}\n ],\n boolean: [\n {x: 0, y: 0, width: 6, height: 6, id: 'SummaryView'},\n {x: 0, y: 6, width: 3, height: 12, id: 'ValidationView'},\n {x: 3, y: 6, width: 3, height: 12, id: 'ValidationViewTimeSeries'},\n {x: 0, y: 18, width: 3, height: 12, id: 'FillRateView'},\n {x: 3, y: 18, width: 3, height: 12, id: 'FillRateViewTimeSeries'},\n {x: 0, y: 30, width: 3, height: 12, id: 'FrequencyAnalysis'},\n {x: 3, y: 30, width: 3, height: 12, id: 'CrosswalkAnalysis'}\n ],\n date: [\n {x: 0, y: 0, width: 6, height: 6, id: 'SummaryView'},\n {x: 0, y: 6, width: 3, height: 12, id: 'ValidationView'},\n {x: 3, y: 6, width: 3, height: 12, id: 'ValidationViewTimeSeries'},\n {x: 0, y: 18, width: 3, height: 12, id: 'FillRateView'},\n {x: 3, y: 18, width: 3, height: 12, id: 'FillRateViewTimeSeries'},\n {x: 0, y: 30, width: 3, height: 12, id: 'UniquenessAnalysisView'},\n {x: 3, y: 30, width: 3, height: 12, id: 'UniquenessAnalysisViewTimeSeries'},\n {x: 0, y: 42, width: 3, height: 14, id: 'FrequencyAnalysis'},\n {x: 3, y: 42, width: 3, height: 14, id: 'CrosswalkAnalysis'},\n {x: 0, y: 56, width: 6, height: 19, id: 'ValueDistribution'}\n ],\n integer: [\n {x: 0, y: 0, width: 6, height: 6, id: 'SummaryView'},\n {x: 0, y: 6, width: 3, height: 12, id: 'ValidationView'},\n {x: 3, y: 6, width: 3, height: 12, id: 'ValidationViewTimeSeries'},\n {x: 0, y: 18, width: 3, height: 12, id: 'FillRateView'},\n {x: 3, y: 18, width: 3, height: 12, id: 'FillRateViewTimeSeries'},\n {x: 0, y: 30, width: 3, height: 12, id: 'UniquenessAnalysisView'},\n {x: 3, y: 30, width: 3, height: 12, id: 'UniquenessAnalysisViewTimeSeries'},\n {x: 0, y: 42, width: 3, height: 14, id: 'FrequencyAnalysis'},\n {x: 3, y: 42, width: 3, height: 14, id: 'CrosswalkAnalysis'},\n {x: 0, y: 56, width: 6, height: 19, id: 'ValueDistribution'}\n ],\n float: [\n {x: 0, y: 0, width: 6, height: 6, id: 'SummaryView'},\n {x: 0, y: 6, width: 3, height: 12, id: 'ValidationView'},\n {x: 3, y: 6, width: 3, height: 12, id: 'ValidationViewTimeSeries'},\n {x: 0, y: 18, width: 3, height: 12, id: 'FillRateView'},\n {x: 3, y: 18, width: 3, height: 12, id: 'FillRateViewTimeSeries'},\n {x: 0, y: 30, width: 3, height: 12, id: 'UniquenessAnalysisView'},\n {x: 3, y: 30, width: 3, height: 12, id: 'UniquenessAnalysisViewTimeSeries'},\n {x: 0, y: 42, width: 3, height: 14, id: 'FrequencyAnalysis'},\n {x: 3, y: 42, width: 3, height: 14, id: 'CrosswalkAnalysis'},\n {x: 0, y: 56, width: 6, height: 19, id: 'ValueDistribution'}\n ]\n }\n } as LayoutsByAttributeType,\n [DQDataLevel.ENTITY_TYPE]: {\n [RDMLookupState.RDM_LOOKUP_EXIST]: [\n {x: 0, y: 0, width: 4, height: 7, id: 'SummaryView'},\n {x: 4, y: 0, width: 2, height: 7, id: 'RDMTranscode'},\n {x: 0, y: 7, width: 6, height: 18, id: 'ConsolidationRate'},\n {x: 0, y: 25, width: 6, height: 12, id: 'ValidationView'}\n ],\n [RDMLookupState.RDM_LOOKUP_NOT_EXIST]: [\n {x: 0, y: 0, width: 6, height: 7, id: 'SummaryView'},\n {x: 0, y: 7, width: 6, height: 18, id: 'ConsolidationRate'},\n {x: 0, y: 25, width: 6, height: 12, id: 'ValidationView'}\n ]\n }\n};\n","import {DetailedAttributeType} from '../types/DetailedAttributeType';\nimport {FacetFilter} from '../types/FacetFilter';\nimport {SearchStateAttributesGroup, SearchOperator} from '@reltio/mdm-sdk';\n\nexport const getAdvancedSearchFilter = (\n entityTypeUri: string,\n filters?: FacetFilter[],\n detailedAttributeType?: DetailedAttributeType\n): SearchStateAttributesGroup => ({\n attributes: (filters || []).map(({filter, fieldName, values = [], uri}, index: number) => ({\n data: {\n uri: uri || detailedAttributeType?.uri,\n entityTypeUri,\n fieldName\n },\n filter,\n id: `attribute_${index}`,\n operator: SearchOperator.and,\n values\n })),\n entityTypes: [entityTypeUri],\n id: 'group',\n operator: SearchOperator.or\n});\n","import {\n all,\n any,\n assoc,\n concat,\n curry,\n defaultTo,\n equals,\n evolve,\n filter,\n isEmpty,\n isNil,\n map,\n mergeLeft,\n pipe,\n pluck,\n prop,\n propEq,\n uniq,\n uniqBy,\n when\n} from 'ramda';\n\nimport i18n from 'ui-i18n';\nimport {ChartData, RequestStates} from '@reltio/components';\nimport {\n DataTypes,\n DQDataLevel,\n DQMetric,\n formatDataTypeValue,\n getSourceSystemLabel,\n isDateType,\n mapFilterValue,\n Metadata,\n parseTimestamp,\n SearchState,\n TimeSeriesStatisticValues,\n ReltioGridLayoutItem\n} from '@reltio/mdm-sdk';\n\nimport {ChartDataType} from '../constants/ChartDataType';\nimport {defaultLayoutsByDataLevel, defaultViewsByDataLevel} from '../constants/defaultConfig';\nimport {ViewType} from '../constants/ViewType';\nimport {getAdvancedSearchFilter} from './advancedFilters';\n\nimport {DetailedAttributeType} from '../types/DetailedAttributeType';\nimport {LayoutsByAttributeType, ViewsByDataLevel} from '../types/DQDashboardPerspectiveConfig';\nimport {DQDashboardView} from '../types/DQDashboardView';\nimport {FacetFilter} from '../types/FacetFilter';\nimport {GetSearchStateProps} from '../types/GetSearchStateProps';\n\nexport const MIN_CHART_BAR_SIZE = 3;\n\nexport const localizeChartValues = map((chartData: ChartData) => ({\n ...chartData,\n localizedValue: i18n.number(chartData.value)\n}));\n\nexport const getPercentLabel = (percent: number) => (isNil(percent) ? '' : `${percent}%`);\n\nexport const isEmptyData = (data: ChartData[]) => isEmpty(data) || !data.find(({value}) => value > 0);\n\nexport const facetFiltersToSearchState = curry(\n (detailedAttributeType: DetailedAttributeType, entityTypeUri: string, filters: FacetFilter[]): SearchState => ({\n advanced: [\n getAdvancedSearchFilter(\n entityTypeUri,\n filters.map(\n when(\n () => isDateType(detailedAttributeType?.type),\n evolve({values: map(mapFilterValue(parseTimestamp))})\n )\n ),\n detailedAttributeType\n )\n ],\n searchOptions: {\n searchByOv: false,\n ovOnly: false\n },\n version: '2.0'\n })\n);\n\nexport const getSearchState =\n (getFilter) =>\n ({\n detailedAttributeType,\n entityTypeUri\n }: {\n detailedAttributeType: DetailedAttributeType;\n entityTypeUri: string;\n }): ((value: string) => SearchState) =>\n pipe(\n getFilter({\n fieldName: detailedAttributeType?.fieldName,\n entityTypeUri\n }),\n facetFiltersToSearchState(detailedAttributeType, entityTypeUri)\n );\n\nexport const convertDateLabelsInChartData = (data: ChartData[], attributeType: string) =>\n data.map((dataItem) => ({\n ...dataItem,\n label: formatDataTypeValue({dataTypeDefinition: {type: attributeType}}, Number(dataItem.label))\n }));\n\nexport const getChartDataTypeByAttributeType = (type: string) => {\n switch (type) {\n case DataTypes.TYPE_BLOB:\n case DataTypes.TYPE_BLOG_URL:\n case DataTypes.TYPE_CIK_ID:\n case DataTypes.TYPE_ENTITY_ID:\n case DataTypes.TYPE_IMAGE_URL:\n case DataTypes.TYPE_STRING:\n case DataTypes.TYPE_TEXT:\n case DataTypes.TYPE_URL:\n return ChartDataType.STRING;\n case DataTypes.TYPE_COUNT:\n case DataTypes.TYPE_DOLLAR:\n case DataTypes.TYPE_INT:\n case DataTypes.TYPE_LONG:\n return ChartDataType.INTEGER;\n case DataTypes.TYPE_FLOAT:\n case DataTypes.TYPE_DOUBLE:\n case DataTypes.TYPE_NUMBER:\n return ChartDataType.FLOAT;\n case DataTypes.TYPE_BOOLEAN:\n case DataTypes.TYPE_RDM_LOOKUPS_NOT_RESOLVED:\n return ChartDataType.BOOLEAN;\n case DataTypes.TYPE_ACTIVENESS_DATE:\n case DataTypes.TYPE_DATE:\n case DataTypes.TYPE_LOCAL_DATE:\n case DataTypes.TYPE_TIMESTAMP:\n return ChartDataType.DATE;\n case DataTypes.TYPE_SSN:\n return ChartDataType.SSN;\n default:\n return ChartDataType.UNKNOWN;\n }\n};\n\nconst getViewsByDataType = (chartDataType: ChartDataType) => {\n switch (chartDataType) {\n case ChartDataType.INTEGER:\n return [\n ViewType.SUMMARY,\n ViewType.CROSSWALK_ANALYSIS,\n ViewType.DATA_VALIDATION,\n ViewType.FILL_RATE,\n ViewType.FREQUENCY,\n ViewType.UNIQUENESS,\n ViewType.VALUE_DISTRIBUTION\n ];\n case ChartDataType.FLOAT:\n return [\n ViewType.SUMMARY,\n ViewType.CROSSWALK_ANALYSIS,\n ViewType.DATA_VALIDATION,\n ViewType.FILL_RATE,\n ViewType.FREQUENCY,\n ViewType.UNIQUENESS,\n ViewType.VALUE_DISTRIBUTION\n ];\n case ChartDataType.BOOLEAN:\n return [\n ViewType.SUMMARY,\n ViewType.CROSSWALK_ANALYSIS,\n ViewType.DATA_VALIDATION,\n ViewType.FILL_RATE,\n ViewType.FREQUENCY\n ];\n case ChartDataType.STRING:\n return [\n ViewType.LENGTH_STATISTIC,\n ViewType.SUMMARY,\n ViewType.CROSSWALK_ANALYSIS,\n ViewType.DATA_VALIDATION,\n ViewType.FILL_RATE,\n ViewType.FREQUENCY,\n ViewType.UNIQUENESS\n ];\n case ChartDataType.DATE:\n return [\n ViewType.SUMMARY,\n ViewType.CROSSWALK_ANALYSIS,\n ViewType.DATA_VALIDATION,\n ViewType.FILL_RATE,\n ViewType.FREQUENCY,\n ViewType.UNIQUENESS,\n ViewType.VALUE_DISTRIBUTION\n ];\n case ChartDataType.SSN:\n return [\n ViewType.SUMMARY,\n ViewType.CROSSWALK_ANALYSIS,\n ViewType.DATA_VALIDATION,\n ViewType.FILL_RATE,\n ViewType.FREQUENCY,\n ViewType.UNIQUENESS,\n ViewType.PATTERN\n ];\n case ChartDataType.UNKNOWN:\n return [\n ViewType.SUMMARY,\n ViewType.CROSSWALK_ANALYSIS,\n ViewType.DATA_VALIDATION,\n ViewType.FILL_RATE,\n ViewType.FREQUENCY,\n ViewType.UNIQUENESS,\n ViewType.LENGTH_STATISTIC\n ];\n default:\n return [];\n }\n};\n\nconst getValidViews = ({\n views: allViews,\n supportedViews,\n layout\n}: {\n views: DQDashboardView[];\n supportedViews: ViewType[];\n layout: ReltioGridLayoutItem[];\n}): DQDashboardView[] => {\n return layout.reduce((views, layoutItem) => {\n const viewType = prop('type', allViews.find(propEq('id', layoutItem.id)));\n const viewIndex = allViews.findIndex(propEq('id', layoutItem.id));\n if (viewIndex !== -1)\n return !supportedViews.includes(viewType)\n ? views.concat(assoc('type', ViewType.UNSUPPORTED, allViews[viewIndex]))\n : views.concat(allViews[viewIndex]);\n else\n return views.concat({\n id: layoutItem.id,\n type: ViewType.UNSUPPORTED,\n title: i18n.text('Unsupported')\n });\n }, []);\n};\n\nexport const getEntityLevelViews = (\n views: Partial<ViewsByDataLevel>,\n layout: ReltioGridLayoutItem[]\n): DQDashboardView[] => {\n const allViews = uniqBy(\n prop('id'),\n concat(views?.[DQDataLevel.ENTITY_TYPE] || [], defaultViewsByDataLevel[DQDataLevel.ENTITY_TYPE] || [])\n );\n const supportedViews = [\n ViewType.SUMMARY,\n ViewType.CONSOLIDATION_RATE,\n ViewType.DATA_VALIDATION,\n ViewType.RDM_TRANSCODE\n ];\n return getValidViews({views: allViews, supportedViews, layout});\n};\n\nexport const getAttributeLevelViews = (\n views: Partial<ViewsByDataLevel>,\n attributeType: string,\n layout: ReltioGridLayoutItem[]\n): DQDashboardView[] => {\n const allViews = uniqBy(\n prop('id'),\n concat(views?.[DQDataLevel.ATTRIBUTE_TYPE] || [], defaultViewsByDataLevel[DQDataLevel.ATTRIBUTE_TYPE] || [])\n );\n const chartDataType = getChartDataTypeByAttributeType(attributeType);\n const supportedViews = getViewsByDataType(chartDataType);\n return getValidViews({views: allViews, supportedViews, layout});\n};\n\nexport const getMetricsFromViews: (views: DQDashboardView[]) => DQMetric[] = pipe(\n defaultTo([]),\n pluck('type'),\n filter((metric: DQMetric) => Object.values(DQMetric).includes(metric)),\n uniq\n);\n\nexport const getLayoutByAttributeType = (\n layouts: LayoutsByAttributeType,\n type: string,\n timeRangeAvailable: boolean\n) => {\n const chartDataType = getChartDataTypeByAttributeType(type);\n const customLayouts = (timeRangeAvailable && layouts?.timeRange) || layouts?.today;\n const defaultLayouts =\n (timeRangeAvailable && defaultLayoutsByDataLevel[DQDataLevel.ATTRIBUTE_TYPE]['timeRange']) ||\n defaultLayoutsByDataLevel[DQDataLevel.ATTRIBUTE_TYPE]['today'];\n const mergedLayoutsByType = mergeLeft(customLayouts, defaultLayouts);\n return mergedLayoutsByType[chartDataType] || mergedLayoutsByType['default'] || [];\n};\n\nexport const getBarWidthStyle = ({percent, value}: ChartData) => ({\n width: `${percent}%`,\n ...(value > 0 && {minWidth: `${MIN_CHART_BAR_SIZE}px`})\n});\n\nexport const getMaxPercentFromChartData = pipe(pluck('percent'), (percents: number[]) => Math.max(...percents));\nexport const enrichChartDataWithSourceLabel = curry((metadata: Metadata, chartData: ChartData[]) =>\n chartData.map((data) => assoc('label', getSourceSystemLabel(metadata, data.group) || data.label, data))\n);\nexport const getEntityTypeSummarySearchState =\n ({entityTypeUri}: GetSearchStateProps) =>\n () =>\n facetFiltersToSearchState(undefined, entityTypeUri, []);\n\nexport const formatPercent = (percent: number | string): number => +(Number(percent) * 100).toFixed(1);\n\nexport const transformTimeSeriesChartData = curry((metric: DQMetric, chartData: TimeSeriesStatisticValues[]) =>\n chartData.map((data) => {\n return {\n ...data,\n [metric]: typeof data[metric] === 'number' ? formatPercent(data[metric]) : null\n };\n })\n);\n\nexport const getChartState = (states: RequestStates[]) => {\n if (all(equals(RequestStates.LOADED), states)) return RequestStates.LOADED;\n if (any(equals(RequestStates.ERROR), states)) return RequestStates.ERROR;\n if (any(equals(RequestStates.LOADING), states)) return RequestStates.LOADING;\n return RequestStates.INIT;\n};\n","import moment from 'moment';\nimport {\n append,\n assoc,\n curry,\n defaultTo,\n find,\n map,\n pick,\n pipe,\n pluck,\n prop,\n propEq,\n propOr,\n reject,\n sortBy,\n uniq,\n values\n} from 'ramda';\nimport i18n from 'ui-i18n';\n\nimport {ChartData, enrichDataWithPercents} from '@reltio/components';\nimport {\n DatePeriod,\n DateRangeValue,\n DQMetric,\n FillRateState,\n getDateRangeByDatePeriod,\n getRangeOptionLabel,\n isDateRangeValue,\n TimeSeriesAnomalyValues,\n TimeSeriesData,\n TimeSeriesStatisticValues,\n UniquenessAnalysisState\n} from '@reltio/mdm-sdk';\n\nimport {getDQDateRangeByValue} from '../services/dateRange';\nimport {DQDashboardView} from '../types/DQDashboardView';\nimport {DQDateRangeValue} from '../types/DQDateRangeValue';\nimport {LineChartData} from '../types/LineChartData';\nimport {formatPercent} from './charts';\n\nexport const getLabelByTimeRange = (period: DatePeriod): string =>\n isDateRangeValue(period as DQDateRangeValue)\n ? getRangeOptionLabel(period as DQDateRangeValue)\n : (period as [Date, Date]).map((date) => i18n.date(moment(date))).join(' \\u2013 ');\n\nexport const getStatisticData = <T>(\n getData: (chartsData: TimeSeriesStatisticValues) => T\n): ((chartsData: TimeSeriesData) => LineChartData[]) =>\n pipe(\n propOr([], 'statisticData'),\n defaultTo([]),\n map(({time, values}) => ({\n group: time?._max_date,\n label: i18n.date(time?._max_date, 'MMM D'),\n ...getData(values)\n })),\n sortBy(prop('group'))\n );\nconst prependZeroIfNeeds = (number: number) => (number < 10 ? `0${number}` : `${number}`);\n\nexport const getAnomalyData = <T>(\n getData: (chartsData: TimeSeriesAnomalyValues) => T\n): ((chartsData: TimeSeriesData) => LineChartData[]) =>\n pipe(\n propOr([], 'anomalyData'),\n map(({time, values: dataValues}) => ({\n group: time?._max_date,\n label: i18n.date(time?._max_date, 'MMM D'),\n anomaly: pipe(getData, pick(['lower', 'upper']), values, map(formatPercent))(dataValues)\n })),\n sortBy(prop('group'))\n );\n\nexport const getTimeSeriesData =\n <T>(getData: (chartsData: TimeSeriesStatisticValues | TimeSeriesAnomalyValues) => T) =>\n (chartsData: TimeSeriesData) => {\n const timeSeriesData = getStatisticData(getData)(chartsData);\n const anomalyData = getAnomalyData(getData)(chartsData);\n return pipe(\n pluck('group'),\n uniq,\n map((group) => ({\n ...find(propEq('group', group), timeSeriesData),\n ...find(propEq('group', group), anomalyData)\n }))\n )([...timeSeriesData, ...anomalyData]);\n };\nexport const getTimeRangeDates = (period: DatePeriod) => {\n const [startTimestamp, endTimeStamp] = getDateRangeByDatePeriod(period, getDQDateRangeByValue);\n const startDate = new Date(startTimestamp);\n const endDate = new Date(endTimeStamp);\n return {\n startDate: `${startDate.getFullYear()}-${prependZeroIfNeeds(startDate.getMonth() + 1)}-${prependZeroIfNeeds(\n startDate.getDate()\n )}`,\n endDate: `${endDate.getFullYear()}-${prependZeroIfNeeds(endDate.getMonth() + 1)}-${prependZeroIfNeeds(\n endDate.getDate()\n )}`\n };\n};\n\nexport const checkIsTimeSeries = (config: DQDashboardView) => config?.options?.timeSeries;\n\nexport const getChartTooltipDateTitle = (hasData: boolean, date: string) =>\n hasData ? i18n.date(date, 'MMM D, YYYY') : i18n.text('No data available');\n\nexport const hasTimeRange = (period: DatePeriod) => period !== DateRangeValue.LAST_DAY;\n\nconst getStateFromMetric = (metric: DQMetric) => {\n switch (metric) {\n case DQMetric.FILL_RATE:\n return FillRateState.EXISTS;\n case DQMetric.UNIQUENESS:\n return UniquenessAnalysisState.UNIQUE;\n }\n};\n\nconst getTodayData = (metric: DQMetric, todayChartData: ChartData[]) => {\n if (metric === DQMetric.DATA_VALIDATION)\n return todayChartData.reduce(\n (todayData, currentData) => assoc(currentData.group, currentData.value, todayData),\n {\n group: moment().format('YYYY-MM-DD'),\n label: i18n.date(moment(), 'MMM D')\n }\n );\n else {\n const todayChartDataWithPercent = enrichDataWithPercents(todayChartData);\n const todayOption = getStateFromMetric(metric);\n const todayData = {\n group: moment().format('YYYY-MM-DD'),\n label: i18n.date(moment(), 'MMM D'),\n [metric]: todayChartDataWithPercent.find(propEq('group', todayOption))?.percent\n };\n return todayChartData.reduce((todayDataForTimeSeries, dataItem) => {\n todayDataForTimeSeries[dataItem.group] = dataItem.value;\n return todayDataForTimeSeries;\n }, todayData);\n }\n};\n\nexport const enrichTimeSeriesDataWithTodayData = curry(\n (period: DatePeriod, todayChartData: ChartData[], metric: DQMetric, timeSeriesData: LineChartData[]) => {\n const {endDate} = getTimeRangeDates(period);\n const today = moment().format('YYYY-MM-DD');\n return endDate === today\n ? pipe(reject(propEq('group', today)), append(getTodayData(metric, todayChartData)))(timeSeriesData)\n : timeSeriesData;\n }\n);\n\nexport const getPeriodValue = (zoom: [string, string], period: DatePeriod): DatePeriod =>\n zoom ? [new Date(zoom[0]), new Date(zoom[1])] : period;\n","import React from 'react';\nimport {DQDataLevel} from '@reltio/mdm-sdk';\n\nexport const DataLevelContext = React.createContext<DQDataLevel>(null);\n\nDataLevelContext.displayName = 'DataLevelContext';\n","import {propEq, allPass} from 'ramda';\nimport {\n getLabel,\n AttributeType,\n DataTypes,\n DataValidationFunction,\n getAttributeTypesTree,\n Metadata,\n TEntityType,\n StatusVF,\n AttributeNode\n} from '@reltio/mdm-sdk';\nimport {DetailedAttributeType} from '../types/DetailedAttributeType';\n\ntype IsContainActiveVF = (dvf: DataValidationFunction[], attributeTypeUri: string) => boolean;\nexport const isContainActiveVF: IsContainActiveVF = (dvf, attributeTypeUri) =>\n (dvf || []).some(allPass([propEq('attribute', attributeTypeUri), propEq('status', StatusVF.ACTIVE)]));\n\nexport const isFloatingType = (type: string): boolean =>\n [DataTypes.TYPE_FLOAT, DataTypes.TYPE_DOUBLE, DataTypes.TYPE_NUMBER].includes(type as DataTypes);\nexport const getDVFsForAttribute = (dvfs: DataValidationFunction[], attributeTypeUri: string) =>\n (dvfs || []).filter(propEq('attribute', attributeTypeUri));\n\nexport const countEntityTypeAttributes = (metadata: Metadata, entityType: TEntityType) => {\n const attributes = getAttributeTypesTree(metadata, entityType) || [];\n const collectAttributes = (attributes: AttributeType[]) => {\n return attributes.reduce((attributesCollection: AttributeType[], attribute: AttributeNode) => {\n const children = attribute?.children;\n return children?.length\n ? [...attributesCollection, attribute, ...collectAttributes(children)]\n : [...attributesCollection, attribute];\n }, []);\n };\n return collectAttributes(attributes).length;\n};\n\nexport const getAttributeLabel = (detailedAttributeType: DetailedAttributeType) =>\n getLabel(detailedAttributeType.label || detailedAttributeType.name);\n","import {AttributeType} from '@reltio/mdm-sdk';\n\nexport enum AttrTypeDetailsType {\n INCLUDED_IN_MATCHING = 'includedInMatching',\n CONTAIN_VF = 'containVF',\n REQUIRED = 'required',\n REFERENCE = 'reference',\n RDM_LOOKUP = 'RDMLookup'\n}\n\nexport type AttrTypeDetails = Record<AttrTypeDetailsType, boolean>;\n\nexport type DetailedAttributeType = AttributeType & {\n children?: DetailedAttributeType[];\n fieldName?: string;\n isAttributeReference?: boolean;\n details?: AttrTypeDetails;\n};\n\nexport type AttributeItemType = {\n attributeItem: DetailedAttributeType;\n level: number;\n};\n","import {ChartData} from '@reltio/components';\nimport {FillRateState} from '@reltio/mdm-sdk';\nimport {curry, propEq} from 'ramda';\nimport {DetailedAttributeType} from '../types/DetailedAttributeType';\nimport {FilterOption} from '../types/FilterOption';\n\nconst filterAttributeByName = (item: DetailedAttributeType, filterText: string) =>\n (item.label || item.name)?.toLowerCase().includes(filterText.toLowerCase());\n\nexport const filterAttributeByDetails = curry((filterOptions: FilterOption[], item: DetailedAttributeType) =>\n filterOptions.some((detail) => item.details[detail.value])\n);\n\nexport const filterAttributeTreeByDetails = curry((filterOptions: FilterOption[], item: DetailedAttributeType) => {\n if (filterOptions.length === 0) return true;\n return (\n filterAttributeByDetails(filterOptions, item) ||\n item.children?.some((child) => filterAttributeTreeByDetails(filterOptions, child))\n );\n});\n\nexport const filterAttributeByNotEmpty = curry(\n (fillRates: Record<string, ChartData[]>, item: DetailedAttributeType) => {\n const fillRate = fillRates[item.fieldName];\n return fillRate?.find(propEq('group', FillRateState.EXISTS))?.value;\n }\n);\n\nexport const filterAttributesTypesByName = curry((filterText: string, array: DetailedAttributeType[]) => {\n return array.reduce((resultArray, currentItem) => {\n const isCurrentItemMatch = filterAttributeByName(currentItem, filterText);\n const children = isCurrentItemMatch\n ? currentItem.children || []\n : filterAttributesTypesByName(filterText, currentItem.children || []);\n if (isCurrentItemMatch || children.length)\n resultArray.push(Object.assign({}, currentItem, children.length && {children}));\n return resultArray;\n }, []);\n});\n","import {chain, curry, pipe, prop, propEq} from 'ramda';\nimport i18n from 'ui-i18n';\nimport {\n Metadata,\n TEntityType,\n getAttributeTypesTree,\n attributeUriToSearchUri,\n isReference,\n DataValidationFunction,\n isRDMLookupAttrType,\n FillRateState,\n DQChartsData\n} from '@reltio/mdm-sdk';\nimport {isContainActiveVF} from './attributes';\nimport {\n AttributeItemType,\n DetailedAttributeType,\n AttrTypeDetails,\n AttrTypeDetailsType\n} from '../types/DetailedAttributeType';\n\nimport {filterAttributesTypesByName} from './attributeFilters';\nimport {ChartData} from '@reltio/components';\n\ntype GetAttrTypeDetailsParams = {\n attrTypeItem: DetailedAttributeType;\n dvf: DataValidationFunction[];\n matchAttributes: string[];\n};\n\nexport const getAttrTypeDetails = ({\n attrTypeItem,\n dvf = [],\n matchAttributes = []\n}: GetAttrTypeDetailsParams): AttrTypeDetails => {\n const {uri, required, isAttributeReference} = attrTypeItem;\n\n return {\n [AttrTypeDetailsType.INCLUDED_IN_MATCHING]: matchAttributes.includes(uri),\n [AttrTypeDetailsType.CONTAIN_VF]: isContainActiveVF(dvf, uri),\n [AttrTypeDetailsType.REQUIRED]: !!required,\n [AttrTypeDetailsType.REFERENCE]: isAttributeReference,\n [AttrTypeDetailsType.RDM_LOOKUP]: isRDMLookupAttrType(attrTypeItem)\n };\n};\n\nexport const getDetailLabel = (attributeDetailType: string): string => {\n const detailLabels = {\n [AttrTypeDetailsType.INCLUDED_IN_MATCHING]: i18n.text('Included in match rule'),\n [AttrTypeDetailsType.CONTAIN_VF]: i18n.text('Has validation functions'),\n [AttrTypeDetailsType.REQUIRED]: i18n.text('Required'),\n [AttrTypeDetailsType.REFERENCE]: i18n.text('Reference attribute'),\n [AttrTypeDetailsType.RDM_LOOKUP]: i18n.text('RDM')\n };\n\n return detailLabels[attributeDetailType] || attributeDetailType;\n};\n\nconst buildItems = curry(\n (items: DetailedAttributeType[], parents = [], isAttributeReference = false, level = 0): AttributeItemType[] =>\n pipe(\n chain((item: DetailedAttributeType) => {\n const childrenItems = item.children\n ? buildItems(\n item.children,\n parents.concat({name: item.name, label: item.label}),\n isAttributeReference || isReference(item),\n level + 1\n )\n : [];\n\n return [\n {\n attributeItem: {\n ...item,\n fieldName: attributeUriToSearchUri(item.uri, parents),\n isAttributeReference: isReference(item) || isAttributeReference\n },\n level\n },\n ...childrenItems\n ];\n })\n )(items)\n);\n\ntype CollectAttributeItemsFn = (\n filterText: string\n) => (metadata: Metadata, entityType: TEntityType) => AttributeItemType[];\n\nexport const collectFilteredAttributeItems: CollectAttributeItemsFn = (filterText: string) =>\n pipe(getAttributeTypesTree, filterAttributesTypesByName(filterText), buildItems);\n\nexport const checkIsDataQualitativeForSummary = (data: DQChartsData) => data?.fillRate?.[FillRateState.MISSING] === 0;\n\nexport const checkIsDataQualitativeForAttributeList = (data: ChartData[]) =>\n data?.find(propEq('group', FillRateState.MISSING))?.value === 0;\n\nexport const isReferenceChild = prop('isAttributeReference');\n","import {useCallback, useEffect, useMemo, useState} from 'react';\nimport {omit, pathOr, pipe, keys, path, length, ifElse, has} from 'ramda';\nimport {RequestStates} from '@reltio/components';\nimport {\n getDQChartsData,\n DQChartsData,\n TEntityType,\n getLastUriPart,\n FilterOptions,\n buildFilterQueryString,\n generateValuableQueryString,\n getFacets,\n ActivityFilters,\n DQDataLevel,\n DQMetric\n} from '@reltio/mdm-sdk';\nimport {useSafePromise} from '@reltio/components';\nimport {DetailedAttributeType} from '../types/DetailedAttributeType';\nimport {useRefreshAction} from '../contexts/ReloadFacetContext';\n\nexport type UseChartsDataRequestProps = {\n entityType: TEntityType;\n detailedAttributeType?: DetailedAttributeType;\n dataLevel: DQDataLevel;\n metrics?: DQMetric[];\n};\n\nexport const useChartsDataRequest = ({\n entityType,\n detailedAttributeType,\n dataLevel,\n metrics\n}: UseChartsDataRequestProps) => {\n const [requestState, setRequestState] = useState<RequestStates>(RequestStates.INIT);\n const [chartsData, setChartsData] = useState<DQChartsData>({});\n const attributeFieldName = detailedAttributeType?.fieldName;\n const entityTypeUri = entityType?.uri;\n const safePromise = useSafePromise();\n\n const onError = (error) => {\n console.error(error); // eslint-disable-line\n setRequestState(RequestStates.ERROR);\n setChartsData({});\n };\n\n const onRequestFinished = (data: DQChartsData) => {\n setChartsData(data);\n setRequestState(RequestStates.LOADED);\n };\n\n const loadChartsData = useCallback(async () => {\n if (!entityTypeUri) return;\n setRequestState(RequestStates.LOADING);\n setChartsData({});\n\n if (dataLevel === DQDataLevel.ENTITY_TYPE) {\n const filter = buildFilterQueryString()([\n {\n fieldName: 'type',\n filter: FilterOptions.EQUALS,\n values: [entityTypeUri]\n }\n ]);\n\n const getActiveProfiles = getFacets({\n query: generateValuableQueryString({activeness: ActivityFilters.ACTIVE_ONLY, filter}),\n body: [{fieldName: 'type', pageSize: 101, pageNo: 1}]\n });\n\n const getInactiveProfiles = getFacets({\n query: generateValuableQueryString({activeness: ActivityFilters.INACTIVE_ONLY, filter}),\n body: [{fieldName: 'type', pageSize: 101, pageNo: 1}]\n });\n const getDqChartsData = getDQChartsData({\n entityTypeUri,\n dataLevel,\n metrics\n });\n\n safePromise(Promise.all([getActiveProfiles, getInactiveProfiles, getDqChartsData]))\n .then(([activeProfiles, inactiveProfiles, dqChartsData]) => {\n const sourceSystems = pipe(\n path(['consolidationRate', 'totalCrosswalksBySource']),\n omit(['ReltioCleanser']),\n keys,\n length\n )(dqChartsData);\n\n onRequestFinished({\n ...dqChartsData,\n summary: {\n inactiveProfiles: inactiveProfiles.type?.[getLastUriPart(entityTypeUri)],\n activeProfiles: activeProfiles.type?.[getLastUriPart(entityTypeUri)],\n sourceSystems\n }\n });\n })\n .catch(onError);\n } else {\n if (!attributeFieldName) return;\n safePromise(\n getDQChartsData({\n entityTypeUri,\n attributes: [attributeFieldName],\n dataLevel,\n metrics\n })\n )\n .then(\n pipe(\n pathOr({}, ['statistic', attributeFieldName]),\n ifElse(has('error'), onError, onRequestFinished)\n )\n )\n .catch(onError);\n }\n }, [setRequestState, setChartsData, safePromise, attributeFieldName, entityTypeUri, dataLevel, metrics]);\n\n const refreshAction = useRefreshAction({\n action: loadChartsData,\n dataLevel\n });\n\n useEffect(() => {\n refreshAction();\n }, [refreshAction]);\n\n const chartsDataResult = useMemo(\n () => ({data: chartsData, state: requestState, reload: refreshAction}),\n [chartsData, requestState, refreshAction]\n );\n\n return chartsDataResult;\n};\n","import {makeStyles} from '@material-ui/core/styles';\n\ntype Props = {\n color?: string;\n};\n\nexport const useStyles = makeStyles({\n label: {\n whiteSpace: 'nowrap',\n paddingRight: '9px'\n },\n infoDataLabel: {\n fontWeight: 700\n },\n chartDataLabel: {\n color: 'rgba(255, 255, 255, 0.75)'\n },\n anomalyTitle: ({color}: Props) => ({\n width: '10px',\n height: '10px',\n backgroundColor: color,\n opacity: 0.12\n }),\n anomalyTitleBackground: {\n width: '10px',\n height: '10px',\n backgroundColor: '#fff',\n position: 'absolute',\n top: 0,\n left: 0\n },\n anomalyTitleWrapper: {\n width: '10px',\n height: '10px',\n position: 'relative',\n display: 'inline-block',\n marginRight: '-3px'\n },\n anomalyValue: {\n paddingLeft: '16px'\n },\n row: {\n padding: '2px 0'\n }\n});\n","import React from 'react';\nimport classnames from 'classnames';\nimport {useStyles} from './styles';\n\ntype Props = {\n label?: React.ReactNode;\n value?: React.ReactNode;\n};\n\nconst InfoDataRenderer = ({label, value}: Props) => {\n const styles = useStyles({});\n\n return (\n <>\n {label && <span className={classnames(styles.label, styles.infoDataLabel)}>{label}</span>}\n {value}\n </>\n );\n};\n\nexport default InfoDataRenderer;\n","import React from 'react';\nimport classnames from 'classnames';\nimport {useStyles} from './styles';\n\ntype Props = {\n label?: React.ReactNode;\n value?: React.ReactNode;\n};\n\nconst ChartDataRenderer = ({label, value}: Props) => {\n const styles = useStyles({});\n\n return (\n <>\n {label && <span className={classnames(styles.label, styles.chartDataLabel)}>{label}</span>}\n {value}\n </>\n );\n};\n\nexport default ChartDataRenderer;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n tooltipWrapper: {\n fontSize: '10px',\n fontWeight: 400,\n lineHeight: '12px',\n color: '#FFFFFF'\n },\n title: {\n padding: '2px 0'\n },\n row: {\n padding: '2px 0'\n }\n});\n","import React from 'react';\nimport ChartDataRenderer from './data-renderers/ChartDataRenderer';\nimport {useStyles} from './styles';\n\ntype Data = {\n label?: React.ReactNode;\n value?: React.ReactNode;\n};\n\ntype Props = {\n data: Data[];\n title?: string;\n DataRenderer?: React.ComponentType<Data>;\n children?: React.ReactNode;\n};\n\nconst ChartDataTooltip = ({data, title, DataRenderer = ChartDataRenderer, children}: Props) => {\n const styles = useStyles();\n\n return (\n <div className={styles.tooltipWrapper}>\n {title && <div className={styles.title}>{title}</div>}\n {data.map((data, index) => (\n <div key={index} className={styles.row}>\n <DataRenderer {...data} />\n </div>\n ))}\n {children}\n </div>\n );\n};\n\nexport default ChartDataTooltip;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n fillRateSquare: {\n height: '8px',\n width: '8px',\n display: 'inline-block',\n marginRight: '5px',\n verticalAlign: 'middle'\n }\n});\n","import React from 'react';\nimport {isNil} from 'ramda';\n\nimport i18n from 'ui-i18n';\nimport {ChartData} from '@reltio/components';\n\nimport {getPercentLabel} from '../../../services/charts';\n\nimport ChartDataTooltip from '../ChartDataTooltip';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n data: ChartData[];\n getColor: (group: string) => string;\n title?: string;\n};\n\nconst getValueLabel = ({value, percent}: {value: number; percent?: number}) =>\n isNil(percent) ? i18n.number(value) : `(${i18n.number(value)})`;\n\nconst TooltipWithSquares = ({data, title, getColor}: Props) => {\n const styles = useStyles();\n\n const tooltipData = data.map(({label, percent, value, group}) => ({\n label: (\n <span>\n <div className={styles.fillRateSquare} style={{background: getColor(group)}}></div>\n {label}\n </span>\n ),\n value: `${getPercentLabel(percent)} ${getValueLabel({value, percent})}`\n }));\n\n return <ChartDataTooltip title={title} data={tooltipData} />;\n};\n\nexport default TooltipWithSquares;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles(() => ({\n root: {\n padding: '0px 16px'\n },\n title: {\n fontSize: '16px',\n marginRight: '5px',\n lineHeight: '24px'\n },\n infoIcon: {\n position: 'relative'\n }\n}));\n","import React from 'react';\nimport {BasicViewHeader, SmallIconButtonWithTooltip, HideOnShrink, VerticalDivider} from '@reltio/components';\nimport InfoIcon from '@material-ui/icons/InfoOutlined';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n title: string;\n infoTooltipTitle?: React.ReactNode;\n children?: React.ReactNode;\n};\n\nconst DQLayoutItemHeader = ({title, infoTooltipTitle, children}: Props) => {\n const hasInfoIcon = !!infoTooltipTitle;\n const hasChildren = !!children;\n const styles = useStyles(hasChildren);\n return (\n <BasicViewHeader\n title={title}\n className={styles.root}\n classes={{\n title: styles.title\n }}\n >\n {hasInfoIcon && (\n <SmallIconButtonWithTooltip\n icon={InfoIcon}\n size=\"XXS\"\n tooltipTitle={infoTooltipTitle}\n className={styles.infoIcon}\n />\n )}\n {hasChildren && (\n <HideOnShrink widthToHide={250}>\n <VerticalDivider height={24} margin={16} />\n {children}\n </HideOnShrink>\n )}\n </BasicViewHeader>\n );\n};\n\nexport default DQLayoutItemHeader;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles(() => ({\n view: {\n flex: 1,\n width: '100%',\n height: '100%',\n overflow: 'hidden'\n }\n}));\n","import React, {useContext} from 'react';\nimport {BasicView} from '@reltio/components';\n\nimport {DQDashboardView} from '../../types/DQDashboardView';\nimport {DataLevelContext} from '../../contexts/DataLevelContext';\nimport {usePeriod} from '../../contexts/DateRangesProvider';\nimport {hasTimeRange} from '../../services/mlDq';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n config: DQDashboardView;\n children: React.ReactNode;\n};\n\nconst DQLayoutItemView = ({config, children}: Props) => {\n const styles = useStyles();\n const {type} = config;\n const dataLevel = useContext(DataLevelContext);\n const {period} = usePeriod();\n const dataReltioId = hasTimeRange(period)\n ? `reltio-dq-dashboard-chart-time-series-${type}-${dataLevel}`\n : `reltio-dq-dashboard-chart-${type}-${dataLevel}`;\n\n return (\n <BasicView className={styles.view} data-reltio-id={dataReltioId}>\n {children}\n </BasicView>\n );\n};\n\nexport default DQLayoutItemView;\n","import {always, converge, curry, identity, pipe, propOr, map, reduce, sortBy, toPairs, when} from 'ramda';\nimport {\n getChartItemColor,\n FillRateState,\n DQChartsData,\n FillRateData,\n FilterOptions,\n TimeSeriesAnomalyValues,\n TimeSeriesAnomalyValue,\n TimeSeriesStatisticValues\n} from '@reltio/mdm-sdk';\nimport {ChartData} from '@reltio/components';\nimport {getSearchState, localizeChartValues, isEmptyData} from './charts';\nimport i18n from 'ui-i18n';\n\nconst FillRateChartColors = {\n [FillRateState.MISSING]: '#CE5C00',\n [FillRateState.EXISTS]: '#C4CE00'\n};\n\nexport const getFillRateColorByState = (state: FillRateState) => FillRateChartColors[state] || getChartItemColor(state);\n\nexport const getFillRateColors: (chartsData: ChartData[]) => string[] = map(({group}) =>\n getFillRateColorByState(group)\n);\n\nexport const getLabelFromState = (state: FillRateState) => {\n const FillRateStateLabels = {\n [FillRateState.MISSING]: i18n.text('Missing'),\n [FillRateState.EXISTS]: i18n.text('Exists')\n };\n\n return FillRateStateLabels[state] || state;\n};\n\nconst getFillRateStateIndexFromData = (data: ChartData) =>\n Object.values(FillRateState).indexOf(data.group as FillRateState);\n\ntype FormatFillRateDataFn = (fillRateData: FillRateData) => ChartData[];\nexport const formatFillRateData = pipe(\n Object.entries,\n map(([state, value]) => ({label: getLabelFromState(state), group: state, value})),\n sortBy(getFillRateStateIndexFromData),\n localizeChartValues\n) as FormatFillRateDataFn;\n\ntype FillRateStatistic = {\n statistic: Record<string, DQChartsData>;\n};\nexport const formatFillRatesData: (fillRates: FillRateStatistic) => Record<string, ChartData[]> = pipe(\n propOr({}, 'statistic'),\n toPairs,\n reduce((result, [key, value]) => {\n if (value?.fillRate) result[key] = formatFillRateData(value.fillRate);\n return result;\n }, {})\n);\n\ntype GetFillRateDataFn = (\n chartsData: DQChartsData | TimeSeriesAnomalyValues | TimeSeriesStatisticValues\n) => FillRateData | TimeSeriesAnomalyValue;\nexport const getFillRateData: GetFillRateDataFn = propOr({}, 'fillRate');\n\ntype GetFillRateChartDataFn = (chartsData: DQChartsData) => {\n chartData: ChartData[];\n colors: string[];\n};\nexport const getFillRateChartData: GetFillRateChartDataFn = pipe(\n getFillRateData,\n formatFillRateData,\n when(isEmptyData, always([])),\n converge(\n (chartData: ChartData, colors: string[]) => ({\n chartData,\n colors\n }),\n [identity, getFillRateColors]\n )\n);\n\nconst getFillRateFilter = curry(({fieldName}: {fieldName: string}, state: FillRateState) => [\n {\n filter: state === FillRateState.EXISTS ? FilterOptions.EXISTS : FilterOptions.MISSING_VALUE,\n fieldName\n }\n]);\nexport const getFillRateSearchState = getSearchState(getFillRateFilter);\n","import {useMemo} from 'react';\n\nimport {DQChartsData} from '@reltio/mdm-sdk';\n\nimport {useChartsDataContext} from '../contexts/ChartsDataProvider';\n\nexport const useChartData = <T>(getChartData: (chartsData: DQChartsData) => T) => {\n const {\n chartsData: {data: chartsData, state, reload}\n } = useChartsDataContext();\n const data = useMemo(() => getChartData(chartsData), [chartsData, getChartData]);\n return useMemo(() => ({data, state, reload}), [data, state, reload]);\n};\n","import {AdditionalFilterOptionsValues, FilterOptions, SearchState} from '@reltio/mdm-sdk';\nimport {getAdvancedSearchFilter} from './advancedFilters';\n\nexport const RawFilterFields = {\n DAY_OF_WEEK: 'day_of_week',\n DAY_OF_MONTH: 'day_of_month',\n MONTH: 'month',\n LENGTH: 'length',\n CROSSWALK_SOURCES: 'crosswalk_sources',\n PATTERN: 'pattern'\n};\n\ntype GetRawFilterSearchState = {\n keyword: string;\n entityTypeUri: string;\n};\nconst getRawFilterSearchState = ({keyword, entityTypeUri}: GetRawFilterSearchState): SearchState => ({\n keyword: {\n value: keyword,\n isRawFilter: true\n },\n advanced: [getAdvancedSearchFilter(entityTypeUri)],\n searchOptions: {\n searchByOv: false,\n ovOnly: false\n },\n version: '2.0'\n});\ntype GetRangeRawFilterSearchState = {\n fieldName: string;\n startRange: string;\n endRange: string;\n entityTypeUri: string;\n};\n\nexport const getExcludedEntityTypesRawFilter = (entityTypesUris: string[] = []) =>\n entityTypesUris.length > 0\n ? `(${AdditionalFilterOptionsValues.NOT_LIST_EQUALS}(type, ${entityTypesUris.join(',')}))`\n : '';\n\nexport const getRangeRawFilterSearchState = ({\n fieldName,\n startRange,\n endRange,\n entityTypeUri\n}: GetRangeRawFilterSearchState): SearchState =>\n getRawFilterSearchState({\n keyword: `${FilterOptions.IN_RANGE}(${fieldName}, ${startRange}, ${endRange})`,\n entityTypeUri\n });\n\ntype GetEqualsRawFilterSearchState = {\n fieldName: string;\n value: string;\n entityTypeUri: string;\n};\nexport const getEqualsRawFilterSearchState = ({\n fieldName,\n value,\n entityTypeUri\n}: GetEqualsRawFilterSearchState): SearchState =>\n getRawFilterSearchState({\n keyword: `${FilterOptions.EQUALS}(${fieldName}, ${value})`,\n entityTypeUri\n });\n","import {assoc, curry, pipe} from 'ramda';\nimport {useDispatch, useSelector} from 'react-redux';\n\nimport mdmModule, {ui, search} from '@reltio/mdm-module';\nimport {ActivityFilter, getDescendantEntityTypes, Metadata, SearchState} from '@reltio/mdm-sdk';\n\nimport {useEntityAndAttributeType} from '../contexts/EntityAndAttributeTypeProvider';\nimport {getExcludedEntityTypesRawFilter} from '../services/rawFilters';\nimport type {GetSearchStateProps} from '../types/GetSearchStateProps';\n\nconst excludeDescendantEntityTypes = curry((metadata: Metadata, entityTypeUri: string, searchState: SearchState) => {\n const descendantEntityTypes: string[] = getDescendantEntityTypes(metadata, entityTypeUri);\n const entityTypesFilter = getExcludedEntityTypesRawFilter(descendantEntityTypes);\n const currentRawFilter = searchState?.keyword?.value;\n if (entityTypesFilter) {\n const newRawFilter = currentRawFilter ? `(${currentRawFilter}) and ${entityTypesFilter}` : entityTypesFilter;\n return assoc(\n 'keyword',\n {\n value: newRawFilter,\n isRawFilter: true\n },\n searchState\n );\n } else return searchState;\n});\n\ntype GetSearchStateFn = (props: GetSearchStateProps) => (group: string, activityFilter?: ActivityFilter) => SearchState;\nexport const useSearchRedirect = (\n getSearchState: GetSearchStateFn\n): ((group: string, activityFilter?: ActivityFilter) => void) => {\n const dispatch = useDispatch();\n const metadata: Metadata = useSelector(mdmModule.selectors.getMetadata);\n const {detailedAttributeType, entityType} = useEntityAndAttributeType();\n return (group, activityFilter = ActivityFilter.ACTIVE_ONLY) => {\n dispatch(search.actions.activityFilterUpdated(activityFilter));\n pipe(\n getSearchState({detailedAttributeType, entityTypeUri: entityType.uri}),\n excludeDescendantEntityTypes(metadata, entityType.uri),\n ui.actions.openSearch,\n dispatch\n )(group);\n };\n};\n","export enum EmptyStateVariants {\n SMALL = 'small',\n MEDIUM = 'medium',\n LARGE = 'large'\n}\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles((theme) => ({\n container: ({height}: {height: number}) => ({\n height: '100%',\n display: 'flex',\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n color: 'rgba(0, 0, 0, 0.54)',\n margin: '0 auto',\n paddingBottom: height > 239 ? '30px' : 0,\n boxSizing: 'border-box'\n }),\n small: {\n '& $icon': {\n maxHeight: '88px'\n },\n '& $message': {\n fontSize: '12px'\n },\n '& $title': {\n fontSize: '13px',\n fontWeight: 400,\n marginBottom: 0\n },\n '& $refreshButton': {\n marginTop: '2px',\n padding: 0\n }\n },\n medium: {\n '& $icon': {\n maxHeight: '190px',\n marginBottom: '24px'\n }\n },\n large: {\n '& $icon': {\n height: '256px',\n width: '256px',\n marginBottom: '24px'\n }\n },\n icon: ({height}: {height: number}) => ({\n paddingTop: 0,\n marginBottom: height > 170 ? '16px' : '4px'\n }),\n message: {\n padding: '0 24px',\n fontSize: '14px',\n textAlign: 'center',\n whiteSpace: 'pre-wrap'\n },\n title: {\n padding: '0 24px',\n fontSize: '20px',\n textAlign: 'center',\n color: 'rgba(0,0,0,0.87)',\n fontWeight: 500,\n marginBottom: '8px'\n },\n refreshButton: {\n color: theme.palette.primary.main,\n marginTop: '12px',\n padding: '6px 8px'\n },\n refreshIcon: {\n width: '24px',\n height: '24px'\n }\n}));\n","import React from 'react';\nimport i18n from 'ui-i18n';\nimport {Button as Button} from '@material-ui/core';\nimport {Typography as Typography} from '@material-ui/core';\nimport ReplayIcon from '@material-ui/icons/Replay';\nimport {ErrorData} from '../../types/ErrorData';\nimport {EMPTY_STATE_ICONS} from '@reltio/components';\nimport {EmptyStateVariants} from '../../types/EmptyStateVariants';\nimport classnames from 'classnames';\nimport {useStyles} from './styles';\n\ntype Props = {\n errorData?: ErrorData;\n onRefresh?: () => void;\n height?: number;\n variant?: EmptyStateVariants;\n};\n\nconst defaultIcon = EMPTY_STATE_ICONS.ERROR;\n\nconst DQDashboardError = ({onRefresh, height, errorData = {}, variant = EmptyStateVariants.SMALL}: Props) => {\n const {Icon = defaultIcon, message, title} = errorData;\n const styles = useStyles({height});\n return (\n <div className={classnames(styles.container, styles[`${variant}`])}>\n <Icon className={styles.icon} />\n {title && <Typography className={styles.title}>{title}</Typography>}\n {message && <Typography className={styles.message}>{message}</Typography>}\n {!!onRefresh && (\n <Button\n className={styles.refreshButton}\n startIcon={<ReplayIcon color=\"primary\" className={styles.refreshIcon} />}\n onClick={onRefresh}\n data-reltio-id=\"reltio-dq-dashboard-chart-refresh-button\"\n >\n <Typography variant=\"button\">{i18n.text('Refresh')}</Typography>\n </Button>\n )}\n </div>\n );\n};\n\nexport default DQDashboardError;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles(() => ({\n viewContent: {\n height: '100%',\n overflow: 'hidden',\n position: 'relative',\n padding: '0 16px 10px'\n }\n}));\n","import classnames from 'classnames';\nimport React from 'react';\nimport ReactResizeDetector from 'react-resize-detector';\nimport i18n from 'ui-i18n';\nimport {BasicViewContent, ErrorBoundary, EMPTY_STATE_ICONS, RequestStates} from '@reltio/components';\nimport {DashboardLinearLoader} from '@reltio/dashboard';\nimport DQDashboardError from '../DQDashboardError/DQDashboardError';\nimport {EmptyStateVariants} from '../../types/EmptyStateVariants';\nimport {useStyles} from './styles';\n\ntype ChildrenProps<T> = {data: T[]; width: number; height: number};\n\ntype Props<T> = {\n loadingState: RequestStates;\n children: (props: ChildrenProps<T>) => React.ReactNode;\n onRefresh: () => void;\n data: T[];\n className?: string;\n errorData?: {\n icon?: JSX.Element;\n message?: React.ReactNode;\n title?: React.ReactNode;\n };\n};\n\nconst DQLayoutItemContent = <T extends unknown>({loadingState, onRefresh, children, data, className}: Props<T>) => {\n const styles = useStyles();\n const renderContent = ({width, height}: {width: number; height: number}) => {\n switch (loadingState) {\n case RequestStates.LOADED:\n if (!data || data.length === 0) {\n return (\n <DQDashboardError\n height={height}\n errorData={{\n Icon: EMPTY_STATE_ICONS.NO_DATA,\n message: i18n.text(\n 'Go ahead and load some data. We’ll put it on the scales and let you know here if it measures up.'\n ),\n title: i18n.text('Give us something to go on!')\n }}\n variant={EmptyStateVariants.SMALL}\n />\n );\n }\n return (\n <ErrorBoundary\n error={\n <DQDashboardError\n errorData={{message: i18n.text('Something went wrong')}}\n height={height}\n variant={EmptyStateVariants.SMALL}\n />\n }\n >\n {children({data, width, height})}\n </ErrorBoundary>\n );\n case RequestStates.LOADING:\n return <DashboardLinearLoader />;\n case RequestStates.ERROR:\n return (\n <DQDashboardError\n errorData={{\n Icon: EMPTY_STATE_ICONS.ERROR,\n message: i18n.text('No need to fret - just refresh and it will work itself out.'),\n title: i18n.text('Oops! We ran into a problem.')\n }}\n height={height}\n onRefresh={onRefresh}\n variant={EmptyStateVariants.SMALL}\n />\n );\n default:\n return <div>Loading...</div>;\n }\n };\n\n return (\n <BasicViewContent className={classnames(styles.viewContent, className)}>\n <ReactResizeDetector refreshMode=\"debounce\" refreshRate={100} handleWidth handleHeight>\n {renderContent}\n </ReactResizeDetector>\n </BasicViewContent>\n );\n};\n\nexport default DQLayoutItemContent;\n","const ANOMALY_DATA_KEY = 'anomaly';\n\nexport default ANOMALY_DATA_KEY;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n legendLabel: {\n fontSize: '13px',\n lineHeight: '18px',\n color: 'rgba(0, 0, 0, 0.54)',\n paddingRight: '8px'\n },\n legendValue: {\n fontSize: '13px',\n lineHeight: '18px',\n color: 'rgba(0, 0, 0, 0.87)'\n },\n legendHorizontal: {\n width: '100%',\n display: 'flex',\n justifyContent: 'left',\n margin: 'auto',\n flexWrap: 'wrap',\n flexDirection: 'row',\n marginBottom: 2\n },\n legendVertical: {\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n margin: 'auto',\n flexWrap: 'wrap',\n flexDirection: 'column',\n marginBottom: 2\n },\n item: {\n display: 'flex',\n alignItems: 'center',\n height: 19\n },\n itemColor: {\n width: 12,\n height: 12,\n marginRight: 9,\n flexShrink: 0\n }\n});\n","import React from 'react';\nimport {LegendPayload, LegendProps} from 'recharts';\nimport classnames from 'classnames';\n\nimport ANOMALY_DATA_KEY from '../../constants/AnomalyDataKey';\n\nimport {useStyles} from './styles';\n\nconst CustomLegend = ({payload, layout}: LegendProps) => {\n const styles = useStyles();\n return (\n <div\n className={classnames({\n [styles.legendHorizontal]: layout === 'horizontal',\n [styles.legendVertical]: layout === 'vertical'\n })}\n >\n {payload.map((item: LegendPayload & {dataKey: string}) => (\n <div key={item.id} className={styles.item}>\n <div\n style={{background: item.color, opacity: item.dataKey === ANOMALY_DATA_KEY ? 0.24 : 1}}\n className={styles.itemColor}\n />\n <span className={styles.legendLabel}> {item.value}</span>\n </div>\n ))}\n </div>\n );\n};\n\nexport default CustomLegend;\n","import React from 'react';\nimport {Legend, LegendProps} from 'recharts';\n\nimport {ChartData, withPercents} from '@reltio/components';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\n\nimport {getPercentLabel} from '../../services/charts';\n\nimport CustomLegend from './CustomLegend';\n\nimport {useStyles} from './styles';\n\ntype StackedHorizontalBarData = ChartData & {dataReltioId?: string};\n\ntype Props = LegendProps & {\n data: StackedHorizontalBarData[];\n colors: string[];\n};\n\nconst ChartLegends = ({data, colors, ...legendProps}: Props) => {\n const styles = useStyles();\n return (\n <Legend\n layout=\"vertical\"\n align=\"left\"\n verticalAlign=\"top\"\n wrapperStyle={{\n display: 'flex',\n overflowY: 'auto',\n maxHeight: '100%',\n maxWidth: '100%',\n marginTop: '13px'\n }}\n content={<CustomLegend />}\n payload={(data || []).map(({group, label, value, percent}, index) => ({\n id: group,\n type: 'square',\n color: colors[index],\n value: (\n <>\n <span className={styles.legendLabel}>{label}</span>\n <span className={styles.legendValue}>\n {`${getPercentLabel(percent)} (${formatNumberAsMetric(value, 999)})`}\n </span>\n </>\n )\n }))}\n {...legendProps}\n />\n );\n};\n\nexport default withPercents(ChartLegends);\n","import {makeStyles} from '@material-ui/core/styles';\n\nconst BarAxis = {\n content: '\"\"',\n position: 'absolute',\n background: 'rgba(0, 0, 0, 0.38)',\n width: '1px',\n height: '4px',\n bottom: '-4px',\n left: 0\n};\n\nexport const useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'column',\n height: '100%'\n },\n stackedBar: {\n width: '100%',\n display: 'flex',\n flexWrap: 'nowrap',\n marginTop: '13px',\n position: 'relative',\n '&:before': BarAxis,\n '&:after': {\n ...BarAxis,\n right: 0,\n left: 'initial'\n }\n },\n bar: {\n height: '24px',\n flexGrow: 1,\n position: 'relative',\n width: '50%',\n transition: 'width 0.7s',\n '&:hover': {\n '&:after': {\n content: '\"\"',\n background: 'rgba(0, 0, 0, 0.1)'\n }\n },\n '&:after': {\n position: 'absolute',\n top: '-3px',\n bottom: '-4px',\n left: '-3px',\n right: '-3px',\n transition: 'background 0.3s',\n zIndex: 1,\n pointerEvents: 'none'\n }\n },\n inactivePart: {\n background: '#EFEFEF'\n },\n tooltipTitle: {\n fontSize: '11px'\n },\n tooltipFillRate: {\n marginTop: '4px'\n },\n tooltip: {\n background: '#fff',\n filter:\n 'drop-shadow(0px 4px 5px rgba(0, 0, 0, 0.14)) drop-shadow(0px 1px 10px rgba(0, 0, 0, 0.12)) drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.2))',\n padding: '5px 8px'\n },\n legendWrapper: {\n position: 'relative',\n flexGrow: 1\n },\n legendLabel: {\n fontSize: '13px',\n lineHeight: '18px',\n color: 'rgba(0, 0, 0, 0.54)',\n paddingRight: '8px'\n },\n legendValue: {\n fontSize: '13px',\n lineHeight: '18px',\n color: 'rgba(0, 0, 0, 0.87)'\n },\n clickable: {\n cursor: 'pointer'\n },\n rangeWrapper: {\n display: 'flex',\n justifyContent: 'space-between',\n marginTop: '4px'\n },\n rangeValue: {\n color: 'rgba(0, 0, 0, 0.54)',\n fontSize: '12px'\n }\n});\n","import React, {forwardRef} from 'react';\nimport classnames from 'classnames';\nimport {useStyles} from './styles';\n\nconst Bar = forwardRef(\n ({className, ...props}: React.HTMLAttributes<HTMLDivElement>, ref: React.RefObject<HTMLDivElement>) => {\n const styles = useStyles();\n return <div className={classnames(styles.bar, className)} {...props} ref={ref} />;\n }\n);\nBar.displayName = 'Bar';\n\nexport default Bar;\n","import {pluck, sum, pipe} from 'ramda';\nimport classnames from 'classnames';\nimport React from 'react';\n\nimport i18n from 'ui-i18n';\nimport {ChartData, withPercents, withTooltip} from '@reltio/components';\n\nimport {getBarWidthStyle, getPercentLabel} from '../../services/charts';\n\nimport ChartDataTooltip from '../ChartDataTooltip/ChartDataTooltip';\nimport ChartLegends from '../ChartLegends/ChartLegends';\nimport Bar from './Bar';\n\nimport {useStyles} from './styles';\n\nconst BarWithTooltip = withTooltip(Bar);\n\nconst getTooltipData = ({label, value, percent}: ChartData) => [\n {\n label,\n value: `${getPercentLabel(percent)} (${i18n.number(value)})`\n }\n];\n\ntype StackedHorizontalBarData = ChartData & {dataReltioId?: string};\n\ntype Props = {\n data: StackedHorizontalBarData[];\n colors: string[];\n onItemClick?: (group: string) => void;\n classes?: Partial<Record<'bar' | 'stackedBar', string>>;\n};\n\nconst StackedHorizontalBarChart = ({data, colors, classes = {}, onItemClick}: Props) => {\n const styles = useStyles();\n const onBarClick = onItemClick && ((group: string) => onItemClick(group));\n const clickable = !!onItemClick;\n const maxValue = pipe(pluck('percent'), sum)(data);\n return (\n <div className={styles.root}>\n <div className={classnames(styles.stackedBar, classes.stackedBar)}>\n {data.map((chartData: StackedHorizontalBarData, index: number) => (\n <BarWithTooltip\n className={classnames(classes.bar, clickable && styles.clickable)}\n key={chartData.label}\n tooltipTitle={<ChartDataTooltip data={getTooltipData(chartData)} />}\n style={{...getBarWidthStyle(chartData), background: colors[index]}}\n onClick={() => onBarClick && onBarClick(chartData.group)}\n data-reltio-id={chartData.dataReltioId}\n />\n ))}\n </div>\n <div className={styles.rangeWrapper}>\n <span className={styles.rangeValue}>0</span>\n <span className={styles.rangeValue}>{i18n.number(maxValue)}</span>\n </div>\n <div className={styles.legendWrapper}>\n <ChartLegends data={data} colors={colors} />\n </div>\n </div>\n );\n};\n\nexport default withPercents(StackedHorizontalBarChart);\n","import React from 'react';\n\nimport {getFillRateChartData, getFillRateSearchState} from '../../../services/fillRate';\nimport {useChartData} from '../../../hooks/useChartData';\nimport {useSearchRedirect} from '../../../hooks/useSearchRedirect';\n\nimport DQLayoutItemContent from '../../../components/DQLayoutItemContent/DQLayoutItemContent';\nimport StackedHorizontalBarChart from '../../../components/StackedHorizontalBarChart/StackedHorizontalBarChart';\n\nconst FillRateChart = () => {\n const {data, state, reload} = useChartData(getFillRateChartData);\n const {chartData, colors} = data;\n const searchProfiles = useSearchRedirect(getFillRateSearchState);\n\n return (\n <DQLayoutItemContent data={chartData} loadingState={state} onRefresh={reload}>\n {({data}) => <StackedHorizontalBarChart data={data} colors={colors} onItemClick={searchProfiles} />}\n </DQLayoutItemContent>\n );\n};\n\nexport default FillRateChart;\n","import {useCallback, useContext, useEffect, useMemo, useRef, useState} from 'react';\nimport {useSelector} from 'react-redux';\nimport {last, head, path, pathOr, pipe, applySpec, any, includes, __} from 'ramda';\n\nimport {RequestStates, useSafePromise} from '@reltio/components';\nimport {\n DatePeriod,\n DQDataLevel,\n TimeSeriesMetric,\n getMlDqData,\n TimeSeriesData,\n TimeSeriesStatisticData,\n DQMetric\n} from '@reltio/mdm-sdk';\nimport mdmModule from '@reltio/mdm-module';\n\nimport {DQDateRangeValue} from '../types/DQDateRangeValue';\nimport {getTimeRangeDates} from '../services/mlDq';\nimport {useRefreshAction} from '../contexts/ReloadFacetContext';\nimport {ThresholdsContext} from '../contexts/ThresholdsContext';\n\ntype useMlDqDataRequestProps = {\n entityTypeUri: string;\n attributeFieldName: string;\n period?: DatePeriod;\n dataLevel?: DQDataLevel;\n metrics?: TimeSeriesMetric[];\n};\n\nconst needRefreshData = (period: DatePeriod, data: TimeSeriesStatisticData[]) => {\n const currentRange = data\n ? {\n startDate: pipe(last, path(['time', '_max_date']))(data),\n endDate: pipe(head, path(['time', '_min_date']))(data)\n }\n : null;\n\n if (currentRange) {\n const currentStartTime = new Date(currentRange.startDate);\n const currentEndTime = new Date(currentRange.endDate);\n const {startDate, endDate} = getTimeRangeDates(period);\n const startTime = new Date(startDate);\n const endTime = new Date(endDate);\n if (startTime >= currentStartTime && endTime <= currentEndTime) return false;\n }\n\n return true;\n};\n\nconst ANOMALY_METRICS = [DQMetric.FILL_RATE, DQMetric.UNIQUENESS];\n\nexport const useMlDqDataRequest = ({\n entityTypeUri,\n attributeFieldName,\n period = DQDateRangeValue.LAST_WEEK,\n dataLevel = DQDataLevel.ATTRIBUTE_TYPE,\n metrics\n}: useMlDqDataRequestProps) => {\n const [requestState, setRequestState] = useState<RequestStates>(RequestStates.INIT);\n const [timeSeriesData, setTimeSeriesData] = useState<TimeSeriesData>(null);\n const tenant: string = useSelector(mdmModule.selectors.getTenant);\n const mlDqPath: string = useSelector(mdmModule.selectors.getMlDqPath);\n const safePromise = useSafePromise();\n const oldRequestDependencies = useRef<string>();\n const showThresholds = useContext(ThresholdsContext) && any(includes(__, ANOMALY_METRICS), metrics);\n const onError = (error) => {\n console.error(error); // eslint-disable-line\n setRequestState(RequestStates.ERROR);\n setTimeSeriesData(null);\n };\n\n const onRequestFinished = (data: TimeSeriesData) => {\n setTimeSeriesData(data);\n setRequestState(RequestStates.LOADED);\n };\n\n const memoizedRequestDependencies = [attributeFieldName, entityTypeUri, dataLevel, metrics, tenant].toString();\n\n const loadChartsData = useCallback(() => {\n if (!entityTypeUri) return;\n setRequestState(RequestStates.LOADING);\n setTimeSeriesData(null);\n\n const {startDate, endDate} = getTimeRangeDates(period);\n safePromise(\n getMlDqData({\n mlDqPath,\n tenant,\n entityTypeUri,\n attribute: attributeFieldName,\n dataLevel,\n metrics,\n startDate,\n endDate,\n ...(showThresholds && {anomaly: 'prophet'})\n })\n )\n .then(\n pipe(\n applySpec({\n statisticData: pipe(pathOr({}, ['data', attributeFieldName, 'timeSeries'])),\n anomalyData: pipe(pathOr({}, ['dataAnomaly', attributeFieldName, 'timeSeries']))\n }),\n onRequestFinished\n )\n )\n .catch(onError);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [memoizedRequestDependencies, period]);\n\n const refreshAction = useRefreshAction({\n action: loadChartsData,\n dataLevel\n });\n\n useEffect(() => {\n const needRefresh = needRefreshData(period, timeSeriesData?.statisticData);\n (needRefresh || memoizedRequestDependencies !== oldRequestDependencies?.current) && refreshAction();\n oldRequestDependencies.current = memoizedRequestDependencies;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [refreshAction]);\n\n return useMemo(\n () => ({data: timeSeriesData, state: requestState, reload: refreshAction}),\n [timeSeriesData, requestState, refreshAction]\n );\n};\n","import {flatten, pipe, props, map, isNil, propEq, reject, curry, slice, findIndex, assocPath, last, path} from 'ramda';\n\nimport i18n from 'ui-i18n';\nimport {DatePeriod} from '@reltio/mdm-sdk';\n\nimport {getTimeRangeDates} from '../../services/mlDq';\nimport {LineChartData} from '../../types/LineChartData';\n\nconst getValuesFromChartData = curry((keys: string[], data: LineChartData[]) =>\n pipe(map(props(keys)), flatten, reject(isNil))(data)\n);\n\nexport const getMaxValueFromLineChartData = (keys: string[], data: LineChartData[]) =>\n pipe(getValuesFromChartData(keys), (values: number[]) => Math.max(...values))(data);\n\nexport const getMinValueFromLineChartData = (keys: string[], data: LineChartData[]) =>\n pipe(getValuesFromChartData(keys), (values: number[]) => Math.min(...values))(data);\n\nconst roundPercent = (percent: number) => Math.round(percent * 100) / 100;\n\nconst getOneLinePercentEdgeData = (data: number) => {\n if (data === 0 || data === 100)\n return {\n minYAxisValue: 0,\n maxYAxisValue: 100\n };\n const minYAxisValue = data > 50 ? roundPercent(2 * data - 100) : 0;\n const maxYAxisValue = data > 50 ? 100 : roundPercent(2 * data);\n return {\n minYAxisValue,\n maxYAxisValue\n };\n};\n\nexport const getUpdatedEdgeData = ({\n minLineChartData,\n maxLineChartData,\n isPercent\n}: {\n minLineChartData: number;\n maxLineChartData: number;\n isPercent: boolean;\n}) => {\n if (minLineChartData === maxLineChartData) {\n return isPercent\n ? getOneLinePercentEdgeData(minLineChartData)\n : {\n minYAxisValue: 'minData',\n maxYAxisValue: 'maxData'\n };\n }\n const gap = (maxLineChartData - minLineChartData) / 6;\n const updatedMinData = roundPercent(minLineChartData - gap);\n const updatedMaxData = roundPercent(maxLineChartData + gap);\n return {\n minYAxisValue: updatedMinData > 0 ? updatedMinData : 0,\n maxYAxisValue: isPercent && updatedMaxData > 100 ? 100 : updatedMaxData\n };\n};\n\nconst isLineChartDataEmpty = (data: LineChartData, keys: string[]) =>\n keys.every((key) => isNil(data[key]) || isNaN(+data[key]));\n\nexport const getEmptyAreas = (chartData: LineChartData[], keys: string[]) => {\n const getDateByIndex = (index: number) => path([index, 'group'], chartData);\n const extendArea = (areas: Record<'start' | 'end', number>[], index: number) => {\n const lastArea = last(areas);\n const endDate = getDateByIndex(index === chartData.length - 1 ? index : index + 1);\n\n return (lastArea && getDateByIndex(index) !== lastArea.end) || areas?.length === 0\n ? areas.concat({\n start: getDateByIndex(index === 0 ? index : index - 1),\n end: endDate\n })\n : assocPath([areas.length - 1, 'end'], endDate, areas);\n };\n\n return chartData.reduce((emptyAreas, data, index) => {\n return isLineChartDataEmpty(data, keys) ? extendArea(emptyAreas, index) : emptyAreas;\n }, []);\n};\n\nexport const XAxisTickFormatter = (value: number) => i18n.date(value, 'MMM D');\n\nexport const getZoomedData = (data: LineChartData[], dateRange: DatePeriod): LineChartData[] => {\n if (data.length === 1) return data;\n const {startDate, endDate} = getTimeRangeDates(dateRange);\n const indexStart = findIndex(propEq('group', startDate), data);\n const indexEnd = findIndex(propEq('group', endDate), data) + 1;\n return data && dateRange ? slice(indexStart, indexEnd, data) : data;\n};\n","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"20\",\n height: \"20\",\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"path\", {\n d: \"M10 16.667A6.676 6.676 0 013.333 10 6.676 6.676 0 0110 3.333 6.675 6.675 0 0116.667 10 6.675 6.675 0 0110 16.667zm0 1.666c4.6 0 8.333-3.733 8.333-8.333S14.6 1.667 10 1.667A8.336 8.336 0 001.667 10c0 4.6 3.733 8.333 8.333 8.333zM9.167 10v3.333h1.666V10h2.5L10 6.667 6.667 10h2.5z\",\n fill: \"#7BAB52\"\n})));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"20\",\n height: \"20\",\n viewBox: \"0 0 20 20\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"path\", {\n d: \"M10 3.333A6.676 6.676 0 0116.667 10 6.675 6.675 0 0110 16.667 6.675 6.675 0 013.333 10 6.676 6.676 0 0110 3.333zm0-1.666A8.336 8.336 0 001.667 10c0 4.6 3.733 8.333 8.333 8.333S18.333 14.6 18.333 10 14.6 1.667 10 1.667zM10.833 10V6.667H9.167V10h-2.5L10 13.333 13.333 10h-2.5z\",\n fill: \"#FF1744\"\n})));","import {makeStyles} from '@material-ui/core/styles';\nimport {Theme} from '@material-ui/core';\n\nexport const useStyles = makeStyles((theme: Theme) => ({\n infoPanel: {\n display: 'flex',\n alignItems: 'center',\n gap: '10px',\n backgroundColor: 'rgba(0, 0, 0, 0.05)',\n margin: '0 0 2px',\n padding: '6px 12px 6px',\n color: theme.palette.text.secondary,\n fontSize: '13px',\n lineHeight: '20px'\n },\n info: {\n color: theme.palette.text.primary,\n fontSize: '14px'\n },\n dynamicInfo: {\n display: 'flex',\n alignItems: 'center'\n },\n dynamicInfoPositive: {\n color: '#5C922E'\n },\n dynamicInfoNegative: {\n color: '#FF1744'\n },\n dynamicIcon: {\n paddingRight: '4px'\n },\n\n percent: {\n fontWeight: 700,\n paddingRight: '4px'\n },\n\n period: {\n fontWeight: 'bold'\n }\n}));\n","import React from 'react';\nimport classnames from 'classnames';\n\nimport PositiveDynamicIcon from './positiveDynamic.svg';\nimport NegativeDynamicIcon from './negativeDynamic.svg';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n label: React.ReactNode;\n info: React.ReactNode;\n dynamicPercent?: number;\n};\n\nexport const ChartInfoPanel = ({label, info, dynamicPercent}: Props) => {\n const styles = useStyles();\n\n const isPositiveDynamic = dynamicPercent > 0;\n return (\n <div className={styles.infoPanel}>\n {label}\n <span className={styles.info}>{info}</span>\n {!!dynamicPercent && (\n <span\n className={classnames(styles.dynamicInfo, {\n [styles.dynamicInfoPositive]: isPositiveDynamic,\n [styles.dynamicInfoNegative]: !isPositiveDynamic\n })}\n >\n {isPositiveDynamic ? (\n <PositiveDynamicIcon className={styles.dynamicIcon} />\n ) : (\n <NegativeDynamicIcon className={styles.dynamicIcon} />\n )}\n {Math.abs(dynamicPercent).toFixed(2)}%\n </span>\n )}\n </div>\n );\n};\n\nexport default ChartInfoPanel;\n","import React, {useMemo} from 'react';\nimport {last, pipe, pluck, slice, reject, isNil} from 'ramda';\nimport moment from 'moment';\n\nimport i18n from 'ui-i18n';\nimport {DatePeriod, formatNumberAsMetric, getDateRangeByValue} from '@reltio/mdm-sdk';\n\nimport {TimeSeriesChartData} from '../../types/TimeSeriesChartData';\nimport {getZoomedData} from '../LineChart/helpers';\n\nimport ChartInfoPanel from './ChartInfoPanel';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n dateRange: DatePeriod;\n infoLabel: string;\n dataKey: string;\n chartData: TimeSeriesChartData[];\n percentKey: string;\n};\n\nconst getDynamicPercent = (chartData: TimeSeriesChartData[], percentKey: string): number => {\n const filteredData = pipe(pluck(percentKey), reject(isNil))(chartData);\n if (filteredData.length < 2) return 0;\n return pipe(\n slice(-2, Infinity),\n ([prevPercent, lastPercent]) => lastPercent - prevPercent,\n (percent: number) => Math.round(percent * 10000) / 10000\n )(filteredData);\n};\n\nconst TimeSeriesInfoPanel = ({dateRange, infoLabel, percentKey, dataKey, chartData}: Props) => {\n const styles = useStyles();\n\n const zoomedData = useMemo(() => getZoomedData(chartData, dateRange), [chartData, dateRange]);\n const lastChartData = last(zoomedData);\n const data = lastChartData?.[dataKey];\n const percent = lastChartData?.[percentKey];\n const dynamicPercent = percentKey && getDynamicPercent(zoomedData, percentKey);\n const lastDateOfPeriod = getDateRangeByValue(dateRange)[1];\n const dateLabel = moment().isSame(lastDateOfPeriod, 'day') ? i18n.text('Today') : i18n.date(lastDateOfPeriod);\n\n const label = (\n <>\n <span className={styles.period}>{dateLabel}:</span>\n {infoLabel}\n </>\n );\n const info = (\n <>\n <span className={styles.percent}>{percent}%</span>({formatNumberAsMetric(data, 999)})\n </>\n );\n\n return <ChartInfoPanel label={label} info={info} dynamicPercent={dynamicPercent} />;\n};\n\nexport default TimeSeriesInfoPanel;\n","import {\n always,\n applySpec,\n ascend,\n assoc,\n cond,\n curry,\n filter,\n head,\n identity,\n map,\n pathOr,\n pipe,\n prop,\n propOr,\n split,\n converge,\n concat,\n propEq,\n omit,\n sort,\n descend\n} from 'ramda';\nimport i18n from 'ui-i18n';\nimport {ChartData} from '@reltio/components';\nimport {\n DQChartsData,\n ConsolidationRateData,\n FilterOptions,\n isDateType,\n formatNumberAsMetric,\n Metadata,\n formatDataTypeValue\n} from '@reltio/mdm-sdk';\nimport {InfoPanelData} from '../types/InfoPanelData';\nimport {getSearchState, localizeChartValues} from './charts';\nimport {isFloatingType} from './attributes';\nimport {getEqualsRawFilterSearchState, getRangeRawFilterSearchState, RawFilterFields} from './rawFilters';\nimport {GetSearchStateProps} from '../types/GetSearchStateProps';\nimport {enrichChartDataWithSourceLabel} from '../services/charts';\n\nenum DAYS_OF_WEEK {\n sun,\n mon,\n tue,\n wed,\n thu,\n fri,\n sat\n}\n\nenum MONTHS {\n jan,\n feb,\n mar,\n apr,\n may,\n jun,\n jul,\n aug,\n sep,\n oct,\n nov,\n dec\n}\n\ntype GetFormattedDataForBarChartFn = (chartType: string) => (chartsData: DQChartsData) => ChartData[];\nconst getFormattedDataForBarChart: GetFormattedDataForBarChartFn = (chartType: string) =>\n pipe(\n pathOr({}, [chartType, 'data']),\n Object.entries,\n map(([item, value]) => ({label: item, group: item, value})),\n localizeChartValues\n );\n\nconst RELTIO_PROFILES = 'Reltio profiles';\nconst SOURCE_PROFILES = 'Source profiles';\n\nexport const getConsolidationRateChartData = pipe(\n pathOr({}, ['consolidationRate']),\n converge(concat, [\n pipe(prop('totalCrosswalksBySource'), omit(['ReltioCleanser']), (data) => [\n {...data, label: SOURCE_PROFILES, group: SOURCE_PROFILES}\n ]),\n pipe(prop('totalEntities'), (value) => [\n assoc(RELTIO_PROFILES, value, {label: RELTIO_PROFILES, group: RELTIO_PROFILES})\n ])\n ])\n);\n\nexport const getConsolidationRateTableData = (metadata: Metadata) =>\n pipe(\n pathOr({}, ['consolidationRate']),\n (consolidationRate: ConsolidationRateData) => {\n return Object.keys(consolidationRate?.totalCrosswalksBySource || []).reduce((data, crosswalk) => {\n return crosswalk !== 'ReltioCleanser'\n ? data.concat({\n label: crosswalk,\n group: crosswalk,\n value: consolidationRate.totalCrosswalksBySource[crosswalk]\n })\n : data;\n }, []);\n },\n enrichChartDataWithSourceLabel(metadata),\n sort(descend(prop('value')))\n );\n\nenum InfoPanelProperties {\n AVERAGE = 'avg',\n MININMUN = 'min',\n MAXIMUM = 'max',\n MEDIAN = 'median',\n NUMBER_OF_SOURCES = 'numberOfSources',\n MIN_NUMBER_OF_PROFILES = 'minNumberOfProfiles',\n MAX_NUMBER_OF_PROFILES = 'maxNumberOfProfiles',\n AVG_NUMBER_OF_PROFILES = 'avgNumberOfProfiles'\n}\n\nconst getLabelForInfoPanel = (propName: string, chartType: string) => {\n const Properties = {\n lengthStatistics: {\n [InfoPanelProperties.MEDIAN]: i18n.text('Median'),\n [InfoPanelProperties.AVERAGE]: i18n.text('Average'),\n [InfoPanelProperties.MININMUN]: i18n.text('Minimum'),\n [InfoPanelProperties.MAXIMUM]: i18n.text('Maximum')\n },\n valueDistribution: {\n [InfoPanelProperties.MEDIAN]: i18n.text('Median'),\n [InfoPanelProperties.AVERAGE]: i18n.text('Average'),\n [InfoPanelProperties.MININMUN]: i18n.text('Minimum'),\n [InfoPanelProperties.MAXIMUM]: i18n.text('Maximum')\n },\n crosswalkAnalysis: {\n [InfoPanelProperties.NUMBER_OF_SOURCES]: i18n.text('No. of source systems'),\n [InfoPanelProperties.AVG_NUMBER_OF_PROFILES]: i18n.text('Avg no. of profiles'),\n [InfoPanelProperties.MIN_NUMBER_OF_PROFILES]: i18n.text('Min no. of profiles'),\n [InfoPanelProperties.MAX_NUMBER_OF_PROFILES]: i18n.text('Max no. of profiles')\n }\n };\n\n return pathOr(null, [chartType, propName], Properties);\n};\n\ntype GetInfoPanelDataForBarChartFn = (chartType: string) => (chartsData: DQChartsData) => InfoPanelData[];\nconst getInfoPanelDataForBarChart: GetInfoPanelDataForBarChartFn = (chartType: string) =>\n pipe(\n propOr({}, chartType),\n Object.entries,\n map(([name, value]) => ({label: getLabelForInfoPanel(name, chartType), value})),\n filter(({label}) => label),\n localizeChartValues\n );\n\nconst getDataForBarChart = (chartType: string) => (chartsData: DQChartsData) => ({\n chartData: getFormattedDataForBarChart(chartType)(chartsData),\n infoPanelData: getInfoPanelDataForBarChart(chartType)(chartsData)\n});\n\nconst addIntervalBrackets = (label: string, attributeType: string, isLastItem: boolean) =>\n isFloatingType(attributeType) ? `[${label}${isLastItem ? ']' : ')'}` : label;\n\nconst getChartValueLabel = (value: number, attributeType: string) =>\n isDateType(attributeType)\n ? formatDataTypeValue({dataTypeDefinition: {type: attributeType}}, Number(value))\n : i18n.number(value);\n\nexport const convertDataWithInterval = curry(\n (\n attributeType: string,\n data: {chartData: ChartData[]; infoPanelData: InfoPanelData[]}\n ): {chartData: ChartData[]; infoPanelData: InfoPanelData[]} => {\n const getStartRangeFromChartData = pipe(prop('group'), split(' '), head, Number);\n const chartDataWithRange = data.chartData.sort(ascend(getStartRangeFromChartData)).map((dataItem, index) => {\n const [startRange, endRange = startRange] = dataItem.group.split(' ').map(Number);\n const isLastItem = index === data.chartData.length - 1;\n const label =\n startRange !== endRange\n ? addIntervalBrackets(\n `${getChartValueLabel(startRange, attributeType)} - ${getChartValueLabel(\n endRange,\n attributeType\n )}`,\n attributeType,\n isLastItem\n )\n : getChartValueLabel(startRange, attributeType);\n return {\n ...dataItem,\n label,\n group: [startRange, endRange, isLastItem ? 'last' : ''].toString()\n };\n });\n\n const infoPanelDataWithConvertedValue = data.infoPanelData.map((dataItem) => {\n const value = isDateType(attributeType)\n ? formatDataTypeValue({dataTypeDefinition: {type: attributeType}}, Number(dataItem.value))\n : formatNumberAsMetric(dataItem.value, 999);\n const localizedValue = isDateType(attributeType) ? value : dataItem.localizedValue;\n return {...dataItem, value, localizedValue};\n });\n return {infoPanelData: infoPanelDataWithConvertedValue, chartData: chartDataWithRange};\n }\n);\n\ntype GetChartDataWithInfoPanelData = (chartsData: DQChartsData) => {\n chartData: ChartData[];\n infoPanelData: InfoPanelData[];\n};\nexport const getLengthChartData: GetChartDataWithInfoPanelData = pipe(\n getDataForBarChart('lengthStatistics'),\n convertDataWithInterval('')\n);\n\nexport const getCrosswalkAnalysisData = (metadata: Metadata): GetChartDataWithInfoPanelData =>\n pipe(\n getDataForBarChart('crosswalkAnalysis'),\n applySpec({\n chartData: pipe(prop('chartData'), enrichChartDataWithSourceLabel(metadata)),\n infoPanelData: pipe(\n prop('infoPanelData'),\n map((dataItem: InfoPanelData) => assoc('value', formatNumberAsMetric(dataItem.value, 999), dataItem))\n )\n })\n );\n\nexport const getValueDistributionData = (attributeType: string): GetChartDataWithInfoPanelData =>\n pipe(getDataForBarChart('valueDistribution'), convertDataWithInterval(attributeType));\nexport const getMonthDistributionData = getDataForBarChart('monthDistribution');\nexport const getDayOfWeekDistributionData = getDataForBarChart('dayOfWeekDistribution');\nexport const getDayOfMonthDistributionData = getDataForBarChart('dayOfMonthDistribution');\n\nexport const getDayOfweekDistributionSearchState = curry(\n ({detailedAttributeType, entityTypeUri}: GetSearchStateProps, dayOfWeek: string) =>\n getEqualsRawFilterSearchState({\n fieldName: `${detailedAttributeType.fieldName}.${RawFilterFields.DAY_OF_WEEK}`,\n value: DAYS_OF_WEEK[dayOfWeek.toLowerCase()],\n entityTypeUri\n })\n);\n\nexport const getMonthDistributionSearchState = curry(\n ({detailedAttributeType, entityTypeUri}: GetSearchStateProps, month: string) =>\n getEqualsRawFilterSearchState({\n fieldName: `${detailedAttributeType.fieldName}.${RawFilterFields.MONTH}`,\n value: MONTHS[month.toLowerCase()],\n entityTypeUri\n })\n);\n\nexport const getDayOfMonthDistributionSearchState = curry(\n ({detailedAttributeType, entityTypeUri}: GetSearchStateProps, dayOfMonth: string) =>\n getEqualsRawFilterSearchState({\n fieldName: `${detailedAttributeType.fieldName}.${RawFilterFields.DAY_OF_MONTH}`,\n value: dayOfMonth,\n entityTypeUri\n })\n);\n\nexport const getLengthStatisticsSearchState = curry(\n ({detailedAttributeType, entityTypeUri}: GetSearchStateProps, group: string) => {\n const [startRange, endRange] = group.split(',');\n return startRange === endRange\n ? getEqualsRawFilterSearchState({\n fieldName: `${detailedAttributeType.fieldName}.${RawFilterFields.LENGTH}`,\n value: startRange,\n entityTypeUri\n })\n : getRangeRawFilterSearchState({\n fieldName: `${detailedAttributeType.fieldName}.${RawFilterFields.LENGTH}`,\n startRange,\n endRange,\n entityTypeUri\n });\n }\n);\n\nexport const getCrosswalkAnalysisSearchState = curry(\n ({detailedAttributeType, entityTypeUri}: GetSearchStateProps, source: string) =>\n getEqualsRawFilterSearchState({\n fieldName: `${detailedAttributeType.fieldName}.${RawFilterFields.CROSSWALK_SOURCES}`,\n value: source,\n entityTypeUri\n })\n);\n\nconst getValueDistributionFilterForDate = curry(({fieldName}: {fieldName: string}, group: string) => {\n const [timestampStart, timestampEnd] = group.split(',');\n return [\n {\n filter: FilterOptions.WITHIN,\n values: [[timestampStart, timestampEnd]],\n fieldName\n }\n ];\n});\n\nconst getValueDistributionFilterForNumber = curry(({fieldName}: {fieldName: string}, group: string) => {\n const [startRange, endRange] = group.split(',');\n return [\n startRange === endRange\n ? {\n filter: FilterOptions.EQUALS,\n values: [[startRange]],\n fieldName\n }\n : {\n filter: FilterOptions.IN_RANGE,\n values: [[startRange, endRange]],\n fieldName\n }\n ];\n});\n\nconst getValueDistributionFilterForFloat = curry(({fieldName}: {fieldName: string}, group: string) => {\n const [startRange, endRange, lastItem] = group.split(',');\n\n const isSingleValue = startRange === endRange;\n\n const filter: {\n filter: string;\n values: string[][] | string[];\n fieldName: string;\n }[] = isSingleValue\n ? [\n {\n filter: FilterOptions.EQUALS,\n values: [[startRange]],\n fieldName\n }\n ]\n : [\n {\n filter: FilterOptions.IN_RANGE,\n values: [[startRange, endRange]],\n fieldName\n }\n ];\n !lastItem &&\n !isSingleValue &&\n filter.push({\n filter: FilterOptions.NOT_EQUALS,\n values: [[endRange]],\n fieldName\n });\n return filter;\n});\n\nexport const getValueDistributionSearchState = cond([\n [isDateType, always(getSearchState(getValueDistributionFilterForDate))],\n [isFloatingType, always(getSearchState(getValueDistributionFilterForFloat))],\n [identity, always(getSearchState(getValueDistributionFilterForNumber))]\n]);\n\nconst getConsolidationRateFilter = curry((_, source: string) =>\n source === RELTIO_PROFILES\n ? []\n : [\n {\n filter: FilterOptions.EQUALS,\n fieldName: 'sourceSystems',\n values: [[source]]\n }\n ]\n);\n\nexport const getConsolidationRateSearchState = getSearchState(getConsolidationRateFilter);\n\nexport const getBarOpacity = curry((selectedBar: {group: string; key: string}, key: string) => {\n return !selectedBar || propEq('key', key, selectedBar) || key === RELTIO_PROFILES ? 1 : 0.12;\n});\n\nexport const tickFormatter = (value: number) => {\n return value > 999 ? i18n.number(value, '0,0.0a').toUpperCase() : Math.round(value * 1000) / 1000;\n};\n","import {\n CartesianGridProps,\n LineProps,\n TooltipProps,\n XAxisProps,\n YAxisProps,\n ReferenceLineProps,\n LabelProps,\n AreaProps,\n LegendProps\n} from 'recharts';\nimport {tickFormatter} from '../../services/barCharts';\nimport {\n getMaxValueFromLineChartData,\n getMinValueFromLineChartData,\n getUpdatedEdgeData,\n XAxisTickFormatter\n} from './helpers';\n\ntype LineChartSettings = {\n xAxis: XAxisProps;\n yAxis: YAxisProps;\n cartesianGrid: CartesianGridProps;\n tooltip: TooltipProps;\n line: LineProps;\n referenceLine: ReferenceLineProps;\n labelForY: LabelProps;\n area: Partial<AreaProps>;\n legend: Partial<LegendProps>;\n};\n\nconst getLineChartSettings = ({lineKeys, data, isPercent}): LineChartSettings => {\n const minLineChartData = getMinValueFromLineChartData(lineKeys, data);\n const maxLineChartData = getMaxValueFromLineChartData(lineKeys, data);\n const {minYAxisValue, maxYAxisValue} = getUpdatedEdgeData({minLineChartData, maxLineChartData, isPercent});\n\n return {\n xAxis: {\n type: 'category',\n dataKey: 'group',\n tick: {\n fill: '#000',\n fontSize: '12px',\n tickMargin: '18px',\n style: {\n userSelect: 'none'\n }\n },\n angle: 0,\n textAnchor: 'middle',\n stroke: '#666',\n tickLine: false,\n dy: 8,\n tickFormatter: XAxisTickFormatter,\n interval: 'preserveStartEnd',\n scale: 'point'\n },\n yAxis: {\n dataKey: '',\n type: 'number',\n tick: {\n fill: '#000',\n fontSize: '12px',\n width: undefined,\n style: {\n userSelect: 'none'\n }\n },\n stroke: '#666',\n tickFormatter: tickFormatter,\n tickCount: 5,\n width: 59,\n tickLine: false,\n domain: [minYAxisValue, maxYAxisValue]\n },\n cartesianGrid: {\n strokeDasharray: '3 3',\n stroke: '#666',\n strokeOpacity: '0.4'\n },\n tooltip: {\n cursor: {\n fill: '#000',\n opacity: '0.1'\n }\n },\n line: {\n type: 'linear',\n dataKey: 'value',\n strokeWidth: 3,\n dot: null,\n activeDot: {stroke: 'white', strokeWidth: 2, r: 5}\n },\n referenceLine: {\n strokeDasharray: '3 3',\n stroke: '#000',\n isFront: true\n },\n labelForY: {\n angle: 270,\n position: 'left',\n offset: -3,\n style: {\n textAnchor: 'middle',\n fontSize: '10px',\n fill: 'rgba(0, 0, 0, 0.54)',\n userSelect: 'none'\n }\n },\n area: {\n activeDot: false,\n fillOpacity: '0.24',\n stroke: 'none'\n },\n legend: {\n verticalAlign: 'bottom',\n align: 'left'\n }\n };\n};\n\nexport default getLineChartSettings;\n","import {makeStyles} from '@material-ui/core/styles';\nimport {Theme} from '@material-ui/core';\n\nexport const useStyles = makeStyles((theme: Theme & {tooltip: Record<string, string | number>}) => ({\n tooltipWrapper: {\n ...theme.tooltip,\n padding: '4px 8px'\n }\n}));\n","import React, {useCallback, useState, useMemo, useContext} from 'react';\nimport {\n CartesianGrid,\n Line,\n Tooltip as ChartTooltip,\n XAxis,\n YAxis,\n TooltipProps,\n ReferenceLine,\n ReferenceArea,\n Area,\n ComposedChart,\n Legend\n} from 'recharts';\nimport {either, pluck, isNil} from 'ramda';\n\nimport {DatePeriod} from '@reltio/mdm-sdk';\n\nimport {LineChartData} from '../../types/LineChartData';\nimport getLineChartSettings from './getLineChartSettings';\nimport {getZoomedData, getEmptyAreas} from './helpers';\nimport {ThresholdsContext} from '../../contexts/ThresholdsContext';\n\nimport CustomLegend from '../ChartLegends/CustomLegend';\n\nimport {useStyles} from './styles';\nimport i18n from 'ui-i18n';\n\ntype Props = {\n data: LineChartData[];\n width: number;\n height: number;\n lineKeys: string[];\n areaKeys?: string[];\n dateRange: DatePeriod;\n getTooltip?: (payload: TooltipProps) => React.ReactNode;\n getColor?: (key: string) => string;\n yAxisLabel?: string;\n isPercent?: boolean;\n changeZoom?: (zoom: [string, string]) => void;\n};\n\nconst DEFAULT_LINE_COLOR = '#00439D';\ntype MouseEventProps = {\n activeLabel: string;\n activePayload: {value: number}[];\n isTooltipActive: boolean;\n};\n\nconst LineChart = ({\n data,\n width,\n height,\n getTooltip: getTooltipProp,\n getColor,\n lineKeys,\n areaKeys,\n yAxisLabel,\n isPercent = true,\n dateRange,\n changeZoom\n}: Props) => {\n const styles = useStyles();\n const showThresholds = useContext(ThresholdsContext);\n const {cartesianGrid, tooltip, xAxis, yAxis, line, referenceLine, labelForY, area, legend} = getLineChartSettings({\n lineKeys,\n data,\n isPercent\n });\n const getTooltip = useCallback(\n (tooltipProps: TooltipProps) => <div className={styles.tooltipWrapper}>{getTooltipProp(tooltipProps)}</div>,\n [getTooltipProp]\n );\n const [selectedDots, setSelectedDots] = useState<{\n group: string;\n values: number[];\n }>();\n const [zoomAreaStart, setZoomAreaStart] = useState<string>(null);\n const [zoomAreaEnd, setZoomAreaEnd] = useState<string>(null);\n\n const handleMouseDown = (mouseEvent: MouseEventProps) => {\n mouseEvent?.activeLabel && setZoomAreaStart(mouseEvent.activeLabel);\n };\n const handleMouseMove = (mouseEvent: MouseEventProps) => {\n if (mouseEvent.isTooltipActive && mouseEvent.activePayload) {\n setSelectedDots({\n group: mouseEvent.activeLabel,\n values: pluck('value', mouseEvent.activePayload)\n });\n } else setSelectedDots(undefined);\n zoomAreaStart && setZoomAreaEnd(mouseEvent.activeLabel);\n };\n const handleMouseLeave = () => {\n setSelectedDots(undefined);\n };\n const handleMouseUp = () => {\n zoomAreaEnd && changeZoom([zoomAreaStart, zoomAreaEnd]);\n setZoomAreaEnd(null);\n setZoomAreaStart(null);\n };\n const zoomedData = useMemo(() => getZoomedData(data, dateRange), [data, dateRange]);\n const emptyAreas = useMemo(() => getEmptyAreas(zoomedData, lineKeys), [zoomedData, lineKeys]);\n const hasZoomArea = zoomAreaStart && zoomAreaEnd;\n return (\n <ComposedChart\n width={width}\n height={height}\n data={zoomedData}\n onMouseMove={handleMouseMove}\n onMouseLeave={handleMouseLeave}\n onMouseDown={handleMouseDown}\n onMouseUp={handleMouseUp}\n margin={{\n top: 12,\n right: 20\n }}\n >\n {selectedDots && <ReferenceLine {...referenceLine} x={selectedDots.group} />}\n {selectedDots &&\n selectedDots.values.every(either(isNaN, isNil)) &&\n !hasZoomArea &&\n emptyAreas.map((emptyArea, index) => (\n <ReferenceArea x1={emptyArea.start} x2={emptyArea.end} key={index} />\n ))}\n {hasZoomArea && <ReferenceArea x1={zoomAreaStart} x2={zoomAreaEnd} strokeOpacity={0.3} />}\n <CartesianGrid {...cartesianGrid} />\n <XAxis {...xAxis} />\n <YAxis {...yAxis} label={{...labelForY, value: yAxisLabel}} />\n {lineKeys.map((key: string) => (\n <Line\n {...line}\n name={i18n.text('Actual')}\n key={key}\n dataKey={key}\n stroke={getColor ? getColor(key) : DEFAULT_LINE_COLOR}\n />\n ))}\n {areaKeys &&\n areaKeys.map((key: string) => (\n <Area\n {...area}\n name={i18n.text('Error band')}\n dataKey={key}\n key={key}\n fill={getColor ? getColor(key) : DEFAULT_LINE_COLOR}\n />\n ))}\n <ChartTooltip {...tooltip} content={getTooltip} cursor={null} filterNull={false} />\n {areaKeys && showThresholds && <Legend {...legend} content={<CustomLegend />} />}\n </ComposedChart>\n );\n};\n\nexport default LineChart;\n","import React from 'react';\nimport i18n from 'ui-i18n';\n\nimport {getPercentLabel} from '../../../services/charts';\n\nimport ChartDataRenderer from './ChartDataRenderer';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n data: [number, number];\n color: string;\n};\n\nconst AnomalyDataRenderer = ({data, color}: Props) => {\n const styles = useStyles({color});\n const renderData = [\n {\n label: (\n <div className={styles.anomalyTitleWrapper}>\n <div className={styles.anomalyTitleBackground}></div>\n <div className={styles.anomalyTitle}></div>\n </div>\n ),\n value: i18n.text('Error Band')\n },\n {label: <span className={styles.anomalyValue}>{i18n.text('Low')}</span>, value: `${getPercentLabel(data[0])}`},\n {label: <span className={styles.anomalyValue}>{i18n.text('High')}</span>, value: `${getPercentLabel(data[1])}`}\n ];\n return (\n <>\n {renderData.map((data, index) => (\n <div key={index} className={styles.row}>\n <ChartDataRenderer {...data} />\n </div>\n ))}\n </>\n );\n};\nexport default AnomalyDataRenderer;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n monoFontCell: {\n fontFamily: '\"Roboto Mono\", monospace'\n },\n timeSeriesContent: {\n padding: '0 12px 10px'\n }\n});\n","import {assoc, map, pick, pipe} from 'ramda';\nimport React, {useCallback, useMemo} from 'react';\nimport {TooltipProps} from 'recharts';\nimport i18n from 'ui-i18n';\n\nimport {ChartData, RequestStates} from '@reltio/components';\nimport {DQDataLevel, DQMetric, FillRateState, TimeSeriesMetric} from '@reltio/mdm-sdk';\n\nimport {usePeriod, useZoom} from '../../../contexts/DateRangesProvider';\nimport {useEntityAndAttributeType} from '../../../contexts/EntityAndAttributeTypeProvider';\nimport {useReloadFacet} from '../../../contexts/ReloadFacetContext';\nimport {useChartData} from '../../../hooks/useChartData';\nimport {useMlDqDataRequest} from '../../../hooks/useMlDqDataRequest';\nimport {getChartState, getPercentLabel, transformTimeSeriesChartData} from '../../../services/charts';\nimport {\n formatFillRateData,\n getFillRateChartData,\n getFillRateColorByState,\n getFillRateData\n} from '../../../services/fillRate';\nimport {enrichTimeSeriesDataWithTodayData, getChartTooltipDateTitle, getTimeSeriesData} from '../../../services/mlDq';\nimport {LineChartData} from '../../../types/LineChartData';\nimport ANOMALY_DATA_KEY from '../../../constants/AnomalyDataKey';\n\nimport {ChartDataTooltip} from '../../../components/ChartDataTooltip';\nimport TimeSeriesInfoPanel from '../../../components/ChartInfoPanel/TimeSeriesInfoPanel';\nimport DQLayoutItemContent from '../../../components/DQLayoutItemContent/DQLayoutItemContent';\nimport LineChart from '../../../components/LineChart/LineChart';\nimport AnomalyDataRenderer from '../../../components/ChartDataTooltip/data-renderers/AnomalyDataRenderer';\n\nimport {useStyles} from '../styles';\n\nconst INFO_PANEL_HEIGHT = 36;\n\nconst tooltipKeys = [FillRateState.EXISTS, FillRateState.MISSING];\nconst metrics = [DQMetric.FILL_RATE as TimeSeriesMetric];\n\nconst getColor = () => getFillRateColorByState(FillRateState.EXISTS);\nconst getTooltip = ({active, payload}: TooltipProps) => {\n if (active && payload && payload.length) {\n const {payload: currentPayload} = payload[0];\n const percent = currentPayload.fillRate;\n const percents = {\n [FillRateState.EXISTS]: percent,\n [FillRateState.MISSING]: +(100 - percent).toFixed(2)\n };\n\n const data: ChartData[] = pipe(\n pick(tooltipKeys),\n formatFillRateData,\n map((data: ChartData) => assoc('percent', percents[data.group], data)),\n map(({label, percent, value}) => ({\n label,\n value: `${getPercentLabel(percent)} (${i18n.number(value)})`\n }))\n )(currentPayload);\n const title = getChartTooltipDateTitle(!!data.length, currentPayload.group);\n return (\n <ChartDataTooltip data={data} title={title}>\n {currentPayload.anomaly?.length && (\n <AnomalyDataRenderer data={currentPayload.anomaly} color={getColor()} />\n )}\n </ChartDataTooltip>\n );\n }\n};\n\nconst FillRateTimeSeriesChart = () => {\n const styles = useStyles();\n const {entityType, detailedAttributeType} = useEntityAndAttributeType();\n const {getDateRange, changeZoom} = useZoom();\n const {period} = usePeriod();\n\n const entityTypeUri = entityType.uri;\n const attributeFieldName = detailedAttributeType.fieldName;\n const {\n data: mlDqData,\n state: mlDqState,\n reload: mlDqReload\n } = useMlDqDataRequest({\n entityTypeUri,\n attributeFieldName,\n period,\n metrics\n });\n\n useReloadFacet({\n state: mlDqState,\n reload: mlDqReload,\n dataLevel: DQDataLevel.ATTRIBUTE_TYPE\n });\n const {data: todayData, state: todayState, reload: todayReload} = useChartData(getFillRateChartData);\n const chartData: LineChartData[] = useMemo(\n () =>\n pipe(\n getTimeSeriesData(getFillRateData),\n transformTimeSeriesChartData(DQMetric.FILL_RATE),\n enrichTimeSeriesDataWithTodayData(period, todayData.chartData, DQMetric.FILL_RATE)\n )(mlDqData),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [mlDqData, todayData]\n );\n const reloadFunction = useCallback(() => {\n mlDqState === RequestStates.ERROR && mlDqReload();\n todayState === RequestStates.ERROR && todayReload();\n }, [mlDqState, mlDqReload, todayState, todayReload]);\n\n const infoLabel = `${i18n.text('% of profiles with complete values')}:`;\n const dateRange = getDateRange();\n return (\n <DQLayoutItemContent\n data={chartData}\n loadingState={getChartState([mlDqState, todayState])}\n onRefresh={reloadFunction}\n className={styles.timeSeriesContent}\n >\n {({data, width, height}) => (\n <>\n <TimeSeriesInfoPanel\n infoLabel={infoLabel}\n dateRange={dateRange}\n chartData={data}\n percentKey={DQMetric.FILL_RATE}\n dataKey={FillRateState.EXISTS}\n />\n <LineChart\n width={width}\n height={height - INFO_PANEL_HEIGHT}\n data={data}\n lineKeys={metrics}\n areaKeys={[ANOMALY_DATA_KEY]}\n getTooltip={getTooltip}\n getColor={getColor}\n yAxisLabel={i18n.text('% of profiles')}\n dateRange={dateRange}\n changeZoom={changeZoom}\n />\n </>\n )}\n </DQLayoutItemContent>\n );\n};\n\nexport default FillRateTimeSeriesChart;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n root: {\n height: '18px',\n padding: '3px 8px',\n background: 'rgba(43, 152, 240, 0.12)',\n border: '0.6px solid #2B98F0',\n borderRadius: '2px'\n },\n label: {\n fontSize: '8px',\n padding: 0\n },\n disabled: {\n background: 'rgba(153, 153, 153, 0.12)',\n border: '0.6px solid #999999'\n }\n});\n","import React from 'react';\nimport classnames from 'classnames';\nimport Chip, {ChipProps} from '@material-ui/core/Chip';\n\nimport {useZoom} from '../../contexts/DateRangesProvider';\nimport {getLabelByTimeRange} from '../../services/mlDq';\n\nimport {useStyles} from './styles';\nimport i18n from 'ui-i18n';\n\ntype Props = ChipProps & {\n disabled?: boolean;\n};\n\nconst PeriodChip = ({disabled = false, ...chipProps}: Props) => {\n const styles = useStyles();\n const {getDateRange} = useZoom();\n const label = disabled ? i18n.text('Today') : getLabelByTimeRange(getDateRange());\n\n return (\n <Chip\n classes={{\n root: classnames(styles.root, styles.disabled),\n label: styles.label\n }}\n label={label}\n {...chipProps}\n />\n );\n};\n\nexport default PeriodChip;\n","import React, {useContext} from 'react';\nimport i18n from 'ui-i18n';\n\nimport {ViewProps} from '../../../types/ViewProps';\nimport {usePeriod} from '../../../contexts/DateRangesProvider';\nimport {ThresholdsContext} from '../../../contexts/ThresholdsContext';\nimport {checkIsTimeSeries, hasTimeRange} from '../../../services/mlDq';\n\nimport {ChartDataTooltip, InfoDataRenderer} from '../../../components/ChartDataTooltip';\nimport DQLayoutItemHeader from '../../../components/DQLayoutItemHeader/DQLayoutItemHeader';\nimport DQLayoutItemView from '../../../components/DQLayoutItemView/DQLayoutItemView';\nimport FillRateChartToday from './FillRateChart';\nimport FillRateTimeSeriesChart from './FillRateTimeSeriesChart';\nimport PeriodChip from '../../../components/PeriodChip/PeriodChip';\n\nconst FillRateChart = ({config}: ViewProps) => {\n const {title} = config;\n const isTimeSeries = checkIsTimeSeries(config);\n const showErrorBands = useContext(ThresholdsContext);\n const infoTooltipTitle = (\n <ChartDataTooltip\n title={i18n.text('Fill rate')}\n data={[\n {\n label: `${i18n.text('Exists')}:`,\n value: i18n.text('Profiles with data')\n },\n {\n label: `${i18n.text('Missing')}:`,\n value: i18n.text('Profiles without data')\n },\n ...(isTimeSeries && showErrorBands\n ? [\n {\n value: i18n.text(\n 'Anomaly detection is the process of analyzing company data to\\nfind data points that don\\'t align with standard data patterns. The \"Error Band\" depicts the expected range.'\n )\n }\n ]\n : [])\n ]}\n DataRenderer={InfoDataRenderer}\n />\n );\n const {period} = usePeriod();\n return (\n <DQLayoutItemView config={config}>\n <DQLayoutItemHeader title={title} infoTooltipTitle={infoTooltipTitle}>\n {hasTimeRange(period) && <PeriodChip disabled={!isTimeSeries} />}\n </DQLayoutItemHeader>\n {isTimeSeries ? <FillRateTimeSeriesChart /> : <FillRateChartToday />}\n </DQLayoutItemView>\n );\n};\n\nexport default FillRateChart;\n","import {always, converge, identity, pipe, propOr, map, sortBy, when} from 'ramda';\nimport {\n getChartItemColor,\n DQChartsData,\n UniquenessAnalysisState,\n UniquenessData,\n TimeSeriesAnomalyValue,\n TimeSeriesStatisticValues,\n TimeSeriesAnomalyValues\n} from '@reltio/mdm-sdk';\nimport {ChartData} from '@reltio/components';\nimport {localizeChartValues, isEmptyData} from '../services/charts';\nimport i18n from 'ui-i18n';\n\nconst UniquenessChartColors = {\n [UniquenessAnalysisState.UNIQUE]: '#4BAFFF',\n [UniquenessAnalysisState.NOT_UNIQUE]: '#C34980'\n};\n\nexport const getUniquenessColorByState = (state: UniquenessAnalysisState) =>\n UniquenessChartColors[state] || getChartItemColor(state);\n\nexport const getUniquenessColors: (chartsData: ChartData[]) => string[] = map(({group}) =>\n getUniquenessColorByState(group)\n);\n\nconst getLabelFromState = (state: UniquenessAnalysisState) => {\n const UniquenessAnalysisStateLabels = {\n [UniquenessAnalysisState.UNIQUE]: i18n.text('Unique'),\n [UniquenessAnalysisState.NOT_UNIQUE]: i18n.text('Not unique')\n };\n\n return UniquenessAnalysisStateLabels[state] || state;\n};\n\nconst getUniquenessStateIndexFromData = (data: ChartData) =>\n Object.values(UniquenessAnalysisState).indexOf(data.group as UniquenessAnalysisState);\n\ntype FormatUniquenessAnalysisDataFn = (uniquenessAnalysisData: UniquenessData) => ChartData[];\nexport const formatUniquenessAnalysisData: FormatUniquenessAnalysisDataFn = pipe(\n Object.entries,\n map(([state, value]) => ({label: getLabelFromState(state), group: state, value})),\n sortBy(getUniquenessStateIndexFromData),\n localizeChartValues\n);\n\ntype GetUniquenessDataFn = (\n chartsData: DQChartsData | TimeSeriesAnomalyValues | TimeSeriesStatisticValues\n) => UniquenessData | TimeSeriesAnomalyValue;\nexport const getUniquenessData: GetUniquenessDataFn = propOr({}, 'uniqueness');\n\ntype GetUniquenessChartDataFn = (chartsData: DQChartsData) => {\n chartData: ChartData[];\n colors: string[];\n};\nexport const getUniquenessChartData: GetUniquenessChartDataFn = pipe(\n getUniquenessData,\n formatUniquenessAnalysisData,\n when(isEmptyData, always([])),\n converge(\n (chartData: ChartData, colors: string[]) => ({\n chartData,\n colors\n }),\n [identity, getUniquenessColors]\n )\n);\n","import React from 'react';\n\nimport {getUniquenessChartData} from '../../../services/uniquenessAnalysis';\nimport {useChartData} from '../../../hooks/useChartData';\n\nimport DQLayoutItemContent from '../../../components/DQLayoutItemContent/DQLayoutItemContent';\nimport StackedHorizontalBarChart from '../../../components/StackedHorizontalBarChart/StackedHorizontalBarChart';\n\nconst UniquenessAnalysisChart = () => {\n const {data, state, reload} = useChartData(getUniquenessChartData);\n const {chartData, colors} = data;\n\n return (\n <DQLayoutItemContent data={chartData} loadingState={state} onRefresh={reload}>\n {({data}) => <StackedHorizontalBarChart data={data} colors={colors} />}\n </DQLayoutItemContent>\n );\n};\n\nexport default UniquenessAnalysisChart;\n","import {assoc, map, pick, pipe} from 'ramda';\nimport React, {useCallback, useMemo} from 'react';\nimport {TooltipProps} from 'recharts';\n\nimport i18n from 'ui-i18n';\nimport {ChartData, RequestStates} from '@reltio/components';\nimport {DQDataLevel, DQMetric, TimeSeriesMetric, UniquenessAnalysisState} from '@reltio/mdm-sdk';\n\nimport {usePeriod, useZoom} from '../../../contexts/DateRangesProvider';\nimport {useEntityAndAttributeType} from '../../../contexts/EntityAndAttributeTypeProvider';\nimport {useReloadFacet} from '../../../contexts/ReloadFacetContext';\nimport {useChartData} from '../../../hooks/useChartData';\nimport {useMlDqDataRequest} from '../../../hooks/useMlDqDataRequest';\nimport {getChartState, getPercentLabel, transformTimeSeriesChartData} from '../../../services/charts';\nimport {enrichTimeSeriesDataWithTodayData, getChartTooltipDateTitle, getTimeSeriesData} from '../../../services/mlDq';\nimport {\n formatUniquenessAnalysisData,\n getUniquenessChartData,\n getUniquenessColorByState,\n getUniquenessData\n} from '../../../services/uniquenessAnalysis';\nimport {LineChartData} from '../../../types/LineChartData';\nimport ANOMALY_DATA_KEY from '../../../constants/AnomalyDataKey';\n\nimport {ChartDataTooltip} from '../../../components/ChartDataTooltip';\nimport TimeSeriesInfoPanel from '../../../components/ChartInfoPanel/TimeSeriesInfoPanel';\nimport DQLayoutItemContent from '../../../components/DQLayoutItemContent/DQLayoutItemContent';\nimport LineChart from '../../../components/LineChart/LineChart';\nimport AnomalyDataRenderer from '../../../components/ChartDataTooltip/data-renderers/AnomalyDataRenderer';\n\nimport {useStyles} from '../styles';\n\nconst INFO_PANEL_HEIGHT = 36;\n\nconst tooltipKeys = [UniquenessAnalysisState.UNIQUE, UniquenessAnalysisState.NOT_UNIQUE];\nconst metrics = [DQMetric.UNIQUENESS as TimeSeriesMetric];\n\nconst getColor = () => getUniquenessColorByState(UniquenessAnalysisState.UNIQUE);\nconst getTooltip = ({active, payload}: TooltipProps) => {\n if (active && payload && payload.length) {\n const {payload: currentPayload} = payload[0];\n const percent = currentPayload.uniqueness;\n const percents = {\n [UniquenessAnalysisState.UNIQUE]: percent,\n [UniquenessAnalysisState.NOT_UNIQUE]: +(100 - percent).toFixed(2)\n };\n\n const data: ChartData[] = pipe(\n pick(tooltipKeys),\n formatUniquenessAnalysisData,\n map((data) => assoc('percent', percents[data.group], data)),\n map(({label, percent, value}) => ({\n label,\n value: `${getPercentLabel(percent)} (${i18n.number(value)})`\n }))\n )(currentPayload);\n const title = getChartTooltipDateTitle(!!data.length, currentPayload.group);\n return (\n <ChartDataTooltip data={data} title={title}>\n {currentPayload.anomaly?.length > 0 && (\n <AnomalyDataRenderer data={currentPayload.anomaly} color={getColor()} />\n )}\n </ChartDataTooltip>\n );\n }\n};\n\nconst UniquenessAnalysisTimeSeriesChart = () => {\n const styles = useStyles();\n const {entityType, detailedAttributeType} = useEntityAndAttributeType();\n const {period} = usePeriod();\n\n const entityTypeUri = entityType.uri;\n const {getDateRange, changeZoom} = useZoom();\n const attributeFieldName = detailedAttributeType.fieldName;\n const {\n data: dataMlDq,\n state: stateMlDq,\n reload: reloadMlDq\n } = useMlDqDataRequest({\n entityTypeUri,\n attributeFieldName,\n period,\n metrics\n });\n\n useReloadFacet({\n state: stateMlDq,\n reload: reloadMlDq,\n dataLevel: DQDataLevel.ATTRIBUTE_TYPE\n });\n\n const {data: dataToday, state: stateToday, reload: reloadToday} = useChartData(getUniquenessChartData);\n\n const chartData: LineChartData[] = useMemo(\n () =>\n pipe(\n getTimeSeriesData(getUniquenessData),\n transformTimeSeriesChartData(DQMetric.UNIQUENESS),\n enrichTimeSeriesDataWithTodayData(period, dataToday.chartData, DQMetric.UNIQUENESS)\n )(dataMlDq),\n [dataMlDq, dataToday]\n );\n const reloadFunction = useCallback(() => {\n stateMlDq === RequestStates.ERROR && reloadMlDq();\n stateToday === RequestStates.ERROR && reloadToday();\n }, [stateMlDq, reloadMlDq, stateToday, reloadToday]);\n\n const infoLabel = `${i18n.text('% of unique distinct values')}:`;\n const dateRange = getDateRange();\n return (\n <DQLayoutItemContent\n data={chartData}\n loadingState={getChartState([stateMlDq, stateToday])}\n onRefresh={reloadFunction}\n className={styles.timeSeriesContent}\n >\n {({data, width, height}) => (\n <>\n <TimeSeriesInfoPanel\n infoLabel={infoLabel}\n dateRange={dateRange}\n chartData={chartData}\n percentKey={DQMetric.UNIQUENESS}\n dataKey={UniquenessAnalysisState.UNIQUE}\n />\n <LineChart\n width={width}\n height={height - INFO_PANEL_HEIGHT}\n data={data}\n lineKeys={metrics}\n areaKeys={[ANOMALY_DATA_KEY]}\n getTooltip={getTooltip}\n getColor={getColor}\n yAxisLabel={i18n.text('% of distinct values')}\n dateRange={dateRange}\n changeZoom={changeZoom}\n />\n </>\n )}\n </DQLayoutItemContent>\n );\n};\n\nexport default UniquenessAnalysisTimeSeriesChart;\n","import React, {useContext} from 'react';\nimport i18n from 'ui-i18n';\n\nimport {ViewProps} from '../../../types/ViewProps';\nimport {usePeriod} from '../../../contexts/DateRangesProvider';\nimport {checkIsTimeSeries, hasTimeRange} from '../../../services/mlDq';\nimport {ThresholdsContext} from '../../../contexts/ThresholdsContext';\n\nimport DQLayoutItemHeader from '../../../components/DQLayoutItemHeader/DQLayoutItemHeader';\nimport DQLayoutItemView from '../../../components/DQLayoutItemView/DQLayoutItemView';\nimport PeriodChip from '../../../components/PeriodChip/PeriodChip';\nimport UniquenessAnalysisChartToday from './UniquenessAnalysisChart';\nimport UniquenessAnalysisTimeSeriesChart from './UniquenessAnalysisTimeSeriesChart';\nimport {ChartDataTooltip, InfoDataRenderer} from '../../../components/ChartDataTooltip';\n\nconst UniquenessAnalysisChart = ({config}: ViewProps) => {\n const {title} = config;\n const isTimeSeries = checkIsTimeSeries(config);\n const showErrorBands = useContext(ThresholdsContext);\n const infoTooltipTitle = (\n <ChartDataTooltip\n title={i18n.text('Uniqueness analysis')}\n data={[\n {\n label: `${i18n.text('Unique')}:`,\n value: i18n.text('Number of values that only appear once and have no duplicates')\n },\n {\n label: `${i18n.text('Not unique')}:`,\n value: i18n.text('Number of values that have at least one duplicate in the list')\n },\n ...(isTimeSeries && showErrorBands\n ? [\n {\n value: i18n.text(\n 'Anomaly detection is the process of analyzing company data to\\nfind data points that don\\'t align with standard data patterns. The \"Error Band\" depicts the expected range.'\n )\n }\n ]\n : [])\n ]}\n DataRenderer={InfoDataRenderer}\n />\n );\n\n const {period} = usePeriod();\n\n return (\n <DQLayoutItemView config={config}>\n <DQLayoutItemHeader title={title} infoTooltipTitle={infoTooltipTitle}>\n {hasTimeRange(period) && <PeriodChip disabled={!isTimeSeries} />}\n </DQLayoutItemHeader>\n {isTimeSeries ? <UniquenessAnalysisTimeSeriesChart /> : <UniquenessAnalysisChartToday />}\n </DQLayoutItemView>\n );\n};\n\nexport default UniquenessAnalysisChart;\n","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"circle\", {\n cx: \"12\",\n cy: \"12\",\n r: \"12\",\n fill: \"#6663F6\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M8.4 14.4h2.411c.016-.205.047-.405.093-.6H8.4v-1.2h3.012c.137-.215.296-.416.472-.6H8.4v-1.2h6v.011a3.896 3.896 0 011.8.287V8.4c0-.66-.54-1.2-1.2-1.2H7.8c-.66 0-1.2.54-1.2 1.2v7.8c0 .66.54 1.2 1.2 1.2h4.083a3.892 3.892 0 01-.979-1.8H8.4v-1.2zm6-4.2h-6V9h6v1.2zm2.58 5.934L18.852 18l-.852.852-1.872-1.872a2.66 2.66 0 01-1.434.42A2.695 2.695 0 0112 14.7c0-1.494 1.206-2.7 2.7-2.7 1.494 0 2.7 1.206 2.7 2.7 0 .528-.156 1.014-.42 1.434zm-2.28.066a1.5 1.5 0 10-.001-3.001A1.5 1.5 0 0014.7 16.2z\",\n fill: \"#fff\"\n})));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"circle\", {\n cx: \"12\",\n cy: \"12\",\n r: \"12\",\n fill: \"#1DACF5\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M11.4 9.6H9.3L12 6.9l2.7 2.7h-2.1v3.846l-3.6 3.6-.846-.846 3.246-3.246V9.6zm4.446 6.6l-.846.846L12.954 15l.846-.846 2.046 2.046z\",\n fill: \"#fff\"\n})));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"circle\", {\n cx: \"12\",\n cy: \"12\",\n r: \"12\",\n fill: \"#7F22FD\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M8.4 9v1.2h1.2V9H8.4zm0 2.4v1.2h1.2v-1.2H8.4zm0 2.4V15h1.2v-1.2H8.4zM10.8 9v1.2h4.8V9h-4.8zm0 2.4v1.2h4.8v-1.2h-4.8zm0 2.4V15h4.8v-1.2h-4.8zm6-6v8.4H7.2V7.8h9.6zm1.2 9V6.6H6V17.4h12v-.6z\",\n fill: \"#fff\"\n})));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"circle\", {\n cx: \"12\",\n cy: \"12\",\n r: \"12\",\n fill: \"#4B31E9\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M10.8 15.6h1.8V15a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-3V9.6H8.4a.6.6 0 01-.6-.6V6.6a.6.6 0 01.6-.6H12a.6.6 0 01.6.6V9a.6.6 0 01-.6.6h-1.2v1.8h1.8v-.6a.6.6 0 01.6-.6h2.4a.6.6 0 01.6.6v2.4a.6.6 0 01-.6.6h-2.4a.6.6 0 01-.6-.6v-.6h-1.8v3z\",\n fill: \"#fff\"\n})));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"24\",\n height: \"24\",\n viewBox: \"0 0 24 24\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"circle\", {\n cx: \"12\",\n cy: \"12\",\n r: \"12\",\n fill: \"#80D2FC\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M12 6c-3.312 0-6 2.688-6 6s2.688 6 6 6 6-2.688 6-6-2.688-6-6-6zm-.6 4.96V9h1.2v1.96l1.698-.98.6 1.04L13.2 12l1.698.98-.6 1.04-1.698-.98V15h-1.2v-1.96l-1.698.98-.6-1.04L10.8 12l-1.698-.98.6-1.04 1.698.98zM7.2 12c0 2.646 2.154 4.8 4.8 4.8s4.8-2.154 4.8-4.8-2.154-4.8-4.8-4.8A4.806 4.806 0 007.2 12z\",\n fill: \"#fff\"\n})));","import {makeStyles} from '@material-ui/core/styles';\n\nexport type IconSize = {\n width: number;\n height: number;\n};\nexport const useStyles = makeStyles({\n icon: ({width, height}: IconSize) => ({\n width,\n height\n }),\n loading: {\n '& circle': {\n fill: '#AAAAAA'\n }\n },\n badQuality: {\n '& circle': {\n fill: '#FF1744'\n }\n }\n});\n","import React from 'react';\nimport classnames from 'classnames';\nimport {IconProps} from '@material-ui/core/Icon';\nimport {AttrTypeDetailsType} from '../../types/DetailedAttributeType';\nimport DVFIcon from './icons/dvf.svg';\nimport IncludedInMatchingIcon from './icons/includedInMatching.svg';\nimport RDMIcon from './icons/rdm.svg';\nimport ReferenceIcon from './icons/reference.svg';\nimport RequiredIcon from './icons/required.svg';\n\nimport {useStyles, IconSize} from './styles';\n\nexport const AttributeTypeDetailIconSizes = {\n SMALL: {\n width: 22,\n height: 22\n },\n NORMAL: {\n width: 24,\n height: 24\n }\n};\n\nexport enum AttributeTypeDetailIconVariant {\n LOADING = 'loading',\n BAD_QUALITY = 'badQuality',\n NORMAL = 'normal'\n}\n\ntype Props = IconProps & {\n detailType: AttrTypeDetailsType;\n size?: IconSize;\n variant?: AttributeTypeDetailIconVariant;\n};\n\nexport const AttributeTypeDetailIcon = ({\n detailType,\n size = AttributeTypeDetailIconSizes.NORMAL,\n variant = AttributeTypeDetailIconVariant.NORMAL\n}: Props) => {\n const styles = useStyles(size);\n const className = classnames(styles.icon, styles[variant]);\n switch (detailType) {\n case AttrTypeDetailsType.RDM_LOOKUP:\n return <RDMIcon className={className} />;\n case AttrTypeDetailsType.CONTAIN_VF:\n return <DVFIcon className={className} />;\n case AttrTypeDetailsType.INCLUDED_IN_MATCHING:\n return <IncludedInMatchingIcon className={className} />;\n case AttrTypeDetailsType.REFERENCE:\n return <ReferenceIcon className={className} />;\n case AttrTypeDetailsType.REQUIRED:\n return <RequiredIcon className={className} />;\n default:\n return null;\n }\n};\n","import {makeStyles} from '@material-ui/core/styles';\n\nconst margin = 4;\nexport const useStyles = makeStyles({\n root: {\n height: '24px',\n maxWidth: `calc(100% - ${margin * 2}px)`,\n margin: `0 ${margin}px ${margin}px 0`,\n borderRadius: '12px'\n },\n label: {\n fontSize: '12px',\n paddingLeft: '8px',\n paddingRight: '9px'\n },\n badQuality: {\n backgroundColor: 'rgba(255, 23, 68, 0.12)'\n }\n});\n","import React from 'react';\nimport classnames from 'classnames';\nimport Chip, {ChipProps} from '@material-ui/core/Chip';\n\nimport {RequestStates} from '@reltio/components';\n\nimport {getDetailLabel, checkIsDataQualitativeForSummary} from '../../services/attributeDetails';\nimport {useChartsDataContext} from '../../contexts/ChartsDataProvider';\nimport {AttrTypeDetailsType} from '../../types/DetailedAttributeType';\n\nimport {\n AttributeTypeDetailIcon,\n AttributeTypeDetailIconVariant\n} from '../AttributeTypeDetailIcon/AttributeTypeDetailIcon';\n\nimport {useStyles} from './styles';\n\ntype Props = ChipProps & {\n detailType: AttrTypeDetailsType;\n};\n\nconst AttributeTypeDetailChip = ({detailType, classes, ...chipProps}: Props) => {\n const styles = useStyles();\n const {\n chartsData: {data, state}\n } = useChartsDataContext();\n let iconVariant = AttributeTypeDetailIconVariant.NORMAL;\n const isDataLoading = state === RequestStates.LOADING;\n const isDataQualitative = checkIsDataQualitativeForSummary(data);\n if (detailType === AttrTypeDetailsType.REQUIRED) {\n if (isDataLoading) {\n iconVariant = AttributeTypeDetailIconVariant.LOADING;\n }\n if (!isDataLoading && !isDataQualitative) {\n iconVariant = AttributeTypeDetailIconVariant.BAD_QUALITY;\n }\n }\n\n return (\n <Chip\n classes={{\n root: classnames(styles.root, {\n [styles.badQuality]:\n detailType === AttrTypeDetailsType.REQUIRED &&\n !isDataLoading &&\n state !== RequestStates.INIT &&\n !isDataQualitative\n }),\n label: styles.label,\n ...classes\n }}\n label={getDetailLabel(detailType)}\n icon={<AttributeTypeDetailIcon detailType={detailType} variant={iconVariant} />}\n {...chipProps}\n />\n );\n};\n\nexport default AttributeTypeDetailChip;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n root: {\n display: 'flex',\n flexWrap: 'wrap',\n flexGrow: 1\n },\n rootTimeRange: {\n marginLeft: '40px'\n }\n});\n","import React from 'react';\nimport classnames from 'classnames';\nimport {ChipProps} from '@material-ui/core/Chip';\n\nimport {AttrTypeDetails, AttrTypeDetailsType} from '../../types/DetailedAttributeType';\nimport {usePeriod} from '../../contexts/DateRangesProvider';\nimport {hasTimeRange} from '../../services/mlDq';\n\nimport AttributeTypeDetailChip from '../AttributeTypeDetailChip/AttributeTypeDetailChip';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n details: AttrTypeDetails;\n chipClasses?: ChipProps['classes'];\n};\n\nconst AttributeTypeDetails = ({details, chipClasses = {}}: Props) => {\n const styles = useStyles();\n const {period} = usePeriod();\n\n return (\n <div className={classnames(styles.root, {[styles.rootTimeRange]: hasTimeRange(period)})}>\n {Object.entries(details || {})\n .filter(([, value]) => value)\n .map(([detailType]) => (\n <AttributeTypeDetailChip\n key={detailType}\n detailType={detailType as AttrTypeDetailsType}\n classes={chipClasses}\n />\n ))}\n </div>\n );\n};\n\nexport default AttributeTypeDetails;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n header: {\n display: 'flex',\n paddingBottom: '16px'\n },\n info: {\n display: 'flex',\n flexDirection: 'column',\n '&:not(:last-child)': {\n borderRight: '1px solid rgba(0,0,0,0.12)'\n }\n },\n entitySummary: {\n '&:not(:last-child)': {\n paddingRight: '48px',\n marginRight: '16px'\n }\n },\n attributeTypeSummary: {\n '&:not(:last-child)': {\n paddingRight: '24px',\n marginRight: '24px'\n }\n },\n infoTitle: {\n color: 'rgba(0,0,0,0.54)',\n fontSize: '12px',\n lineHeight: '16px'\n },\n infoContent: {\n fontSize: '30px',\n lineHeight: '35px',\n padding: '4px 0 0',\n display: 'flex',\n alignItems: 'center'\n },\n attributeTypeIconWrapper: {\n width: '32px',\n height: '33px',\n background: 'rgba(0, 0, 0, 0.05)',\n borderRadius: '4px',\n position: 'relative',\n marginRight: '12px',\n flexShrink: 0,\n '& svg': {\n position: 'absolute',\n transform: 'translate(-50%, -50%)',\n top: '50%',\n left: '50%'\n }\n },\n totalLoading: {\n padding: '4px 8px'\n },\n clickable: {\n color: '#000066',\n cursor: 'pointer'\n },\n summaryWrapper: {\n display: 'flex'\n }\n});\n","import classnames from 'classnames';\nimport React from 'react';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n title: string;\n children: React.ReactNode;\n className?: string;\n onClick?: () => void;\n dataReltioId?: string;\n};\n\nexport const HeaderInfo = ({title, children, className, onClick, dataReltioId}: Props) => {\n const styles = useStyles();\n\n return (\n <div className={classnames(styles.info, className)} onClick={onClick} data-reltio-id={dataReltioId}>\n <div className={styles.infoTitle}>{title}</div>\n <div className={styles.infoContent}>{children}</div>\n </div>\n );\n};\n","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"16\",\n height: \"16\",\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"mask\", {\n id: \"svg1279746712a\",\n style: {\n maskType: \"alpha\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"1\",\n y: \"4\",\n width: \"15\",\n height: \"8\"\n}, React.createElement(\"path\", {\n d: \"M11.667 4H5C2.793 4 1 5.793 1 8s1.793 4 4 4h6.667c2.206 0 4-1.793 4-4s-1.794-4-4-4zm0 6.667H5a2.666 2.666 0 110-5.334h6.667a2.666 2.666 0 110 5.334zm0-4.667c-1.107 0-2 .893-2 2s.893 2 2 2c1.106 0 2-.893 2-2s-.894-2-2-2z\",\n fill: \"#000\"\n})), React.createElement(\"g\", {\n mask: \"url(#svg1279746712a)\"\n}, React.createElement(\"path\", {\n fill: \"#000\",\n fillOpacity: \".541\",\n d: \"M0 0h16v16H0z\"\n}))));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"16\",\n height: \"16\",\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"mask\", {\n id: \"svg208732808a\",\n style: {\n maskType: \"alpha\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"1\",\n y: \"1\",\n width: \"14\",\n height: \"14\"\n}, React.createElement(\"path\", {\n d: \"M7.992 1.333A6.663 6.663 0 001.332 8c0 3.68 2.98 6.667 6.66 6.667A6.67 6.67 0 0014.665 8a6.67 6.67 0 00-6.673-6.667zm.007 12A5.332 5.332 0 012.665 8 5.332 5.332 0 018 2.667 5.332 5.332 0 0113.332 8a5.332 5.332 0 01-5.333 5.333zm.333-8.666h-1v4l3.5 2.1.5-.82-3-1.78v-3.5z\",\n fill: \"#000\"\n})), React.createElement(\"g\", {\n mask: \"url(#svg208732808a)\"\n}, React.createElement(\"path\", {\n fill: \"#000\",\n fillOpacity: \".541\",\n d: \"M0 0h16v16H0z\"\n}))));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"16\",\n height: \"16\",\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"mask\", {\n id: \"svg1638934380a\",\n style: {\n maskType: \"alpha\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"2\",\n y: \"4\",\n width: \"13\",\n height: \"8\"\n}, React.createElement(\"path\", {\n d: \"M5.948 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2zM7.947 12v-1.1h1.1V12h-1.1zM13.65 10.02V12h-.88v-1.98h-.88V12h-.88v-1.98h-.77v-.825h.77v-2.2h-.77V6.17h.77V4.3h.88v1.87h.88V4.3h.88v1.87h.77v.825h-.77v2.2h.77v.825h-.77zm-.88-3.025h-.88v2.2h.88v-2.2z\",\n fill: \"#000\"\n})), React.createElement(\"g\", {\n mask: \"url(#svg1638934380a)\"\n}, React.createElement(\"path\", {\n fill: \"#000\",\n fillOpacity: \".541\",\n d: \"M0 0h16v16H0z\"\n}))));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"16\",\n height: \"16\",\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"path\", {\n d: \"M2.11 12v-.825h1.331V5.169L2 5.741v-.89L3.331 4.3h1.045v6.875h1.089V12H2.11zM5.968 11.032l1.65-2.508c.242-.367.403-.62.484-.759.08-.147.136-.29.165-.429.03-.14.044-.341.044-.605v-.77a.778.778 0 00-.253-.583c-.169-.161-.389-.242-.66-.242h-1.21V4.3h1.1c.638 0 1.126.158 1.463.473.345.308.517.774.517 1.397v.462c0 .367-.018.645-.055.836-.037.19-.103.37-.198.539-.088.169-.264.455-.528.858l-1.518 2.299h2.519V12h-3.52v-.968zM13.544 10.262c0 .609-.147 1.052-.44 1.331-.293.271-.77.407-1.43.407h-1.298v-.825h1.397c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.239c0-.242-.073-.433-.22-.572-.147-.147-.341-.22-.583-.22h-1.067v-.825h.957a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.902c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187h-1.298V4.3h1.166c.623 0 1.093.14 1.408.418.323.271.484.704.484 1.298v.693c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.924z\",\n fill: \"#000\",\n fillOpacity: \".541\"\n})));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"16\",\n height: \"16\",\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"mask\", {\n id: \"svg924767730a\",\n style: {\n maskType: \"alpha\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"1\",\n y: \"4\",\n width: \"13\",\n height: \"8\"\n}, React.createElement(\"path\", {\n d: \"M5.463 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H2.03v-.836h1.562c.271 0 .491-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.059-.396-.176-.528-.11-.14-.279-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473h1.463v.836H3.714c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM9.136 10.13c0 .623-.173 1.093-.517 1.408-.338.308-.825.462-1.463.462H5.704v-.836h1.562c.27 0 .49-.08.66-.242a.778.778 0 00.253-.583V9.195c0-.22-.06-.396-.176-.528-.11-.14-.28-.209-.506-.209h-.22c-.543 0-.972-.158-1.287-.473-.316-.323-.473-.788-.473-1.397V6.17c0-.623.168-1.089.506-1.397.344-.315.836-.473 1.474-.473H8.96v.836H7.387c-.272 0-.492.08-.66.242a.778.778 0 00-.253.583v.836c0 .227.073.418.22.572.146.147.337.22.572.22h.22c.52 0 .924.15 1.21.451.293.3.44.755.44 1.364v.726zM12.255 12l-1.683-6.886V12H9.68V4.3h1.562l1.694 6.886V4.3h.89V12h-1.572z\",\n fill: \"#000\"\n})), React.createElement(\"g\", {\n mask: \"url(#svg924767730a)\"\n}, React.createElement(\"path\", {\n fill: \"#000\",\n fillOpacity: \".541\",\n d: \"M0 0h16v16H0z\"\n}))));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"16\",\n height: \"16\",\n viewBox: \"0 0 16 16\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"mask\", {\n id: \"svg3578961193a\",\n style: {\n maskType: \"alpha\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"1\",\n y: \"4\",\n width: \"14\",\n height: \"8\"\n}, React.createElement(\"path\", {\n d: \"M5.345 12l-.418-1.947H2.782L2.353 12h-.979l1.86-7.7h1.264L6.324 12h-.979zM3.85 5.026l-.89 4.202H4.75L3.85 5.026zM10.494 10.262c0 .63-.146 1.078-.44 1.342-.286.264-.763.396-1.43.396h-2.09V4.3h1.958c.653 0 1.13.132 1.43.396.308.264.462.704.462 1.32v.627c0 .565-.202.99-.605 1.276.477.264.715.715.715 1.353v.99zM9.427 5.917c0-.279-.066-.48-.198-.605-.125-.125-.326-.187-.605-.187H7.491v2.431h1.133a.797.797 0 00.572-.22.768.768 0 00.231-.583v-.836zm.11 3.256c0-.242-.073-.433-.22-.572-.147-.147-.34-.22-.583-.22H7.491v2.794h1.232c.279 0 .484-.062.616-.187.132-.132.198-.337.198-.616V9.173zM13.119 12c-.638 0-1.13-.154-1.474-.462-.337-.315-.506-.785-.506-1.408V6.17c0-.623.169-1.089.506-1.397.345-.315.836-.473 1.474-.473h1.342v.836h-1.452c-.271 0-.491.08-.66.242a.778.778 0 00-.253.583v4.378c0 .227.084.422.253.583.169.161.389.242.66.242h1.452V12h-1.342z\",\n fill: \"#000\"\n})), React.createElement(\"g\", {\n mask: \"url(#svg3578961193a)\"\n}, React.createElement(\"path\", {\n fill: \"#000\",\n fillOpacity: \".541\",\n d: \"M0 0h16v16H0z\"\n}))));","import {makeStyles} from '@material-ui/core/styles';\n\nexport type IconSize = {\n width: number;\n height: number;\n};\nexport const useStyles = makeStyles({\n icon: ({width, height}: IconSize) => ({\n width,\n height\n })\n});","import React from 'react';\nimport BooleanIcon from './icons/boolean.svg';\nimport DateIcon from './icons/date.svg';\nimport FloatIcon from './icons/float.svg';\nimport IntegerIcon from './icons/integer.svg';\nimport SSNIcon from './icons/ssn.svg';\nimport StringIcon from './icons/string.svg';\nimport {getChartDataTypeByAttributeType} from '../../services/charts';\nimport {ChartDataType} from '../../constants/ChartDataType';\n\nimport {useStyles, IconSize} from './styles';\n\ntype Props = {\n type: string;\n size?: IconSize;\n};\n\nexport const AttributeTypeIconSizes = {\n SMALL: {\n width: 16,\n height: 16\n },\n NORMAL: {\n width: 24,\n height: 24\n }\n};\n\nconst AttributeTypeIcon = ({type, size = AttributeTypeIconSizes.SMALL}: Props) => {\n const styles = useStyles(size);\n const chartDataType = getChartDataTypeByAttributeType(type);\n switch (chartDataType) {\n case ChartDataType.STRING:\n return <StringIcon className={styles.icon} />;\n case ChartDataType.FLOAT:\n return <FloatIcon className={styles.icon} />;\n case ChartDataType.INTEGER:\n return <IntegerIcon className={styles.icon} />;\n case ChartDataType.BOOLEAN:\n return <BooleanIcon className={styles.icon} />;\n case ChartDataType.DATE:\n return <DateIcon className={styles.icon} />;\n case ChartDataType.SSN:\n return <SSNIcon className={styles.icon} />;\n default:\n return <StringIcon className={styles.icon} />;\n }\n};\n\nexport default AttributeTypeIcon;\n","import React, {useMemo} from 'react';\nimport i18n from 'ui-i18n';\nimport {CircularProgress as CircularProgress} from '@material-ui/core';\nimport {Tooltip as Tooltip} from '@material-ui/core';\nimport classnames from 'classnames';\n\nimport {usePeriod} from '../../contexts/DateRangesProvider';\nimport {useEntityAndAttributeType} from '../../contexts/EntityAndAttributeTypeProvider';\nimport {DetailedAttributeType} from '../../types/DetailedAttributeType';\nimport {useEntityCount} from '../../hooks/useEntityCount';\nimport {hasTimeRange} from '../../services/mlDq';\n\nimport AttributeTypeDetails from '../AttributeTypeDetails/AttributeTypeDetails';\nimport {HeaderInfo} from './HeaderInfo';\nimport AttributeTypeIcon, {AttributeTypeIconSizes} from '../AttributeTypeIcon/AttributeTypeIcon';\nimport ChartDataTooltip from '../ChartDataTooltip/ChartDataTooltip';\n\nimport {useStyles} from './styles';\n\nexport type AttributeTypeSummaryProps = {\n detailedAttributeType: DetailedAttributeType;\n};\n\nconst AttributeTypeSummary = ({detailedAttributeType}: AttributeTypeSummaryProps) => {\n const styles = useStyles();\n const {entityType} = useEntityAndAttributeType();\n const entityTypesArray = useMemo(() => [entityType], [entityType]);\n const total = useEntityCount(entityTypesArray).getEntityCount(entityType.uri);\n const renderDataTypeInfo = (type: string) => {\n return (\n <>\n <div className={styles.attributeTypeIconWrapper}>\n <AttributeTypeIcon type={type} size={AttributeTypeIconSizes.NORMAL} />\n </div>\n {i18n.text(type)}\n </>\n );\n };\n\n const recordsInfo = total ? i18n.number(total) : <CircularProgress size={24} className={styles.totalLoading} />;\n\n const {period} = usePeriod();\n\n return (\n <div className={classnames({[styles.summaryWrapper]: hasTimeRange(period)})}>\n <div className={styles.header}>\n <HeaderInfo title={i18n.text('Active profiles')} className={styles.attributeTypeSummary}>\n <Tooltip\n title={\n <ChartDataTooltip\n data={[\n {\n label: i18n.text('Entities with exists attribute'),\n value: i18n.number(total)\n }\n ]}\n />\n }\n >\n <div>{recordsInfo}</div>\n </Tooltip>\n </HeaderInfo>\n <HeaderInfo title={i18n.text('Data type')} className={styles.attributeTypeSummary}>\n {renderDataTypeInfo(detailedAttributeType.type)}\n </HeaderInfo>\n </div>\n <AttributeTypeDetails details={detailedAttributeType.details} />\n </div>\n );\n};\n\nexport default AttributeTypeSummary;\n","import classnames from 'classnames';\nimport React from 'react';\nimport {useSelector} from 'react-redux';\nimport {CircularProgress as CircularProgress} from '@material-ui/core';\n\nimport i18n from 'ui-i18n';\nimport {RequestStates} from '@reltio/components';\nimport mdmModule from '@reltio/mdm-module';\nimport {ActivityFilter, Metadata, TEntityType} from '@reltio/mdm-sdk';\n\nimport {useChartsDataContext} from '../../contexts/ChartsDataProvider';\nimport {useSearchRedirect} from '../../hooks/useSearchRedirect';\nimport {countEntityTypeAttributes} from '../../services/attributes';\nimport {getEntityTypeSummarySearchState} from '../../services/charts';\n\nimport {HeaderInfo} from './HeaderInfo';\n\nimport {useStyles} from './styles';\n\nexport type EntityTypeSummaryProps = {\n entityType: TEntityType;\n};\n\nconst EntityTypeSummary = ({entityType}: EntityTypeSummaryProps) => {\n const {\n chartsData: {data, state}\n } = useChartsDataContext();\n const metadata: Metadata = useSelector(mdmModule.selectors.getMetadata);\n const attributeTypesCount = countEntityTypeAttributes(metadata, entityType);\n const {activeProfiles = 0, inactiveProfiles = 0, sourceSystems = 0} = data?.summary || {};\n const getValue = (value: number) =>\n state === RequestStates.LOADING ? (\n <CircularProgress size={24} className={styles.totalLoading} />\n ) : (\n i18n.number(value)\n );\n const styles = useStyles();\n const searchProfiles = useSearchRedirect(getEntityTypeSummarySearchState);\n\n return (\n <div className={styles.header}>\n <HeaderInfo\n title={i18n.text('Active profiles')}\n className={classnames(styles.entitySummary, styles.clickable)}\n onClick={() => searchProfiles(ActivityFilter.ACTIVE_ONLY, ActivityFilter.ACTIVE_ONLY)}\n dataReltioId=\"reltio-dq-dashboard-entitylevel-summary-activeProfiles\"\n >\n {getValue(activeProfiles)}\n </HeaderInfo>\n <HeaderInfo\n title={i18n.text('Inactive profiles')}\n className={classnames(styles.entitySummary, styles.clickable)}\n onClick={() => searchProfiles(ActivityFilter.INACTIVE_ONLY, ActivityFilter.INACTIVE_ONLY)}\n dataReltioId=\"reltio-dq-dashboard-entitylevel-summary-inactiveProfiles\"\n >\n {getValue(inactiveProfiles)}\n </HeaderInfo>\n <HeaderInfo title={i18n.text('Attributes')} className={styles.entitySummary}>\n {i18n.number(attributeTypesCount)}\n </HeaderInfo>\n <HeaderInfo title={i18n.text('Source systems')} className={styles.entitySummary}>\n {getValue(sourceSystems)}\n </HeaderInfo>\n </div>\n );\n};\n\nexport default EntityTypeSummary;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n content: {\n padding: '0 16px',\n marginTop: '4px'\n }\n});\n","import React, {useContext} from 'react';\n\nimport {getLabel, DQDataLevel} from '@reltio/mdm-sdk';\nimport {BasicViewContent} from '@reltio/components';\nimport i18n from 'ui-i18n';\n\nimport {ViewProps} from '../../types/ViewProps';\nimport {useEntityAndAttributeType} from '../../contexts/EntityAndAttributeTypeProvider';\nimport {DataLevelContext} from '../../contexts/DataLevelContext';\n\nimport AttributeTypeSummary from '../../components/Summary/AttributeTypeSummary';\nimport DQLayoutItemHeader from '../../components/DQLayoutItemHeader/DQLayoutItemHeader';\nimport DQLayoutItemView from '../../components/DQLayoutItemView/DQLayoutItemView';\nimport EntityTypeSummary from '../../components/Summary/EntityTypeSummary';\n\nimport {useStyles} from './styles';\n\nconst Summary = ({config}: ViewProps) => {\n const styles = useStyles();\n const {detailedAttributeType, entityType} = useEntityAndAttributeType();\n const dataLevel = useContext(DataLevelContext);\n const isAttributeTypeLevel = dataLevel === DQDataLevel.ATTRIBUTE_TYPE;\n const title = isAttributeTypeLevel\n ? getLabel(detailedAttributeType.label)\n : `${i18n.text('Entity')}: ${getLabel(entityType.label)}`;\n return (\n <DQLayoutItemView config={config}>\n <DQLayoutItemHeader title={title} />\n <BasicViewContent className={styles.content}>\n {isAttributeTypeLevel ? (\n <AttributeTypeSummary detailedAttributeType={detailedAttributeType} />\n ) : (\n <EntityTypeSummary entityType={entityType} />\n )}\n </BasicViewContent>\n </DQLayoutItemView>\n );\n};\n\nexport default Summary;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n viewContent: {\n height: '100%',\n overflow: 'hidden',\n position: 'relative',\n padding: '0 16px 10px'\n }\n});\n","import React from 'react';\nimport ReactResizeDetector from 'react-resize-detector';\nimport {BasicViewContent} from '@reltio/components';\nimport {DashboardLayoutItemView} from '@reltio/dashboard';\nimport DQLayoutItemHeader from '../../components/DQLayoutItemHeader/DQLayoutItemHeader';\nimport {ViewProps} from '../../types/ViewProps';\nimport DQDashboardError from '../../components/DQDashboardError/DQDashboardError';\nimport {EMPTY_STATE_ICONS} from '@reltio/components';\nimport {ErrorData} from '../../types/ErrorData';\nimport {EmptyStateVariants} from '../../types/EmptyStateVariants';\nimport {useStyles} from './styles';\n\ntype Props = ViewProps & {\n errorData: ErrorData;\n titleChildren?: React.ReactNode;\n infoTooltipTitle?: React.ReactNode;\n onRefresh?: () => void;\n};\n\nconst DefaultIcon = EMPTY_STATE_ICONS.ERROR;\n\nconst DQDashboardErrorView = ({config, errorData, titleChildren, infoTooltipTitle, onRefresh}: Props) => {\n const {id, title: viewTitle} = config;\n const styles = useStyles();\n return (\n <DashboardLayoutItemView id={id}>\n <DQLayoutItemHeader title={viewTitle} infoTooltipTitle={infoTooltipTitle}>\n {titleChildren}\n </DQLayoutItemHeader>\n <BasicViewContent className={styles.viewContent}>\n <ReactResizeDetector refreshMode=\"debounce\" refreshRate={100} handleWidth handleHeight>\n <DQDashboardError\n errorData={{Icon: DefaultIcon, ...errorData}}\n onRefresh={onRefresh}\n variant={EmptyStateVariants.SMALL}\n />\n </ReactResizeDetector>\n </BasicViewContent>\n </DashboardLayoutItemView>\n );\n};\n\nexport default DQDashboardErrorView;\n","import {always, cond, curry, identity, join, map, pipe, propOr, propEq, slice} from 'ramda';\nimport i18n from 'ui-i18n';\nimport {ChartData} from '@reltio/components';\nimport {\n getAttributeTypesHierarchyByUri,\n isDateType,\n isTimestampBasedType,\n DataValidationFunction,\n DQChartsData,\n FilterOptions,\n Metadata,\n SearchState,\n AttributeType,\n isBooleanType,\n parseBoolean\n} from '@reltio/mdm-sdk';\nimport {getSearchState, localizeChartValues, facetFiltersToSearchState} from './charts';\nimport {getEqualsRawFilterSearchState, RawFilterFields} from './rawFilters';\nimport {getAttributeLabel} from './attributes';\nimport {GetSearchStateProps} from '../types/GetSearchStateProps';\n\ntype GetFormattedDataForTableChartFn = (chartType: string) => (chartsData: DQChartsData) => ChartData[];\nconst getFormattedDataForTableChart: GetFormattedDataForTableChartFn = (chartType: string) =>\n pipe(\n propOr({}, chartType),\n Object.entries,\n map(([item, value]) => ({label: item, group: item, value})),\n localizeChartValues\n );\n\nexport const valueComparator = ({sortDirection, sortField}: {sortDirection: 'asc' | 'desc'; sortField: string}) => (\n a: ChartData,\n b: ChartData\n) => {\n if (sortDirection === 'asc') {\n return a[sortField] > b[sortField] ? 1 : -1;\n } else return a[sortField] < b[sortField] ? 1 : -1;\n};\n\nconst filterExistedDVF = (dvfs: DataValidationFunction[], chartData: ChartData[]) =>\n chartData.filter((chartDataItem: ChartData) => dvfs.find(propEq('uri', chartDataItem.group)));\n\nexport const findDVFByUri = (dvfs: DataValidationFunction[], uri: string) => dvfs.find(propEq('uri', uri));\n\nconst enrichDVFDataWithFunctionLabel = curry((dvfs: DataValidationFunction[], chartData: ChartData[]) =>\n pipe(\n filterExistedDVF,\n map((chartDataItem: ChartData) => {\n const functionName = findDVFByUri(dvfs, chartDataItem.group)?.name;\n return {...chartDataItem, label: functionName};\n })\n )(dvfs, chartData)\n);\n\nconst getAttributeTypeLabelFromHierarhy: (attributeHierarhy: AttributeType[]) => string = pipe(\n map(getAttributeLabel),\n slice(1, Infinity),\n join(' / ')\n);\n\nconst enrichEntityLevelDVFData = curry((dvfs: DataValidationFunction[], metadata: Metadata, chartData: ChartData[]) =>\n pipe(\n filterExistedDVF,\n map((chartDataItem: ChartData) => {\n const {name, attribute: attributeUri} = findDVFByUri(dvfs, chartDataItem.group);\n const attributeTypesHierarhy = getAttributeTypesHierarchyByUri(metadata, attributeUri);\n return {\n ...chartDataItem,\n label: name,\n attributeLabel: getAttributeTypeLabelFromHierarhy(attributeTypesHierarhy)\n };\n })\n )(dvfs, chartData)\n);\n\ntype GetValidationChartDataFn = (chartsData: DQChartsData) => ChartData[];\nexport const getValidationChartData = (dvfs: DataValidationFunction[]): GetValidationChartDataFn =>\n pipe(getFormattedDataForTableChart('dataValidationFunctions'), enrichDVFDataWithFunctionLabel(dvfs));\n\nexport const getEntityLevelValidationChartData = (\n dvfs: DataValidationFunction[],\n metadata: Metadata\n): GetValidationChartDataFn =>\n pipe(getFormattedDataForTableChart('dataValidationFunctions'), enrichEntityLevelDVFData(dvfs, metadata));\nexport const getFrequencyChartData = getFormattedDataForTableChart('frequency');\nexport const getPatternAnalisysData = getFormattedDataForTableChart('pattern');\n\nconst getDVFAnalyticAttribtuteUri = (entityTypeUri: string, attributeName: string) =>\n `${entityTypeUri}/analyticsAttributes/AttributeValidations/analyticsAttributes/${attributeName}`;\nconst getValidationFilter = ({name, uri}: DataValidationFunction, entityTypeUri: string) => [\n {\n filter: FilterOptions.EQUALS,\n values: [[name]],\n fieldName: 'analyticsAttributes.AttributeValidations.FunctionName',\n uri: getDVFAnalyticAttribtuteUri(entityTypeUri, 'FunctionName')\n },\n {\n filter: FilterOptions.EQUALS,\n values: [[uri]],\n fieldName: 'analyticsAttributes.AttributeValidations.FunctionURI',\n uri: getDVFAnalyticAttribtuteUri(entityTypeUri, 'FunctionURI')\n }\n];\n\nconst getFrequencyAnalysisStateForTimestamp = curry(\n ({detailedAttributeType, entityTypeUri}: GetSearchStateProps, attributeValue: string) =>\n getEqualsRawFilterSearchState({\n fieldName: `${detailedAttributeType.fieldName}`,\n value: attributeValue,\n entityTypeUri\n })\n);\nconst getFrequencyAnalysisFilterForDate = curry(({fieldName}: {fieldName: string}, attributeValue: string) => [\n {\n filter: FilterOptions.ON,\n values: [attributeValue],\n fieldName\n }\n]);\nconst getFrequencyAnalysisFilter = curry(({fieldName}: {fieldName: string}, attributeValue: string) => [\n {\n filter: FilterOptions.EQUALS,\n values: [[attributeValue]],\n fieldName\n }\n]);\nconst getFrequencyAnalysisFilterForBoolean = curry(({fieldName}: {fieldName: string}, attributeValue: string) => [\n {\n filter: FilterOptions.EQUALS,\n values: [parseBoolean(attributeValue)],\n fieldName\n }\n]);\n\nexport const getFrequencyAnalysisSearchState = ({detailedAttributeType, entityTypeUri}: GetSearchStateProps) =>\n cond([\n [isTimestampBasedType, always(getFrequencyAnalysisStateForTimestamp)],\n [isDateType, always(getSearchState(getFrequencyAnalysisFilterForDate))],\n [isBooleanType, always(getSearchState(getFrequencyAnalysisFilterForBoolean))],\n [identity, always(getSearchState(getFrequencyAnalysisFilter))]\n ])(detailedAttributeType.type)({detailedAttributeType, entityTypeUri});\n\nexport const getValidationSearchState = (dvfs: DataValidationFunction[]) => ({\n entityTypeUri\n}: GetSearchStateProps): ((dvfUri: string) => SearchState) => (dvfUri) => {\n const dvf = findDVFByUri(dvfs, dvfUri);\n return pipe(getValidationFilter, facetFiltersToSearchState(null, entityTypeUri))(dvf, entityTypeUri);\n};\n\nexport const getPatternAnalysisSearchState = curry(\n ({detailedAttributeType, entityTypeUri}: GetSearchStateProps, pattern: string) =>\n getEqualsRawFilterSearchState({\n fieldName: `${detailedAttributeType.fieldName}.${RawFilterFields.PATTERN}`,\n value: `\"${pattern}\"`,\n entityTypeUri\n })\n);\nexport const getRowsCounterLabel = (chartData: ChartData[]) =>\n `(${chartData.length >= 100 ? i18n.text('top') + ' 100' : chartData.length})`;\n","import i18n from 'ui-i18n';\nimport {always, either, isEmpty, isNil, propOr, when} from 'ramda';\n\nimport {DatePeriod, DQDataLevel, TimeSeriesStatisticValues, getDvfColor} from '@reltio/mdm-sdk';\n\nimport {LineChartData} from '../../../types/LineChartData';\nimport {TableChartData} from '../../../types/TableChartData';\nimport {hasTimeRange} from '../../../services/mlDq';\n\nexport const NO_DATA_FIELD = 'noData';\n\nconst getEntityLevelColumnsOptions = ({functionsCount, period}: {functionsCount: number; period: DatePeriod}) => [\n {\n id: 'attributeLabel',\n label: i18n.text('Attribute'),\n width: 0.23,\n sortable: true\n },\n {\n id: 'label',\n label: i18n.text('Validation function'),\n secondLabel: `(${functionsCount})`,\n width: 0.37,\n sortable: true\n },\n {\n id: 'value',\n label: i18n.text('Profiles'),\n width: 0.4,\n sortable: true,\n ...(hasTimeRange(period) ? {getBarColor: getDvfColor} : {})\n }\n];\n\nconst getAttributeLevelColumnsOptions = ({functionsCount, period}: {functionsCount: number; period: DatePeriod}) => [\n {\n id: 'label',\n label: i18n.text('Validation function'),\n secondLabel: `(${functionsCount})`,\n width: 0.4,\n sortable: true\n },\n {\n id: 'value',\n label: i18n.text('Profiles'),\n width: 0.6,\n sortable: true,\n ...(hasTimeRange(period) ? {getBarColor: getDvfColor} : {})\n }\n];\n\nexport const getColumnsOptions = (dataLevel: DQDataLevel, chartData: TableChartData[], period: DatePeriod) => {\n return (dataLevel === DQDataLevel.ATTRIBUTE_TYPE ? getAttributeLevelColumnsOptions : getEntityLevelColumnsOptions)({\n functionsCount: chartData.length,\n period\n });\n};\n\nexport const getViolatedValidationData = (timeSeriesData: TimeSeriesStatisticValues): LineChartData => {\n const {data} = propOr({}, 'violatedProfiles', timeSeriesData);\n return when(either(isNil, isEmpty), always({[NO_DATA_FIELD]: null}))(data);\n};\n","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"88\",\n height: \"88\",\n viewBox: \"0 0 88 88\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"circle\", {\n cx: \"44\",\n cy: \"44\",\n r: \"44\",\n fill: \"#0072CE\",\n fillOpacity: \".1\"\n}), React.createElement(\"mask\", {\n id: \"svg1830866123a\",\n style: {\n maskType: \"alpha\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"88\",\n height: \"88\"\n}, React.createElement(\"circle\", {\n cx: \"44\",\n cy: \"44\",\n r: \"44\",\n fill: \"#fff\"\n})), React.createElement(\"g\", {\n mask: \"url(#svg1830866123a)\"\n}, React.createElement(\"g\", {\n opacity: \".9\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n fill: \"#fff\"\n}, React.createElement(\"path\", {\n d: \"M12.375 18.688a7 7 0 017-7h75.742a7 7 0 017 7v49.02a7 7 0 01-7 7H19.375a7 7 0 01-7-7v-49.02z\"\n}), React.createElement(\"path\", {\n opacity: \".4\",\n d: \"M16.844 22.813a7 7 0 017-7h75.741a7 7 0 017 7v49.02a7 7 0 01-7 7H23.844a7 7 0 01-7-7v-49.02z\"\n})), React.createElement(\"ellipse\", {\n opacity: \".5\",\n cx: \"87.908\",\n cy: \"29.318\",\n rx: \"1.496\",\n ry: \"1.5\",\n fill: \"#6DBCFF\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M19.854 31.381a3.562 3.562 0 013.552-3.563 3.562 3.562 0 013.552 3.563 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z\",\n fill: \"#E3EBF4\"\n}), React.createElement(\"path\", {\n opacity: \".5\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M30.697 29.052c0-.726.588-1.313 1.313-1.313h23.983a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z\",\n fill: \"#B1AABD\"\n}), React.createElement(\"path\", {\n opacity: \".43\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M30.697 33.553c0-.518.42-.938.938-.938h43.37a.938.938 0 010 1.876h-43.37a.938.938 0 01-.938-.938z\",\n fill: \"#B1AABD\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M30.697 36.554c0-.31.252-.563.563-.563h13.993a.563.563 0 110 1.126H31.26a.563.563 0 01-.563-.563z\",\n fill: \"#B1AABD\"\n}), React.createElement(\"rect\", {\n opacity: \".5\",\n x: \"19.854\",\n y: \"17.689\",\n width: \"29.914\",\n height: \"4.126\",\n rx: \"2.063\",\n fill: \"#645F6D\"\n}), React.createElement(\"ellipse\", {\n opacity: \".5\",\n cx: \"87.908\",\n cy: \"43.573\",\n rx: \"1.496\",\n ry: \"1.5\",\n fill: \"#6DBCFF\"\n}), React.createElement(\"rect\", {\n x: \"19.854\",\n y: \"42.072\",\n width: \"7.105\",\n height: \"7.127\",\n rx: \"3.552\",\n fill: \"#E3EBF4\"\n}), React.createElement(\"path\", {\n opacity: \".5\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M30.697 43.306c0-.725.588-1.313 1.313-1.313h28.41a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z\",\n fill: \"#B1AABD\"\n}), React.createElement(\"path\", {\n opacity: \".43\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M30.697 47.808c0-.518.42-.938.938-.938h48.23a.938.938 0 110 1.876h-48.23a.938.938 0 01-.938-.938z\",\n fill: \"#B1AABD\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M30.697 50.809c0-.31.252-.563.563-.563h38.884a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z\",\n fill: \"#B1AABD\"\n}), React.createElement(\"ellipse\", {\n opacity: \".5\",\n cx: \"87.908\",\n cy: \"57.828\",\n rx: \"1.496\",\n ry: \"1.5\",\n fill: \"#6DBCFF\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M19.854 59.891a3.562 3.562 0 013.552-3.564 3.562 3.562 0 013.552 3.564 3.562 3.562 0 01-3.552 3.564 3.562 3.562 0 01-3.552-3.564z\",\n fill: \"#E3EBF4\"\n}), React.createElement(\"path\", {\n opacity: \".5\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M30.697 57.561c0-.725.588-1.313 1.313-1.313h38.132a1.313 1.313 0 110 2.626H32.01a1.313 1.313 0 01-1.313-1.313z\",\n fill: \"#B1AABD\"\n}), React.createElement(\"path\", {\n opacity: \".43\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M30.697 62.063c0-.518.42-.938.938-.938h31.778a.938.938 0 110 1.875H31.635a.938.938 0 01-.938-.937z\",\n fill: \"#B1AABD\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M30.697 65.064c0-.311.252-.563.563-.563h13.993a.563.563 0 110 1.125H31.26a.563.563 0 01-.563-.562z\",\n fill: \"#B1AABD\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M0 3.094h88V88H0V3.094z\",\n fill: \"url(#paint0_linear_3200_4362)\"\n}), React.createElement(\"path\", {\n d: \"M79.893 76.85H21.308v14.184h58.585V76.85z\",\n fill: \"#F5C056\"\n}), React.createElement(\"path\", {\n d: \"M79.893 76.85H74.6v14.184h5.293V76.85z\",\n fill: \"#E99B00\"\n}), React.createElement(\"path\", {\n d: \"M48.73 76.893H26.283v14.184H48.73V76.893z\",\n fill: \"#FFEA5A\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M44.894 57.829c-1.687-4.26 13.113-4.043 11.413 0-1.353 3.218-1.353 7.53 0 12.934H44.894C46 64.93 46 60.618 44.894 57.83z\",\n fill: \"#FFD264\"\n}), React.createElement(\"path\", {\n d: \"M61.253 70.383H39.949v2.663h21.304v-2.663z\",\n fill: \"#FFD264\"\n}), React.createElement(\"path\", {\n d: \"M47.938 70.383h-4.185v2.663h4.185v-2.663z\",\n fill: \"#FFEA5A\"\n}), React.createElement(\"path\", {\n d: \"M64.676 73.046h-28.15v3.804h28.15v-3.804z\",\n fill: \"#795D1A\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M35.764 16.363v5.325H15.602v.143c0 13.634 8.992 24.714 20.162 24.961v2.994c-14-.986-25.108-15.488-25.108-33.233v-.19h25.108z\",\n fill: \"#FFCB64\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M64.677 16.363v5.325h20.161v.143c0 13.634-8.991 24.714-20.161 24.961v2.994c13.999-.986 25.107-15.488 25.107-33.233v-.19H64.677z\",\n fill: \"#ED985C\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M56.307 57.829c-1.353 3.218-1.353 7.53 0 12.934h-5.706V54.715c3.278.026 6.556 1.091 5.706 3.114z\",\n fill: \"#F4B046\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M64.676 73.046v3.804H50.601v-3.804h14.075z\",\n fill: \"#4F350B\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M61.253 70.383v2.663H50.6v-2.663h10.652z\",\n fill: \"#F4B046\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M74.933 10.656a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-11.43 0-23.311-20.1-24.449-45.65h2.194l-.38-3.044h-1.898a91.212 91.212 0 01.01-2.663h49.045z\",\n fill: \"#FFCE66\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M45.937 10.656c.006.569.01 1.14.01 1.712v.952h-.044l-.241 3.043h.294c.126 24.948 1.435 39.335 3.123 45.65-8.89-3.2-15.661-20.403-16.308-45.65h1.465l-.241-3.044h-1.271a158.252 158.252 0 01.006-2.663h13.207z\",\n fill: \"#FFEA5A\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M70.284 16.363h-3.91l.422-3.044h3.581a81.301 81.301 0 00-.01-2.663h4.566a102.429 102.429 0 01.01 2.663h-1.897l-.38 3.044h2.193c-1.138 25.55-13.019 45.65-24.448 45.65-.414 0-.828-.026-1.241-.078 11.92-1.382 19.899-20.946 21.114-45.572zm.083-5.707h-44.48 44.48z\",\n fill: \"#F4B046\"\n}), React.createElement(\"path\", {\n opacity: \".519\",\n d: \"M72.665 13.32h-44.51v3.043h44.51v-3.044z\",\n fill: \"#F4B046\"\n}), React.createElement(\"path\", {\n d: \"M48.318 73.046h-5.706v3.804h5.706v-3.804z\",\n fill: \"#96691F\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M65.526 10.656h4.235L58.973 35.935h-4.235l10.788-25.279z\",\n fill: \"url(#paint1_linear_3200_4362)\"\n}), React.createElement(\"g\", {\n filter: \"url(#filter0_d_3200_4362)\"\n}, React.createElement(\"path\", {\n d: \"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z\",\n fill: \"#000\"\n})), React.createElement(\"path\", {\n d: \"M56.909 56.472c5.993 0 10.85-4.858 10.85-10.85 0-5.994-4.857-10.852-10.85-10.852-5.993 0-10.852 4.858-10.852 10.851 0 5.993 4.859 10.851 10.852 10.851z\",\n fill: \"#DD612C\"\n}), React.createElement(\"path\", {\n d: \"M56.909 54.302a8.681 8.681 0 100-17.362 8.681 8.681 0 000 17.362z\",\n fill: \"#FFCE66\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M56.909 36.94a8.685 8.685 0 018.347 6.291c-5.74.351-10.312 5.02-10.51 10.8a8.699 8.699 0 01-6.008-5.47A11.212 11.212 0 0054.9 37.174a8.684 8.684 0 012.008-.234z\",\n fill: \"#FFF18C\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M48.202 10.656l10.862 25.341H54.83L43.646 10.705l4.556-.049z\",\n fill: \"#F83D3D\"\n})), React.createElement(\"defs\", null, React.createElement(\"linearGradient\", {\n id: \"paint0_linear_3200_4362\",\n x1: \"0\",\n y1: \"3.094\",\n x2: \"0\",\n y2: \"88\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopColor: \"#FAFAFA\",\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\",\n stopColor: \"#F4F4F4\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint1_linear_3200_4362\",\n x1: \"62.25\",\n y1: \"10.656\",\n x2: \"62.25\",\n y2: \"35.935\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopColor: \"#B93131\"\n}), React.createElement(\"stop\", {\n offset: \"1\",\n stopColor: \"#831616\"\n})), React.createElement(\"filter\", {\n id: \"filter0_d_3200_4362\",\n x: \"40.057\",\n y: \"30.77\",\n width: \"33.702\",\n height: \"33.703\",\n filterUnits: \"userSpaceOnUse\",\n colorInterpolationFilters: \"sRGB\"\n}, React.createElement(\"feFlood\", {\n floodOpacity: \"0\",\n result: \"BackgroundImageFix\"\n}), React.createElement(\"feColorMatrix\", {\n in: \"SourceAlpha\",\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",\n result: \"hardAlpha\"\n}), React.createElement(\"feOffset\", {\n dy: \"2\"\n}), React.createElement(\"feGaussianBlur\", {\n stdDeviation: \"3\"\n}), React.createElement(\"feColorMatrix\", {\n type: \"matrix\",\n values: \"0 0 0 0 0.0335613 0 0 0 0 0.334579 0 0 0 0 0.412601 0 0 0 0.5 0\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in2: \"BackgroundImageFix\",\n result: \"effect1_dropShadow_3200_4362\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in: \"SourceGraphic\",\n in2: \"effect1_dropShadow_3200_4362\",\n result: \"shape\"\n})))));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"88\",\n height: \"88\",\n viewBox: \"0 0 88 88\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"circle\", {\n cx: \"44\",\n cy: \"44\",\n r: \"44\",\n fill: \"#0072CE\",\n fillOpacity: \".1\"\n}), React.createElement(\"mask\", {\n id: \"svg355575424a\",\n style: {\n maskType: \"alpha\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"88\",\n height: \"88\"\n}, React.createElement(\"circle\", {\n cx: \"44\",\n cy: \"44\",\n r: \"44\",\n fill: \"#fff\"\n})), React.createElement(\"g\", {\n mask: \"url(#svg355575424a)\"\n}, React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M-5.5 3.094h88V88h-88V3.094z\",\n fill: \"url(#paint0_linear_3488_11934)\"\n}), React.createElement(\"path\", {\n opacity: \".05\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z\",\n fill: \"url(#paint1_linear_3488_11934)\"\n}), React.createElement(\"path\", {\n opacity: \".06\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z\",\n fill: \"#000\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z\",\n fill: \"#fff\"\n}), React.createElement(\"path\", {\n opacity: \".8\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z\",\n fill: \"#979797\"\n}), React.createElement(\"path\", {\n opacity: \".8\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 010 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z\",\n fill: \"#979797\"\n}), React.createElement(\"path\", {\n opacity: \".8\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.062H37.254c-.57 0-1.031-.462-1.031-1.031z\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.062H37.125c-.57 0-1.031-.462-1.031-1.031z\",\n fill: \"#979797\"\n}), React.createElement(\"path\", {\n opacity: \".8\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z\",\n fill: \"#979797\"\n}), React.createElement(\"circle\", {\n cx: \"23.031\",\n cy: \"27.156\",\n r: \"3.094\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"circle\", {\n cx: \"23.031\",\n cy: \"27.156\",\n r: \"3.094\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"circle\", {\n cx: \"41.25\",\n cy: \"36.438\",\n r: \"2.063\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"circle\", {\n cx: \"41.25\",\n cy: \"46.75\",\n r: \"2.063\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"circle\", {\n cx: \"23.031\",\n cy: \"58.094\",\n r: \"3.094\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"circle\", {\n cx: \"23.031\",\n cy: \"68.406\",\n r: \"3.094\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".8\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 110 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z\",\n fill: \"#979797\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z\",\n fill: \"#2B98F0\"\n}), React.createElement(\"path\", {\n opacity: \".54\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z\",\n fill: \"#000\"\n}), React.createElement(\"path\", {\n opacity: \".6\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z\",\n fill: \"#fff\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.063 2.063 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.063 2.063 0 010 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z\",\n fill: \"#979797\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n d: \"M37.687 66.48l8.942 8.309v.958l19.925 19.702 31.064-.552 7.006-25.47-34.487-34.144-11.2.567c-3.238-1.86-5.34-3.02-6.306-3.48-.54-.258-.383 5.565-2.755 7.725-1.243 1.133-3.462 4.104-6.657 8.914l-5.532 17.47z\",\n fill: \"url(#paint2_linear_3488_11934)\"\n}), React.createElement(\"g\", {\n filter: \"url(#filter0_d_3488_11934)\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n}, React.createElement(\"path\", {\n d: \"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312a18.719 18.719 0 014.236 4.554l4.28-.699a23.425 23.425 0 012.392 6.47l-3.639 2.443c.262 2.058.2 4.18-.216 6.285l3.466 2.572a24.254 24.254 0 01-2.838 6.375l-4.231-.855a19.61 19.61 0 01-4.526 4.366l.62 4.34a23.426 23.426 0 01-6.409 2.551l-2.345-3.649a18.72 18.72 0 01-6.219-.1l-2.593 3.564a22.7 22.7 0 01-6.224-2.757l.912-4.304a18.715 18.715 0 01-4.281-4.567l-4.285.7a23.424 23.424 0 01-2.4-6.438l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14zM60.075 49.74c-2.804-1.248-6.112.064-7.388 2.93-1.276 2.867-.038 6.203 2.766 7.452 2.804 1.248 6.112-.064 7.388-2.93 1.276-2.867.038-6.203-2.766-7.452z\",\n fill: \"#6B93AC\"\n}), React.createElement(\"path\", {\n d: \"M67.338 33.427a22.7 22.7 0 013.043 1.642l-.913 4.312c.779.597 1.503 1.25 2.168 1.95l-10.07 9.392a5.444 5.444 0 00-1.491-.983c-2.804-1.248-6.112.064-7.388 2.93a5.7 5.7 0 00.626 5.749l-10.071 9.39c-.502-.585-.965-1.2-1.39-1.84l-4.284.7a23.424 23.424 0 01-2.4-6.437l3.633-2.44a19.607 19.607 0 01.21-6.384l-3.465-2.57a24.263 24.263 0 012.823-6.34l4.229.855a19.605 19.605 0 014.604-4.429l-.618-4.332c2-1.154 4.155-2.005 6.39-2.524l2.347 3.652a18.713 18.713 0 016.259.125l2.588-3.557c1.069.296 2.128.675 3.17 1.14z\",\n fill: \"#7CA6BF\"\n}), React.createElement(\"path\", {\n d: \"M62.886 42.644c6.409 2.854 9.24 10.479 6.322 17.03-2.917 6.553-10.478 9.552-16.887 6.698-6.409-2.853-9.24-10.478-6.322-17.03 2.917-6.553 10.478-9.551 16.887-6.698zm-1.32 2.966c-4.808-2.14-10.478.109-12.666 5.023-2.188 4.914-.065 10.633 4.742 12.773 4.806 2.14 10.477-.108 12.665-5.023 2.188-4.914.065-10.633-4.742-12.773z\",\n fill: \"#AAC4D5\"\n}), React.createElement(\"path\", {\n d: \"M62.886 42.644a12.424 12.424 0 014.22 3.075l-2.366 2.207a9.317 9.317 0 00-3.175-2.316c-4.807-2.14-10.477.109-12.665 5.023-1.635 3.673-.863 7.795 1.638 10.536l-2.367 2.208c-3.325-3.656-4.35-9.145-2.172-14.035 2.917-6.553 10.478-9.551 16.887-6.698z\",\n fill: \"#CBDDE9\"\n}))), React.createElement(\"defs\", null, React.createElement(\"linearGradient\", {\n id: \"paint0_linear_3488_11934\",\n x1: \"-5.5\",\n y1: \"3.094\",\n x2: \"-5.5\",\n y2: \"88\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopColor: \"#FAFAFA\",\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\",\n stopColor: \"#F4F4F4\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint1_linear_3488_11934\",\n x1: \"91.478\",\n y1: \"62.257\",\n x2: \"53.241\",\n y2: \"26.703\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint2_linear_3488_11934\",\n x1: \"86.975\",\n y1: \"77.519\",\n x2: \"49.809\",\n y2: \"46.968\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopColor: \"#90A4AE\",\n stopOpacity: \"0\"\n}), React.createElement(\"stop\", {\n offset: \"1\",\n stopOpacity: \".75\"\n})), React.createElement(\"filter\", {\n id: \"filter0_d_3488_11934\",\n x: \"32.168\",\n y: \"30.067\",\n width: \"53.209\",\n height: \"53.716\",\n filterUnits: \"userSpaceOnUse\",\n colorInterpolationFilters: \"sRGB\"\n}, React.createElement(\"feFlood\", {\n floodOpacity: \"0\",\n result: \"BackgroundImageFix\"\n}), React.createElement(\"feColorMatrix\", {\n in: \"SourceAlpha\",\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",\n result: \"hardAlpha\"\n}), React.createElement(\"feOffset\", {\n dx: \"1\",\n dy: \"2\"\n}), React.createElement(\"feGaussianBlur\", {\n stdDeviation: \"2\"\n}), React.createElement(\"feColorMatrix\", {\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in2: \"BackgroundImageFix\",\n result: \"effect1_dropShadow_3488_11934\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in: \"SourceGraphic\",\n in2: \"effect1_dropShadow_3488_11934\",\n result: \"shape\"\n})))));","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"88\",\n height: \"88\",\n viewBox: \"0 0 88 88\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"circle\", {\n cx: \"44\",\n cy: \"44\",\n r: \"44\",\n fill: \"#0072CE\",\n fillOpacity: \".1\"\n}), React.createElement(\"mask\", {\n id: \"svg1954152798a\",\n style: {\n maskType: \"alpha\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"88\",\n height: \"88\"\n}, React.createElement(\"circle\", {\n cx: \"44\",\n cy: \"44\",\n r: \"44\",\n fill: \"#fff\"\n})), React.createElement(\"g\", {\n mask: \"url(#svg1954152798a)\"\n}, React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M-5.5 3.094h88V88h-88V3.094z\",\n fill: \"url(#paint0_linear_4523_4542)\"\n}), React.createElement(\"path\", {\n opacity: \".05\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M64.543 19.547L84.7 39.704V90.88H32.1L17.875 77.372V19.547h46.668z\",\n fill: \"url(#paint1_linear_4523_4542)\"\n}), React.createElement(\"path\", {\n opacity: \".06\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M16.156 19.938h69.438A2.406 2.406 0 0188 22.343v53.968a2.406 2.406 0 01-2.406 2.407H16.156a2.406 2.406 0 01-2.406-2.406v-53.97a2.406 2.406 0 012.406-2.405z\",\n fill: \"#000\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M17.188 19.25H86.28c.95 0 1.719.77 1.719 1.719v53.968c0 .95-.77 1.72-1.719 1.72H17.187c-.949 0-1.718-.77-1.718-1.72V20.97c0-.95.77-1.719 1.719-1.719z\",\n fill: \"#fff\"\n}), React.createElement(\"path\", {\n opacity: \".8\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.223 24.968c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.094 29.093c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 110 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z\",\n fill: \"#979797\"\n}), React.createElement(\"path\", {\n opacity: \".8\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.223 56.031c0-.57.462-1.031 1.031-1.031h14.309a1.031 1.031 0 010 2.063H37.254c-.57 0-1.031-.462-1.031-1.032z\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.094 60.156c0-.57.462-1.031 1.031-1.031h22.07a1.031 1.031 0 110 2.063h-22.07c-.57 0-1.031-.462-1.031-1.032z\",\n fill: \"#979797\"\n}), React.createElement(\"path\", {\n opacity: \".8\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.223 66.344c0-.57.462-1.031 1.031-1.031h28.059a1.031 1.031 0 010 2.063H37.254c-.57-.001-1.031-.463-1.031-1.032z\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M36.094 70.469c0-.57.462-1.031 1.031-1.031h25.508a1.031 1.031 0 010 2.063H37.125c-.57-.001-1.031-.463-1.031-1.032z\",\n fill: \"#979797\"\n}), React.createElement(\"path\", {\n opacity: \".8\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M47.567 35.406c0-.57.461-1.031 1.03-1.031h28.06a1.031 1.031 0 010 2.063h-28.06c-.569 0-1.03-.462-1.03-1.032z\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M47.438 39.531c0-.57.461-1.031 1.03-1.031H70.54a1.031 1.031 0 010 2.063H48.47c-.57 0-1.032-.462-1.032-1.032z\",\n fill: \"#979797\"\n}), React.createElement(\"circle\", {\n cx: \"23.031\",\n cy: \"27.156\",\n r: \"3.094\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"circle\", {\n cx: \"23.031\",\n cy: \"27.156\",\n r: \"3.094\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"circle\", {\n cx: \"41.25\",\n cy: \"36.438\",\n r: \"2.063\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"circle\", {\n cx: \"41.25\",\n cy: \"46.75\",\n r: \"2.063\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"circle\", {\n cx: \"23.031\",\n cy: \"58.094\",\n r: \"3.094\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"circle\", {\n cx: \"23.031\",\n cy: \"68.406\",\n r: \"3.094\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".8\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M47.567 45.719c0-.57.461-1.032 1.03-1.032h28.06a1.031 1.031 0 010 2.063h-28.06c-.569 0-1.03-.462-1.03-1.031z\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M47.438 49.844c0-.57.461-1.032 1.03-1.032h25.509a1.031 1.031 0 010 2.063H48.469c-.57 0-1.032-.462-1.032-1.031z\",\n fill: \"#979797\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M31.802 37.125v-2.75h-.688V48.251h3.843v-.688h-3.155v-9.75h3.155v-.688h-3.155z\",\n fill: \"#2B98F0\"\n}), React.createElement(\"path\", {\n opacity: \".54\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M32.68 26.469l-1.215 1.215-1.215-1.215h2.43z\",\n fill: \"#000\"\n}), React.createElement(\"path\", {\n opacity: \".6\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M17.188 7.563h63.937c1.14 0 2.063.923 2.063 2.062v6.188c0 1.139-.924 2.062-2.063 2.062H17.187a2.062 2.062 0 01-2.062-2.063V9.625c0-1.14.923-2.063 2.063-2.063z\",\n fill: \"#fff\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M19.938 12.719c0-1.14.923-2.063 2.062-2.063h24.063a2.062 2.062 0 010 4.125H22a2.062 2.062 0 01-2.063-2.062zM50.875 12.719c0-1.14.923-2.063 2.063-2.063h3.437a2.062 2.062 0 110 4.125h-3.438a2.062 2.062 0 01-2.062-2.062z\",\n fill: \"#979797\"\n}), React.createElement(\"g\", {\n filter: \"url(#filter0_d_4523_4542)\"\n}, React.createElement(\"path\", {\n d: \"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z\",\n fill: \"#000\"\n})), React.createElement(\"path\", {\n d: \"M57.406 74.25c9.493 0 17.188-7.695 17.188-17.188 0-9.492-7.695-17.187-17.188-17.187-9.492 0-17.187 7.695-17.187 17.188 0 9.492 7.695 17.187 17.187 17.187z\",\n fill: \"#4A90E2\"\n}), React.createElement(\"path\", {\n opacity: \".15\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M57.406 34.719c12.34 0 22.344 10.003 22.344 22.343S69.746 79.406 57.406 79.406c-12.34 0-22.343-10.003-22.343-22.344 0-12.34 10.003-22.343 22.343-22.343zm-.172 2.406c-10.916 0-19.765 8.85-19.765 19.766 0 10.916 8.85 19.765 19.765 19.765C68.151 76.656 77 67.806 77 56.891c0-10.917-8.85-19.766-19.766-19.766z\",\n fill: \"#4A90E2\"\n}), React.createElement(\"path\", {\n opacity: \".3\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M57.406 38.844c10.062 0 18.219 8.157 18.219 18.218 0 10.062-8.157 18.22-18.219 18.22-10.062 0-18.218-8.158-18.218-18.22 0-10.061 8.156-18.218 18.218-18.218zm0 2.043c-8.933 0-16.175 7.242-16.175 16.175 0 8.934 7.242 16.176 16.175 16.176 8.934 0 16.176-7.242 16.176-16.175 0-8.934-7.242-16.176-16.176-16.176z\",\n fill: \"#4A90E2\"\n}), React.createElement(\"path\", {\n opacity: \".05\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M57.406 26.469C74.303 26.469 88 40.166 88 57.062c0 16.897-13.697 30.594-30.594 30.594-16.896 0-30.593-13.697-30.593-30.594 0-16.896 13.697-30.593 30.593-30.593zm-.172 3.437c-14.903 0-26.984 12.082-26.984 26.985 0 14.903 12.081 26.984 26.984 26.984 14.903 0 26.985-12.081 26.985-26.984 0-14.903-12.082-26.985-26.985-26.985z\",\n fill: \"#4A90E2\"\n}), React.createElement(\"path\", {\n d: \"M57.406 71.844c8.164 0 14.782-6.618 14.782-14.781 0-8.164-6.618-14.782-14.782-14.782-8.163 0-14.781 6.618-14.781 14.782 0 8.163 6.618 14.78 14.781 14.78z\",\n fill: \"#61A3F1\"\n}), React.createElement(\"path\", {\n opacity: \".05\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M58.298 46.448L75.18 63.33 66.066 75.41h-2.029l-7.582-7.582 1.006-3.178.837-18.201z\",\n fill: \"url(#paint2_linear_4523_4542)\"\n}), React.createElement(\"g\", {\n filter: \"url(#filter1_d_4523_4542)\"\n}, React.createElement(\"circle\", {\n cx: \"57.406\",\n cy: \"47.781\",\n r: \"1.719\",\n fill: \"#fff\"\n})), React.createElement(\"g\", {\n filter: \"url(#filter2_d_4523_4542)\"\n}, React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M55.688 53.969a1.719 1.719 0 113.438 0v12.375a1.719 1.719 0 11-3.438 0V53.969z\",\n fill: \"#fff\"\n}))), React.createElement(\"defs\", null, React.createElement(\"linearGradient\", {\n id: \"paint0_linear_4523_4542\",\n x1: \"-5.5\",\n y1: \"3.094\",\n x2: \"-5.5\",\n y2: \"88\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopColor: \"#FAFAFA\",\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\",\n stopColor: \"#F4F4F4\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint1_linear_4523_4542\",\n x1: \"91.478\",\n y1: \"62.257\",\n x2: \"53.241\",\n y2: \"26.703\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint2_linear_4523_4542\",\n x1: \"77.079\",\n y1: \"63.788\",\n x2: \"62.929\",\n y2: \"54.707\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\"\n})), React.createElement(\"filter\", {\n id: \"filter0_d_4523_4542\",\n x: \"36.219\",\n y: \"37.875\",\n width: \"42.375\",\n height: \"42.375\",\n filterUnits: \"userSpaceOnUse\",\n colorInterpolationFilters: \"sRGB\"\n}, React.createElement(\"feFlood\", {\n floodOpacity: \"0\",\n result: \"BackgroundImageFix\"\n}), React.createElement(\"feColorMatrix\", {\n in: \"SourceAlpha\",\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",\n result: \"hardAlpha\"\n}), React.createElement(\"feOffset\", {\n dy: \"2\"\n}), React.createElement(\"feGaussianBlur\", {\n stdDeviation: \"2\"\n}), React.createElement(\"feColorMatrix\", {\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in2: \"BackgroundImageFix\",\n result: \"effect1_dropShadow_4523_4542\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in: \"SourceGraphic\",\n in2: \"effect1_dropShadow_4523_4542\",\n result: \"shape\"\n})), React.createElement(\"filter\", {\n id: \"filter1_d_4523_4542\",\n x: \"51.688\",\n y: \"44.063\",\n width: \"11.438\",\n height: \"11.438\",\n filterUnits: \"userSpaceOnUse\",\n colorInterpolationFilters: \"sRGB\"\n}, React.createElement(\"feFlood\", {\n floodOpacity: \"0\",\n result: \"BackgroundImageFix\"\n}), React.createElement(\"feColorMatrix\", {\n in: \"SourceAlpha\",\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",\n result: \"hardAlpha\"\n}), React.createElement(\"feOffset\", {\n dy: \"2\"\n}), React.createElement(\"feGaussianBlur\", {\n stdDeviation: \"2\"\n}), React.createElement(\"feColorMatrix\", {\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in2: \"BackgroundImageFix\",\n result: \"effect1_dropShadow_4523_4542\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in: \"SourceGraphic\",\n in2: \"effect1_dropShadow_4523_4542\",\n result: \"shape\"\n})), React.createElement(\"filter\", {\n id: \"filter2_d_4523_4542\",\n x: \"51.688\",\n y: \"50.25\",\n width: \"11.438\",\n height: \"23.813\",\n filterUnits: \"userSpaceOnUse\",\n colorInterpolationFilters: \"sRGB\"\n}, React.createElement(\"feFlood\", {\n floodOpacity: \"0\",\n result: \"BackgroundImageFix\"\n}), React.createElement(\"feColorMatrix\", {\n in: \"SourceAlpha\",\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",\n result: \"hardAlpha\"\n}), React.createElement(\"feOffset\", {\n dy: \"2\"\n}), React.createElement(\"feGaussianBlur\", {\n stdDeviation: \"2\"\n}), React.createElement(\"feColorMatrix\", {\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.2 0\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in2: \"BackgroundImageFix\",\n result: \"effect1_dropShadow_4523_4542\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in: \"SourceGraphic\",\n in2: \"effect1_dropShadow_4523_4542\",\n result: \"shape\"\n})))));","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles((theme) => ({\n title: {\n whiteSpace: 'nowrap',\n height: '24px',\n display: 'flex',\n alignItems: 'center',\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n },\n titleCount: {\n fontSize: '14px',\n overflow: 'hidden',\n lineHeight: '20px',\n textOverflow: 'ellipsis'\n },\n viewContent: {\n height: '100%',\n overflow: 'hidden',\n position: 'relative',\n padding: '0 16px 10px'\n },\n countProfiles: {\n color: theme.palette.text.primary,\n fontWeight: 700\n },\n chartInfoPanel: {\n padding: '0 12px'\n }\n}));\n","import React, {ReactElement} from 'react';\nimport ReactResizeDetector from 'react-resize-detector';\nimport {Link as Link} from '@material-ui/core';\nimport i18n from 'ui-i18n';\nimport {BasicViewContent, EMPTY_STATE_ICONS} from '@reltio/components';\nimport {DQDataLevel} from '@reltio/mdm-sdk';\nimport NiceOneIcon from '../icons/niceOne.svg';\nimport SettingsIcon from '../icons/settingsIcon.svg';\nimport DQLayoutItemHeader from '../../../components/DQLayoutItemHeader/DQLayoutItemHeader';\nimport NotSupportedIcon from '../icons/notSupportedIcon.svg';\nimport DQLayoutItemView from '../../../components/DQLayoutItemView/DQLayoutItemView';\nimport DQDashboardError from '../../../components/DQDashboardError/DQDashboardError';\nimport {DQDashboardView} from '../../../types/DQDashboardView';\nimport {useStyles} from './styles';\n\nexport enum VVFNoDataChartType {\n DVF_NOT_SUPPORTED = 'dvfNotSupported',\n DVF_NOT_CONFIGURE = 'dvfNotConfigured',\n DATA_VALID = 'dataValid',\n PERMISSION_DENIED = 'permissionDenied'\n}\ntype Props = {\n chartType?: VVFNoDataChartType;\n dataLevel: DQDataLevel;\n title: string;\n infoTooltipTitle?: string | ReactElement;\n titleChildren?: React.ReactNode;\n dvfConfigLink: string;\n config: DQDashboardView;\n};\n\nconst VVFChartNoData = ({\n chartType,\n dataLevel,\n title: chartTitle,\n infoTooltipTitle,\n titleChildren,\n dvfConfigLink,\n config\n}: Props) => {\n const styles = useStyles();\n let icon, message, title;\n const dataSourceLabel =\n dataLevel === DQDataLevel.ATTRIBUTE_TYPE ? i18n.text('attribute type') : i18n.text('entity type');\n switch (chartType) {\n case VVFNoDataChartType.DVF_NOT_SUPPORTED: {\n icon = NotSupportedIcon;\n title = i18n.text('Data validation functions are not supported for\\nReference attributes at this time.');\n break;\n }\n case VVFNoDataChartType.DVF_NOT_CONFIGURE: {\n icon = SettingsIcon;\n message = i18n.text('If we spot any validation issues, we’ll display them here.');\n title = (\n <>\n <Link\n href={dvfConfigLink}\n target=\"_blank\"\n component={dvfConfigLink ? 'a' : 'span'}\n color={dvfConfigLink ? 'primary' : 'inherit'}\n underline={dvfConfigLink ? 'hover' : 'none'}\n data-reltio-id=\"reltio-dq-dashboard-define-dvf-link\"\n >\n {`${i18n.text('Define some data validation functions')} `}\n </Link>\n {i18n.text('for this ${dataSourceLabel} (or ask your Tenant Admin).', {dataSourceLabel})}\n </>\n );\n break;\n }\n case VVFNoDataChartType.DATA_VALID: {\n icon = NiceOneIcon;\n message = i18n.text(\n 'We didn’t spot any validation issues for this ${dataSourceLabel}.\\nYou can kick back and enjoy a cold one.',\n {dataSourceLabel}\n );\n title = i18n.text('Nice one!');\n break;\n }\n case VVFNoDataChartType.PERMISSION_DENIED: {\n icon = EMPTY_STATE_ICONS.ERROR;\n message = i18n.text('Please contact your Tenant Admin to change permissions');\n title = i18n.text('You don’t currently have permission to view this chart');\n }\n }\n return (\n <DQLayoutItemView config={config}>\n <DQLayoutItemHeader title={chartTitle} infoTooltipTitle={infoTooltipTitle}>\n {titleChildren}\n </DQLayoutItemHeader>\n <BasicViewContent className={styles.viewContent}>\n <ReactResizeDetector refreshMode=\"debounce\" refreshRate={100} handleHeight>\n {({height = 0}) => (\n <DQDashboardError\n height={height}\n errorData={{\n Icon: icon,\n title,\n message\n }}\n />\n )}\n </ReactResizeDetector>\n </BasicViewContent>\n </DQLayoutItemView>\n );\n};\n\nexport default VVFChartNoData;\n","import {useContext, useCallback} from 'react';\n\nimport {RequestStates} from '@reltio/components';\nimport {ApiErrorCode, DataValidationFunction, DQDataLevel} from '@reltio/mdm-sdk';\n\nimport {useEntityAndAttributeType} from '../../../../contexts/EntityAndAttributeTypeProvider';\nimport {DataLevelContext} from '../../../../contexts/DataLevelContext';\nimport {isReferenceChild} from '../../../../services/attributeDetails';\n\nimport {VVFNoDataChartType} from '../VVFChartNodata';\n\ntype Props = {\n dvfs: DataValidationFunction[];\n errorCode: ApiErrorCode;\n state: RequestStates;\n};\n\nexport const useNoDataDvfType = ({dvfs: activeDvfs, errorCode, state: dvfsState}: Props) => {\n const dataLevel = useContext(DataLevelContext);\n const {detailedAttributeType} = useEntityAndAttributeType();\n\n const getNoDataStatus = useCallback(\n (chartDataState: RequestStates, hasData: boolean) => {\n const chartState =\n dvfsState === RequestStates.LOADED && chartDataState === RequestStates.LOADED\n ? RequestStates.LOADED\n : dvfsState === RequestStates.ERROR || chartDataState === RequestStates.ERROR\n ? RequestStates.ERROR\n : RequestStates.LOADING;\n\n const isAttributeDataLevel = dataLevel === DQDataLevel.ATTRIBUTE_TYPE;\n const isPermissionDenied = errorCode === ApiErrorCode.ACCESS_DENIED;\n const isDVFNotSupported = isAttributeDataLevel && isReferenceChild(detailedAttributeType);\n const isDVFNotConfigured =\n errorCode === ApiErrorCode.DVF_NOT_CONFIGURED ||\n (activeDvfs?.length === 0 && chartState !== RequestStates.ERROR && dvfsState === RequestStates.LOADED);\n const isDataValid = chartState === RequestStates.LOADED && activeDvfs?.length > 0 && !hasData;\n\n const getNoDataType = () => {\n if (isDVFNotSupported) return VVFNoDataChartType.DVF_NOT_SUPPORTED;\n if (isDVFNotConfigured) return VVFNoDataChartType.DVF_NOT_CONFIGURE;\n if (isDataValid) return VVFNoDataChartType.DATA_VALID;\n if (isPermissionDenied) return VVFNoDataChartType.PERMISSION_DENIED;\n };\n\n return {\n type: getNoDataType(),\n chartState\n };\n },\n [activeDvfs, errorCode, dvfsState, dataLevel, detailedAttributeType]\n );\n\n return getNoDataStatus;\n};\n","import {useContext, useMemo} from 'react';\nimport {propEq} from 'ramda';\n\nimport {DataValidationFunction, DQDataLevel, StatusVF} from '@reltio/mdm-sdk';\n\nimport {useEntityAndAttributeType} from '../../../../contexts/EntityAndAttributeTypeProvider';\nimport {DataLevelContext} from '../../../../contexts/DataLevelContext';\nimport {DVFContext} from '../../../../contexts/DVFContext';\nimport {getDVFsForAttribute} from '../../../../services/attributes';\n\ntype Props = {\n onlyActive?: boolean;\n};\n\nexport const useDvfs = ({onlyActive = true}: Props) => {\n const {dvfs, dvfConfigLink} = useContext(DVFContext);\n const dataLevel = useContext(DataLevelContext);\n const {detailedAttributeType} = useEntityAndAttributeType();\n\n const {data: dvfsData, state, reload, errorCode} = dvfs;\n\n const isAttributeDataLevel = dataLevel === DQDataLevel.ATTRIBUTE_TYPE;\n const currentDvfs: DataValidationFunction[] = useMemo(\n () => (isAttributeDataLevel ? getDVFsForAttribute(dvfsData, detailedAttributeType?.uri) : dvfsData) || [],\n [isAttributeDataLevel, dvfsData, detailedAttributeType?.uri]\n );\n const resultDvfs = useMemo(\n () => (onlyActive ? currentDvfs.filter(propEq('status', StatusVF.ACTIVE)) : currentDvfs),\n [currentDvfs, onlyActive]\n );\n\n return {\n dvfs: resultDvfs,\n dvfConfigLink,\n state,\n reload,\n errorCode\n };\n};\n","import {pipe, split, is} from 'ramda';\nimport i18n from 'ui-i18n';\nimport {TableChartData} from '../../types/TableChartData';\n\nexport const getLabelAndMaxValue = pipe(split('|'), ([label, maxValue]) => ({label, maxValue}));\nexport const getValueByColumnId = (id: string, rowValue: TableChartData) =>\n is(Number, rowValue[id]) ? i18n.number(rowValue[id]) : rowValue[id];\n","import React, {useRef} from 'react';\nimport ReactResizeDetector from 'react-resize-detector';\nimport {RootRef as RootRef} from '@material-ui/core';\n\ntype Props = {\n children: React.ReactElement;\n handler: (isOverflow: boolean) => void;\n handleWidth?: boolean;\n};\n\nconst OverflowingHandler = ({children, handler, handleWidth = true}: Props) => {\n const checkOverflow = (el: HTMLElement) => el && el.clientWidth < el.scrollWidth;\n const resizeHandler = () => handler(checkOverflow(childrenRef.current));\n const childrenRef = useRef();\n return (\n <ReactResizeDetector handleWidth={handleWidth} onResize={resizeHandler}>\n <>\n <RootRef rootRef={childrenRef}>{children}</RootRef>\n </>\n </ReactResizeDetector>\n );\n};\nexport default OverflowingHandler;\n","import {makeStyles} from '@material-ui/core/styles';\n\nconst NUMBER_CELL_WIDTH = 90;\nconst SORT_ICON_WIDTH = 22;\nconst BAR_PADDING_WIDHT = 32;\nconst textOverflow = {\n background: 'linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)',\n content: '\"\"',\n height: '100%',\n pointerEvents: 'none',\n position: 'absolute',\n right: 0,\n top: 0,\n width: '40px'\n};\nconst BarAxis = {\n background: 'rgba(0, 0, 0, 0.38)',\n bottom: 0,\n content: '\"\"',\n height: '3px',\n left: 0,\n position: 'absolute',\n width: '1px'\n};\n\nexport const useStyles = makeStyles((theme) => ({\n attribute: {\n '&:after': textOverflow,\n alignItems: 'center',\n color: theme.palette.text.primary,\n display: 'flex',\n fontSize: '13px',\n fontWeight: 'normal',\n height: '100%',\n lineHeight: '15px',\n overflow: 'hidden',\n padding: '0 16px',\n whiteSpace: 'pre'\n },\n headCell: {\n '&>div': {\n display: 'flex',\n flexDirection: (isFirstColumn) => (isFirstColumn ? 'row' : 'row-revers'),\n flexGrow: 1,\n justifyContent: 'flex-start',\n marginLeft: (isFirstColumn) => !isFirstColumn && '-26px',\n paddingLeft: '16px',\n paddingRight: (isFirstColumn) => isFirstColumn && '0'\n },\n '&>div>span': {\n flexGrow: 1,\n justifyContent: (isFirstColumn) => (isFirstColumn ? 'flex-start' : 'flex-end'),\n marginLeft: '0!important',\n width: '100%'\n },\n height: '100%',\n lineHeight: '47px'\n },\n headCellWithRange: {\n '&>div': {\n display: 'flex',\n flexDirection: 'row-revers',\n flexGrow: 1,\n justifyContent: 'flex-start',\n padding: '0 10px 0 16px'\n },\n '&>div>span': {\n flexGrow: 1,\n justifyContent: 'flex-start!important',\n width: '100%'\n },\n height: '100%',\n lineHeight: '47px'\n },\n headLabel: {\n color: theme.palette.text.primary,\n fontSize: '12px',\n fontWeight: 500,\n lineHeight: '47px',\n overflow: 'hidden',\n position: 'relative',\n whiteSpace: 'nowrap',\n '&.overflowed:after': textOverflow\n },\n labelWrapper: {\n maxWidth: `${NUMBER_CELL_WIDTH}px`,\n '&.sortable': {\n maxWidth: `${NUMBER_CELL_WIDTH - SORT_ICON_WIDTH}px`\n }\n },\n rangeLabel: {\n '&:first-child': {\n flexGrow: 1\n },\n color: theme.palette.text.secondary,\n fontSize: '12px'\n },\n rangeWrapper: {\n '&:after': {\n ...BarAxis,\n left: 'initial',\n right: 0\n },\n '&:before': BarAxis,\n alignItems: 'flex-end',\n display: 'flex',\n flexGrow: 1,\n lineHeight: '24px',\n marginLeft: '32px',\n maxWidth: `calc(100% - ${NUMBER_CELL_WIDTH + BAR_PADDING_WIDHT}px)`,\n position: 'relative',\n '&.sortable': {\n height: '100%',\n maxWidth: `calc(100% - ${BAR_PADDING_WIDHT + NUMBER_CELL_WIDTH + SORT_ICON_WIDTH}px)`\n }\n },\n tooltipTitle: {\n color: 'rgba(255, 255, 255, 0.6)'\n },\n tooltipValue: {\n whiteSpace: 'pre-wrap'\n }\n}));\n\nexport const useNumberCellStyles = makeStyles((theme) => ({\n bar: ({barColor}: {barColor: string}) => ({\n borderRadius: '0 !important',\n minHeight: '16px !important',\n position: 'initial !important' as 'initial',\n background: barColor || theme.palette.secondary.main\n }),\n colorBarContainer: {\n '&>div': {\n opacity: 1\n },\n boxSizing: 'border-box',\n height: '100%',\n padding: '5px 0 6px',\n position: 'relative',\n width: '100%'\n },\n numberContainer: {\n alignItems: 'center',\n display: 'flex',\n height: '100%',\n padding: '0 10px 0 16px'\n },\n number: {\n color: theme.palette.text.primary,\n flexShrink: 0,\n fontSize: '13px',\n fontWeight: 'normal',\n lineHeight: '15px',\n marginRight: '32px',\n overflow: 'hidden',\n textAlign: 'right',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n width: `${NUMBER_CELL_WIDTH}px`\n }\n}));\n","import classnames from 'classnames';\nimport React, {useState} from 'react';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\nimport DefaultHeadCellRenderer from 'react-components/dist/Table/DefaultHeadCellRenderer/DefaultHeadCellRenderer';\nimport {getLabelAndMaxValue} from '../helpers';\nimport OverflowingHandler from './OverflowingHandler';\nimport {Tooltip as Tooltip} from '@material-ui/core';\n\nimport {useStyles} from './styles';\n\ntype HeadCellRendererProps = {\n headCellData: {\n label: string;\n sortable?: boolean;\n };\n headIndex?: number;\n};\n\nconst HeadCellRenderer = ({headCellData, headIndex, ...otherProps}: HeadCellRendererProps) => {\n const isFirstColumn = headIndex === 0;\n const styles = useStyles(isFirstColumn);\n const {label, maxValue} = getLabelAndMaxValue(headCellData.label);\n const formattedMaxValue = formatNumberAsMetric(Number(maxValue), 999);\n const hasRange = !!maxValue;\n const [isOverflowing, setIsOverflowing] = useState<boolean>(false);\n const labelElement = (\n <OverflowingHandler handler={setIsOverflowing}>\n <Tooltip title={isOverflowing ? label : ''}>\n <div className={classnames(styles.headLabel, {overflowed: isOverflowing})}>{label}</div>\n </Tooltip>\n </OverflowingHandler>\n );\n\n return (\n <div className={classnames({[styles.headCell]: !hasRange, [styles.headCellWithRange]: hasRange})}>\n <DefaultHeadCellRenderer\n {...otherProps}\n headCellData={{\n ...headCellData,\n label: hasRange ? (\n <>\n <div\n className={classnames(styles.rangeWrapper, {\n sortable: headCellData.sortable\n })}\n >\n <span className={styles.rangeLabel}>0</span>\n <span className={styles.rangeLabel}>{formattedMaxValue}</span>\n </div>\n <div\n className={classnames({\n [styles.labelWrapper]: !headCellData.sortable,\n sortable: headCellData.sortable\n })}\n >\n {labelElement}\n </div>\n </>\n ) : (\n labelElement\n )\n }}\n />\n </div>\n );\n};\n\nexport default HeadCellRenderer;\n","import React from 'react';\n\nimport {TableColumnHeader} from '../../../types/TableColumnHeader';\nimport {TableChartData} from '../../../types/TableChartData';\nimport {getValueByColumnId} from '../helpers';\n\nimport ChartDataTooltip from '../../ChartDataTooltip/ChartDataTooltip';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n columnsHeaders: TableColumnHeader[];\n chartData: TableChartData;\n};\n\nconst TableCellTooltip = ({columnsHeaders, chartData}: Props) => {\n const styles = useStyles();\n return (\n <ChartDataTooltip\n data={columnsHeaders.map(({label, id}) => ({\n label: <span className={styles.tooltipValue}>{label}</span>,\n value: getValueByColumnId(id, chartData)\n }))}\n />\n );\n};\nexport default TableCellTooltip;\n","import classnames from 'classnames';\nimport React from 'react';\nimport {Tooltip as Tooltip} from '@material-ui/core';\n\nimport {useClickableStyle, withTableContext} from '@reltio/components';\nimport {utils} from '@reltio/mdm-sdk';\n\nimport {TableChartData} from '../../../types/TableChartData';\nimport {TableColumnHeader} from '../../../types/TableColumnHeader';\n\nimport TableCellTooltip from './TableCellTooltip';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n value?: string;\n rowValue?: TableChartData;\n onClick?: () => void;\n columnData: {\n cellClassName?: string;\n labelRenderer?: React.ComponentType<{chartData: TableChartData; variant?: string}>;\n variant?: string;\n };\n columnsHeaders: TableColumnHeader[];\n};\n\nexport const LabelCellRenderer = ({value = '', columnData, rowValue: chartData, columnsHeaders, onClick}: Props) => {\n const {cellClassName, variant, labelRenderer: LabelRenderer} = columnData;\n const styles = useStyles();\n const clickable = useClickableStyle(onClick);\n const hasCustomRenderer = !!LabelRenderer;\n\n return (\n <Tooltip title={<TableCellTooltip columnsHeaders={columnsHeaders} chartData={chartData} />}>\n <div className={classnames(styles.attribute, clickable, cellClassName)} onClick={onClick}>\n {hasCustomRenderer ? (\n <LabelRenderer variant={variant} chartData={chartData} />\n ) : (\n utils.strings.removeLineBreaks(value)\n )}\n </div>\n </Tooltip>\n );\n};\n\nexport default withTableContext(({onItemClick, columnsHeaders}, {rowValue: {group}}) => {\n return {\n onClick:\n onItemClick &&\n (() => {\n onItemClick(group);\n }),\n columnsHeaders\n };\n})(LabelCellRenderer);\n","import classnames from 'classnames';\nimport {isNil} from 'ramda';\nimport React from 'react';\nimport {Tooltip as Tooltip} from '@material-ui/core';\nimport {Typography as Typography} from '@material-ui/core';\n\nimport {ChartData, ColorBar, useClickableStyle, withTableContext} from '@reltio/components';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\n\nimport {TableColumnHeader} from '../../../types/TableColumnHeader';\n\nimport TableCellTooltip from './TableCellTooltip';\n\nimport {useNumberCellStyles} from './styles';\n\ntype Props = {\n value: number;\n columnData: {\n maxValue?: number;\n getBarColor?: (group: string) => string;\n };\n rowValue?: ChartData;\n onClick?: () => void;\n columnsHeaders: TableColumnHeader[];\n};\n\nexport const NumberCellValueRenderer = ({\n value,\n columnData: {maxValue, getBarColor},\n rowValue: chartData,\n columnsHeaders,\n onClick\n}: Props) => {\n const styles = useNumberCellStyles({barColor: getBarColor && getBarColor(chartData.group)});\n const clickable = useClickableStyle(onClick);\n const formattedValue = value === 0 ? '0' : formatNumberAsMetric(value, 999);\n return (\n <Tooltip title={<TableCellTooltip columnsHeaders={columnsHeaders} chartData={chartData} />}>\n <div className={classnames(styles.numberContainer, clickable)} onClick={onClick}>\n <Typography className={styles.number}>{formattedValue}</Typography>\n {!isNil(maxValue) && (\n <div className={styles.colorBarContainer}>\n <ColorBar width={value} maxWidth={maxValue} className={styles.bar} />\n </div>\n )}\n </div>\n </Tooltip>\n );\n};\n\nexport default withTableContext(({onItemClick, columnsHeaders}, {rowValue: {group}}) => {\n return {\n onClick:\n onItemClick &&\n (() => {\n onItemClick(group);\n }),\n columnsHeaders\n };\n})(NumberCellValueRenderer);\n","import {makeStyles} from '@material-ui/core/styles';\n\ntype Dimensions = {\n width: number | string;\n height: number | string;\n};\n\nexport const useStyles = makeStyles({\n tableContainer: ({width}: Dimensions) => ({\n width: width,\n display: 'flex',\n flexDirection: 'column',\n flexGrow: 1,\n '& .hoveredRow': {\n background: 'transparent'\n },\n '& .hoveredRow:after': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n backgroundColor: 'rgba(0,0,0,0.07)',\n pointerEvents: 'none'\n }\n }),\n cellBorder: {\n borderLeft: 'none',\n borderRight: 'none!important'\n }\n});\n","import React, {useMemo} from 'react';\nimport {omit, pick, pluck} from 'ramda';\nimport {BasicTable} from '@reltio/components';\nimport HeadCellRenderer from './cell-renderers/HeadCellRenderer';\nimport LabelCellRenderer from './cell-renderers/LabelCellRenderer';\nimport NumberCellValueRenderer from './cell-renderers/NumberCellValueRenderer';\nimport {TableChartData} from '../../types/TableChartData';\n\nimport {useStyles} from './styles';\n\nexport type ColumnsOptions = {\n id: string;\n label: string;\n width?: number;\n secondLabel?: string;\n sortable?: boolean;\n resizable?: boolean;\n cellClassName?: string;\n labelRenderer?: React.ComponentType<{chartData: TableChartData}>;\n getBarColor?: (group: string) => string;\n variant?: string;\n};\n\ntype Props = {\n data: TableChartData[];\n width: number;\n height: number;\n onItemClick?: (group: string) => void;\n columnsOptions: ColumnsOptions[];\n basicTableRef?: React.MutableRefObject<any> | null;\n dataReltioId?: string;\n};\n\nconst ROW_HEIGHT = 28;\n\nconst getExtendedLabel = (label: string, secondLabel: string) => (secondLabel ? `${label} ${secondLabel}` : label);\n\nconst TableWithBars = ({\n width,\n height,\n data,\n columnsOptions,\n basicTableRef,\n onItemClick,\n dataReltioId,\n ...otherProps\n}: Props) => {\n const styles = useStyles({width, height});\n\n const tableClasses = useMemo(() => ({cellBorder: styles.cellBorder}), [styles]);\n const maxValue = useMemo(() => Math.max(...pluck('value', data)), [data]);\n\n const headData = useMemo(\n () =>\n columnsOptions.map((columnOptions) => ({\n resizable: false,\n sortable: false,\n headCellRenderer: HeadCellRenderer,\n rowCellValueRenderer: LabelCellRenderer,\n label: getExtendedLabel(columnOptions.label, columnOptions.secondLabel),\n initialWidth: width * columnOptions.width,\n ...(columnOptions.id === 'value'\n ? {\n label: getExtendedLabel(columnOptions.label, columnOptions.secondLabel).concat(\n `|${maxValue}`\n ),\n maxValue,\n rowCellValueRenderer: NumberCellValueRenderer\n }\n : {}),\n ...omit(['label', 'width'], columnOptions)\n })),\n [columnsOptions, maxValue, width]\n );\n\n const columnsHeaders = useMemo(() => columnsOptions.map(pick(['id', 'label'])), [columnsOptions]);\n\n const context = useMemo(\n () => ({\n onItemClick,\n columnsHeaders\n }),\n [onItemClick, columnsHeaders]\n );\n\n return (\n <div className={styles.tableContainer} data-reltio-id={dataReltioId}>\n <BasicTable\n columnsData={headData}\n rowsData={data}\n headRowHeight={48}\n getRowCellHeight={() => ROW_HEIGHT}\n classes={tableClasses}\n defaultColumnWidth={100}\n defaultColumnMinWidth={100}\n ref={basicTableRef}\n context={context}\n hoverStateEnabled\n {...otherProps}\n />\n </div>\n );\n};\n\nexport default TableWithBars;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles(() => ({\n layoutItemContent: {\n padding: '0 0 10px',\n display: 'flex',\n flexDirection: 'column'\n }\n}));\n","import React, {ReactElement, useCallback, useMemo, useState} from 'react';\n\nimport {withPercents, toggleSortOrder, RequestStates} from '@reltio/components';\n\nimport {valueComparator as defaultComparator} from '../../../services/tableCharts';\nimport {hasTimeRange} from '../../../services/mlDq';\nimport {DQDashboardView} from '../../../types/DQDashboardView';\nimport {ErrorData} from '../../../types/ErrorData';\nimport {TableChartData} from '../../../types/TableChartData';\nimport {usePeriod} from '../../../contexts/DateRangesProvider';\n\nimport PeriodChip from '../../../components/PeriodChip/PeriodChip';\nimport DQLayoutItemHeader from '../../../components/DQLayoutItemHeader/DQLayoutItemHeader';\nimport DQLayoutItemContent from '../../../components/DQLayoutItemContent/DQLayoutItemContent';\nimport DQLayoutItemView from '../../../components/DQLayoutItemView/DQLayoutItemView';\nimport TableWithBars, {ColumnsOptions} from '../../../components/CustomTableWithBars/TableWithBars';\n\nimport {useStyles} from './styles';\nimport {DQDataLevel} from '@reltio/mdm-sdk';\n\ntype Props = {\n config: DQDashboardView;\n data: TableChartData[];\n columnsOptions: ColumnsOptions[];\n title: string;\n state: RequestStates;\n onRefresh: () => void;\n infoTooltipTitle?: string | ReactElement;\n customComparator?: ({\n sortDirection,\n sortField\n }: {\n sortDirection: 'asc' | 'desc';\n sortField: string;\n }) => (a: TableChartData, b: TableChartData) => number;\n onItemClick?: (group: string) => void;\n contentChildren?: React.ReactNode;\n noDataComponentData?: ErrorData;\n dataLevel?: DQDataLevel;\n};\n\nconst CustomTableWithBarsChart = ({\n config,\n data,\n title,\n columnsOptions,\n infoTooltipTitle,\n customComparator,\n onItemClick,\n contentChildren,\n state,\n onRefresh,\n dataLevel = DQDataLevel.ATTRIBUTE_TYPE\n}: Props) => {\n const styles = useStyles();\n const [sortDirection, setSortDirection] = useState<'asc' | 'desc'>('desc');\n const [sortField, setSortField] = useState<string>('value');\n const comparator = useCallback(\n (a: TableChartData, b: TableChartData) =>\n customComparator\n ? customComparator({sortDirection, sortField})(a, b)\n : defaultComparator({sortDirection, sortField})(a, b),\n [sortDirection, sortField, customComparator]\n );\n const handleSort = (field: string) => {\n setSortDirection(() => (sortField === field ? toggleSortOrder(sortDirection) : sortDirection));\n setSortField(field);\n };\n const sortedData = useMemo(() => [...data.sort(comparator)], [comparator, data]);\n const {period} = usePeriod();\n return (\n <DQLayoutItemView config={config}>\n <DQLayoutItemHeader title={title} infoTooltipTitle={infoTooltipTitle}>\n {hasTimeRange(period) && dataLevel === DQDataLevel.ATTRIBUTE_TYPE && <PeriodChip disabled={true} />}\n </DQLayoutItemHeader>\n <DQLayoutItemContent\n className={styles.layoutItemContent}\n data={sortedData}\n loadingState={state}\n onRefresh={onRefresh}\n >\n {({data, width = 0, height = 0}) => {\n return (\n <>\n {contentChildren}\n <TableWithBars\n {...{\n data,\n width,\n height,\n columnsOptions,\n sorting: {\n field: sortField,\n order: sortDirection\n },\n onSort: handleSort,\n onItemClick\n }}\n />\n </>\n );\n }}\n </DQLayoutItemContent>\n </DQLayoutItemView>\n );\n};\n\nexport default withPercents(CustomTableWithBarsChart);\n","import {isNil} from 'ramda';\nimport React from 'react';\nimport {Typography as Typography} from '@material-ui/core';\n\nimport i18n from 'ui-i18n';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n isDataValid: boolean;\n totalProfiles: number;\n invalidProfiles: number;\n};\nexport const TotalInfo = ({isDataValid, totalProfiles, invalidProfiles}: Props) => {\n const styles = useStyles();\n\n const getTotalInfo = () => {\n if (isDataValid) {\n return i18n.text('0 profiles');\n }\n\n return !isNil(invalidProfiles) ? (\n <>\n <span className={styles.countProfiles}>{formatNumberAsMetric(invalidProfiles)}</span>\n {` (${Math.round((invalidProfiles / totalProfiles) * 100)}% ${i18n.text(\n 'out of'\n )} ${formatNumberAsMetric(totalProfiles)})`}\n </>\n ) : null;\n };\n const totalInfo = getTotalInfo();\n return totalInfo && <Typography className={styles.titleCount}>{totalInfo}</Typography>;\n};\n","import React, {useCallback, useContext, useMemo} from 'react';\nimport {useSelector} from 'react-redux';\nimport {pluck} from 'ramda';\n\nimport i18n from 'ui-i18n';\nimport mdmModule from '@reltio/mdm-module';\nimport {ApiErrorCode, DQDataLevel, Metadata} from '@reltio/mdm-sdk';\nimport {RequestStates} from '@reltio/components';\n\nimport {usePeriod} from '../../../contexts/DateRangesProvider';\nimport {DataLevelContext} from '../../../contexts/DataLevelContext';\nimport {useEntityAndAttributeType} from '../../../contexts/EntityAndAttributeTypeProvider';\nimport {useChartData} from '../../../hooks/useChartData';\nimport {useEntityCount} from '../../../hooks/useEntityCount';\nimport {useInvalidProfiles} from '../../../hooks/useInvalidProfiles';\nimport {useSearchRedirect} from '../../../hooks/useSearchRedirect';\nimport {ViewProps} from '../../../types/ViewProps';\nimport {\n getValidationChartData,\n getEntityLevelValidationChartData,\n getValidationSearchState,\n valueComparator\n} from '../../../services/tableCharts';\nimport {getColumnsOptions} from './helpers';\nimport {useNoDataDvfType} from './hooks/useNoDataDvfType';\nimport {useDvfs} from './hooks/useDvfs';\nimport {useReloadFacet} from '../../../contexts/ReloadFacetContext';\n\nimport CustomTableWithBarsChart from '../CustomTableWithBarsChart/CustomTableWithBarsChart';\nimport VVFChartNoData, {VVFNoDataChartType} from './VVFChartNodata';\nimport {ChartDataTooltip, InfoDataRenderer} from '../../../components/ChartDataTooltip';\nimport ChartInfoPanel from '../../../components/ChartInfoPanel/ChartInfoPanel';\nimport {TotalInfo} from './TotalInfo';\n\nimport {useStyles} from './styles';\n\nconst ViolatedValidationFuncChart = (props: ViewProps) => {\n const styles = useStyles();\n const {config} = props;\n\n const dvfData = useDvfs({});\n const {dvfs, dvfConfigLink, errorCode: dvfErrorCode, reload: dvfsReload, state: dvfsState} = dvfData;\n const getNoDataStatus = useNoDataDvfType(dvfData);\n const metadata: Metadata = useSelector(mdmModule.selectors.getMetadata);\n const dataLevel = useContext(DataLevelContext);\n const isAttributeDataLevel = dataLevel === DQDataLevel.ATTRIBUTE_TYPE;\n const {period} = usePeriod();\n const {entityType} = useEntityAndAttributeType();\n const entityTypeUri = entityType.uri;\n\n const {\n data: chartData,\n state,\n reload\n } = useChartData(\n isAttributeDataLevel ? getValidationChartData(dvfs) : getEntityLevelValidationChartData(dvfs, metadata)\n );\n const hasData = !!chartData.length;\n const {type: noDataType, chartState} = getNoDataStatus(state, hasData);\n const entityTypesArray = useMemo(() => [entityType], [entityType]);\n const dvfUris = useMemo(() => pluck('uri', dvfs), [dvfs]);\n const invalidProfiles = useInvalidProfiles({entityTypeUri, dvfUris});\n const {getEntityCount} = useEntityCount(entityTypesArray);\n const totalProfiles = getEntityCount(entityTypeUri);\n const searchProfiles = useSearchRedirect(getValidationSearchState(dvfs));\n\n const isLoadingError = chartState === RequestStates.ERROR && dvfErrorCode !== ApiErrorCode.DVF_NOT_CONFIGURED;\n\n const totalInfo = !isLoadingError &&\n noDataType !== VVFNoDataChartType.DVF_NOT_CONFIGURE &&\n chartState !== RequestStates.LOADING && (\n <TotalInfo\n isDataValid={VVFNoDataChartType.DATA_VALID === noDataType}\n totalProfiles={totalProfiles}\n invalidProfiles={invalidProfiles}\n />\n );\n\n const infoTooltipTitle = (\n <ChartDataTooltip\n title={i18n.text('Profiles with invalid data')}\n data={[{value: i18n.text('Shows the number of profiles that violate active validation functions')}]}\n DataRenderer={InfoDataRenderer}\n />\n );\n const contentChildren = (\n <div className={styles.chartInfoPanel}>\n <ChartInfoPanel label={`${i18n.text('Profiles with invalid data')}:`} info={totalInfo} />\n </div>\n );\n\n const columnsOptions = getColumnsOptions(dataLevel, chartData, period);\n\n useReloadFacet({\n state,\n reload,\n dataLevel: DQDataLevel.ATTRIBUTE_TYPE\n });\n\n const reloadFunction = useCallback(() => {\n dvfsState === RequestStates.ERROR && dvfsReload();\n state === RequestStates.ERROR && reload();\n }, [dvfsState, dvfsReload, state, reload]);\n\n return noDataType ? (\n <VVFChartNoData\n config={config}\n chartType={noDataType}\n title={i18n.text(config.title)}\n infoTooltipTitle={infoTooltipTitle}\n dvfConfigLink={dvfConfigLink}\n dataLevel={dataLevel}\n />\n ) : (\n <CustomTableWithBarsChart\n config={config}\n title={i18n.text(config.title)}\n data={chartData}\n onItemClick={searchProfiles}\n state={chartState}\n onRefresh={reloadFunction}\n customComparator={valueComparator}\n infoTooltipTitle={infoTooltipTitle}\n columnsOptions={columnsOptions}\n contentChildren={contentChildren}\n dataLevel={dataLevel}\n />\n );\n};\n\nexport default ViolatedValidationFuncChart;\n","import {useEffect, useState} from 'react';\nimport {FilterOptions, getTotals} from '@reltio/mdm-sdk';\nimport {useSafePromise} from '@reltio/components';\n\nexport const useInvalidProfiles = ({entityTypeUri, dvfUris}: {entityTypeUri: string; dvfUris: string[]}) => {\n const [invalidProfilesCount, setInvalidProfilesCount] = useState<number>(null);\n const safePromise = useSafePromise();\n\n useEffect(() => {\n const filter = [\n {\n fieldName: 'type',\n filter: FilterOptions.EQUALS,\n values: [entityTypeUri]\n },\n {\n fieldName: 'analyticsAttributes.AttributeValidations.FunctionURI',\n filter: FilterOptions.EQUALS,\n values: dvfUris\n }\n ];\n safePromise(getTotals(filter))\n .then(({total}) => setInvalidProfilesCount(total))\n .catch(() => setInvalidProfilesCount(null));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [entityTypeUri, dvfUris]);\n\n return invalidProfilesCount;\n};\n","import React, {useCallback, useContext, useMemo} from 'react';\nimport {TooltipProps} from 'recharts';\nimport {isNil, map, pipe, propSatisfies, keys, reduce, reject, uniq, without} from 'ramda';\n\nimport i18n from 'ui-i18n';\nimport {DQDataLevel, DataValidationFunction, TimeSeriesMetric, getLabel, getDvfColor, DQMetric} from '@reltio/mdm-sdk';\nimport {ChartData, RequestStates} from '@reltio/components';\n\nimport {getTimeSeriesData, getChartTooltipDateTitle, enrichTimeSeriesDataWithTodayData} from '../../../services/mlDq';\nimport {getChartState} from '../../../services/charts';\nimport {useMlDqDataRequest} from '../../../hooks/useMlDqDataRequest';\nimport {useEntityAndAttributeType} from '../../../contexts/EntityAndAttributeTypeProvider';\nimport {useReloadFacet} from '../../../contexts/ReloadFacetContext';\nimport {DataLevelContext} from '../../../contexts/DataLevelContext';\nimport {LineChartData} from '../../../types/LineChartData';\nimport {usePeriod, useZoom} from '../../../contexts/DateRangesProvider';\nimport {ViewProps} from '../../../types/ViewProps';\nimport {getViolatedValidationData, NO_DATA_FIELD} from './helpers';\nimport {findDVFByUri, getValidationChartData} from '../../../services/tableCharts';\nimport {useNoDataDvfType} from './hooks/useNoDataDvfType';\nimport {useChartData} from '../../../hooks/useChartData';\nimport {useDvfs} from './hooks/useDvfs';\n\nimport DQLayoutItemContent from '../../../components/DQLayoutItemContent/DQLayoutItemContent';\nimport LineChart from '../../../components/LineChart/LineChart';\nimport DQLayoutItemHeader from '../../../components/DQLayoutItemHeader/DQLayoutItemHeader';\nimport DQLayoutItemView from '../../../components/DQLayoutItemView/DQLayoutItemView';\nimport PeriodChip from '../../../components/PeriodChip/PeriodChip';\nimport {ChartDataTooltip, InfoDataRenderer, TooltipWithSquares} from '../../../components/ChartDataTooltip';\nimport VVFChartNoData, {VVFNoDataChartType} from './VVFChartNodata';\n\n// TODO get rid of hardcoded metric\nconst VIOLATED_PROFILES_METRIC = 'violatedProfiles';\nconst metrics = [VIOLATED_PROFILES_METRIC as TimeSeriesMetric];\n\nconst getTooltip =\n (dvfs: DataValidationFunction[], dataKeys: string[]) =>\n ({active, payload}: TooltipProps) => {\n if (active && payload && payload.length) {\n const {payload: currentPayload} = payload[0];\n const data: ChartData[] = pipe(\n map((functionId: string) => {\n const dvf = findDVFByUri(dvfs, functionId);\n return {\n label: getLabel(dvf?.label || dvf?.name),\n value: currentPayload[functionId],\n group: functionId\n };\n }),\n reject(propSatisfies(isNil, 'value'))\n )(dataKeys);\n const title = getChartTooltipDateTitle(!!data.length, currentPayload.group);\n return <TooltipWithSquares title={title} data={data} getColor={getDvfColor} />;\n }\n };\n\nconst ViolatedValidationFuncTimeSeriesChart = (props: ViewProps) => {\n const {config} = props;\n const {title} = config;\n const {period} = usePeriod();\n\n const dvfData = useDvfs({onlyActive: false});\n const {dvfs, dvfConfigLink, reload: reloadDvf, state: stateDvf} = dvfData;\n const {getDateRange, changeZoom} = useZoom();\n const getNoDataStatus = useNoDataDvfType(dvfData);\n const {entityType, detailedAttributeType} = useEntityAndAttributeType();\n const dataLevel = useContext(DataLevelContext);\n const entityTypeUri = entityType.uri;\n const attributeFieldName = detailedAttributeType?.fieldName;\n const {\n data: dataMlDq,\n state: stateMlDq,\n reload: reloadMlDq\n } = useMlDqDataRequest({\n entityTypeUri,\n attributeFieldName,\n period,\n metrics\n });\n const {data: dataToday, state: stateToday, reload: reloadToday} = useChartData(getValidationChartData(dvfs));\n const chartData: LineChartData[] = useMemo(\n () =>\n pipe(\n getTimeSeriesData(getViolatedValidationData),\n enrichTimeSeriesDataWithTodayData(period, dataToday, DQMetric.DATA_VALIDATION)\n )(dataMlDq),\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [dataMlDq, dataToday]\n );\n\n useReloadFacet({\n state: stateMlDq,\n reload: reloadMlDq,\n dataLevel: DQDataLevel.ATTRIBUTE_TYPE\n });\n\n const dataKeys = pipe(\n reduce((acc: string[], data: LineChartData) => acc.concat(keys(data)), []),\n uniq,\n without(['label', 'group'])\n )(chartData);\n\n const hasData = dataKeys.toString() !== NO_DATA_FIELD;\n\n const {type: noDataType, chartState} = getNoDataStatus(getChartState([stateMlDq, stateToday]), hasData);\n\n const infoTooltipTitle = (\n <ChartDataTooltip\n title={i18n.text('Profiles with invalid data over time')}\n data={[{value: i18n.text('Shows the number of profiles that violate active validation functions')}]}\n DataRenderer={InfoDataRenderer}\n />\n );\n\n const reloadFunction = useCallback(() => {\n stateDvf === RequestStates.ERROR && reloadDvf();\n stateMlDq === RequestStates.ERROR && reloadMlDq();\n stateToday === RequestStates.ERROR && reloadToday();\n }, [stateDvf, reloadDvf, stateMlDq, reloadMlDq, stateToday, reloadToday]);\n\n const titleChildren = <PeriodChip />;\n const loadingState =\n chartState === RequestStates.LOADING ? RequestStates.LOADING : getChartState([stateMlDq, stateToday]);\n return noDataType === VVFNoDataChartType.DVF_NOT_SUPPORTED ||\n noDataType === VVFNoDataChartType.PERMISSION_DENIED ? (\n <VVFChartNoData\n config={config}\n chartType={noDataType}\n title={i18n.text(title)}\n infoTooltipTitle={infoTooltipTitle}\n titleChildren={titleChildren}\n dvfConfigLink={dvfConfigLink}\n dataLevel={dataLevel}\n />\n ) : (\n <DQLayoutItemView config={config}>\n <DQLayoutItemHeader title={title} infoTooltipTitle={infoTooltipTitle}>\n {titleChildren}\n </DQLayoutItemHeader>\n <DQLayoutItemContent data={chartData} loadingState={loadingState} onRefresh={reloadFunction}>\n {({data, width, height}) => (\n <div>\n <LineChart\n width={width}\n height={height}\n data={data}\n lineKeys={dataKeys}\n getTooltip={getTooltip(dvfs, dataKeys)}\n getColor={getDvfColor}\n yAxisLabel={i18n.text('No. of profiles')}\n isPercent={false}\n dateRange={getDateRange()}\n changeZoom={changeZoom}\n />\n </div>\n )}\n </DQLayoutItemContent>\n </DQLayoutItemView>\n );\n};\n\nexport default ViolatedValidationFuncTimeSeriesChart;\n","import React from 'react';\n\nimport {ViewProps} from '../../../types/ViewProps';\nimport {checkIsTimeSeries} from '../../../services/mlDq';\n\nimport DQLayoutItemView from '../../../components/DQLayoutItemView/DQLayoutItemView';\nimport ViolatedValidationFuncChartToday from './ViolatedValidationFuncChart';\nimport ViolatedValidationFuncTimeSeriesChart from './ViolatedValidationFuncTimeSeriesChart';\n\nconst ViolatedValidationFuncChart = (props: ViewProps) => {\n const {config} = props;\n const isTimeSeries = checkIsTimeSeries(config);\n return (\n <DQLayoutItemView config={config}>\n {isTimeSeries ? (\n <ViolatedValidationFuncTimeSeriesChart {...props} />\n ) : (\n <ViolatedValidationFuncChartToday {...props} />\n )}\n </DQLayoutItemView>\n );\n};\n\nexport default ViolatedValidationFuncChart;\n","import classnames from 'classnames';\nimport React, {useMemo} from 'react';\nimport i18n from 'ui-i18n';\n\nimport {isDateType, isSSNType} from '@reltio/mdm-sdk';\n\nimport {ChartDataTooltip, InfoDataRenderer} from '../../components/ChartDataTooltip';\nimport {useEntityAndAttributeType} from '../../contexts/EntityAndAttributeTypeProvider';\nimport {useChartData} from '../../hooks/useChartData';\nimport {useSearchRedirect} from '../../hooks/useSearchRedirect';\nimport {convertDateLabelsInChartData} from '../../services/charts';\nimport {getFrequencyAnalysisSearchState, getFrequencyChartData, getRowsCounterLabel} from '../../services/tableCharts';\nimport {ViewProps} from '../../types/ViewProps';\n\nimport CustomTableWithBarsChart from './CustomTableWithBarsChart/CustomTableWithBarsChart';\n\nimport {useStyles} from './styles';\n\nconst FrequencyAnalysisChart = ({config}: ViewProps) => {\n const styles = useStyles();\n\n const {data: chartData, state, reload} = useChartData(getFrequencyChartData);\n const attributeType: string = useEntityAndAttributeType().detailedAttributeType?.type;\n const preparedData = useMemo(\n () => (isDateType(attributeType) ? convertDateLabelsInChartData(chartData, attributeType) : chartData),\n [chartData]\n );\n const searchProfiles = useSearchRedirect(getFrequencyAnalysisSearchState);\n const infoTooltipTitle = (\n <ChartDataTooltip\n title={i18n.text('Frequency analysis')}\n data={[{value: i18n.text('Shows the number of times each value occurs')}]}\n DataRenderer={InfoDataRenderer}\n />\n );\n\n const columnsOptions = [\n {\n id: 'label',\n label: i18n.text('Value'),\n secondLabel: getRowsCounterLabel(chartData),\n width: 0.4,\n cellClassName: classnames({[styles.monoFontCell]: isSSNType(attributeType)})\n },\n {\n id: 'value',\n label: i18n.text('Count'),\n width: 0.6\n }\n ];\n\n return (\n <CustomTableWithBarsChart\n config={config}\n data={preparedData}\n title={config.title}\n infoTooltipTitle={infoTooltipTitle}\n onItemClick={searchProfiles}\n state={state}\n onRefresh={reload}\n columnsOptions={columnsOptions}\n />\n );\n};\n\nexport default FrequencyAnalysisChart;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles(() => ({\n labelWrapper: ({width}: {width: number}) => ({\n overflow: 'hidden',\n width: `${width}px`,\n marginTop: '-3px'\n }),\n xAxisLabel: {\n textAlign: 'center',\n whiteSpace: 'nowrap',\n fontSize: '12px',\n paddingTop: '3px',\n '&::first-letter': {textTransform: 'capitalize'},\n '&:after': {\n top: '0',\n right: '0',\n width: '10px',\n height: '100%',\n content: '\"\"',\n position: 'absolute',\n background: 'linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)',\n pointerEvents: 'none'\n }\n }\n}));\n","import React from 'react';\nimport {ExpandedValueTooltip} from '@reltio/components';\nimport {ContentRenderer} from 'recharts';\nimport {TickProps} from '../../../../types/TickProps';\nimport {useStyles} from './styles';\n\nconst SPACE_BETWEEN_LABELS = 4;\n\ntype Props = {\n width: number;\n height: number;\n label: string;\n x: number;\n y: number;\n};\nexport const XAxisLabel = ({width, height, label, x, y}: Props) => {\n const styles = useStyles({width});\n\n const xCoord = x - width / 2;\n\n return (\n <foreignObject x={xCoord} y={y} width={width} height={height}>\n <div className={styles.labelWrapper}>\n <ExpandedValueTooltip value={label}>\n <div className={styles.xAxisLabel}>{label}</div>\n </ExpandedValueTooltip>\n </div>\n </foreignObject>\n );\n};\n\nexport const renderXAxis: ContentRenderer<TickProps> = (tickProps) => {\n const {x, y, width, height, payload, visibleTicksCount} = tickProps;\n const {value} = payload;\n const maxTickWidth = width / visibleTicksCount - SPACE_BETWEEN_LABELS;\n\n return <XAxisLabel width={maxTickWidth} height={height} label={value} x={x} y={y} />;\n};\n","import {BarProps, CartesianGridProps, XAxisProps, YAxisProps, LabelProps, BarChartProps} from 'recharts';\nimport BarChartOptions from '../../../types/BarChartOptions';\nimport {tickFormatter} from '../../../services/barCharts';\nimport {MIN_CHART_BAR_SIZE} from '../../../services/charts';\nimport {renderXAxis} from './XAxisLabel/XAxisLabel';\n\ntype BarChartSettings = {\n barChart: BarChartProps;\n bar: BarProps;\n xAxis: XAxisProps;\n yAxis: YAxisProps;\n cartesianGrid: CartesianGridProps;\n labelForX: LabelProps;\n labelForY: LabelProps;\n};\n\nconst getBarChartSettings = ({\n showCategories = false,\n interval,\n barCategoryGap,\n maxBarSize,\n yTickRenderer,\n tickCount\n}: BarChartOptions): BarChartSettings => {\n return {\n barChart: {\n barCategoryGap: barCategoryGap || '10%'\n },\n bar: {\n dataKey: 'value',\n fill: '#0072CE',\n minPointSize: MIN_CHART_BAR_SIZE,\n maxBarSize: maxBarSize || 50\n },\n xAxis: {\n tick: showCategories && renderXAxis,\n tickLine: false,\n interval: interval ? interval : 0,\n dataKey: 'label'\n },\n yAxis: {\n axisLine: false,\n tickLine: false,\n tick: yTickRenderer || {fill: '#000', fontSize: 12},\n width: 60,\n tickFormatter: tickFormatter,\n tickCount: tickCount || 5\n },\n cartesianGrid: {\n stroke: '#000',\n strokeOpacity: '0.05',\n vertical: false\n },\n labelForX: {\n position: 'insideBottom',\n style: {\n textAnchor: 'middle',\n fontSize: '10px',\n fill: 'rgba(0, 0, 0, 0.54)'\n },\n offset: showCategories ? 0 : 3\n },\n labelForY: {\n angle: 270,\n position: 'left',\n offset: -3,\n style: {\n textAnchor: 'middle',\n fontSize: '10px',\n fill: 'rgba(0, 0, 0, 0.54)'\n }\n }\n };\n};\n\nexport default getBarChartSettings;\n","import {makeStyles} from '@material-ui/core/styles';\nimport {Theme} from '@material-ui/core';\n\nexport const useStyles = makeStyles((theme: Theme & {tooltip: Record<string, string | number>}) => ({\n tooltipWrapper: {\n ...theme.tooltip,\n padding: '4px 8px'\n }\n}));\n","import React from 'react';\nimport {TooltipProps} from 'recharts';\nimport i18n from 'ui-i18n';\nimport ChartDataTooltip from '../../../../components/ChartDataTooltip/ChartDataTooltip';\nimport {useStyles} from './styles';\n\ntype Props = TooltipProps & {\n name?: string;\n};\n\nexport const BarTooltip = ({payload, active, name}: Props) => {\n const tooltipPayload = payload?.[0]?.payload;\n const value = tooltipPayload?.value;\n const tooltipLabel = tooltipPayload?.label;\n const propertiesName = name ? `${name}` : '';\n const styles = useStyles();\n return (\n active && (\n <div className={styles.tooltipWrapper}>\n <ChartDataTooltip\n data={[\n {label: propertiesName, value: tooltipLabel},\n {label: i18n.text('No of profiles'), value: i18n.number(value)}\n ]}\n />\n </div>\n )\n );\n};\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles(() => ({\n chartInfoLabel: {\n fontSize: '13px',\n lineHeight: '15px',\n color: 'rgba(0, 0, 0, 0.54)',\n paddingRight: '8px'\n },\n chartInfoValue: {\n fontSize: '13px',\n lineHeight: '15px',\n color: 'rgba(0, 0, 0, 0.87)'\n },\n chartInfoWrapper: {\n display: 'flex',\n backgroundColor: 'rgba(0, 0, 0, 0.05)',\n margin: '0 12px 12px',\n padding: '9px 12px 8px'\n },\n chartInfoItem: {\n marginRight: '16px'\n },\n clickable: {\n cursor: 'pointer'\n },\n title: {\n marginRight: '50px',\n fontSize: '16px'\n },\n root: {\n padding: '0 0 0 16px',\n minHeight: 'auto',\n marginTop: '12px',\n marginBottom: '12px'\n }\n}));\n","import React from 'react';\nimport {Tooltip as Tooltip} from '@material-ui/core';\nimport {InfoPanelData} from '../../../types/InfoPanelData';\nimport {useStyles} from './styles';\n\ntype Props = {\n data: InfoPanelData[];\n};\n\nexport const InfoPanel = ({data}: Props) => {\n const styles = useStyles();\n return (\n <div className={styles.chartInfoWrapper}>\n {data.map(({label, value, localizedValue}) => (\n <div key={label} className={styles.chartInfoItem}>\n <span className={styles.chartInfoLabel}>{label}: </span>\n {value !== localizedValue ? (\n <Tooltip title={localizedValue}>\n <span className={styles.chartInfoValue}>{value}</span>\n </Tooltip>\n ) : (\n <span className={styles.chartInfoValue}>{value}</span>\n )}\n </div>\n ))}\n </div>\n );\n};\n","import React from 'react';\nimport {Rectangle, RectangleProps} from 'recharts';\nimport {useStyles} from './styles';\n\ntype Props = RectangleProps & {\n isClickable: boolean;\n};\n\nconst CustomBackgroundOnHover = ({isClickable, ...rectangleProps}: Props) => {\n const styles = useStyles();\n const className = isClickable ? styles.clickable : undefined;\n return (\n <Rectangle {...rectangleProps} className={className} fill=\"#000\" opacity=\"0.1\" pointerEvents=\"visibleFill\" />\n );\n};\nexport default CustomBackgroundOnHover;\n","import React from 'react';\nimport {Rectangle, RectangleProps} from 'recharts';\n\ntype Props = RectangleProps & {\n value?: number;\n};\n\nconst CustomBar = (props: Props) => {\n const {value} = props;\n return value > 0 ? <Rectangle {...props} /> : null;\n};\nexport default CustomBar;\n","import React from 'react';\nimport {Bar, BarChart, CartesianGrid, Label, Tooltip as ChartTooltip, XAxis, YAxis} from 'recharts';\nimport {ChartData, RequestStates} from '@reltio/components';\n\nimport {usePeriod} from '../../../contexts/DateRangesProvider';\nimport getBarChartSettings from './getBarChartSettings';\nimport {DQDashboardView} from '../../../types/DQDashboardView';\nimport {InfoPanelData} from '../../../types/InfoPanelData';\nimport BarChartOptions from '../../../types/BarChartOptions';\nimport {hasTimeRange} from '../../../services/mlDq';\n\nimport {BarTooltip} from './BarTooltip/BarTooltip';\nimport {InfoPanel} from './InfoPanel';\nimport DQLayoutItemHeader from '../../../components/DQLayoutItemHeader/DQLayoutItemHeader';\nimport DQLayoutItemContent from '../../../components/DQLayoutItemContent/DQLayoutItemContent';\nimport DQLayoutItemView from '../../../components/DQLayoutItemView/DQLayoutItemView';\nimport CustomBackgroundOnHover from './CustomBackgroundOnHover';\nimport CustomBar from './CustomBar';\nimport PeriodChip from '../../../components/PeriodChip/PeriodChip';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n config: DQDashboardView;\n data: ChartData[];\n xAxisLabel: string;\n yAxisLabel: string;\n state: RequestStates;\n onRefresh: () => void;\n onItemClick?: (group: string) => void;\n infoPanelData?: InfoPanelData[];\n infoTooltipTitle?: React.ReactNode;\n barTooltipTitle?: string;\n options?: BarChartOptions;\n};\n\nconst CustomBarChart = ({\n data,\n config,\n xAxisLabel,\n yAxisLabel,\n barTooltipTitle,\n infoPanelData,\n infoTooltipTitle,\n onItemClick,\n options = {},\n state,\n onRefresh\n}: Props) => {\n const styles = useStyles();\n const {title} = config;\n const {cartesianGrid, bar, xAxis, yAxis, labelForX, labelForY, barChart} = getBarChartSettings(options);\n const onBarClick = onItemClick && (({activePayload}) => onItemClick(activePayload[0].payload.group));\n const clickable = onBarClick ? styles.clickable : undefined;\n const showInfoPanel = state === RequestStates.LOADED && infoPanelData.length > 0;\n const {period} = usePeriod();\n return (\n <DQLayoutItemView config={config}>\n <DQLayoutItemHeader title={title} infoTooltipTitle={infoTooltipTitle}>\n {hasTimeRange(period) && <PeriodChip disabled={true} />}\n </DQLayoutItemHeader>\n {showInfoPanel && <InfoPanel data={infoPanelData} />}\n <DQLayoutItemContent data={data} loadingState={state} onRefresh={onRefresh}>\n {({data, width = 0, height = 0}) => {\n return (\n <div>\n <BarChart width={width} height={height} data={data} onClick={onBarClick} {...barChart}>\n <CartesianGrid {...cartesianGrid} />\n <ChartTooltip\n content={<BarTooltip name={barTooltipTitle} />}\n cursor={<CustomBackgroundOnHover isClickable={!!onBarClick} />}\n />\n <Bar {...bar} shape={<CustomBar className={clickable} />} />\n <YAxis {...yAxis}>\n <Label {...labelForY} value={yAxisLabel} />\n </YAxis>\n <XAxis {...xAxis}>\n <Label {...labelForX} value={xAxisLabel} />\n </XAxis>\n </BarChart>\n </div>\n );\n }}\n </DQLayoutItemContent>\n </DQLayoutItemView>\n );\n};\n\nexport default CustomBarChart;\n","import React from 'react';\nimport {useChartData} from '../../hooks/useChartData';\nimport {useSearchRedirect} from '../../hooks/useSearchRedirect';\nimport {getLengthChartData, getLengthStatisticsSearchState} from '../../services/barCharts';\nimport {ViewProps} from '../../types/ViewProps';\nimport CustomBarChart from './CustomBarChart/CustomBarChart';\nimport {ChartDataTooltip, InfoDataRenderer} from '../../components/ChartDataTooltip';\nimport i18n from 'ui-i18n';\n\nconst LengthStatisticsChart = ({config}: ViewProps) => {\n const {data, state, reload} = useChartData(getLengthChartData);\n const {chartData, infoPanelData} = data;\n const searchProfiles = useSearchRedirect(getLengthStatisticsSearchState);\n const infoTooltipTitle = (\n <ChartDataTooltip\n title={i18n.text('Length statistics')}\n data={[{value: i18n.text('Measures the string length of values')}]}\n DataRenderer={InfoDataRenderer}\n />\n );\n return (\n <CustomBarChart\n config={config}\n data={chartData}\n xAxisLabel={i18n.text('Length of values')}\n yAxisLabel={i18n.text('No. of profiles')}\n infoPanelData={infoPanelData}\n barTooltipTitle={i18n.text('Length')}\n infoTooltipTitle={infoTooltipTitle}\n onItemClick={searchProfiles}\n state={state}\n onRefresh={reload}\n />\n );\n};\nexport default LengthStatisticsChart;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useLabelStyles = makeStyles({\n icon: {\n width: '20px',\n height: '20px',\n borderRadius: '4px',\n fontSize: '14px',\n marginRight: '8px'\n },\n text: ({color}: {color: string}) => ({\n backgroundColor: color\n }),\n label: ({color}: {color: string}) => ({\n backgroundColor: color,\n flexShrink: 0,\n fontSize: '14px',\n height: '12px',\n margin: ' 0 8px 0 0',\n width: '12px'\n })\n});\n","import React from 'react';\n\nimport {getSourceColor} from '@reltio/mdm-sdk';\nimport {SourceIcon} from '@reltio/components';\n\nimport {TableChartData} from '../../types/TableChartData';\n\nimport {useLabelStyles} from './styles';\n\ntype Props = {\n chartData: TableChartData;\n variant?: string;\n};\n\nexport const INCLUDE_SOURCE_ICON = 'includeSourceIcon';\n\nconst SourceLabelRenderer = ({chartData, variant}: Props) => {\n const {group, label} = chartData;\n const styles = useLabelStyles({color: getSourceColor(group)});\n return (\n <>\n {variant === INCLUDE_SOURCE_ICON ? (\n <SourceIcon sourceType={group} className={styles.icon} classes={{textRoot: styles.text}} />\n ) : (\n <div className={styles.label} />\n )}\n {label}\n </>\n );\n};\n\nexport default SourceLabelRenderer;\n","import React from 'react';\nimport {useSelector} from 'react-redux';\n\nimport i18n from 'ui-i18n';\nimport {Metadata} from '@reltio/mdm-sdk';\nimport mdmModule from '@reltio/mdm-module';\n\nimport {useChartData} from '../../../hooks/useChartData';\nimport {useSearchRedirect} from '../../../hooks/useSearchRedirect';\nimport {getCrosswalkAnalysisData, getCrosswalkAnalysisSearchState} from '../../../services/barCharts';\nimport {valueComparator} from '../../../services/tableCharts';\nimport {ViewProps} from '../../../types/ViewProps';\n\nimport CustomTableWithBarsChart from '../CustomTableWithBarsChart/CustomTableWithBarsChart';\nimport SourceLabelRenderer, {INCLUDE_SOURCE_ICON} from '../../../components/SourceLabelRenderer/SourceLabelRenderer';\nimport {ChartDataTooltip, InfoDataRenderer} from '../../../components/ChartDataTooltip';\n\nconst CrosswalkAnalysisChart = ({config}: ViewProps) => {\n const metadata: Metadata = useSelector(mdmModule.selectors.getMetadata);\n const {data, state, reload} = useChartData(getCrosswalkAnalysisData(metadata));\n const {chartData} = data;\n const searchProfiles = useSearchRedirect(getCrosswalkAnalysisSearchState);\n const infoTooltipTitle = (\n <ChartDataTooltip\n title={i18n.text('Source system analysis')}\n data={[{value: i18n.text('Distribution of source systems contributing to profiles')}]}\n DataRenderer={InfoDataRenderer}\n />\n );\n const columnsOptions = [\n {\n id: 'label',\n label: i18n.text('Source system'),\n secondLabel: `(${chartData.length})`,\n width: 0.4,\n sortable: true,\n labelRenderer: SourceLabelRenderer,\n variant: INCLUDE_SOURCE_ICON\n },\n {\n id: 'value',\n label: i18n.text('Profiles'),\n width: 0.6,\n sortable: true\n }\n ];\n return (\n <CustomTableWithBarsChart\n config={{...config}}\n data={chartData}\n title={config.title}\n infoTooltipTitle={infoTooltipTitle}\n onItemClick={searchProfiles}\n state={state}\n onRefresh={reload}\n customComparator={valueComparator}\n columnsOptions={columnsOptions}\n />\n );\n};\nexport default CrosswalkAnalysisChart;\n","import React from 'react';\nimport i18n from 'ui-i18n';\n\nimport {useEntityAndAttributeType} from '../../contexts/EntityAndAttributeTypeProvider';\nimport {useChartData} from '../../hooks/useChartData';\nimport {useSearchRedirect} from '../../hooks/useSearchRedirect';\nimport {getValueDistributionData, getValueDistributionSearchState} from '../../services/barCharts';\nimport {ViewProps} from '../../types/ViewProps';\n\nimport CustomBarChart from './CustomBarChart/CustomBarChart';\n\nconst ValueDistributionChart = ({config}: ViewProps) => {\n const attributeType: string = useEntityAndAttributeType().detailedAttributeType?.type;\n const {data, state, reload} = useChartData(getValueDistributionData(attributeType));\n const {chartData, infoPanelData} = data;\n const searchProfiles = useSearchRedirect(getValueDistributionSearchState(attributeType));\n return (\n <CustomBarChart\n config={config}\n data={chartData}\n xAxisLabel={i18n.text('Value')}\n yAxisLabel={i18n.text('No. of profiles')}\n infoPanelData={infoPanelData}\n barTooltipTitle={i18n.text('Value')}\n onItemClick={searchProfiles}\n state={state}\n onRefresh={reload}\n />\n );\n};\nexport default ValueDistributionChart;\n","import React from 'react';\nimport {useChartData} from '../../hooks/useChartData';\nimport {useSearchRedirect} from '../../hooks/useSearchRedirect';\nimport {getMonthDistributionData, getMonthDistributionSearchState} from '../../services/barCharts';\nimport {ViewProps} from '../../types/ViewProps';\nimport CustomBarChart from './CustomBarChart/CustomBarChart';\nimport i18n from 'ui-i18n';\n\nconst MonthDistributionChart = ({config}: ViewProps) => {\n const {data, state, reload} = useChartData(getMonthDistributionData);\n const {chartData, infoPanelData} = data;\n const searchProfiles = useSearchRedirect(getMonthDistributionSearchState);\n\n return (\n <CustomBarChart\n config={config}\n data={chartData}\n xAxisLabel={i18n.text('Months of the year')}\n yAxisLabel={i18n.text('No. of profiles')}\n infoPanelData={infoPanelData}\n barTooltipTitle={i18n.text('Months of the year')}\n options={{showCategories: true, barCategoryGap: '20%', interval: 'preserveStartEnd'}}\n onItemClick={searchProfiles}\n state={state}\n onRefresh={reload}\n />\n );\n};\nexport default MonthDistributionChart;\n","import React from 'react';\nimport {useChartData} from '../../hooks/useChartData';\nimport {useSearchRedirect} from '../../hooks/useSearchRedirect';\nimport {getDayOfWeekDistributionData, getDayOfweekDistributionSearchState} from '../../services/barCharts';\nimport {ViewProps} from '../../types/ViewProps';\nimport CustomBarChart from './CustomBarChart/CustomBarChart';\nimport i18n from 'ui-i18n';\n\nconst DayOfWeekDistributionChart = ({config}: ViewProps) => {\n const {data, state, reload} = useChartData(getDayOfWeekDistributionData);\n const {chartData, infoPanelData} = data;\n const searchProfiles = useSearchRedirect(getDayOfweekDistributionSearchState);\n\n return (\n <CustomBarChart\n config={config}\n data={chartData}\n xAxisLabel={i18n.text('Days of the week')}\n yAxisLabel={i18n.text('No. of profiles')}\n infoPanelData={infoPanelData}\n barTooltipTitle={i18n.text('Days of the week')}\n options={{showCategories: true, barCategoryGap: '25%', interval: 'preserveStartEnd'}}\n onItemClick={searchProfiles}\n state={state}\n onRefresh={reload}\n />\n );\n};\nexport default DayOfWeekDistributionChart;\n","import React from 'react';\nimport {useChartData} from '../../hooks/useChartData';\nimport {useSearchRedirect} from '../../hooks/useSearchRedirect';\nimport {getDayOfMonthDistributionData, getDayOfMonthDistributionSearchState} from '../../services/barCharts';\nimport {ViewProps} from '../../types/ViewProps';\nimport CustomBarChart from './CustomBarChart/CustomBarChart';\nimport i18n from 'ui-i18n';\n\nconst DayOfMonthDistributionChart = ({config}: ViewProps) => {\n const {data, state, reload} = useChartData(getDayOfMonthDistributionData);\n const {chartData, infoPanelData} = data;\n const searchProfiles = useSearchRedirect(getDayOfMonthDistributionSearchState);\n\n return (\n <CustomBarChart\n config={config}\n data={chartData}\n xAxisLabel={i18n.text('Days of the month')}\n yAxisLabel={i18n.text('No. of profiles')}\n infoPanelData={infoPanelData}\n barTooltipTitle={i18n.text('Days of the month')}\n options={{showCategories: true, interval: 1}}\n onItemClick={searchProfiles}\n state={state}\n onRefresh={reload}\n />\n );\n};\nexport default DayOfMonthDistributionChart;\n","import React from 'react';\nimport i18n from 'ui-i18n';\nimport {getPatternAnalisysData, getPatternAnalysisSearchState} from '../../services/tableCharts';\nimport CustomTableWithBarsChart from './CustomTableWithBarsChart/CustomTableWithBarsChart';\nimport {useChartData} from '../../hooks/useChartData';\nimport {useSearchRedirect} from '../../hooks/useSearchRedirect';\nimport {ViewProps} from '../../types/ViewProps';\nimport ChartDataTooltip from '../../components/ChartDataTooltip/ChartDataTooltip';\nimport {getRowsCounterLabel} from '../../services/tableCharts';\nimport {useStyles} from './styles';\n\nconst PatternAnalysisChart = ({config}: ViewProps) => {\n const styles = useStyles();\n const {data: chartData, state, reload} = useChartData(getPatternAnalisysData);\n const searchProfiles = useSearchRedirect(getPatternAnalysisSearchState);\n const infoTooltipTitle = <ChartDataTooltip title={i18n.text('Pattern analysis')} data={[]} />;\n const columnsOptions = [\n {\n id: 'label',\n label: i18n.text('Value'),\n secondLabel: getRowsCounterLabel(chartData),\n width: 0.4,\n cellClassName: styles.monoFontCell\n },\n {\n id: 'value',\n label: i18n.text('Count'),\n width: 0.6\n }\n ];\n return (\n <CustomTableWithBarsChart\n config={config}\n data={chartData}\n title={config.title}\n infoTooltipTitle={infoTooltipTitle}\n onItemClick={searchProfiles}\n state={state}\n onRefresh={reload}\n columnsOptions={columnsOptions}\n />\n );\n};\n\nexport default PatternAnalysisChart;\n","import {curry, keys, mergeAll, omit, pipe} from 'ramda';\nimport React from 'react';\nimport {Bar, BarChart, CartesianGrid, Label, Tooltip as ChartTooltip, XAxis, YAxis} from 'recharts';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\nimport BarChartOptions from '../../../types/BarChartOptions';\nimport getBarChartSettings from './getBarChartSettings';\nimport {useStyles} from './styles';\n\ntype StackedBarChartData = {\n label: string;\n group: string;\n} & {[index: string]: number | string};\n\ntype Props = {\n data: StackedBarChartData[];\n xAxisLabel?: string;\n yAxisLabel?: string;\n onItemClick?: (key: string) => void;\n getTooltip?: (payload: {active: boolean}) => React.ReactNode;\n getBarOpacity?: (key: string) => number;\n getBarColor: (key: string) => string;\n onBarSelect?: (key: string) => (data: unknown) => void;\n showTopLabel?: boolean;\n width: number;\n height: number;\n options?: BarChartOptions;\n dataReltioId?: string;\n};\n\nconst StackedBarChart = ({\n xAxisLabel,\n yAxisLabel,\n data,\n getTooltip,\n getBarOpacity,\n onBarSelect,\n width,\n height,\n showTopLabel = false,\n options = {},\n onItemClick,\n getBarColor,\n dataReltioId\n}: Props) => {\n const styles = useStyles();\n const {cartesianGrid, xAxis, yAxis, labelForX, labelForY, barChart, bar} = getBarChartSettings(options);\n const onBarClick = curry((key, _) => onItemClick && onItemClick(key));\n const clickable = onItemClick ? styles.clickable : undefined;\n const getBars = (chartData: StackedBarChartData[]) => {\n const uniqueDataKeys = pipe(mergeAll, omit(['label', 'group']), keys)(chartData);\n const getBarLabel = curry((index: number, {x, y, width, value}) =>\n showTopLabel && index === uniqueDataKeys.length - 1 ? (\n <text x={x + width / 2} textAnchor=\"middle\" y={y - 5} fontSize=\"12px\">\n {formatNumberAsMetric(value, 999)}\n </text>\n ) : null\n );\n return uniqueDataKeys.map((key: string, index: number) => (\n <Bar\n stackId={'all'}\n dataKey={key}\n opacity={getBarOpacity ? getBarOpacity(key) : 1}\n fill={getBarColor(key)}\n onMouseOver={onBarSelect(key)}\n onMouseLeave={onBarSelect(null)}\n key={key}\n label={getBarLabel(index)}\n maxBarSize={bar.maxBarSize}\n onClick={onBarClick(key)}\n className={clickable}\n />\n ));\n };\n\n return (\n <div data-reltio-id={dataReltioId}>\n <BarChart width={width} height={height} data={data} {...barChart} margin={{top: 15}}>\n <CartesianGrid {...cartesianGrid} />\n <ChartTooltip content={getTooltip} cursor={null} />\n {getBars(data)}\n <YAxis {...yAxis}>\n <Label {...labelForY} value={yAxisLabel} />\n </YAxis>\n <XAxis {...xAxis}>\n <Label {...labelForX} value={xAxisLabel} />\n </XAxis>\n </BarChart>\n </div>\n );\n};\nexport default StackedBarChart;\n","import {makeStyles} from '@material-ui/core/styles';\nimport {Theme} from '@material-ui/core';\n\nexport const useStyles = makeStyles((theme: Theme & {tooltip: Record<string, string | number>}) => ({\n consolidationRateWrapper: {\n display: 'flex'\n },\n ratePercent: {\n fontWeight: 700,\n lineHeight: '20px',\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n },\n tableWithSelectedRow: {\n '& .Table__grid__cell_wrapper_EWDDh': {\n opacity: 0.12\n },\n '& .Table__grid__cell_wrapper_EWDDh.hoveredRow': {\n opacity: 1\n }\n },\n tooltipWrapper: {\n ...theme.tooltip,\n padding: '4px 8px'\n }\n}));\n","import React from 'react';\n\nimport i18n from 'ui-i18n';\n\nimport {DQChartsData, formatNumberAsMetric} from '@reltio/mdm-sdk';\n\nimport {useStyles} from './styles';\n\nexport const ConsolidationPercentage = ({data}: {data: DQChartsData}) => {\n const styles = useStyles();\n const {totalCrosswalks, totalEntities} = data.consolidationRate;\n const reltioCleanser = data.consolidationRate.totalCrosswalksBySource['ReltioCleanser'] || 0;\n const percent = ((1 - totalEntities / (totalCrosswalks - reltioCleanser)) * 100).toFixed(1);\n const formattedPercent = percent.split('.')[1] == '0' ? percent.split('.')[0] : i18n.number(Number(percent));\n\n return (\n <>\n <span className={styles.ratePercent}>{formattedPercent}% </span>\n <span>\n {`(${formatNumberAsMetric(totalCrosswalks - reltioCleanser, 999)} ${i18n.text(\n 'to'\n )} ${formatNumberAsMetric(totalEntities, 999)} ${i18n.text('profiles')})`}\n </span>\n </>\n );\n};\n","import React from 'react';\nimport {ContentRenderer} from 'recharts';\nimport {tickFormatter} from '../../../services/barCharts';\nimport {TickProps} from '../../../types/TickProps';\n\nexport const YAxisTickRenderer: ContentRenderer<TickProps> = (tickProps) => {\n const {\n x,\n y,\n payload: {value},\n index\n } = tickProps;\n if (index % 2 === 0)\n return (\n <text fill=\"#000\" x={x} y={y} textAnchor=\"middle\" fontSize=\"12px\">\n {tickFormatter(Number(value))}\n </text>\n );\n return null;\n};\n","import classnames from 'classnames';\nimport {isNil, pick, propEq} from 'ramda';\nimport React, {useCallback, useMemo, useState} from 'react';\nimport {useSelector} from 'react-redux';\nimport i18n from 'ui-i18n';\n\nimport {ChartData} from '@reltio/components';\nimport mdmModule from '@reltio/mdm-module';\nimport {getSourceColor, getSourceSystemLabel, Metadata} from '@reltio/mdm-sdk';\n\nimport {useChartsDataContext} from '../../../contexts/ChartsDataProvider';\nimport {useChartData} from '../../../hooks/useChartData';\nimport {useSearchRedirect} from '../../../hooks/useSearchRedirect';\nimport {\n getBarOpacity,\n getConsolidationRateChartData,\n getConsolidationRateSearchState,\n getConsolidationRateTableData\n} from '../../../services/barCharts';\nimport {ViewProps} from '../../../types/ViewProps';\n\nimport StackedBarChart from '../CustomBarChart/StackedBarChart';\nimport {ConsolidationPercentage} from './ConsolidationPercentage';\nimport ChartDataTooltip from '../../../components/ChartDataTooltip/ChartDataTooltip';\nimport TableWithBars, {ColumnsOptions} from '../../../components/CustomTableWithBars/TableWithBars';\nimport DQLayoutItemContent from '../../../components/DQLayoutItemContent/DQLayoutItemContent';\nimport DQLayoutItemHeader from '../../../components/DQLayoutItemHeader/DQLayoutItemHeader';\nimport DQLayoutItemView from '../../../components/DQLayoutItemView/DQLayoutItemView';\nimport SourceLabelRenderer from '../../../components/SourceLabelRenderer/SourceLabelRenderer';\nimport ChartInfoPanel from '../../../components/ChartInfoPanel/ChartInfoPanel';\nimport {YAxisTickRenderer} from './YAxisTickRenderer';\n\nimport {useStyles} from './styles';\n\nconst STACKED_BAR_CHART_WIDTH = 256;\nconst CHART_INFO_PANEL_HEIGHT = 34;\n\nconst getBarColor = (key: string) => (key === 'Reltio profiles' ? '#0072CE' : getSourceColor(key));\nconst infoTooltipTitle = (\n <ChartDataTooltip\n title={i18n.text('Consolidation rate')}\n data={[\n {\n value: i18n.text(\n 'Consolidation rate is the measurement of the total number source profiles versus the number of Reltio profiles after removing duplicates.'\n )\n },\n {value: i18n.text('Consolidation rate helps to understand the data reduction achieved by matching.')}\n ]}\n />\n);\n\nconst ConsolidationRateChart = ({config}: ViewProps) => {\n const metadata: Metadata = useSelector(mdmModule.selectors.getMetadata);\n const styles = useStyles();\n const {title} = config;\n const [selectedSource, setSelectedSource] = useState<{rowIndex: number; key: string}>();\n const {data: barChartData, state, reload} = useChartData<ChartData[]>(getConsolidationRateChartData);\n const {data: tableChartData} = useChartData<ChartData[]>(getConsolidationRateTableData(metadata));\n const {\n chartsData: {data: chartsData}\n } = useChartsDataContext();\n const searchProfiles = useSearchRedirect(getConsolidationRateSearchState);\n const sortedBarChartData = useMemo(() => {\n const sortedSourceData = pick(['group', 'label'], barChartData[0]);\n for (let key = tableChartData.length - 1; key >= 0; key--) {\n sortedSourceData[tableChartData[key].group] = barChartData[0][tableChartData[key].group];\n }\n return [sortedSourceData, barChartData[1]];\n }, [tableChartData, barChartData]);\n const getTooltip = useCallback(\n ({active}) => {\n if (!(selectedSource && active)) return '';\n let data = [];\n if (selectedSource?.key === 'Reltio profiles') {\n data = [\n {\n label: i18n.text('Reltio profiles'),\n value: i18n.number(chartsData.consolidationRate.totalEntities)\n }\n ];\n } else {\n data = [\n {\n label: i18n.text('Source system'),\n value: getSourceSystemLabel(metadata, selectedSource.key)\n },\n {\n label: i18n.text('Source profiles'),\n value: i18n.number(chartsData.consolidationRate.totalCrosswalksBySource[selectedSource.key])\n }\n ];\n }\n return (\n <div className={styles.tooltipWrapper}>\n <ChartDataTooltip data={data} />\n </div>\n );\n },\n [selectedSource, chartsData, metadata]\n );\n\n const barSelectHandler = useCallback(\n (key: string) => () => {\n if (key) {\n const rowIndex = tableChartData.findIndex(propEq('group', key));\n setSelectedSource({rowIndex, key});\n } else setSelectedSource(null);\n },\n [setSelectedSource, tableChartData]\n );\n\n const rowSelectHandler = useCallback(\n (rowIndex: number) => {\n if (!isNil(rowIndex)) {\n const key = tableChartData[rowIndex]?.group;\n setSelectedSource({rowIndex, key});\n } else setSelectedSource(null);\n },\n [setSelectedSource, tableChartData]\n );\n\n const rowClickHandler = (rowIndex: number) => {\n if (!isNil(rowIndex)) {\n const key = tableChartData[rowIndex]?.group;\n searchProfiles(key);\n }\n };\n\n const columnsOptions: ColumnsOptions[] = [\n {\n id: 'label',\n label: i18n.text('Source system'),\n secondLabel: `(${i18n.number(tableChartData.length)})`,\n resizable: false,\n labelRenderer: SourceLabelRenderer,\n width: 0.3\n },\n {\n id: 'value',\n resizable: false,\n label: i18n.text('Source profiles'),\n width: 0.7\n }\n ];\n\n return (\n <DQLayoutItemView config={config}>\n <DQLayoutItemHeader title={title} infoTooltipTitle={infoTooltipTitle}></DQLayoutItemHeader>\n <DQLayoutItemContent data={tableChartData} loadingState={state} onRefresh={reload}>\n {({height = 0, width = 0}) => {\n const chartHeight = chartsData.consolidationRate ? height - CHART_INFO_PANEL_HEIGHT : height;\n return (\n <>\n {chartsData.consolidationRate && (\n <ChartInfoPanel\n label={`${i18n.text('Consolidation rate')}:`}\n info={<ConsolidationPercentage data={chartsData} />}\n />\n )}\n <div\n className={classnames(styles.consolidationRateWrapper, {\n [styles.tableWithSelectedRow]:\n !isNil(selectedSource?.rowIndex) && selectedSource?.rowIndex !== -1\n })}\n >\n <StackedBarChart\n yAxisLabel={i18n.text('No. of profiles')}\n data={sortedBarChartData}\n getTooltip={getTooltip}\n getBarOpacity={getBarOpacity(selectedSource)}\n getBarColor={getBarColor}\n onBarSelect={barSelectHandler}\n width={STACKED_BAR_CHART_WIDTH}\n height={chartHeight}\n options={{\n showCategories: true,\n maxBarSize: 40,\n yTickRenderer: YAxisTickRenderer,\n tickCount: 8\n }}\n onItemClick={searchProfiles}\n dataReltioId=\"reltio-dq-dashboard-consolidation-rate-barchart\"\n showTopLabel\n />\n <TableWithBars\n {...{\n data: tableChartData,\n width: width - STACKED_BAR_CHART_WIDTH,\n height: chartHeight,\n columnsOptions: columnsOptions,\n sorting: {\n field: 'value',\n order: 'desc'\n },\n onRowClick: rowClickHandler,\n onRowHover: rowSelectHandler,\n hoverRowIndex: selectedSource?.rowIndex,\n hoverStateEnabled: true,\n dataReltioId: 'reltio-dq-dashboard-consolidation-rate-tablechart'\n }}\n />\n </div>\n </>\n );\n }}\n </DQLayoutItemContent>\n </DQLayoutItemView>\n );\n};\nexport default ConsolidationRateChart;\n","import {any, map, pipe} from 'ramda';\n\nimport i18n from 'ui-i18n';\nimport {ChartData} from '@reltio/components';\nimport {\n FilterOptions,\n getChartItemColor,\n isRDMLookupAttrType,\n Metadata,\n TEntityType,\n getAttributeTypesTree\n} from '@reltio/mdm-sdk';\n\nimport {getSearchState, localizeChartValues} from './charts';\nimport {DetailedAttributeType} from '../types/DetailedAttributeType';\n\nexport enum RDMTranscodeStatus {\n RESOLVED = 'resolved',\n UNRESOLVED = 'unresolved'\n}\n\nconst RDMChartColors = {\n [RDMTranscodeStatus.RESOLVED]: '#7F22FD',\n [RDMTranscodeStatus.UNRESOLVED]: '#F085F2'\n};\n\nexport const getRDMChartColors: (chartsData: ChartData[]) => string[] = map(\n ({group}) => RDMChartColors[group] || getChartItemColor(group)\n);\n\nexport const formatRDMTranscodeData = ([resolveCount, unresolveCount]: Record<'total', number>[]): ChartData[] => {\n return localizeChartValues([\n {\n value: resolveCount.total,\n label: i18n.text('Mapped values'),\n group: RDMTranscodeStatus.RESOLVED,\n dataReltioId: 'reltio-dq-dashboard-transcode-mapped'\n },\n {\n value: unresolveCount.total,\n label: i18n.text('Unmapped values'),\n group: RDMTranscodeStatus.UNRESOLVED,\n dataReltioId: 'reltio-dq-dashboard-transcode-unmapped'\n }\n ]);\n};\n\nexport const getRDMTranscodeFilter = (rdmTranscodeStatus: RDMTranscodeStatus) => [\n {\n filter: FilterOptions.EQUALS,\n fieldName: 'rdmLookups.resolved',\n values: [rdmTranscodeStatus !== RDMTranscodeStatus.RESOLVED]\n }\n];\n\nexport const getRDMTranscodeSearchState = getSearchState(() => getRDMTranscodeFilter);\n\nexport const checkEntityTypeHasRDMLookup = (metadata: Metadata, entityType: TEntityType) => {\n const isAttrTreeHasRDMLookup = (item: DetailedAttributeType) => {\n return isRDMLookupAttrType(item) || item.children?.some(isAttrTreeHasRDMLookup);\n };\n return pipe(getAttributeTypesTree, any(isAttrTreeHasRDMLookup))(metadata, entityType);\n};\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n content: {\n marginTop: '-13px'\n },\n bar: {\n height: '16px'\n }\n});\n","import React from 'react';\n\nimport i18n from 'ui-i18n';\n\nimport {useRDMChartDataRequest} from '../../../hooks/useRDMChartDataRequest';\nimport {useSearchRedirect} from '../../../hooks/useSearchRedirect';\nimport {getRDMTranscodeSearchState} from '../../../services/rdmTranscode';\nimport {getRDMChartColors} from '../../../services/rdmTranscode';\nimport {ViewProps} from '../../../types/ViewProps';\n\nimport {ChartDataTooltip, InfoDataRenderer} from '../../../components/ChartDataTooltip';\nimport DQLayoutItemContent from '../../../components/DQLayoutItemContent/DQLayoutItemContent';\nimport DQLayoutItemHeader from '../../../components/DQLayoutItemHeader/DQLayoutItemHeader';\nimport DQLayoutItemView from '../../../components/DQLayoutItemView/DQLayoutItemView';\nimport StackedHorizontalBarChart from '../../../components/StackedHorizontalBarChart/StackedHorizontalBarChart';\n\nimport {useStyles} from './styles';\n\nconst RDMTranscodeChart = ({config}: ViewProps) => {\n const {title} = config;\n\n const searchProfiles = useSearchRedirect(getRDMTranscodeSearchState);\n const {data, state, reload} = useRDMChartDataRequest();\n const colors = getRDMChartColors(data);\n const styles = useStyles();\n\n const infoTooltipTitle = (\n <ChartDataTooltip\n title={i18n.text('RDM value mapping status')}\n data={[\n {\n value: i18n.text(\n 'The relative number and percentage of reference data values that have been mapped to canonical values and transcoded for use by Reltio Reference Data Management.'\n )\n },\n {\n label: `${i18n.text('Mapped values')}:`,\n value: i18n.text('Values that have been mapped and transcoded')\n },\n {\n label: `${i18n.text('Unmapped values')}:`,\n value: i18n.text('Values that have not been mapped and transcoded')\n }\n ]}\n DataRenderer={InfoDataRenderer}\n />\n );\n\n return (\n <DQLayoutItemView config={config}>\n <DQLayoutItemHeader title={title} infoTooltipTitle={infoTooltipTitle} />\n <DQLayoutItemContent data={data} loadingState={state} onRefresh={reload} className={styles.content}>\n {({data}) => (\n <StackedHorizontalBarChart\n data={data}\n colors={colors}\n onItemClick={searchProfiles}\n classes={{bar: styles.bar}}\n />\n )}\n </DQLayoutItemContent>\n </DQLayoutItemView>\n );\n};\n\nexport default RDMTranscodeChart;\n","import {useCallback, useEffect, useState} from 'react';\n\nimport {ChartData, RequestStates, useSafePromise} from '@reltio/components';\nimport {FilterOptions, getTotals} from '@reltio/mdm-sdk';\n\nimport {useEntityAndAttributeType} from '../contexts/EntityAndAttributeTypeProvider';\nimport {formatRDMTranscodeData} from '../services/rdmTranscode';\n\nexport const useRDMChartDataRequest = () => {\n const {entityType} = useEntityAndAttributeType();\n const [requestState, setRequestState] = useState<RequestStates>(RequestStates.INIT);\n const [data, setData] = useState<ChartData[]>([]);\n const safePromise = useSafePromise();\n\n const getRDMData = useCallback(\n (isRDMLoolupResolve: boolean) => {\n return getTotals([\n {\n filter: FilterOptions.EQUALS,\n fieldName: 'type',\n values: [entityType.uri]\n },\n {\n filter: FilterOptions.EQUALS,\n fieldName: 'rdmLookups.resolved',\n values: [isRDMLoolupResolve]\n }\n ]);\n },\n [entityType]\n );\n\n const onError = (error) => {\n console.error(error); // eslint-disable-line\n setRequestState(RequestStates.ERROR);\n setData([]);\n };\n\n const onRequestFinished = (data: ChartData[]) => {\n setData(data);\n setRequestState(RequestStates.LOADED);\n };\n\n const loadRDMChartData = useCallback(() => {\n setRequestState(RequestStates.LOADING);\n setData([]);\n return safePromise(Promise.all([getRDMData(true), getRDMData(false)]))\n .then(formatRDMTranscodeData)\n .then(onRequestFinished)\n .catch(onError);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [getRDMData]);\n\n useEffect(() => {\n loadRDMChartData();\n }, [loadRDMChartData]);\n\n return {data: data, state: requestState, reload: loadRDMChartData};\n};\n","import React from 'react';\nimport i18n from 'ui-i18n';\n\nimport {ViewType} from '../constants/ViewType';\n\nimport FillRateChart from './charts/FillRateChart';\nimport UniquenessAnalysisChart from './charts/UniquenessAnalysisChart';\nimport Summary from './Summary/Summary';\nimport DQDashboardErrorView from './DQDashboardErrorView/DQDashboardErrorView';\nimport ViolatedValidationFuncChart from './charts/ViolatedValidationFuncChart';\nimport FrequencyAnalysisChart from './charts/FrequencyAnalysisChart';\nimport LengthStatisticsChart from './charts/LengthStatisticsChart';\nimport CrosswalkAnalysisChart from './charts/CrosswalkAnalysisChart/CrosswalkAnalysisChart';\nimport ValueDistributionChart from './charts/ValueDistributionChart';\nimport MonthDistributionChart from './charts/MonthDistributionChart';\nimport DayOfWeekDistributionChart from './charts/DayOfWeekDistributionChart';\nimport DayOfMonthDistributionChart from './charts/DayOfMonthDistributionChart';\nimport PatternAnalysisChart from './charts/PatternAnalysisChart';\nimport ConsolidationRateChart from './charts/ConsolidationRateChart/ConsolidationRateChart';\nimport RDMTranscodeChart from './charts/RDMTranscodeChart/RDMTranscodeChart';\n\nclass ViewsFactory {\n static getComponent = ({type, config, isFullscreen, onToggleFullscreen}) => {\n const props = {\n config,\n isFullscreen,\n onToggleFullscreen\n };\n switch (type) {\n case ViewType.FILL_RATE:\n return <FillRateChart {...props} />;\n case ViewType.UNIQUENESS:\n return <UniquenessAnalysisChart {...props} />;\n case ViewType.SUMMARY:\n return <Summary {...props} />;\n case ViewType.DATA_VALIDATION:\n return <ViolatedValidationFuncChart {...props} />;\n case ViewType.FREQUENCY:\n return <FrequencyAnalysisChart {...props} />;\n case ViewType.LENGTH_STATISTIC:\n return <LengthStatisticsChart {...props} />;\n case ViewType.CROSSWALK_ANALYSIS:\n return <CrosswalkAnalysisChart {...props} />;\n case ViewType.VALUE_DISTRIBUTION:\n return <ValueDistributionChart {...props} />;\n case ViewType.MONTH_DISTRIBUTION:\n return <MonthDistributionChart {...props} />;\n case ViewType.DAY_OF_WEEK_DISTRIBUTION:\n return <DayOfWeekDistributionChart {...props} />;\n case ViewType.DAY_OF_MONTH_DISTRIBUTION:\n return <DayOfMonthDistributionChart {...props} />;\n case ViewType.PATTERN:\n return <PatternAnalysisChart {...props} />;\n case ViewType.CONSOLIDATION_RATE:\n return <ConsolidationRateChart {...props} />;\n case ViewType.RDM_TRANSCODE:\n return <RDMTranscodeChart {...props} />;\n default:\n return (\n <DQDashboardErrorView\n {...props}\n errorData={{message: i18n.text(\"Chart isn't supported for this data type\")}}\n />\n );\n }\n };\n}\n\nexport default ViewsFactory;\n","import React from 'react';\nimport ViewsFactory from '../../views/ViewsFactory';\nimport {DQDashboardView} from '../../types/DQDashboardView';\nimport {ReactGridLayoutItem} from '@reltio/components';\n\ntype Props = {\n className?: string;\n isFullscreen: boolean;\n style: React.CSSProperties;\n views: DQDashboardView[];\n onToggleFullscreen: (id: string) => void;\n layoutItemConfig: ReactGridLayoutItem;\n children: React.ReactNode;\n};\n\nexport const DQDashboardLayoutItem = ({\n layoutItemConfig,\n views,\n onToggleFullscreen,\n isFullscreen,\n className,\n children: ResizeComponent,\n style\n}: Props) => {\n const config = views.find(({id}) => layoutItemConfig.i === id);\n\n if (!config) {\n return null;\n }\n const {type} = config;\n\n return (\n <div style={style} className={className}>\n {ViewsFactory.getComponent({\n type,\n config,\n onToggleFullscreen,\n isFullscreen\n })}\n {ResizeComponent}\n </div>\n );\n};\n","import {assoc, map} from 'ramda';\nimport React, {memo, useMemo} from 'react';\n\nimport {ReltioGridLayoutItem} from '@reltio/mdm-sdk';\nimport {ReltioGridLayout, ReltioGridLayoutOptions} from '@reltio/components';\n\nimport {DQDashboardView} from '../../types/DQDashboardView';\nimport {DQDashboardLayoutItem} from '../DQDashboardLayoutItem/DQDashboardLayoutItem';\n\nexport type DQDashboardLayoutProps = {\n views: DQDashboardView[];\n layout?: ReltioGridLayoutItem[];\n layoutOptions?: ReltioGridLayoutOptions;\n};\n\nconst reltioGridLayoutToStaticLayout = map(assoc('isStatic', true));\nconst DEFAULT_LAYOUT_OPTIONS = {\n cols: 6,\n rowHeight: 10,\n margin: [12, 12] as [number, number]\n};\n\nconst DQDashboardLayout = ({views, layout, layoutOptions = DEFAULT_LAYOUT_OPTIONS}: DQDashboardLayoutProps) => {\n const staticLayout = useMemo(() => reltioGridLayoutToStaticLayout(layout), [layout]);\n return (\n <ReltioGridLayout\n LayoutItem={DQDashboardLayoutItem}\n views={views}\n layout={staticLayout}\n layoutOptions={layoutOptions}\n />\n );\n};\n\nexport default memo(DQDashboardLayout);\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n warning: {\n fontSize: '13px',\n color: 'rgba(0, 0, 0, 0.54)',\n height: '47px',\n border: '1px solid rgba(0, 0, 0, 0.12)',\n margin: '14px 11px 0 12px',\n display: 'flex',\n alignItems: 'center',\n paddingLeft: '18px',\n overflow: 'hidden',\n textOverflow: 'ellipsis'\n },\n errorIcon: {\n color: 'rgba(0, 0, 0, 0.54)',\n marginRight: '14px'\n }\n});\n","import React from 'react';\nimport ErrorIcon from '@material-ui/icons/Error';\nimport {useStyles} from './styles';\n\nconst Warning = ({text}) => {\n const styles = useStyles();\n return (\n text && (\n <div className={styles.warning} data-reltio-id=\"dq-warning\">\n <ErrorIcon className={styles.errorIcon} />\n {text}\n </div>\n )\n );\n};\n\nexport default Warning;\n","import {CSSProperties} from 'react';\nimport {makeStyles} from '@material-ui/core/styles';\n\nconst scrollTopShadow: CSSProperties = {\n position: 'absolute',\n content: '\"\"',\n top: 0,\n left: 0,\n right: 0,\n zIndex: 1\n};\n\nexport const useStyles = makeStyles(() => ({\n perspectiveView: {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n bottom: 0,\n overflowX: 'hidden',\n overflowY: 'auto',\n fontFamily: 'Roboto, Helvetica, Arial, sans-serif',\n display: 'flex',\n flexDirection: 'column',\n background: '#EEEEEE'\n },\n content: {\n height: 'calc(100% - 56px)',\n position: 'relative'\n },\n attributeLevelWrapper: {\n verticalAlign: 'top',\n width: 'auto',\n height: '100%',\n flexGrow: 1,\n position: 'relative',\n marginTop: '-12px',\n '&:before': {\n ...scrollTopShadow,\n top: '8px',\n height: '4px',\n background: 'linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)',\n zIndex: 1\n },\n '&:after': {\n ...scrollTopShadow,\n height: '8px',\n background: '#EEEEEE'\n }\n },\n navigationWrapper: {\n display: 'flex',\n gap: '16px',\n padding: '12px',\n alignItems: 'center'\n },\n headerRightSide: {\n flexGrow: 1,\n display: 'flex',\n flexDirection: 'row-reverse',\n marginRight: '4px'\n },\n periodSelector: {\n position: 'relative',\n margin: '0',\n height: '30px',\n borderRadius: '6px',\n border: '1px solid rgba(0, 0, 0, 0.12)',\n flexBasis: '196px'\n },\n paper: {\n boxShadow:\n '0px 12px 17px 2px rgba(0, 0, 102, 0.06), 0px 5px 32px 4px rgba(0, 0, 102, 0.06), 0px 7px 8px -4px rgba(0, 0, 204, 0.1)',\n '& ul>div': {\n minWidth: '300px'\n }\n },\n input: {\n padding: '8px 0 8px 16px',\n fontSize: '13px'\n },\n inputRoot: {\n backgroundColor: 'transparent',\n paddingRight: 4\n },\n dropdownIndicator: {\n width: '18px',\n height: '18px',\n '& svg': {\n width: '18px',\n height: '18px'\n }\n },\n layoutRoot: {\n overflow: 'auto',\n backgroundColor: '#EEEEEE',\n height: '100%',\n flexGrow: 1,\n padding: '0 4px',\n boxSizing: 'border-box'\n }\n}));\n","import React, {useEffect, useMemo} from 'react';\nimport {equals, pipe, reject} from 'ramda';\n\nimport {DQDataLevel, DQMetric, ReltioGridLayoutItem, TEntityType} from '@reltio/mdm-sdk';\nimport i18n from 'ui-i18n';\n\nimport {DataLevelContext} from '../../contexts/DataLevelContext';\nimport {useChartsDataContext} from '../../contexts/ChartsDataProvider';\nimport {useEntityAndAttributeType} from '../../contexts/EntityAndAttributeTypeProvider';\nimport {useReloadFacet} from '../../contexts/ReloadFacetContext';\nimport {usePermissionsContext} from '../../contexts/PermissionsProvider';\nimport {DQDashboardPerspectiveConfig} from '../../types/DQDashboardPerspectiveConfig';\nimport {getLayoutByAttributeType, getMetricsFromViews, getAttributeLevelViews} from '../../services/charts';\nimport {isReferenceChild} from '../../services/attributeDetails';\nimport {useChartsDataRequest} from '../../hooks/useChartsDataRequest';\n\nimport DQDashboardLayout from '../DQDashboardLayout/DQDashboardLayout';\nimport Warning from '../Warning/Warning';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n config: DQDashboardPerspectiveConfig;\n entityType?: TEntityType;\n};\n\nconst AttributeLevelLayout = ({config, entityType}: Props) => {\n const styles = useStyles();\n const {detailedAttributeType} = useEntityAndAttributeType();\n const {hasRestrictions, isTimeSeriesAvailable} = usePermissionsContext();\n const customAttributeLayouts = config.layoutsByDataLevel?.[DQDataLevel.ATTRIBUTE_TYPE];\n const layout = useMemo(\n (): ReltioGridLayoutItem[] =>\n getLayoutByAttributeType(customAttributeLayouts, detailedAttributeType?.type, isTimeSeriesAvailable),\n [detailedAttributeType?.type, customAttributeLayouts]\n );\n\n const views = useMemo(\n () => getAttributeLevelViews(config.viewsByDataLevel, detailedAttributeType?.type, layout),\n [config.viewsByDataLevel, detailedAttributeType?.type, layout]\n );\n\n const attributeLevelMetrics = useMemo(\n () =>\n pipe(getMetricsFromViews, (metrics: DQMetric[]) =>\n isReferenceChild(detailedAttributeType) ? reject(equals(DQMetric.DATA_VALIDATION))(metrics) : metrics\n )(views),\n [views, detailedAttributeType]\n );\n\n const chartsData = useChartsDataRequest({\n entityType,\n detailedAttributeType,\n dataLevel: DQDataLevel.ATTRIBUTE_TYPE,\n metrics: attributeLevelMetrics\n });\n const {changeChartsData} = useChartsDataContext();\n useEffect(() => changeChartsData(chartsData), [chartsData]);\n useReloadFacet({\n state: chartsData.state,\n reload: chartsData.reload,\n dataLevel: DQDataLevel.ATTRIBUTE_TYPE\n });\n return (\n <DataLevelContext.Provider value={DQDataLevel.ATTRIBUTE_TYPE}>\n <div className={styles.layoutRoot}>\n {hasRestrictions && (\n <Warning\n text={i18n.text(\n 'Not seeing the data you expected for this attribute? Contact your tenant admin to verify permissions.'\n )}\n />\n )}\n <DQDashboardLayout views={views} layout={layout} />\n </div>\n </DataLevelContext.Provider>\n );\n};\n\nexport default AttributeLevelLayout;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles((theme) => ({\n breadcrumb: {\n fontSize: '16px',\n color: theme.palette.text.primary\n },\n active: {\n color: 'rgba(0, 0, 102, 1)'\n },\n clickable: {\n cursor: 'pointer'\n }\n}));\n","import React from 'react';\nimport {Breadcrumbs as Breadcrumbs} from '@material-ui/core';\nimport classnames from 'classnames';\nimport NavigateNextIcon from '@material-ui/icons/NavigateNext';\nimport {Typography as Typography} from '@material-ui/core';\n\nimport i18n from 'ui-i18n';\nimport {DQDataLevel} from '@reltio/mdm-sdk';\n\nimport {useEntityAndAttributeType} from '../../contexts/EntityAndAttributeTypeProvider';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n dataLevel: DQDataLevel;\n onChange: (dataLevel: DQDataLevel) => void;\n};\nconst DataLevelBreadcrumbs = ({dataLevel, onChange}: Props) => {\n const styles = useStyles();\n const {detailedAttributeType, setDetailedAttributeType} = useEntityAndAttributeType();\n const handleChangeDataLevel = (dataLevel: DQDataLevel) => () => {\n if (dataLevel === DQDataLevel.ENTITY_TYPE) {\n setDetailedAttributeType(null);\n }\n onChange(dataLevel);\n };\n\n return (\n <Breadcrumbs separator={<NavigateNextIcon fontSize=\"small\" />} aria-label=\"breadcrumb\">\n {[\n <Typography\n key={DQDataLevel.ENTITY_TYPE}\n className={classnames(styles.breadcrumb, {\n [styles.active]: dataLevel === DQDataLevel.ENTITY_TYPE,\n [styles.clickable]: dataLevel === DQDataLevel.ATTRIBUTE_TYPE\n })}\n onClick={handleChangeDataLevel(DQDataLevel.ENTITY_TYPE)}\n data-reltio-id=\"reltio-dq-dashboard-breadcrumb-entity-level\"\n >\n {i18n.text('Entity overview')}\n </Typography>\n ].concat(\n dataLevel === DQDataLevel.ATTRIBUTE_TYPE ? (\n <Typography\n key={DQDataLevel.ATTRIBUTE_TYPE}\n className={classnames(styles.breadcrumb, styles.active)}\n data-reltio-id=\"reltio-dq-dashboard-breadcrumb-attribute-level\"\n >\n {detailedAttributeType?.label}\n </Typography>\n ) : (\n []\n )\n )}\n </Breadcrumbs>\n );\n};\n\nexport default DataLevelBreadcrumbs;\n","import {find, map, pipe, pluck, propOr, propEq, sum, without} from 'ramda';\n\nexport type PageSettings = {\n index: number;\n width?: number;\n}[];\n\nexport const calculatePagePartsWidth = ({pages, width: allWidth}: {pages: PageSettings[]; width: number}) => {\n return pages.reduce((acc: PageSettings[], pagesettings: PageSettings) => {\n const fixedWidth = pagesettings.reduce((width, pagePart) => {\n return width + (pagePart?.width || 0);\n }, 0);\n\n acc.push(\n pagesettings.map(({width: partWidth, index}) =>\n partWidth\n ? {\n index,\n width: partWidth\n }\n : {\n index,\n width: allWidth - fixedWidth\n }\n )\n );\n return acc;\n }, []);\n};\n\nconst getPagePartWidth = (pagePartIndex: number) => pipe(find(propEq('index', pagePartIndex)), propOr(0, 'width'));\n\nexport const getPageIndexes = pluck('index');\n\nexport const getPagePartStyleWidth = ({\n pagesSettings,\n page,\n pagePartIndex\n}: {\n pagePartIndex: number;\n page: number;\n pagesSettings: PageSettings[];\n}) => {\n const pageIndexes = getPageIndexes(pagesSettings[page]);\n const minCurrentIndex = Math.min(...pageIndexes);\n const maxCurrentIndex = Math.max(...pageIndexes);\n\n if (pagePartIndex < minCurrentIndex || pagePartIndex > maxCurrentIndex) {\n return pipe(\n find((pageSettings, indexPage) => indexPage !== page),\n getPagePartWidth(pagePartIndex)\n )(pagesSettings);\n } else return getPagePartWidth(pagePartIndex)(pagesSettings[page]);\n};\n\nexport const getLeftPageOffset = ({page, pagesSettings}: {page: number; pagesSettings: PageSettings[]}) => {\n const pageIndexes = getPageIndexes(pagesSettings[page]);\n const prevPageIndexes = page === 0 ? [] : getPageIndexes(pagesSettings[page - 1]);\n const leftPagesIndexes = without(pageIndexes, prevPageIndexes);\n\n return page === 0\n ? 0\n : -pipe(\n map((pagePartIndex) => getPagePartWidth(pagePartIndex)(pagesSettings[page - 1])),\n sum\n )(leftPagesIndexes);\n};\n","import {makeStyles} from '@material-ui/core/styles';\n\ntype StyleProps = {\n transitionTime: number;\n pagesCount: number;\n};\n\nexport const useStyles = makeStyles(() => ({\n root: ({transitionTime}: StyleProps) => ({\n transition: `left ${transitionTime}s ease 0s`,\n height: '100%',\n width: '100%',\n position: 'absolute'\n }),\n pagesWrapper: ({pagesCount}: StyleProps) => ({\n display: 'flex',\n height: '100%',\n width: `${100 * pagesCount}%`\n }),\n page: {\n display: 'flex'\n }\n}));\n","import React, {useEffect, useState} from 'react';\nimport ReactResizeDetector from 'react-resize-detector';\nimport {\n PageSettings,\n calculatePagePartsWidth,\n getPagePartStyleWidth,\n getLeftPageOffset,\n getPageIndexes\n} from './helpers';\n\nimport {useStyles} from './styles';\n\nconst TRANSITION_TIMEOUT_MS = 300;\n\nexport type ContentSliderProps = {\n page: number;\n pages: PageSettings[];\n children?: React.ReactNodeArray;\n startSliding?: () => void;\n endSliding?: () => void;\n};\n\nconst ContentSlider = ({page, children, pages, startSliding, endSliding}: ContentSliderProps) => {\n const styles = useStyles({\n transitionTime: TRANSITION_TIMEOUT_MS / 1000,\n pagesCount: pages.length\n });\n\n const [savedPage, setSavedPage] = useState(0);\n useEffect(() => {\n startSliding && startSliding();\n setTimeout(() => {\n setSavedPage(page);\n endSliding && endSliding();\n }, TRANSITION_TIMEOUT_MS);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [page]);\n\n const currentPageIndexes = getPageIndexes(pages[page]);\n\n return (\n <ReactResizeDetector refreshMode=\"debounce\" refreshRate={100} handleWidth>\n {({width = 250}: {width: number}) => {\n const pagesSettings = calculatePagePartsWidth({pages, width});\n const left = getLeftPageOffset({page, pagesSettings});\n\n return (\n <div className={styles.root} style={{left}}>\n <div className={styles.pagesWrapper}>\n {children.map((component, index) => {\n const showComponent = page !== savedPage || currentPageIndexes.includes(index);\n const styleWidth = getPagePartStyleWidth({\n pagesSettings,\n page: page,\n pagePartIndex: index\n });\n\n return (\n <section className={styles.page} style={{width: styleWidth}} key={index}>\n {showComponent && component}\n </section>\n );\n })}\n </div>\n </div>\n );\n }}\n </ReactResizeDetector>\n );\n};\n\nexport default ContentSlider;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles((theme) => ({\n root: {\n width: '100%',\n height: '100%',\n verticalAlign: 'top',\n position: 'relative',\n boxSizing: 'border-box'\n },\n entityLevelBar: {\n position: 'absolute',\n top: 0,\n bottom: 0,\n right: '16px',\n width: '28px',\n background: 'linear-gradient(0deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05)), #FFFFFF',\n boxShadow: '0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2)',\n color: theme.palette.text.secondary,\n fontWeight: 500,\n fontSize: '14px',\n writingMode: 'vertical-rl',\n textTransform: 'uppercase',\n cursor: 'pointer',\n padding: '52px 0',\n marginBottom: '8px',\n lineHeight: '28px'\n },\n expandButton: {\n position: 'absolute',\n top: '15px',\n left: '6px',\n writingMode: 'initial',\n textTransform: 'none',\n maxWidth: '24px',\n height: '24px',\n borderRadius: '12px',\n background: '#fff',\n boxShadow: '0px 2px 2px rgba(0, 0, 0, 0.14), 0px 3px 1px rgba(0, 0, 0, 0.12), 0px 1px 5px rgba(0, 0, 0, 0.2)',\n transition: 'max-width 0.3s linear',\n zIndex: 2,\n overflow: 'hidden',\n display: 'flex',\n lineHeight: '28px',\n '&:hover': {\n maxWidth: '500px'\n }\n },\n expandButtonText: {\n paddingRight: '8px',\n fontSize: '12px',\n lineHeight: '24px',\n whiteSpace: 'nowrap'\n }\n}));\n","import React from 'react';\nimport RightArrowIcon from '@material-ui/icons/ChevronRight';\n\nimport i18n from 'ui-i18n';\nimport {getLabel, TEntityType} from '@reltio/mdm-sdk';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n showEntityLevel: () => void;\n entityType: TEntityType;\n};\n\nconst DataLevelSwitcher = ({showEntityLevel, entityType}: Props) => {\n const styles = useStyles();\n\n const expandButtonTitle = `${i18n.text('Entity')}: ${getLabel(entityType.label)} ${i18n.text('overview')}`;\n return (\n <div className={styles.root} onClick={showEntityLevel}>\n <div className={styles.entityLevelBar} data-reltio-id=\"reltio-dq-dashboard-entity-level-bar-button\">\n <div className={styles.expandButton}>\n <RightArrowIcon />\n <span className={styles.expandButtonText}>{expandButtonTitle}</span>\n </div>\n {i18n.text('Entity')}\n </div>\n </div>\n );\n};\n\nexport default DataLevelSwitcher;\n","import {useState, useEffect, useMemo, useContext} from 'react';\nimport {useSelector} from 'react-redux';\nimport {evolve} from 'ramda';\nimport {TEntityType, Metadata, getEntityTypeMatchAttributes} from '@reltio/mdm-sdk';\nimport mdmModule from '@reltio/mdm-module';\nimport {getAttrTypeDetails} from '../services/attributeDetails';\nimport {AttributeItemType, DetailedAttributeType} from '../types/DetailedAttributeType';\nimport {collectFilteredAttributeItems} from '../services/attributeDetails';\nimport {DVFContext} from '../contexts/DVFContext';\n\nexport const useAttrTypeDetails = (entityType: TEntityType, filterText: string) => {\n const metadata: Metadata = useSelector(mdmModule.selectors.getMetadata);\n const attrTypeItems = useMemo(() => collectFilteredAttributeItems(filterText)(metadata, entityType), [\n metadata,\n entityType,\n filterText\n ]);\n const [itemsWithDetails, setItemsWithDetails] = useState<AttributeItemType[]>([]);\n\n const entityTypeUri = entityType.uri;\n const matchAttributes = useMemo(() => getEntityTypeMatchAttributes(metadata, entityTypeUri), [\n metadata,\n entityTypeUri\n ]);\n const dvf = useContext(DVFContext)?.dvfs?.data;\n useEffect(() => {\n setItemsWithDetails([]);\n dvf &&\n setItemsWithDetails(\n attrTypeItems.map(\n evolve({\n attributeItem: (attrTypeItem: DetailedAttributeType) => ({\n ...attrTypeItem,\n details: getAttrTypeDetails({attrTypeItem, dvf, matchAttributes}),\n ...(attrTypeItem.children && {\n children: attrTypeItem.children.map((child) => {\n child.details = getAttrTypeDetails({attrTypeItem: child, dvf, matchAttributes});\n child.details.reference = attrTypeItem.isAttributeReference;\n return child;\n })\n })\n })\n })\n )\n );\n }, [attrTypeItems, matchAttributes, dvf]);\n\n return itemsWithDetails;\n};\n","import {isComplexAttribute, isImage} from '@reltio/mdm-sdk';\nimport {\n __,\n assoc,\n both,\n curry,\n either,\n filter,\n find,\n findIndex,\n head,\n identity,\n includes,\n map,\n not,\n pipe,\n pluck,\n prop,\n propEq,\n propOr\n} from 'ramda';\nimport {ChartData} from '@reltio/components';\nimport {DetailedAttributeType, AttributeItemType, AttrTypeDetailsType} from '../../types/DetailedAttributeType';\nimport {\n filterAttributeByNotEmpty,\n filterAttributeByDetails,\n filterAttributeTreeByDetails\n} from '../../services/attributeFilters';\nimport {FilterOption} from '../../types/FilterOption';\nimport {FilterOptionsGroup} from '../../types/FilterOptionsGroup';\nimport {getDetailLabel} from '../../services/attributeDetails';\nimport i18n from 'ui-i18n';\n\nconst getAttrTypeFromItem = propOr({}, 'attributeItem');\ntype GetFirstSimpleDetailedAttrTypeFn = (items: AttributeItemType[]) => DetailedAttributeType;\nexport const getFirstSimpleDetailedAttrType: GetFirstSimpleDetailedAttrTypeFn = pipe(\n find(pipe(getAttrTypeFromItem, either(isComplexAttribute, isImage), not)),\n getAttrTypeFromItem\n);\n\nconst filterDetailedAttrTypeByFieldName = (fieldName: string) =>\n pipe(getAttrTypeFromItem, propEq('fieldName', fieldName));\n\ntype GetDetailedAttrTypeByFieldNameFn = (items: AttributeItemType[], uri: string) => DetailedAttributeType;\nexport const getDetailedAttrTypeByFieldName: GetDetailedAttrTypeByFieldNameFn = (items, fieldName) =>\n pipe(find(filterDetailedAttrTypeByFieldName(fieldName)), propOr(null, 'attributeItem'))(items);\n\nexport const getIndexByFieldName = (items: AttributeItemType[], fieldName: string): number =>\n findIndex(filterDetailedAttrTypeByFieldName(fieldName))(items);\n\nexport const getFillRateByAttributeType = (\n fillRates: Record<string, ChartData[]>,\n attributeType: DetailedAttributeType\n) => fillRates[attributeType.fieldName];\n\nexport const rejectCollapsedItemsChildren = (\n items: AttributeItemType[],\n collapsedFieldNames: string[]\n): AttributeItemType[] =>\n items.filter(\n ({attributeItem}) =>\n !collapsedFieldNames.some(\n (collapsedFieldName) =>\n attributeItem.fieldName.startsWith(collapsedFieldName) &&\n attributeItem.fieldName !== collapsedFieldName\n )\n );\n\nconst getFilterOptionsByGroup = (group: string) => filter(propEq('group', group));\n\nconst getDetailsOptionCount = (items: AttributeItemType[], option: FilterOption) =>\n items.filter((item) => filterAttributeByDetails([option], item.attributeItem)).length;\n\nexport enum EmptinessFilterValue {\n SHOW_EMPTY = 'showEmpty'\n}\n\nexport const noDataFilterOptions = [\n {\n label: i18n.text('Show attributes with no data'),\n value: EmptinessFilterValue.SHOW_EMPTY,\n group: 'emptiness'\n }\n];\n\nexport const getNoDataOptions = (): FilterOptionsGroup => {\n return {\n label: '',\n options: noDataFilterOptions\n };\n};\n\nexport const getDetailsOptions = (items: AttributeItemType[]): FilterOptionsGroup => {\n const options = Object.values(AttrTypeDetailsType)\n .map((value) => ({\n value,\n label: getDetailLabel(value),\n group: 'details'\n }))\n .map((option) => assoc('count', getDetailsOptionCount(items, option), option));\n\n return {\n label: i18n.text('Attribute properties'),\n options\n };\n};\n\nexport const filterItemsByEmptiness = curry(\n (options: FilterOption[], fillRates: Record<string, ChartData[]>, items: AttributeItemType[]) => {\n const firstEmptinessOption = head(getFilterOptionsByGroup('emptiness')(options));\n switch (firstEmptinessOption?.value) {\n case EmptinessFilterValue.SHOW_EMPTY:\n return items;\n default:\n return items.filter(pipe(getAttrTypeFromItem, filterAttributeByNotEmpty(fillRates)));\n }\n }\n);\n\nconst filterValidDetailsOptions = (options: FilterOption[]) => {\n const validOptionValues = Object.values(AttrTypeDetailsType);\n return options.filter(pipe(prop('value'), includes(__, validOptionValues)));\n};\nconst getFieldNameFromItem: (item: AttributeItemType) => string = pipe(getAttrTypeFromItem, prop('fieldName'));\nconst getFilteredNestedFieldNames = (options: FilterOption[]): ((items: AttributeItemType[]) => string[]) =>\n pipe(\n filter(pipe(getAttrTypeFromItem, both(prop('children'), filterAttributeByDetails(options)))),\n map(getFieldNameFromItem)\n );\n\nexport const filterItemsByDetails = curry((options: FilterOption[], items: AttributeItemType[]) => {\n const detailsOptions = pipe(getFilterOptionsByGroup('details'), filterValidDetailsOptions)(options);\n const filteredNestedFieldNames = getFilteredNestedFieldNames(detailsOptions)(items);\n return items.filter(\n ({attributeItem}) =>\n filteredNestedFieldNames.some((fieldName) => attributeItem.fieldName.startsWith(fieldName)) ||\n filterAttributeTreeByDetails(detailsOptions, attributeItem)\n );\n});\n\nexport const getAtrributeFieldNames: (items: AttributeItemType[]) => string[] = pipe(\n map(getAttrTypeFromItem),\n pluck('fieldName'),\n identity\n);\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n root: {\n paddingRight: '12px',\n paddingLeft: '20px',\n display: 'flex',\n flexDirection: 'row-reverse'\n },\n detailIcon: {\n marginLeft: '-5px',\n borderRadius: '50%',\n padding: '2px',\n width: '26px',\n height: '26px',\n boxSizing: 'border-box'\n },\n activeIcon: {\n background: 'white'\n }\n});\n","import React from 'react';\nimport {prop} from 'ramda';\nimport classnames from 'classnames';\nimport {\n AttributeTypeDetailIcon,\n AttributeTypeDetailIconSizes,\n AttributeTypeDetailIconVariant\n} from '../AttributeTypeDetailIcon/AttributeTypeDetailIcon';\nimport {Tooltip as Tooltip} from '@material-ui/core';\nimport {ChartData, RequestStates} from '@reltio/components';\nimport {getDetailLabel, checkIsDataQualitativeForAttributeList} from '../../services/attributeDetails';\nimport {AttrTypeDetails, AttrTypeDetailsType} from '../../types/DetailedAttributeType';\nimport {useStyles} from './styles';\n\ntype Props = {\n fillRateData?: ChartData[];\n fillRateState?: RequestStates;\n details: AttrTypeDetails;\n classes?: {\n iconRoot: string;\n iconsWrapper: string;\n };\n};\n\nconst AttributeTypeDetailsIcons = ({details, classes, fillRateData, fillRateState}: Props) => {\n const styles = useStyles();\n const iconRoot = prop('iconRoot', classes);\n const iconsWrapper = prop('iconsWrapper', classes);\n\n return (\n <div className={classnames(styles.root, iconsWrapper)}>\n {Object.entries(details || {})\n .reverse()\n .map(([detailType, value]) => {\n let iconVariant = AttributeTypeDetailIconVariant.NORMAL;\n if (detailType === AttrTypeDetailsType.REQUIRED) {\n const isDataLoading = fillRateState === RequestStates.LOADING;\n const isDataQualitative = checkIsDataQualitativeForAttributeList(fillRateData);\n if (isDataLoading) {\n iconVariant = AttributeTypeDetailIconVariant.LOADING;\n }\n if (!isDataLoading && !isDataQualitative) {\n iconVariant = AttributeTypeDetailIconVariant.BAD_QUALITY;\n }\n }\n return (\n <div\n key={detailType}\n className={classnames(value && (iconRoot || styles.activeIcon), styles.detailIcon)}\n >\n {value && (\n <Tooltip title={getDetailLabel(detailType)}>\n <span>\n <AttributeTypeDetailIcon\n detailType={detailType as AttrTypeDetailsType}\n variant={iconVariant}\n size={AttributeTypeDetailIconSizes.SMALL}\n />\n </span>\n </Tooltip>\n )}\n </div>\n );\n })}\n </div>\n );\n};\n\nexport default AttributeTypeDetailsIcons;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n bar: {\n width: '100%',\n display: 'flex',\n flexWrap: 'nowrap'\n },\n barPart: {\n height: '8px',\n flexGrow: 1\n },\n fillRateSquare: {\n height: '8px',\n width: '8px',\n display: 'inline-block',\n marginRight: '5px',\n verticalAlign: 'middle'\n },\n inactiveBarPart: {\n background: '#EFEFEF'\n }\n});\n","import React from 'react';\nimport classnames from 'classnames';\nimport {Tooltip as Tooltip} from '@material-ui/core';\n\nimport i18n from 'ui-i18n';\nimport {ChartData, withPercents} from '@reltio/components';\n\nimport {isEmptyData, getBarWidthStyle} from '../../services/charts';\nimport {getFillRateColorByState, getFillRateColors} from '../../services/fillRate';\n\nimport {TooltipWithSquares} from '../ChartDataTooltip';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n data: ChartData[];\n};\n\nconst FillRateLine = ({data}: Props) => {\n const styles = useStyles();\n const colors = getFillRateColors(data);\n\n return !isEmptyData(data) ? (\n <Tooltip\n title={<TooltipWithSquares title={i18n.text('Fill rate')} data={data} getColor={getFillRateColorByState} />}\n >\n <div className={styles.bar}>\n {data.map((chartData, index) => (\n <div\n key={chartData.group}\n className={styles.barPart}\n style={{...getBarWidthStyle(chartData), background: colors[index]}}\n />\n ))}\n </div>\n </Tooltip>\n ) : (\n <div className={styles.bar}>\n <div className={classnames(styles.barPart, styles.inactiveBarPart)} />\n </div>\n );\n};\n\nexport default withPercents(FillRateLine);\n","import {makeStyles} from '@material-ui/core/styles';\n\nconst levelLineColor = 'rgba(0, 114, 206, 0.12)';\nexport const useStyles = makeStyles({\n linesWrapper: {\n position: 'absolute',\n left: '9px',\n top: 0,\n bottom: 0\n },\n line: {\n position: 'absolute',\n width: '2px',\n background: levelLineColor,\n bottom: 0,\n zIndex: 2,\n left: 0,\n top: 0\n },\n horizontalLine: {\n '&:after': {\n content: '\"\"',\n position: 'absolute',\n left: '2px',\n top: '15px',\n width: '3px',\n height: '2px',\n background: levelLineColor\n }\n },\n parentLine: {\n left: '20px',\n top: '34px'\n },\n lastLevel: {\n bottom: '31px'\n },\n lastLevelSelected: {\n '&:after': {top: '13px'}\n }\n});\n","import React from 'react';\nimport classnames from 'classnames';\nimport {range} from 'ramda';\nimport {Marginator} from '@reltio/components';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n level: number;\n margin: number;\n hasChildren: boolean;\n isLastLevelItem: boolean;\n isCollapsed: boolean;\n isSelected: boolean;\n};\n\nconst getLevelsRange = (hasChildren: boolean, level: number): number[] => {\n if (level > 0 && hasChildren) return range(1, level + 1);\n\n if (level > 1) return range(1, level);\n return [];\n};\n\nconst TreeLines = ({level, margin, hasChildren, isLastLevelItem, isCollapsed, isSelected = false}: Props) => {\n const styles = useStyles();\n const drawLine = !isCollapsed && (level > 0 || hasChildren);\n\n return (\n <div className={styles.linesWrapper}>\n {getLevelsRange(hasChildren, level).map((level: number) => (\n <Marginator key={level} margin={margin} level={level} className={styles.line} />\n ))}\n {drawLine && (\n <Marginator\n margin={margin}\n level={level}\n className={classnames(\n styles.line,\n !hasChildren && level > 0 && styles.horizontalLine,\n hasChildren && styles.parentLine,\n isLastLevelItem && styles.lastLevel,\n isSelected && isLastLevelItem && styles.lastLevelSelected\n )}\n />\n )}\n </div>\n );\n};\n\nexport default TreeLines;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles((theme) => ({\n listItem: {\n padding: '0 0 0 15px',\n '&:after': {\n content: '\"\"',\n left: 0,\n right: 0,\n position: 'absolute',\n bottom: 0,\n height: '1px',\n background: 'rgba(0, 0, 0, 0.05)'\n }\n },\n selectedItem: {\n background: 'white!important',\n border: '1px solid #000066',\n boxShadow:\n '0px 12px 17px -2px rgba(0, 0, 102, 0.06), 0px 5px 32px -4px rgba(0, 0, 102, 0.06), 0px 7px 8px -4px rgba(0, 0, 204, 0.1)',\n borderRadius: '6px',\n zIndex: 1,\n paddingLeft: '14px',\n '&:after': {\n display: 'none'\n }\n },\n clickableItem: {\n cursor: 'pointer',\n '&:hover::after': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n height: '100%',\n backgroundColor: 'rgba(0,0,0,0.07)',\n pointerEvents: 'none',\n zIndex: 1\n }\n },\n content: {\n display: 'flex',\n alignItems: 'center',\n width: '100%',\n height: '100%',\n position: 'relative'\n },\n attribute: {\n paddingLeft: '9px',\n boxSizing: 'border-box',\n width: '100%',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n height: '100%',\n position: 'relative',\n fontSize: '13px'\n },\n marginWrapper: {\n display: 'inline-block',\n height: '100%',\n position: 'relative',\n width: '100%'\n },\n attributeType: {\n position: 'absolute',\n left: 0,\n top: '8px'\n },\n fillRate: {\n position: 'absolute',\n bottom: '8px',\n left: 0,\n right: 0,\n zIndex: 1\n },\n attributeLabel: {\n padding: '8px 0 0 15px',\n position: 'relative',\n '&:after': {\n content: '\"\"',\n position: 'absolute',\n right: 0,\n top: 0,\n width: '40px',\n height: '100%',\n background: 'linear-gradient(to right, rgba(255, 255, 255, 0.2), #fff 100%)',\n pointerEvents: 'none'\n }\n },\n parentAttributeLabel: {\n padding: '14px 0 0 13px'\n },\n detailsIcon: {\n background: 'white'\n },\n collapseIcon: {\n marginRight: '6px'\n },\n iconLoader: {\n width: '22px',\n height: '22px',\n border: '2px solid white',\n background: 'rgba(196, 196, 196, 0.4)',\n borderRadius: '50%'\n },\n iconsLoaderWrapper: {\n paddingRight: '23px',\n paddingLeft: '28px',\n display: 'flex'\n },\n iconLoaderWrapper: {\n width: '24px',\n height: '24px',\n backgroundColor: 'white',\n borderRadius: '50%',\n marginRight: '-3px'\n },\n fillRateLineLoader: {\n height: '8px',\n width: '100%',\n background: 'rgba(196, 196, 196, 0.4)',\n left: 0,\n right: 0,\n bottom: '8px',\n zIndex: 1,\n position: 'absolute'\n },\n iconsWrapper: {\n paddingRight: '11px'\n },\n noData: {\n '&::before': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n height: '100%',\n backgroundColor: 'rgba(0,0,0,0.07)',\n pointerEvents: 'none',\n zIndex: 1\n }\n },\n noDataLabel: {\n fontSize: '12px',\n color: theme.palette.text.secondary,\n lineHeight: '16px',\n marginTop: '4px'\n }\n}));\n","import classnames from 'classnames';\nimport {times} from 'ramda';\nimport React from 'react';\nimport {ListItem as ListItem} from '@material-ui/core';\nimport ArrowDropDownIcon from '@material-ui/icons/ArrowDropDown';\nimport ArrowRightIcon from '@material-ui/icons/ArrowRight';\nimport i18n from 'ui-i18n';\nimport {ChartData, ExpandedValueTooltip, Marginator, noop, RequestStates, SmallIconButton} from '@reltio/components';\n\nimport {getAttributeLabel} from '../../services/attributes';\nimport {DetailedAttributeType} from '../../types/DetailedAttributeType';\n\nimport AttributeTypeDetailsIcons from '../AttributeTypeDetailsIcons/AttributeTypeDetailsIcons';\nimport AttributeTypeIcon from '../AttributeTypeIcon/AttributeTypeIcon';\nimport FillRateLine from '../FillRateLine/FillRateLine';\nimport TreeLines from './TreeLines/TreeLines';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n detailedAttributeType: DetailedAttributeType;\n level: number;\n onClick: (detailedAttributeType: DetailedAttributeType) => void;\n fillRateData?: ChartData[];\n fillRateState?: RequestStates;\n style?: React.CSSProperties;\n selected?: boolean;\n onCollapse?: () => void;\n isCollapsed?: boolean;\n isLastLevelItem?: boolean;\n isLoading?: boolean;\n};\n\nconst MARGIN_LEFT = 20;\nconst AttributeListItem = ({\n detailedAttributeType,\n fillRateData,\n fillRateState,\n style,\n level,\n selected = false,\n onClick,\n onCollapse = noop,\n isCollapsed = false,\n isLastLevelItem = false,\n isLoading\n}: Props) => {\n const styles = useStyles();\n const handleItemClick = () => {\n onClick(detailedAttributeType);\n };\n const hasChildren = !!detailedAttributeType.children;\n const hasFillRate = !!fillRateData;\n const noData = !hasFillRate && !isLoading;\n const attributeLabel = getAttributeLabel(detailedAttributeType);\n const CollapseIcon = isCollapsed ? ArrowRightIcon : ArrowDropDownIcon;\n\n return (\n <ListItem\n style={style}\n selected={selected}\n classes={{\n selected: styles.selectedItem\n }}\n onClick={hasChildren ? undefined : handleItemClick}\n component=\"div\"\n className={classnames(styles.listItem, {[styles.clickableItem]: !hasChildren, [styles.noData]: noData})}\n >\n <div className={styles.content}>\n {!hasChildren && (\n <div className={styles.attributeType}>\n <AttributeTypeIcon type={detailedAttributeType.type} />\n </div>\n )}\n <div className={styles.attribute}>\n <TreeLines\n level={level}\n margin={MARGIN_LEFT}\n hasChildren={hasChildren}\n isLastLevelItem={isLastLevelItem}\n isCollapsed={isCollapsed}\n isSelected={selected}\n />\n <Marginator margin={MARGIN_LEFT} level={level} className={styles.marginWrapper}>\n <ExpandedValueTooltip value={attributeLabel}>\n <div\n className={classnames(\n styles.attributeLabel,\n hasChildren && styles.parentAttributeLabel\n )}\n >\n {hasChildren && (\n <SmallIconButton\n size=\"XXS\"\n icon={CollapseIcon}\n onClick={onCollapse}\n className={styles.collapseIcon}\n />\n )}\n {attributeLabel}\n {noData && !hasChildren && (\n <div className={styles.noDataLabel}>{i18n.text('No data')}</div>\n )}\n </div>\n </ExpandedValueTooltip>\n </Marginator>\n {!isLoading && hasFillRate && !hasChildren && (\n <div className={styles.fillRate}>\n <FillRateLine data={fillRateData} />\n </div>\n )}\n {isLoading && !hasChildren && <div className={styles.fillRateLineLoader}></div>}\n </div>\n\n {isLoading ? (\n <div className={styles.iconsLoaderWrapper}>\n {times(\n (key: number) => (\n <div className={styles.iconLoaderWrapper} key={`unloadedIcon-${key}`}>\n <div className={styles.iconLoader}></div>\n </div>\n ),\n 5\n )}\n </div>\n ) : (\n <AttributeTypeDetailsIcons\n details={detailedAttributeType.details}\n classes={{iconRoot: styles.detailsIcon, iconsWrapper: selected && styles.iconsWrapper}}\n fillRateData={fillRateData}\n fillRateState={fillRateState}\n />\n )}\n </div>\n </ListItem>\n );\n};\n\nexport default AttributeListItem;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles((theme) => ({\n searchWrapper: {\n padding: '8px 0px 8px 16px',\n alignItems: 'center',\n display: 'flex',\n flexGrow: 1,\n justifyContent: 'flex-end',\n marginLeft: '-105px'\n },\n filterByDetails: {\n width: '32px',\n height: '32px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n marginLeft: '9px'\n },\n searchInput: {\n borderRadius: '4px',\n width: '202px',\n minHeight: '32px!important',\n justifyContent: 'flex-end',\n alignItems: 'center',\n padding: '0 2px',\n boxSizing: 'border-box',\n '& input': {fontSize: '13px'},\n '& button': {padding: '2px'}\n },\n filledInput: {\n '& button:last-child': {\n backgroundColor: 'rgba(0, 0, 0, 0.0509804)'\n }\n },\n menu: {\n width: '300px',\n paddingTop: '8px'\n },\n filterIcon: {\n color: theme.palette.text.secondary\n },\n filterIconFilterApplied: {\n color: '#0072CE'\n },\n filterIconWrapper: {\n width: '32px',\n height: '32px',\n borderRadius: '4px',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n cursor: 'pointer',\n position: 'relative',\n '&:after': {\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n borderRadius: '4px',\n background: 'rgba(0, 0, 0, 0.04)'\n },\n '&:hover': {\n '&:after': {\n content: '\"\"'\n }\n }\n },\n filterIconWrapperActive: {\n background: 'rgba(0, 0, 0, 0.04)',\n '&:after': {\n content: '\"\"',\n background: 'rgba(0, 0, 0, 0.04)'\n }\n },\n filterIconWrapperSelected: {\n background: 'rgba(0, 114, 206, 0.12)'\n },\n dropdownMenuTitle: {\n lineHeight: '48px',\n height: '48px',\n paddingLeft: '16px'\n },\n option: {\n paddingLeft: '5px',\n fontSize: '13px',\n height: '28px',\n lineHeight: '16px',\n letterSpacing: 'normal',\n paddingRight: '19px',\n filter: (isActive) => (isActive ? 'grayscale(0)' : 'grayscale(1)'),\n opacity: (isActive) => (isActive ? 1 : 0.5)\n },\n typeIconWrapper: {\n width: '28px',\n marginLeft: '1px',\n '& svg': {\n width: '20px',\n height: '20px'\n }\n },\n valueContainer: {\n marginLeft: 0\n },\n counter: {\n marginLeft: '5px'\n },\n\n optionLabel: {\n flexGrow: 1\n },\n groupLabel: {\n textTransform: 'uppercase',\n margin: '15px 16px 5px',\n letterSpacing: '0.1px',\n display: 'block'\n },\n actionsContainer: {\n display: 'flex',\n padding: '12px 5px 8px 12px'\n },\n clearAllButton: {\n marginRight: 'auto'\n }\n}));\n","import React from 'react';\nimport {isNil} from 'ramda';\nimport {Checkbox as Checkbox} from '@material-ui/core';\nimport {MenuItem as MenuItem} from '@material-ui/core';\nimport {ExpandedValueTooltip} from '@reltio/components';\nimport {FilterOption} from '../../types/FilterOption';\nimport {AttrTypeDetailsType} from '../../types/DetailedAttributeType';\nimport {AttributeTypeDetailIcon} from '../AttributeTypeDetailIcon/AttributeTypeDetailIcon';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\nimport {useStyles} from './styles';\n\ntype Props = {\n data: FilterOption;\n isSelected: boolean;\n onChange: (data: FilterOption) => void;\n};\n\nconst Option = ({isSelected, data, onChange}: Props) => {\n const {count, label, value} = data;\n const showCounter = !isNil(count);\n const isOptionActive = !showCounter || count > 0;\n const styles = useStyles(isOptionActive);\n const handleClick = () => onChange(data);\n return (\n <MenuItem\n className={styles.option}\n component=\"div\"\n onClick={handleClick}\n data-reltio-id={`reltio-dq-dashboard-option-${data.value}`}\n >\n <Checkbox color=\"primary\" checked={isSelected} />\n <span className={styles.typeIconWrapper}>\n <AttributeTypeDetailIcon detailType={value as AttrTypeDetailsType} />\n </span>\n <ExpandedValueTooltip value={label}>\n <div className={styles.optionLabel}>{label}</div>\n </ExpandedValueTooltip>\n {showCounter && <span className={styles.counter}>{formatNumberAsMetric(count, 999)}</span>}\n </MenuItem>\n );\n};\n\nexport default Option;\n","import {curry, flatten, pipe, pluck, propEq, remove} from 'ramda';\nimport {FilterOption} from '../../types/FilterOption';\nimport {FilterOptionsGroup} from '../../types/FilterOptionsGroup';\n\nexport const containsOption = curry(\n (option: FilterOption, options: FilterOption[]) => !!options.find(propEq('value', option.value))\n);\n\nexport const withoutOption = curry((option: FilterOption, options: FilterOption[]) => {\n const optionIndex = options.findIndex(propEq('value', option.value));\n return optionIndex !== -1 ? remove(optionIndex, 1, options) : options;\n});\n\nexport const getValidFilterOptions = (\n options: FilterOption[],\n filterOptionsGroups: FilterOptionsGroup[]\n): FilterOption[] => {\n const allValidFilterOptions: FilterOption[] = pipe(pluck('options'), flatten)(filterOptionsGroups);\n return options.filter(({value}) => allValidFilterOptions.find(propEq('value', value)));\n};\n","import React, {useEffect, useState} from 'react';\nimport {always, concat, ifElse} from 'ramda';\nimport classnames from 'classnames';\nimport i18n from 'ui-i18n';\nimport {Button as Button} from '@material-ui/core';\nimport FilterListIcon from '@material-ui/icons/FilterList';\nimport {Popover as Popover} from '@material-ui/core';\nimport {Typography as Typography} from '@material-ui/core';\nimport SearchInput from 'react-components/dist/Form/SearchInput';\nimport {FilterOption} from '../../types/FilterOption';\nimport {FilterOptionsGroup} from '../../types/FilterOptionsGroup';\nimport Option from './Option';\nimport {containsOption, getValidFilterOptions, withoutOption} from './helpers';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n filterOptions: FilterOptionsGroup[];\n onChangeFilterOptions: (filterOptions: FilterOption[]) => void;\n onChangeFilterText: (filterText: string) => void;\n defaultFilterOptions?: FilterOption[];\n defaultFilterText?: string;\n};\n\nconst SEARCH_INPUT_HEIGHT = 40;\n\nconst AttributesFilters = ({\n defaultFilterOptions = [],\n filterOptions,\n defaultFilterText,\n onChangeFilterText,\n onChangeFilterOptions\n}: Props) => {\n const styles = useStyles();\n\n const [anchorEl, setAnchorEl] = useState(null);\n const [selectedFilterOptions, setSelectedFilterOptions] = useState<FilterOption[]>([]);\n const [valueInFilterTextInput, setValueInFilterTextInput] = useState<string>(defaultFilterText || null);\n useEffect(() => {\n setSelectedFilterOptions(getValidFilterOptions(defaultFilterOptions, filterOptions));\n }, [defaultFilterOptions, filterOptions]);\n\n const openFilter = (event) => setAnchorEl(event.currentTarget);\n const closeFilter = () => setAnchorEl(null);\n\n const handleClearAll = () => {\n setSelectedFilterOptions([]);\n };\n\n const handleCancel = () => {\n setSelectedFilterOptions(defaultFilterOptions);\n closeFilter();\n };\n\n const handleApply = () => {\n onChangeFilterOptions(selectedFilterOptions);\n closeFilter();\n };\n\n const handleClose = () => {\n setSelectedFilterOptions(always(defaultFilterOptions));\n closeFilter();\n };\n\n const handleChangeFilterText = (filterText: string) => {\n setValueInFilterTextInput(filterText);\n onChangeFilterText(filterText || '');\n };\n\n const handleOptionChange = (option: FilterOption) => {\n setSelectedFilterOptions(ifElse(containsOption(option), withoutOption(option), concat([option])));\n };\n\n const hasSelectedOptions = !!selectedFilterOptions.length;\n const isPopupOpen = !!anchorEl;\n const indicatorClassname = classnames(styles.filterIconWrapper, {\n [styles.filterIconWrapperActive]: isPopupOpen,\n [styles.filterIconWrapperSelected]: hasSelectedOptions\n });\n const indicatorIconClassname = hasSelectedOptions ? styles.filterIconFilterApplied : styles.filterIcon;\n\n return (\n <div className={styles.searchWrapper}>\n <div data-reltio-id=\"reltio-dq-dashboard-attributes-search-input\">\n <SearchInput\n autofocus\n onChange={handleChangeFilterText}\n initialValue={defaultFilterText || null}\n height={SEARCH_INPUT_HEIGHT}\n placeholder={i18n.text('Search attribute name')}\n classes={{root: classnames(styles.searchInput, {[styles.filledInput]: !!valueInFilterTextInput})}}\n />\n </div>\n <div className={styles.filterByDetails} data-reltio-id=\"reltio-dq-dashboard-attributes-filter\">\n <div className={indicatorClassname} onClick={openFilter}>\n <FilterListIcon className={indicatorIconClassname} />\n </div>\n <Popover\n open={!!anchorEl}\n anchorEl={anchorEl}\n onClose={handleClose}\n anchorOrigin={{\n vertical: 'bottom',\n horizontal: 'right'\n }}\n transformOrigin={{\n vertical: 'top',\n horizontal: 'right'\n }}\n PaperProps={{\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n ['data-reltio-id']: 'reltio-dq-dashboard-attributes-filter-popup'\n }}\n >\n <div className={styles.menu}>\n <Typography variant=\"h6\" className={styles.dropdownMenuTitle}>\n {i18n.text('Filter')}\n </Typography>\n <div className={styles.valueContainer}>\n {filterOptions.map(({label, options}) => {\n return (\n <div key={label}>\n {label && (\n <Typography variant=\"caption\" className={styles.groupLabel}>\n {label}\n </Typography>\n )}\n {options.map((option) => {\n const isSelected = containsOption(option, selectedFilterOptions);\n\n return (\n <Option\n key={option.label}\n data={option}\n isSelected={isSelected}\n onChange={handleOptionChange}\n />\n );\n })}\n </div>\n );\n })}\n </div>\n </div>\n <div className={styles.actionsContainer}>\n <Button\n onClick={handleClearAll}\n className={styles.clearAllButton}\n disabled={!hasSelectedOptions}\n data-reltio-id=\"reltio-dq-dashboard-filter-clear-all-button\"\n >\n {i18n.text('Clear all')}\n </Button>\n <Button onClick={handleCancel} data-reltio-id=\"reltio-dq-dashboard-filter-cancel-button\">\n {i18n.text('Cancel')}\n </Button>\n <Button\n color=\"primary\"\n onClick={handleApply}\n data-reltio-id=\"reltio-dq-dashboard-filter-apply-button\"\n >\n {i18n.text('Apply')}\n </Button>\n </div>\n </Popover>\n </div>\n </div>\n );\n};\n\nexport default AttributesFilters;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles((theme) => ({\n root: {\n width: '360px',\n minWidth: '360px',\n maxWidth: '360px',\n display: 'flex',\n flexDirection: 'column',\n background: '#fff',\n zIndex: 1,\n marginBottom: '8px',\n borderRadius: '4px',\n boxShadow: '0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.12), 0px 1px 3px rgba(0, 0, 0, 0.2)'\n },\n title: {\n height: '24px',\n margin: '16px',\n display: 'flex',\n alignItems: 'center',\n fontSize: '16px',\n lineHeight: '24px',\n color: theme.palette.text.primary\n },\n itemCount: {\n color: theme.palette.text.primary,\n borderLeft: '1px solid rgba(0, 0, 0, 0.12)',\n marginLeft: '16px',\n paddingLeft: '16px'\n },\n listWrapper: {\n flexGrow: 1,\n overflow: 'hidden',\n position: 'relative'\n },\n loadingAnimation: {\n '&:before': {\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0,\n left: '50%',\n zIndex: 1,\n width: '500%',\n marginLeft: '-250%',\n background:\n 'linear-gradient(to right, rgba(255, 255, 255, 0) 46%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 54%) 50% 50%;',\n animation: '$loaderAnimation 0.8s linear infinite',\n content: '\"\"',\n pointerEvents: 'none'\n }\n },\n columnsTitle: {\n height: '48px',\n display: 'grid',\n gridGap: '32px',\n gridTemplateColumns: '308px 108px',\n alignItems: 'center',\n padding: '0 16px',\n background: 'rgba(0, 0, 0, 0.06)',\n borderBottom: '1px solid rgba(0, 0, 0, 0.1)',\n fontWeight: 500,\n fontSize: '12px',\n lineHeight: '16px',\n color: theme.palette.text.secondary\n },\n loaderWrapper: {\n position: 'absolute',\n top: '0',\n left: '0',\n width: '100%',\n height: '4px',\n zIndex: 1\n },\n '@keyframes loaderAnimation': {\n '0%': {\n transform: 'translate(-30%, 0)'\n },\n '100%': {\n transform: 'translate(30%, 0)'\n }\n }\n}));\n","import classnames from 'classnames';\nimport {assoc, equals, isEmpty, pathOr} from 'ramda';\nimport React, {useContext, useEffect, useMemo, useRef, useState} from 'react';\nimport ReactResizeDetector from 'react-resize-detector';\nimport {FixedSizeList as List} from 'react-window';\n\nimport i18n from 'ui-i18n';\nimport {EMPTY_STATE_ICONS, RequestStates} from '@reltio/components';\nimport {TEntityType} from '@reltio/mdm-sdk';\n\nimport {useChartsDataContext} from '../../contexts/ChartsDataProvider';\nimport {DVFContext} from '../../contexts/DVFContext';\nimport {useAttrTypeDetails} from '../../hooks/useAttrTypeDetails';\nimport {useFillRateRequest} from '../../hooks/useFillRateRequest';\nimport {formatFillRateData} from '../../services/fillRate';\nimport {AttributeItemType, DetailedAttributeType} from '../../types/DetailedAttributeType';\nimport {EmptyStateVariants} from '../../types/EmptyStateVariants';\nimport {FilterOption} from '../../types/FilterOption';\nimport {\n noDataFilterOptions,\n filterItemsByDetails,\n filterItemsByEmptiness,\n getAtrributeFieldNames,\n getDetailedAttrTypeByFieldName,\n getDetailsOptions,\n getNoDataOptions,\n getFillRateByAttributeType,\n getFirstSimpleDetailedAttrType,\n getIndexByFieldName,\n rejectCollapsedItemsChildren\n} from './helpers';\n\nimport AttributeListItem from '../AttributeListItem/AttributeListItem';\nimport AttributesFilters from '../AttributesFilters/AttributesFilters';\nimport DQDashboardError from '../DQDashboardError/DQDashboardError';\n\nimport {useStyles} from './styles';\n\nexport type DQDashboardAttributesListProps = {\n entityType: TEntityType;\n onAttributesListChange: ({\n selectedDetailedAttributeType,\n filterText,\n filterOptions\n }: {\n selectedDetailedAttributeType: DetailedAttributeType;\n filterText: string;\n filterOptions: FilterOption[];\n }) => void;\n defaultFieldName?: string;\n defaultFilterText?: string;\n defaultFilterOptions?: FilterOption[];\n disableAttributeSelection: boolean;\n};\n\ntype RenderAttributeProps = {\n data: AttributeItemType[];\n style: React.CSSProperties;\n index: number;\n};\n\nconst LIST_ITEM_HEIGHT = 48;\nconst NO_DATA_HEIGHT = 349;\n\nconst getItemsLabel = (count: number) => (count === 1 ? i18n.text('item') : i18n.text('items'));\n\nconst DQDashboardAttributesList = ({\n entityType,\n onAttributesListChange,\n defaultFieldName,\n defaultFilterOptions,\n defaultFilterText,\n disableAttributeSelection\n}: DQDashboardAttributesListProps) => {\n const styles = useStyles();\n const listRef = useRef<List>();\n const listWrapper = useRef<HTMLDivElement>();\n const [filterText, setFilterText] = useState(defaultFilterText || '');\n const [collapsedFieldNames, setCollapsedFieldNames] = useState<string[]>([]);\n const [selectedFilterOptions, setSelectedFilterOptions] = useState<FilterOption[]>(\n defaultFilterOptions || noDataFilterOptions\n );\n const [selectedFieldName, setSelectedFieldName] = useState(defaultFieldName);\n const [fillRates, setFillRates] = useState({});\n const {\n chartsData: {data: chartsData}\n } = useChartsDataContext();\n const dvfState = useContext(DVFContext)?.dvfs?.state;\n const items = useAttrTypeDetails(entityType, filterText);\n\n const attributeFieldNames = getAtrributeFieldNames(items);\n const memoizedAttributeFieldNames = useMemo(\n () => attributeFieldNames,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [attributeFieldNames.toString()]\n );\n const {data: initialFillRates, state: fillRatesState} = useFillRateRequest(\n entityType.uri,\n memoizedAttributeFieldNames\n );\n useEffect(() => setFillRates(initialFillRates), [initialFillRates]);\n useEffect(() => {\n const fillRateFromChartsData = chartsData?.fillRate && formatFillRateData(chartsData?.fillRate);\n const fillRateForSelectedAttribute = fillRates[selectedFieldName];\n setFillRates((fillRates) =>\n !fillRateFromChartsData || equals(fillRateForSelectedAttribute, fillRateFromChartsData)\n ? fillRates\n : assoc(selectedFieldName, fillRateFromChartsData, fillRates)\n );\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [chartsData?.fillRate]);\n\n const isFillRateNotLoaded = fillRatesState === RequestStates.INIT || fillRatesState === RequestStates.LOADING;\n const isLoading = isFillRateNotLoaded || dvfState === RequestStates.LOADING || dvfState === RequestStates.INIT;\n\n const isDVFLoaded = dvfState === RequestStates.LOADED || dvfState === RequestStates.ERROR;\n const isFillRateLoaded = fillRatesState === RequestStates.LOADED;\n\n const {filteredItems, filterOptions} = useMemo(() => {\n const filteredByEmptinessItems = isFillRateLoaded\n ? filterItemsByEmptiness(selectedFilterOptions, fillRates, items)\n : items;\n const detailsFilterOptions = getDetailsOptions(filteredByEmptinessItems);\n\n const filteredItems = isDVFLoaded\n ? filterItemsByDetails(selectedFilterOptions, filteredByEmptinessItems)\n : filteredByEmptinessItems;\n const noDataFilterOptions = getNoDataOptions();\n const filterOptions = [noDataFilterOptions, detailsFilterOptions];\n\n return {filteredItems, filterOptions};\n }, [items, selectedFilterOptions, fillRates, isFillRateLoaded, isDVFLoaded]);\n\n const visibleItems = useMemo(\n () => rejectCollapsedItemsChildren(filteredItems, collapsedFieldNames),\n [filteredItems, collapsedFieldNames]\n );\n const countAttrTypes = filteredItems.length;\n\n const handleAttrTypeDetailsChange = (selectedDetailedAttributeType: DetailedAttributeType) => {\n onAttributesListChange({selectedDetailedAttributeType, filterText, filterOptions: selectedFilterOptions});\n setSelectedFieldName(selectedDetailedAttributeType.fieldName);\n };\n\n const selectedDetailedAttributeType = useMemo(() => {\n const selectedDetailedAttributeType =\n getDetailedAttrTypeByFieldName(filteredItems, selectedFieldName) ||\n getFirstSimpleDetailedAttrType(filteredItems);\n return isEmpty(selectedDetailedAttributeType) || disableAttributeSelection\n ? null\n : selectedDetailedAttributeType;\n }, [filteredItems, selectedFieldName, disableAttributeSelection]);\n\n useEffect(() => {\n if (disableAttributeSelection) {\n listRef.current?.scrollTo(0);\n return;\n }\n if (filteredItems.length) {\n if (selectedDetailedAttributeType?.fieldName) setSelectedFieldName(selectedDetailedAttributeType.fieldName);\n }\n const indexOfSelectedFieldName = getIndexByFieldName(filteredItems, selectedFieldName);\n indexOfSelectedFieldName > -1\n ? listRef.current?.scrollToItem(indexOfSelectedFieldName, 'center')\n : listRef.current?.scrollTo(0);\n }, [filteredItems, selectedDetailedAttributeType]); // eslint-disable-line\n\n useEffect(() => {\n onAttributesListChange({selectedDetailedAttributeType, filterText, filterOptions: selectedFilterOptions});\n }, [filterText, selectedFilterOptions, selectedDetailedAttributeType]); // eslint-disable-line\n\n useEffect(() => {\n setSelectedFieldName((fieldName) => (disableAttributeSelection ? null : fieldName));\n }, [disableAttributeSelection]);\n\n const handleScroll = ({scrollOffset}) => {\n if (listWrapper.current) {\n const currentBorderTop = listWrapper.current?.style?.borderTop;\n if (scrollOffset === 0) {\n listWrapper.current.style.borderTop = '';\n }\n if (scrollOffset > 0 && currentBorderTop === '') {\n listWrapper.current.style.borderTop = '1px solid rgba(0, 0, 0, 0.05)';\n }\n }\n };\n\n const handleCollapse = (fieldName: string) => () => {\n setCollapsedFieldNames((collapsedFieldNames) =>\n collapsedFieldNames.includes(fieldName)\n ? collapsedFieldNames.filter((collapsedFieldName) => collapsedFieldName !== fieldName)\n : collapsedFieldNames.concat(fieldName)\n );\n };\n\n const renderAttribute = ({data, index, style}: RenderAttributeProps) => {\n const {attributeItem, level = 0} = data[index];\n const selected = selectedFieldName === attributeItem.fieldName;\n const fillRateData = getFillRateByAttributeType(fillRates, attributeItem);\n\n const isLastLevelItem = index > 0 && level > pathOr(-1, [index + 1, 'level'], visibleItems);\n\n return (\n <AttributeListItem\n fillRateData={fillRateData}\n fillRateState={fillRatesState}\n isLoading={isLoading}\n style={style}\n detailedAttributeType={attributeItem}\n level={level}\n onClick={handleAttrTypeDetailsChange}\n selected={selected}\n onCollapse={handleCollapse(attributeItem.fieldName)}\n isCollapsed={collapsedFieldNames.includes(attributeItem.fieldName)}\n isLastLevelItem={isLastLevelItem}\n />\n );\n };\n\n const itemCount = visibleItems.length;\n const hasData = !!itemCount;\n const showNoData = !hasData && (items.length === 0 || (filteredItems.length === 0 && isDVFLoaded));\n return (\n <div className={styles.root}>\n <div className={styles.title}>\n {i18n.text('Attributes')}\n <span className={styles.itemCount}>{`${countAttrTypes} ${getItemsLabel(countAttrTypes)}`}</span>\n <AttributesFilters\n defaultFilterText={defaultFilterText}\n defaultFilterOptions={selectedFilterOptions}\n onChangeFilterOptions={setSelectedFilterOptions}\n onChangeFilterText={setFilterText}\n filterOptions={filterOptions}\n />\n </div>\n <div\n ref={listWrapper}\n className={classnames(styles.listWrapper, {[styles.loadingAnimation]: isLoading && !showNoData})}\n data-reltio-id=\"reltio-dq-dashboard-attributes-list\"\n >\n {hasData ? (\n <ReactResizeDetector refreshMode=\"debounce\" refreshRate={100} handleHeight>\n {({height = 250}: {height: number}) => (\n <List\n ref={listRef}\n itemCount={itemCount}\n width=\"100%\"\n height={height}\n itemData={visibleItems}\n itemSize={LIST_ITEM_HEIGHT}\n onScroll={handleScroll}\n >\n {renderAttribute}\n </List>\n )}\n </ReactResizeDetector>\n ) : (\n showNoData && (\n <DQDashboardError\n height={NO_DATA_HEIGHT}\n errorData={{\n Icon: EMPTY_STATE_ICONS.SEARCH_RESULTS,\n title: i18n.text('No results found'),\n message: i18n.text(\n 'Try adjusting your search or filter to find\\nwhat you’re looking for'\n )\n }}\n variant={EmptyStateVariants.MEDIUM}\n />\n )\n )}\n </div>\n </div>\n );\n};\n\nexport default DQDashboardAttributesList;\n","import {useCallback, useEffect, useState} from 'react';\nimport {ChartData, useSafePromise, RequestStates} from '@reltio/components';\nimport {DQDataLevel, DQMetric, getDQChartsData} from '@reltio/mdm-sdk';\nimport {formatFillRatesData} from '../services/fillRate';\n\nexport const useFillRateRequest = (entityTypeUri: string, attributeFieldNames: string[]) => {\n const [requestState, setRequestState] = useState<RequestStates>(RequestStates.INIT);\n const [fillRateData, setFillRateData] = useState<Record<string, ChartData[]>>({});\n const safePromise = useSafePromise();\n\n const onError = (error) => {\n console.error(error); // eslint-disable-line\n setRequestState(RequestStates.ERROR);\n setFillRateData({});\n };\n\n const loadFillRateData = useCallback(() => {\n if (!attributeFieldNames.length) return;\n setRequestState(RequestStates.LOADING);\n setFillRateData({});\n\n const onRequestFinished = (data: Record<string, ChartData[]>) => {\n setFillRateData(data);\n setRequestState(RequestStates.LOADED);\n };\n\n return safePromise(\n getDQChartsData({\n entityTypeUri,\n attributes: attributeFieldNames,\n dataLevel: DQDataLevel.ATTRIBUTE_TYPE,\n metrics: [DQMetric.FILL_RATE]\n })\n )\n .then(formatFillRatesData)\n .then(onRequestFinished)\n .catch(onError);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [safePromise, setRequestState, setFillRateData, attributeFieldNames]);\n\n const refreshAction = useCallback(() => {\n try {\n loadFillRateData();\n } catch (e) {\n onError(e);\n }\n }, [loadFillRateData]);\n\n useEffect(() => {\n refreshAction();\n }, [refreshAction]);\n\n return {data: fillRateData, state: requestState, reload: refreshAction};\n};\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles({\n root: {\n display: 'flex',\n alignItems: 'center',\n width: '100%'\n },\n title: {\n flexShrink: 0,\n paddingLeft: '20px'\n },\n content: {\n overflow: 'hidden',\n flexGrow: 1\n }\n});\n","import React from 'react';\nimport {Typography as Typography} from '@material-ui/core';\nimport {useStyles} from './styles';\n\ntype Props = {\n title: string;\n children: React.ReactNode;\n};\nconst DQDashboardHeader = ({title, children}: Props) => {\n const styles = useStyles();\n return (\n <div className={styles.root}>\n <Typography variant=\"h6\" className={styles.title}>\n {title}\n </Typography>\n <div className={styles.content}>{children}</div>\n </div>\n );\n};\n\nexport default DQDashboardHeader;\n","import React from 'react';\n\nimport i18n from 'ui-i18n';\nimport {EMPTY_STATE_ICONS} from '@reltio/components';\n\nimport {usePermissionsContext} from '../../contexts/PermissionsProvider';\nimport {EmptyStateVariants} from '../../types/EmptyStateVariants';\n\nimport DQDashboardError from '../DQDashboardError/DQDashboardError';\n\nexport const NO_DATA_HEIGHT = 359;\n\nconst DQDashboardNoContent = () => {\n const {canGetDQStatistic} = usePermissionsContext();\n const errorData = canGetDQStatistic\n ? {\n Icon: EMPTY_STATE_ICONS.NO_DATA,\n title: i18n.text('Give us something to go on!'),\n message: i18n.text(\n 'Go ahead and load some data. We’ll put it on the scales and\\nlet you know here if it measures up.'\n )\n }\n : {\n title: i18n.text('You don’t currently have permission to view this page'),\n message: i18n.text(' Please contact your Tenant Admin to change permissions')\n };\n return <DQDashboardError height={NO_DATA_HEIGHT} errorData={errorData} variant={EmptyStateVariants.LARGE} />;\n};\n\nexport default DQDashboardNoContent;\n","import {CSSProperties} from 'react';\nimport {makeStyles} from '@material-ui/core/styles';\n\nconst scrollTopShadow: CSSProperties = {\n position: 'absolute',\n content: '\"\"',\n top: 0,\n left: 0,\n right: 0,\n zIndex: 1\n};\n\nexport const useStyles = makeStyles(() => ({\n root: {\n width: '100%',\n height: '100%',\n position: 'relative',\n marginTop: '-12px',\n '&:before': {\n ...scrollTopShadow,\n top: '8px',\n height: '4px',\n background: 'linear-gradient(180deg, #EEEEEE 0%, rgba(238, 238, 238, 0) 100%)',\n zIndex: 1\n },\n '&:after': {\n ...scrollTopShadow,\n height: '8px',\n background: '#EEEEEE'\n }\n },\n layoutRoot: {\n overflow: 'auto',\n backgroundColor: '#EEEEEE',\n height: '100%',\n flexGrow: 1,\n padding: '0 4px',\n boxSizing: 'border-box'\n }\n}));\n","import React, {useMemo, useEffect} from 'react';\nimport classnames from 'classnames';\nimport {useSelector} from 'react-redux';\n\nimport {DQDataLevel, Metadata, TEntityType} from '@reltio/mdm-sdk';\nimport mdmModule from '@reltio/mdm-module';\nimport i18n from 'ui-i18n';\n\nimport {getMetricsFromViews, getEntityLevelViews} from '../../../services/charts';\nimport {DQDashboardPerspectiveConfig} from '../../../types/DQDashboardPerspectiveConfig';\nimport {defaultLayoutsByDataLevel} from '../../../constants/defaultConfig';\nimport {checkEntityTypeHasRDMLookup} from '../../../services/rdmTranscode';\nimport {useChartsDataContext} from '../../../contexts/ChartsDataProvider';\nimport {DataLevelContext} from '../../../contexts/DataLevelContext';\nimport {useReloadFacet} from '../../../contexts/ReloadFacetContext';\nimport {usePermissionsContext} from '../../../contexts/PermissionsProvider';\nimport {RDMLookupState} from '../../../constants/RdmLookupState';\nimport {useChartsDataRequest} from '../../../hooks/useChartsDataRequest';\n\nimport DQDashboardLayout from '../../DQDashboardLayout/DQDashboardLayout';\nimport Warning from '../../Warning/Warning';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n config: DQDashboardPerspectiveConfig;\n entityType?: TEntityType;\n};\n\nconst EntityLevelLayout = ({config, entityType}: Props) => {\n const styles = useStyles();\n const metadata: Metadata = useSelector(mdmModule.selectors.getMetadata);\n const hasRDMLookup = metadata && entityType && checkEntityTypeHasRDMLookup(metadata, entityType);\n const currentRDMLookupState = hasRDMLookup ? RDMLookupState.RDM_LOOKUP_EXIST : RDMLookupState.RDM_LOOKUP_NOT_EXIST;\n const {hasRestrictions} = usePermissionsContext();\n const layout =\n config.layoutsByDataLevel?.[DQDataLevel.ENTITY_TYPE]?.[currentRDMLookupState] ||\n defaultLayoutsByDataLevel[DQDataLevel.ENTITY_TYPE][currentRDMLookupState];\n\n const views = useMemo(\n () => (layout ? getEntityLevelViews(config.viewsByDataLevel, layout) : []),\n [config.viewsByDataLevel, layout]\n );\n const metrics = useMemo(() => getMetricsFromViews(views), [views]);\n\n const chartsData = useChartsDataRequest({\n entityType,\n dataLevel: DQDataLevel.ENTITY_TYPE,\n metrics\n });\n const {changeChartsData} = useChartsDataContext();\n useEffect(() => changeChartsData(chartsData), [chartsData]);\n useReloadFacet({\n state: chartsData.state,\n reload: chartsData.reload,\n dataLevel: DQDataLevel.ENTITY_TYPE\n });\n\n return (\n <div className={classnames(styles.root)}>\n <DataLevelContext.Provider value={DQDataLevel.ENTITY_TYPE}>\n <div className={styles.layoutRoot}>\n {hasRestrictions && (\n <Warning\n text={i18n.text(\n 'Not seeing the data you expected for this entity type? Contact your tenant admin to verify permissions.'\n )}\n />\n )}\n <DQDashboardLayout views={views} layout={layout} />\n </div>\n </DataLevelContext.Provider>\n </div>\n );\n};\n\nexport default EntityLevelLayout;\n","import {makeStyles} from '@material-ui/core/styles';\n\nexport const useStyles = makeStyles((theme) => ({\n counter: {\n fontSize: '10px',\n lineHeight: '12px',\n height: '12px',\n background: 'rgba(0, 0, 0, 0.05)',\n padding: '1px 4px',\n borderRadius: '2px'\n },\n selectRoot: {\n '&>fieldset': {\n border: 'none !important',\n outline: 'none !important'\n }\n },\n select: {\n borderRadius: '6px !important',\n border: '1px solid rgba(0, 0, 0, 0.12)',\n padding: '3px 29px 3px 15px !important',\n fontSize: '18px',\n lineHeight: '24px',\n paddingRight: '30px',\n color: theme.palette.text.primary,\n minWidth: '128px',\n boxSizing: 'border-box',\n '&:hover,&:focus': {\n background: 'rgba(0, 0, 0, 0.05)',\n border: 'none',\n padding: '4px 30px 4px 16px !important'\n }\n },\n selectValue: {\n display: 'flex',\n alignItems: 'center',\n gap: '9px'\n },\n arrowIcon: {\n height: '16px',\n top: 'calc(50% - 8px)',\n right: '1px'\n },\n menu: {\n padding: '4px 0',\n display: 'flex',\n flexDirection: 'column',\n gap: '4px'\n },\n optionRoot: {\n maxWidth: '184px',\n minWidth: '140px',\n display: 'flex',\n paddingRight: '8px'\n },\n optionLabel: {\n flexGrow: 1,\n fontSize: '13px',\n textOverflow: 'ellipsis',\n overflow: 'hidden',\n paddingRight: '10px',\n minWidth: 0\n }\n}));\n","import React from 'react';\nimport {isNil, find, pipe, propEq} from 'ramda';\nimport {MenuItem as MenuItem} from '@material-ui/core';\nimport Select, {SelectProps} from '@material-ui/core/Select';\nimport {Typography as Typography} from '@material-ui/core';\nimport {mergeClasses} from '@reltio/components';\n\nimport {ExpandedValueTooltip, getValue} from '@reltio/components';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\n\nimport {useStyles} from './styles';\n\nexport type Option = {\n value: string;\n label: string;\n count?: number;\n};\ntype Props = {\n options: Option[];\n value: string;\n onChange: (value: string) => void;\n dataReltioId?: string;\n dataReltioOptionId?: string;\n} & Omit<SelectProps, 'onChange' | 'value'>;\nconst Selector = ({\n options,\n value,\n onChange,\n dataReltioId,\n dataReltioOptionId,\n classes: classesProps = {},\n ...selectProps\n}: Props) => {\n const styles = useStyles();\n\n const renderCount = (count: number) => <span className={styles.counter}>{formatNumberAsMetric(count, 999)}</span>;\n\n const renderValue = (value: string) => {\n const {label, count}: Option = find(propEq('value', value))(options);\n return (\n <div className={styles.selectValue}>\n {label}\n {!isNil(count) && renderCount(count)}\n </div>\n );\n };\n\n const classes = mergeClasses(classesProps, {\n outlined: styles.select,\n icon: styles.arrowIcon\n });\n\n const renderOption = ({value, label, count}: Option, index: number) => (\n <MenuItem\n key={value}\n value={value}\n classes={{\n root: styles.optionRoot\n }}\n data-reltio-id={`${dataReltioOptionId}-${index}`}\n >\n <ExpandedValueTooltip value={label}>\n <Typography className={styles.optionLabel}>{label}</Typography>\n </ExpandedValueTooltip>\n {!isNil(count) && renderCount(count)}\n </MenuItem>\n );\n\n return (\n <Select\n variant=\"outlined\"\n MenuProps={{\n anchorOrigin: {\n vertical: 'bottom',\n horizontal: 'left'\n },\n transformOrigin: {\n vertical: 'top',\n horizontal: 'left'\n },\n getContentAnchorEl: null,\n classes: {\n list: styles.menu\n }\n }}\n value={value}\n onChange={pipe(getValue, onChange)}\n renderValue={renderValue}\n className={styles.selectRoot}\n classes={classes}\n autoWidth\n data-reltio-id={dataReltioId}\n {...selectProps}\n >\n {options.map(renderOption)}\n </Select>\n );\n};\n\nexport default Selector;\n","import React from 'react';\nimport {map, pipe} from 'ramda';\n\nimport {TEntityType} from '@reltio/mdm-sdk';\n\nimport Selector, {Option} from '../Selector/Selector';\n\nexport type TEntityTypeWithCount = TEntityType & {\n entityCount: number;\n};\ntype Props = {\n entityTypes: TEntityTypeWithCount[];\n entityTypeUri: string;\n onChange: (entityTypeUri: string) => void;\n};\nconst EntityTypeSelector = ({entityTypes, entityTypeUri, onChange}: Props) => {\n const options: Option[] = pipe(\n map(({label, uri, entityCount}: {label: string; uri: string; entityCount: number}) => ({\n label,\n count: entityCount,\n value: uri\n }))\n )(entityTypes);\n\n return (\n <Selector\n options={options}\n value={entityTypeUri}\n onChange={onChange}\n dataReltioOptionId=\"reltio-dq-dashboard-entity-type-selector-option\"\n dataReltioId=\"reltio-dq-dashboard-entity-type-selector\"\n />\n );\n};\n\nexport default EntityTypeSelector;\n","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport React from \"react\";\nexport default (({\n styles = {},\n ...props\n}) => React.createElement(\"svg\", _extends({\n width: \"256\",\n height: \"256\",\n viewBox: \"0 0 256 256\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n}, props), React.createElement(\"g\", null, React.createElement(\"g\", null, React.createElement(\"circle\", {\n cx: \"128\",\n cy: \"128\",\n r: \"128\",\n fill: \"#0072CE\",\n fillOpacity: \".03\"\n}), React.createElement(\"mask\", {\n id: \"svg1824010396a\",\n style: {\n maskType: \"alpha\"\n },\n maskUnits: \"userSpaceOnUse\",\n x: \"0\",\n y: \"0\",\n width: \"256\",\n height: \"256\"\n}, React.createElement(\"circle\", {\n cx: \"128\",\n cy: \"128\",\n r: \"128\",\n fill: \"#fff\"\n})), React.createElement(\"g\", {\n mask: \"url(#svg1824010396a)\"\n}, React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M-16 9h256v247H-16V9z\",\n fill: \"url(#paint0_linear_2978_41880)\"\n}), React.createElement(\"g\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\"\n}, React.createElement(\"path\", {\n d: \"M40.755 44.17C40.755 38.002 45.76 33 51.92 33h251.675c6.167 0 11.166 5.001 11.166 11.17v160.596H40.755V44.171z\",\n fill: \"#5E7282\"\n}), React.createElement(\"path\", {\n d: \"M50.371 43.106h255.685V195.71H50.371V43.106z\",\n fill: \"url(#paint1_linear_2978_41880)\"\n}), React.createElement(\"path\", {\n d: \"M15.545 208.914c2.321.469 4.723.716 7.183.716H338.75c.22 0 .439-.002.658-.006-7.061 8.445-17.67 13.816-29.524 13.816H45.655c-12.111 0-22.916-5.597-29.968-14.349l-.142-.177z\",\n fill: \"#BDCBD8\"\n}), React.createElement(\"path\", {\n d: \"M339.015 204.883v4.966H15v-4.966h324.015z\",\n fill: \"#D4DCDF\"\n}), React.createElement(\"path\", {\n d: \"M201.107 213.991h-45.221a11.176 11.176 0 01-11.046-9.449h67.314a11.172 11.172 0 01-11.047 9.449z\",\n fill: \"url(#paint2_linear_2978_41880)\"\n})), React.createElement(\"g\", {\n filter: \"url(#filter0_d_2978_41880)\"\n}, React.createElement(\"rect\", {\n x: \"81.703\",\n y: \"99\",\n width: \"170\",\n height: \"26\",\n rx: \"8\",\n fill: \"#D1E6FF\"\n}), React.createElement(\"rect\", {\n x: \"84.703\",\n y: \"102\",\n width: \"164\",\n height: \"20\",\n rx: \"5\",\n stroke: \"#fff\",\n strokeWidth: \"6\"\n})), React.createElement(\"g\", {\n filter: \"url(#filter1_d_2978_41880)\"\n}, React.createElement(\"mask\", {\n id: \"svg1824010396b\",\n fill: \"#fff\"\n}, React.createElement(\"rect\", {\n x: \"81\",\n y: \"105\",\n width: \"108\",\n height: \"14\",\n rx: \"2\"\n})), React.createElement(\"rect\", {\n x: \"81\",\n y: \"105\",\n width: \"108\",\n height: \"14\",\n rx: \"2\",\n fill: \"#61A3F1\"\n}), React.createElement(\"rect\", {\n x: \"81\",\n y: \"105\",\n width: \"108\",\n height: \"14\",\n rx: \"2\",\n stroke: \"#4A90E2\",\n strokeWidth: \"8\",\n mask: \"url(#svg1824010396b)\"\n})), React.createElement(\"g\", null, React.createElement(\"path\", {\n opacity: \".8\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M122.703 74a3 3 0 013-3h81.625a3 3 0 010 6h-81.625a3 3 0 01-3-3z\",\n fill: \"#B6C7DB\"\n}), React.createElement(\"path\", {\n opacity: \".2\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M146.703 86a3 3 0 013-3h34a3 3 0 110 6h-34a3 3 0 01-3-3zM136.703 139a3 3 0 013-3h54a3 3 0 110 6h-54a3 3 0 01-3-3z\",\n fill: \"#979797\"\n}), React.createElement(\"path\", {\n opacity: \".1\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M112.703 151a3 3 0 013-3h103a3 3 0 110 6h-103a3 3 0 01-3-3zM124.703 163a3 3 0 013-3h79a3 3 0 110 6h-79a3 3 0 01-3-3z\",\n fill: \"#979797\"\n}), React.createElement(\"g\", {\n filter: \"url(#filter2_ddd_2978_41880)\"\n}, React.createElement(\"g\", null, React.createElement(\"g\", null, React.createElement(\"path\", {\n fill: \"#A0C1D7\",\n d: \"M70.703 64h11v8h-11z\"\n}), React.createElement(\"rect\", {\n x: \"62\",\n y: \"59\",\n width: \"28\",\n height: \"8\",\n rx: \"1\",\n fill: \"#BDD4E3\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M38.23 160.5c20.704 20.703 54.27 20.703 74.973 0 20.703-20.703 20.703-54.27 0-74.973-20.703-20.703-54.27-20.703-74.973 0-20.703 20.703-20.703 54.27 0 74.973z\",\n fill: \"#BDD4E3\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M113.427 85.988c20.463 20.652 20.404 53.981-.175 74.561-20.432 20.431-53.432 20.635-74.115.613l-.446-.439 74.736-74.735z\",\n fill: \"#A0C1D7\"\n}), React.createElement(\"path\", {\n opacity: \".144\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M75.037 175.385c29.402 0 53.236-23.834 53.236-53.236a54.67 54.67 0 00-.106-3.399L100.45 91.037l-55.142 58.396 25.814 25.811c1.293.094 2.598.141 3.915.141z\",\n fill: \"url(#paint3_linear_2978_41880)\"\n}), React.createElement(\"circle\", {\n cx: \"75.94\",\n cy: \"123.237\",\n r: \"44.723\",\n fill: \"#91B0C2\"\n}), React.createElement(\"g\", null, React.createElement(\"g\", {\n filter: \"url(#filter3_d_2978_41880)\"\n}, React.createElement(\"circle\", {\n r: \"42.793\",\n transform: \"matrix(-1 0 0 1 75.94 123.237)\",\n fill: \"#F7F4FF\"\n}))), React.createElement(\"path\", {\n opacity: \".05\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M105.043 175.309l-10.298.861-20.313-20.152.863-2.292-9.973-9.982 18.679-6.882h-4.308l-8.943-8.951 4.545-10.532L94.35 90.74l37.888 37.162c-.343 20.088-11.146 37.627-27.195 47.407z\",\n fill: \"url(#paint4_linear_2978_41880)\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M67.703 123a8 8 0 0112.362-6.707l14.477-25.145A36.828 36.828 0 0075.703 86c-20.434 0-37 16.565-37 37h29z\",\n fill: \"url(#paint5_angular_2978_41880)\"\n}), React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M94.297 90.6l.24.138s-12.45 35.125-12.811 35.752a6.92 6.92 0 01-11.985-6.92c.361-.626 24.556-28.97 24.556-28.97z\",\n fill: \"#323232\"\n}), React.createElement(\"circle\", {\n cx: \"75.94\",\n cy: \"123.237\",\n r: \"2.896\",\n fill: \"#EEEBF6\"\n}), React.createElement(\"circle\", {\n cx: \"96.211\",\n cy: \"148.655\",\n r: \"2.574\",\n fill: \"#A0C3D7\"\n}), React.createElement(\"circle\", {\n cx: \"107.15\",\n cy: \"131.924\",\n r: \"2.574\",\n fill: \"#A0C3D7\"\n}), React.createElement(\"rect\", {\n x: \"62.427\",\n y: \"135.592\",\n width: \"27.027\",\n height: \"10.039\",\n rx: \"3\",\n fill: \"#A0C3D7\"\n}), React.createElement(\"path\", {\n opacity: \".05\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M85.914 170.534H75.112l-21.605-21.472 2.126-2.775v-1.01L42.8 132.523l2.853-2.529 40.261 40.54z\",\n fill: \"url(#paint6_linear_2978_41880)\"\n}), React.createElement(\"path\", {\n opacity: \".02\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M96.362 136.555h-4.988l-38.126-38.01 2.853-2.53 40.261 40.54z\",\n fill: \"url(#paint7_linear_2978_41880)\"\n}), React.createElement(\"path\", {\n opacity: \".02\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M116.746 129.006h-4.988L73.632 90.995l2.853-2.53 40.261 40.541z\",\n fill: \"url(#paint8_linear_2978_41880)\"\n}), React.createElement(\"path\", {\n opacity: \".02\",\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M85.793 152.41h-4.988l-38.126-38.011 2.852-2.53 40.262 40.541z\",\n fill: \"url(#paint9_linear_2978_41880)\"\n}), React.createElement(\"circle\", {\n cx: \"75.618\",\n cy: \"155.734\",\n r: \"2.574\",\n fill: \"#A0C3D7\"\n}), React.createElement(\"circle\", {\n cx: \"55.026\",\n cy: \"148.655\",\n r: \"2.574\",\n fill: \"#A0C3D7\"\n}), React.createElement(\"circle\", {\n cx: \"44.73\",\n cy: \"131.924\",\n r: \"2.574\",\n fill: \"#A0C3D7\"\n}), React.createElement(\"g\", {\n fill: \"#A0C3D7\"\n}, React.createElement(\"circle\", {\n r: \"2.574\",\n transform: \"matrix(1 0 0 -1 96.21 97.363)\"\n}), React.createElement(\"circle\", {\n r: \"2.574\",\n transform: \"matrix(1 0 0 -1 107.149 114.094)\"\n}), React.createElement(\"circle\", {\n r: \"2.574\",\n transform: \"matrix(1 0 0 -1 75.618 90.284)\"\n}), React.createElement(\"circle\", {\n r: \"2.574\",\n transform: \"matrix(1 0 0 -1 55.026 97.363)\"\n}), React.createElement(\"circle\", {\n r: \"2.574\",\n transform: \"matrix(1 0 0 -1 44.73 114.094)\"\n}))))))))), React.createElement(\"defs\", null, React.createElement(\"linearGradient\", {\n id: \"paint0_linear_2978_41880\",\n x1: \"-16\",\n y1: \"9\",\n x2: \"-16\",\n y2: \"256\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopColor: \"#FAFAFA\",\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\",\n stopColor: \"#F4F4F4\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint1_linear_2978_41880\",\n x1: \"178.214\",\n y1: \"43.106\",\n x2: \"178.214\",\n y2: \"195.709\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopColor: \"#F2F9FB\"\n}), React.createElement(\"stop\", {\n offset: \"1\",\n stopColor: \"#fff\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint2_linear_2978_41880\",\n x1: \"178.497\",\n y1: \"204.542\",\n x2: \"178.497\",\n y2: \"213.991\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopColor: \"#90AABF\"\n}), React.createElement(\"stop\", {\n offset: \"1\",\n stopColor: \"#869DAE\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint3_linear_2978_41880\",\n x1: \"154.275\",\n y1: \"146.574\",\n x2: \"96.683\",\n y2: \"91.352\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint4_linear_2978_41880\",\n x1: \"60.762\",\n y1: \"143.327\",\n x2: \"114.747\",\n y2: \"176.019\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopOpacity: \".87\"\n}), React.createElement(\"stop\", {\n offset: \"1\",\n stopOpacity: \".01\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint6_linear_2978_41880\",\n x1: \"90.287\",\n y1: \"154.267\",\n x2: \"68.53\",\n y2: \"131.301\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint7_linear_2978_41880\",\n x1: \"100.735\",\n y1: \"120.288\",\n x2: \"78.978\",\n y2: \"97.322\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint8_linear_2978_41880\",\n x1: \"121.119\",\n y1: \"112.739\",\n x2: \"99.362\",\n y2: \"89.773\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\"\n})), React.createElement(\"linearGradient\", {\n id: \"paint9_linear_2978_41880\",\n x1: \"90.166\",\n y1: \"136.143\",\n x2: \"68.409\",\n y2: \"113.177\",\n gradientUnits: \"userSpaceOnUse\"\n}, React.createElement(\"stop\", {\n stopOpacity: \".01\"\n}), React.createElement(\"stop\", {\n offset: \"1\"\n})), React.createElement(\"filter\", {\n id: \"filter0_d_2978_41880\",\n x: \"77.703\",\n y: \"96\",\n width: \"178\",\n height: \"34\",\n filterUnits: \"userSpaceOnUse\",\n colorInterpolationFilters: \"sRGB\"\n}, React.createElement(\"feFlood\", {\n floodOpacity: \"0\",\n result: \"BackgroundImageFix\"\n}), React.createElement(\"feColorMatrix\", {\n in: \"SourceAlpha\",\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",\n result: \"hardAlpha\"\n}), React.createElement(\"feOffset\", {\n dy: \"1\"\n}), React.createElement(\"feGaussianBlur\", {\n stdDeviation: \"2\"\n}), React.createElement(\"feColorMatrix\", {\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in2: \"BackgroundImageFix\",\n result: \"effect1_dropShadow_2978_41880\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in: \"SourceGraphic\",\n in2: \"effect1_dropShadow_2978_41880\",\n result: \"shape\"\n})), React.createElement(\"filter\", {\n id: \"filter1_d_2978_41880\",\n x: \"77\",\n y: \"102\",\n width: \"116\",\n height: \"22\",\n filterUnits: \"userSpaceOnUse\",\n colorInterpolationFilters: \"sRGB\"\n}, React.createElement(\"feFlood\", {\n floodOpacity: \"0\",\n result: \"BackgroundImageFix\"\n}), React.createElement(\"feColorMatrix\", {\n in: \"SourceAlpha\",\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",\n result: \"hardAlpha\"\n}), React.createElement(\"feOffset\", {\n dy: \"1\"\n}), React.createElement(\"feGaussianBlur\", {\n stdDeviation: \"2\"\n}), React.createElement(\"feColorMatrix\", {\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in2: \"BackgroundImageFix\",\n result: \"effect1_dropShadow_2978_41880\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in: \"SourceGraphic\",\n in2: \"effect1_dropShadow_2978_41880\",\n result: \"shape\"\n})), React.createElement(\"filter\", {\n id: \"filter2_ddd_2978_41880\",\n x: \"-13.297\",\n y: \"28\",\n width: \"181.534\",\n height: \"189.17\",\n filterUnits: \"userSpaceOnUse\",\n colorInterpolationFilters: \"sRGB\"\n}, React.createElement(\"feFlood\", {\n floodOpacity: \"0\",\n result: \"BackgroundImageFix\"\n}), React.createElement(\"feColorMatrix\", {\n in: \"SourceAlpha\",\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",\n result: \"hardAlpha\"\n}), React.createElement(\"feMorphology\", {\n radius: \"4\",\n operator: \"erode\",\n in: \"SourceAlpha\",\n result: \"effect1_dropShadow_2978_41880\"\n}), React.createElement(\"feOffset\", {\n dy: \"7\"\n}), React.createElement(\"feGaussianBlur\", {\n stdDeviation: \"4\"\n}), React.createElement(\"feColorMatrix\", {\n type: \"matrix\",\n values: \"0 0 0 0 0.600156 0 0 0 0 0.745337 0 0 0 0 0.8625 0 0 0 0.1 0\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in2: \"BackgroundImageFix\",\n result: \"effect1_dropShadow_2978_41880\"\n}), React.createElement(\"feColorMatrix\", {\n in: \"SourceAlpha\",\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",\n result: \"hardAlpha\"\n}), React.createElement(\"feMorphology\", {\n radius: \"4\",\n operator: \"dilate\",\n in: \"SourceAlpha\",\n result: \"effect2_dropShadow_2978_41880\"\n}), React.createElement(\"feOffset\", {\n dy: \"5\"\n}), React.createElement(\"feGaussianBlur\", {\n stdDeviation: \"16\"\n}), React.createElement(\"feColorMatrix\", {\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in2: \"effect1_dropShadow_2978_41880\",\n result: \"effect2_dropShadow_2978_41880\"\n}), React.createElement(\"feColorMatrix\", {\n in: \"SourceAlpha\",\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",\n result: \"hardAlpha\"\n}), React.createElement(\"feMorphology\", {\n radius: \"2\",\n operator: \"dilate\",\n in: \"SourceAlpha\",\n result: \"effect3_dropShadow_2978_41880\"\n}), React.createElement(\"feOffset\", {\n dy: \"12\"\n}), React.createElement(\"feGaussianBlur\", {\n stdDeviation: \"8.5\"\n}), React.createElement(\"feColorMatrix\", {\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0.447059 0 0 0 0 0.807843 0 0 0 0.06 0\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in2: \"effect2_dropShadow_2978_41880\",\n result: \"effect3_dropShadow_2978_41880\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in: \"SourceGraphic\",\n in2: \"effect3_dropShadow_2978_41880\",\n result: \"shape\"\n})), React.createElement(\"filter\", {\n id: \"filter3_d_2978_41880\",\n x: \"29.148\",\n y: \"78.444\",\n width: \"93.585\",\n height: \"93.585\",\n filterUnits: \"userSpaceOnUse\",\n colorInterpolationFilters: \"sRGB\"\n}, React.createElement(\"feFlood\", {\n floodOpacity: \"0\",\n result: \"BackgroundImageFix\"\n}), React.createElement(\"feColorMatrix\", {\n in: \"SourceAlpha\",\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0\",\n result: \"hardAlpha\"\n}), React.createElement(\"feOffset\", {\n dy: \"2\"\n}), React.createElement(\"feGaussianBlur\", {\n stdDeviation: \"2\"\n}), React.createElement(\"feColorMatrix\", {\n type: \"matrix\",\n values: \"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in2: \"BackgroundImageFix\",\n result: \"effect1_dropShadow_2978_41880\"\n}), React.createElement(\"feBlend\", {\n mode: \"normal\",\n in: \"SourceGraphic\",\n in2: \"effect1_dropShadow_2978_41880\",\n result: \"shape\"\n})), React.createElement(\"radialGradient\", {\n id: \"paint5_angular_2978_41880\",\n cx: \"0\",\n cy: \"0\",\n r: \"1\",\n gradientUnits: \"userSpaceOnUse\",\n gradientTransform: \"rotate(-56.035 152.55 -12.515) scale(43.4058 65.5062)\"\n}, React.createElement(\"stop\", {\n stopColor: \"#CFE8FF\"\n}), React.createElement(\"stop\", {\n offset: \".599\",\n stopColor: \"#D1F2F9\",\n stopOpacity: \"0\"\n})))));","import React from 'react';\nimport i18n from 'ui-i18n';\nimport {EmptyState} from '@reltio/components';\nimport LoadingIcon from './icons/Loading.svg';\n\nconst LoadingComponent = () => {\n return (\n <EmptyState\n LogoRenderer={LoadingIcon}\n text={i18n.text('Loading...')}\n secondaryText={i18n.text('Please give us a moment while we load the page')}\n />\n );\n};\n\nexport default LoadingComponent;\n","import {makeStyles} from '@material-ui/core/styles';\nimport {Theme} from '@material-ui/core';\n\nexport const useStyles = makeStyles((theme: Theme) => ({\n root: {\n display: 'flex',\n alignItems: 'center',\n marginRight: '16px'\n },\n updateTime: {\n color: theme.palette.text.secondary,\n fontSize: '13px',\n paddingRight: '16px'\n }\n}));\n","import React, {useEffect, useState} from 'react';\nimport moment from 'moment';\nimport RefreshIcon from '@material-ui/icons/Refresh';\n\nimport i18n from 'ui-i18n';\nimport {DQDataLevel} from '@reltio/mdm-sdk';\nimport {SmallIconButtonWithTooltip} from '@reltio/components';\n\nimport {useReloadAllFacets, useUpdateTime} from '../../contexts/ReloadFacetContext';\n\nimport {useStyles} from './styles';\n\nconst DATE_UPDATE_TIME_MS = 10000;\n\ntype Props = {\n dataLevel: DQDataLevel;\n};\n\nconst UpdateTimeHeader = ({dataLevel}: Props) => {\n const styles = useStyles();\n const [, setTick] = useState(0);\n const refreshAll = useReloadAllFacets();\n const {updateTime} = useUpdateTime(dataLevel);\n\n const handleRefreshAll = () => {\n refreshAll(dataLevel);\n };\n\n useEffect(() => {\n const intervalId = setInterval(() => setTick((timer) => timer + 1), DATE_UPDATE_TIME_MS);\n return () => clearInterval(intervalId);\n }, []);\n\n const date = moment(updateTime);\n return (\n date.isValid() && (\n <div className={styles.root}>\n <span className={styles.updateTime}>{`${i18n.text('Last updated')} ${date.fromNow()}`}</span>\n <SmallIconButtonWithTooltip\n tooltipTitle={i18n.text('Refresh')}\n icon={RefreshIcon}\n onClick={handleRefreshAll}\n size=\"S\"\n />\n </div>\n )\n );\n};\n\nexport default UpdateTimeHeader;\n","import {equals, pick} from 'ramda';\nimport React, {useCallback, useEffect, useMemo, useRef, useState} from 'react';\nimport moment from 'moment';\n\nimport i18n from 'ui-i18n';\nimport {DateRangeEditor, RequestStates, useSavedState} from '@reltio/components';\nimport {getEntityType, DQDataLevel, DateRangeValue, getDateRangeOptions} from '@reltio/mdm-sdk';\n\nimport {useEntityAndAttributeType} from '../../contexts/EntityAndAttributeTypeProvider';\nimport {DVFContext} from '../../contexts/DVFContext';\nimport {useUpdateTime} from '../../contexts/ReloadFacetContext';\nimport {ChartsDataProvider} from '../../contexts/ChartsDataProvider';\nimport {usePeriod, useZoom} from '../../contexts/DateRangesProvider';\nimport {usePermissionsContext} from '../../contexts/PermissionsProvider';\nimport {useDVF} from '../../hooks/useDVF';\nimport {useDvfConfigLink} from '../../hooks/useDvfConfigLink';\nimport {useEntityCount} from '../../hooks/useEntityCount';\nimport {useEntityTypes} from '../../hooks/useEntityTypes';\nimport {useDebounceFunction} from '../../hooks/useDebounceFunction';\nimport {DetailedAttributeType} from '../../types/DetailedAttributeType';\nimport {DQDashboardPerspectiveConfig} from '../../types/DQDashboardPerspectiveConfig';\nimport {DQDateRangeValue} from '../../types/DQDateRangeValue';\nimport {DQDashboardSavedState} from '../../types/DQDashboardSavedState';\nimport {FilterOption} from '../../types/FilterOption';\nimport {ATTRIBUTE_LIST_WIDTH, ENTITY_LEVEL_BAR_WIDTH} from './constants';\nimport {getTimeRangeDates, getPeriodValue} from '../../services/mlDq';\nimport {dateRangeValues, getFirstEntityTypeUri, getValuesDateRange, sortEntityTypesWithCount} from './helpers';\n\nimport AttributeLevelLayout from './AttributeLevelLayout';\nimport DataLevelBreadcrumbs from '../DataLevelBreadcrumbs/DataLevelBreadcrumbs';\nimport ContentSlider from '../ContentSlider/ContentSlider';\nimport DataLevelSwitcher from './DataLevelSwitcher/DataLevelSwitcher';\nimport DQDashboardAttributesList from '../DQDashboardAttributesList/DQDashboardAttributesList';\nimport DQDashboardHeader from '../DQDashboardHeader/DQDashboardHeader';\nimport DQDashboardNoContent from '../DQDashboardNoContent/DQDashboardNoContent';\nimport EntityLevelLayout from './EntityLevelLayout/EntityLevelLayout';\nimport EntityTypeSelector from '../EntityTypeSelector/EntityTypeSelector';\nimport LoadingComponent from '../LoadingComponent/LoadingComponent';\nimport UpdateTimeHeader from '../UpdateTimeHeader/UpdateTimeHeader';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n config: DQDashboardPerspectiveConfig;\n saveState: (state: DQDashboardSavedState) => void;\n getSavedState: () => Promise<DQDashboardSavedState>;\n};\n\nconst DQDashboardPerspectiveView = ({config, saveState, getSavedState}: Props) => {\n const styles = useStyles();\n const entityTypes = useEntityTypes();\n const {setEntityType, entityType, detailedAttributeType, setDetailedAttributeType} = useEntityAndAttributeType();\n const [entityTypeUri, setEntityTypeUri] = useState<string>('');\n\n const {getEntityCount, state: entityCountRequestState} = useEntityCount(entityTypes);\n const {canGetDQStatistic, permissionsLoadingState, isTimeSeriesAvailable} = usePermissionsContext();\n\n const [dataLevel, setDataLevel] = useState<DQDataLevel>();\n const {resetUpdateTimes} = useUpdateTime(dataLevel);\n\n const dvfConfigLink = useDvfConfigLink(entityType);\n const dvfs = useDVF(entityType?.uri);\n const dvfContext = useMemo(() => ({dvfs, dvfConfigLink}), [dvfs, dvfConfigLink]);\n\n const dqDashboardSavedState = useRef<DQDashboardSavedState>();\n const {isLoaded: isSavedStateLoaded, savedState} = useSavedState<DQDashboardSavedState>(getSavedState);\n const {zoom, changeZoom} = useZoom();\n const {period, changePeriod} = usePeriod();\n const getNewSavedState = (state: DQDashboardSavedState): DQDashboardSavedState => ({\n fieldName: null,\n zoom: zoom || null,\n entityTypeUri,\n period,\n ...dqDashboardSavedState?.current,\n ...state\n });\n const isPermissionsRequestFinished =\n permissionsLoadingState === RequestStates.ERROR || permissionsLoadingState === RequestStates.LOADED;\n\n useEffect(() => {\n const selectedEntityType = entityTypes && entityTypeUri ? getEntityType({entityTypes}, entityTypeUri) : null;\n setEntityType(selectedEntityType);\n }, [entityTypeUri]);\n\n useEffect(() => {\n if (isSavedStateLoaded && isPermissionsRequestFinished) {\n dqDashboardSavedState.current = savedState;\n const isEntityTypeExists = !!getEntityType({entityTypes}, savedState.entityTypeUri);\n setEntityTypeUri(\n isEntityTypeExists ? savedState.entityTypeUri : getFirstEntityTypeUri(sortedEntityTypesWithCount)\n );\n\n setDataLevel((savedState.fieldName && savedState.dataLevel) || DQDataLevel.ENTITY_TYPE);\n const defaultPeriod = isTimeSeriesAvailable ? DateRangeValue.LAST_WEEK : DateRangeValue.LAST_DAY;\n const newPeriod =\n isTimeSeriesAvailable &&\n (dateRangeValues.includes(savedState?.period as DQDateRangeValue) || Array.isArray(savedState?.period))\n ? savedState.period\n : defaultPeriod;\n changePeriod(newPeriod);\n if (savedState.zoom) {\n changeZoom(savedState.zoom);\n }\n }\n }, [isSavedStateLoaded, isPermissionsRequestFinished]); // eslint-disable-line\n\n useEffect(() => {\n if (dataLevel === DQDataLevel.ENTITY_TYPE) {\n saveStateHandler({\n fieldName: null,\n dataLevel: DQDataLevel.ENTITY_TYPE,\n entityTypeUri\n });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dataLevel, entityTypeUri]);\n\n useEffect(() => {\n if (isSavedStateLoaded && dataLevel === DQDataLevel.ATTRIBUTE_TYPE) {\n const {startDate, endDate} = getTimeRangeDates(period);\n saveStateHandler({\n period: [new Date(startDate), new Date(endDate)],\n zoom\n });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [zoom]);\n\n useEffect(() => {\n if (isSavedStateLoaded && dataLevel === DQDataLevel.ATTRIBUTE_TYPE) saveStateHandler({period});\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [period]);\n const saveStateDebounce = useDebounceFunction<DQDashboardSavedState>(saveState);\n const saveStateHandler = (state: DQDashboardSavedState) => {\n const newSavedState = getNewSavedState(state);\n saveStateDebounce(newSavedState, dqDashboardSavedState.current);\n dqDashboardSavedState.current = newSavedState;\n };\n const sortedEntityTypesWithCount = useMemo(\n () => sortEntityTypesWithCount({entityTypes, getEntityCount}),\n [entityTypes, getEntityCount]\n );\n\n const handleSetEntityTypeByUri = useCallback(\n (entityTypeUri: string) => {\n if (entityType?.uri !== entityTypeUri) {\n resetUpdateTimes(DQDataLevel.ENTITY_TYPE);\n setDetailedAttributeType(null);\n setEntityTypeUri(entityTypeUri);\n setDataLevel(DQDataLevel.ENTITY_TYPE);\n }\n },\n [entityType?.uri] // eslint-disable-line\n );\n\n const handleAttributesListChange = ({\n selectedDetailedAttributeType,\n filterText,\n filterOptions\n }: {\n selectedDetailedAttributeType: DetailedAttributeType;\n filterText: string;\n filterOptions: FilterOption[];\n }) => {\n const fieldName = selectedDetailedAttributeType?.fieldName;\n if (\n fieldName ||\n !equals({filterText, filterOptions}, pick([filterText, filterOptions], dqDashboardSavedState.current))\n )\n saveStateHandler({\n fieldName: fieldName || null,\n filterOptions,\n filterText,\n dataLevel: fieldName ? DQDataLevel.ATTRIBUTE_TYPE : dataLevel\n });\n\n fieldName && setDataLevel(DQDataLevel.ATTRIBUTE_TYPE);\n\n if (!equals(detailedAttributeType, selectedDetailedAttributeType)) {\n resetUpdateTimes(DQDataLevel.ATTRIBUTE_TYPE);\n selectedDetailedAttributeType && setDetailedAttributeType(selectedDetailedAttributeType);\n }\n };\n\n const showEntityLevel = () => {\n setDetailedAttributeType(null);\n setDataLevel(DQDataLevel.ENTITY_TYPE);\n resetUpdateTimes(DQDataLevel.ENTITY_TYPE);\n };\n\n const showDashboard =\n entityCountRequestState !== RequestStates.LOADING && isSavedStateLoaded && isPermissionsRequestFinished;\n const showContent = entityType && canGetDQStatistic && !!getEntityCount(entityTypeUri);\n const showTimeRange = dataLevel === DQDataLevel.ATTRIBUTE_TYPE && isTimeSeriesAvailable;\n const dateRangeEditorValue = getPeriodValue(zoom, period);\n return showDashboard ? (\n <div className={styles.perspectiveView}>\n <DQDashboardHeader title={i18n.text('Data Quality')}>\n {entityType && (\n <div className={styles.navigationWrapper}>\n <EntityTypeSelector\n entityTypes={sortedEntityTypesWithCount}\n entityTypeUri={entityType.uri}\n onChange={handleSetEntityTypeByUri}\n />\n <DataLevelBreadcrumbs dataLevel={dataLevel} onChange={setDataLevel} />\n <div className={styles.headerRightSide}>\n {showTimeRange && (\n <DateRangeEditor\n values={dateRangeEditorValue}\n options={getDateRangeOptions(dateRangeValues)}\n getValuesDateRange={getValuesDateRange}\n onChange={changePeriod}\n className={styles.periodSelector}\n TextFieldProps={{\n InputProps: {\n classes: {input: styles.input, root: styles.inputRoot},\n disableUnderline: true\n }\n }}\n MenuProps={{classes: {paper: styles.paper}}}\n classes={{dropdownIndicator: styles.dropdownIndicator}}\n DateRangePickerProps={{\n maxDate: moment().startOf('day').toDate()\n }}\n />\n )}\n <UpdateTimeHeader dataLevel={dataLevel} />\n </div>\n </div>\n )}\n </DQDashboardHeader>\n {showContent ? (\n <div className={styles.content}>\n <DVFContext.Provider value={dvfContext}>\n <ChartsDataProvider>\n <ContentSlider\n page={dataLevel === DQDataLevel.ENTITY_TYPE ? 0 : 1}\n pages={[\n [{index: 0}, {index: 2, width: ATTRIBUTE_LIST_WIDTH + 12}],\n [\n {index: 1, width: ENTITY_LEVEL_BAR_WIDTH},\n {index: 2, width: ATTRIBUTE_LIST_WIDTH},\n {index: 3}\n ]\n ]}\n >\n <ChartsDataProvider>\n <EntityLevelLayout config={config} entityType={entityType} />\n </ChartsDataProvider>\n <DataLevelSwitcher showEntityLevel={showEntityLevel} entityType={entityType} />\n <DQDashboardAttributesList\n entityType={entityType}\n onAttributesListChange={handleAttributesListChange}\n defaultFieldName={dqDashboardSavedState.current?.fieldName}\n defaultFilterText={dqDashboardSavedState.current?.filterText}\n defaultFilterOptions={dqDashboardSavedState.current?.filterOptions}\n disableAttributeSelection={dataLevel === DQDataLevel.ENTITY_TYPE}\n />\n <div className={styles.attributeLevelWrapper}>\n {detailedAttributeType && (\n <AttributeLevelLayout config={config} entityType={entityType} />\n )}\n </div>\n </ContentSlider>\n </ChartsDataProvider>\n </DVFContext.Provider>\n </div>\n ) : (\n entityType && <DQDashboardNoContent />\n )}\n </div>\n ) : (\n <LoadingComponent />\n );\n};\n\nexport default DQDashboardPerspectiveView;\n","import {useMemo} from 'react';\nimport {useSelector} from 'react-redux';\nimport mdmModule from '@reltio/mdm-module';\nimport {isAvailableEntityType, Metadata} from '@reltio/mdm-sdk';\n\nexport const useEntityTypes = () => {\n const metadata: Metadata = useSelector(mdmModule.selectors.getMetadata);\n const entityTypes = useMemo(() => metadata.entityTypes.filter(isAvailableEntityType), [metadata.entityTypes]);\n return entityTypes;\n};\n","import {insert, join, pipe, propEq, split} from 'ramda';\nimport {useEffect, useState} from 'react';\nimport {useSelector} from 'react-redux';\nimport mdmModule from '@reltio/mdm-module';\nimport {getLastUriPart, TEntityType, getConsoleApps} from '@reltio/mdm-sdk';\nimport {useSafePromise} from '@reltio/components';\n\nexport const useDvfConfigLink = (selectedEntityType: TEntityType) => {\n const [consoleLink, setConsoleLink] = useState<string>(null);\n const [dvfConfigLink, setDVFConfigLink] = useState<string>(null);\n const safePromise = useSafePromise();\n const servicesPath = useSelector(mdmModule.selectors.getServicesPath);\n const environment = useSelector(mdmModule.selectors.getEnvironment) as string;\n const tenant = useSelector(mdmModule.selectors.getTenant) as string;\n useEffect(() => {\n safePromise(getConsoleApps({servicesPath, tenant, environment}))\n .then((response) => {\n const consoleLink = response?.data?.apps.find(propEq('name', 'Console')).uri;\n setConsoleLink(consoleLink);\n })\n .catch(() => setConsoleLink(null));\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [environment, tenant, servicesPath]);\n useEffect(() => {\n const dvfConfigLink =\n consoleLink && selectedEntityType?.uri\n ? pipe(\n split('?'),\n insert(1, `datamodeler/entityDetails/${getLastUriPart(selectedEntityType.uri)}/validation?`),\n join('')\n )(consoleLink)\n : null;\n setDVFConfigLink(dvfConfigLink);\n }, [selectedEntityType, consoleLink]);\n\n return dvfConfigLink;\n};\n","import {useState, useEffect, useCallback, useMemo} from 'react';\nimport {useSelector} from 'react-redux';\nimport {getDVF, DataValidationFunction, ApiErrorCode} from '@reltio/mdm-sdk';\nimport mdmModule from '@reltio/mdm-module';\nimport {useSafePromise, RequestStates} from '@reltio/components';\n\nexport const useDVF = (entityTypeUri: string) => {\n const [dvfs, setDvfs] = useState<DataValidationFunction[]>([]);\n const [requestState, setRequestState] = useState<RequestStates>(RequestStates.INIT);\n const [errorCode, setErrorCode] = useState<number>();\n const tenant: string = useSelector(mdmModule.selectors.getTenant);\n const dvfPath: string = useSelector(mdmModule.selectors.getDVFPath);\n const safePromise = useSafePromise();\n const env: string = useSelector(mdmModule.selectors.getEnvironment);\n const canUserReadDVF = useSelector(mdmModule.selectors.getCanUserReadDVF);\n const onError = (error: {errorCode: number}) => {\n console.error(error); // eslint-disable-line\n setRequestState(RequestStates.ERROR);\n setDvfs([]);\n setErrorCode(error?.errorCode);\n };\n const onRequestFinished = (dvf: {functions: DataValidationFunction[]}) => {\n setDvfs(dvf?.functions || []);\n setErrorCode(undefined);\n setRequestState(RequestStates.LOADED);\n };\n const loadDVFs = useCallback(() => {\n if (!canUserReadDVF) {\n onError({errorCode: ApiErrorCode.ACCESS_DENIED});\n return;\n }\n if (entityTypeUri && env) {\n setErrorCode(undefined);\n setRequestState(RequestStates.LOADING);\n return safePromise(getDVF({dvfPath, tenant, entityTypeUri, env})).then(onRequestFinished).catch(onError);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dvfPath, tenant, entityTypeUri, env]);\n\n useEffect(() => {\n loadDVFs();\n }, [loadDVFs]);\n\n const result = useMemo(\n () => ({data: dvfs, state: requestState, reload: loadDVFs, errorCode}),\n [dvfs, requestState, loadDVFs, errorCode]\n );\n return result;\n};\n","import {useCallback, useRef} from 'react';\nimport {equals} from 'ramda';\n\nconst DEBOUNCE_TIMEOUT = 200;\n\nexport const useDebounceFunction = <T extends unknown>(fn: (params: T) => void) => {\n const timer = useRef<ReturnType<typeof setTimeout>>();\n const lastParams = useRef<T>(null);\n\n return useCallback(\n (params: T, startParams: T) => {\n timer?.current && clearTimeout(timer?.current);\n if (!lastParams?.current) lastParams.current = startParams;\n if (!equals(params, lastParams?.current)) {\n timer.current = setTimeout(() => {\n lastParams.current = params;\n fn(params);\n }, DEBOUNCE_TIMEOUT);\n }\n },\n [fn]\n );\n};\n","export const NO_DATA_HEIGHT = 359;\nexport const ATTRIBUTE_LIST_WIDTH = 360;\nexport const ENTITY_LEVEL_BAR_WIDTH = 60;\n","import React, {useCallback} from 'react';\nimport {Provider} from 'react-redux';\nimport {Store} from 'redux';\nimport {MuiThemeProvider, createMuiTheme, createGenerateClassName, StylesProvider} from '@material-ui/core/styles';\nimport {MuiPickersUtilsProvider} from '@material-ui/pickers';\nimport MomentUtils from '@date-io/moment';\n\nimport {promisifyCallback} from '@reltio/mdm-sdk';\n\nimport {DQDashboardPerspectiveConfig} from '../../types/DQDashboardPerspectiveConfig';\nimport {DQDashboardSavedState} from '../../types/DQDashboardSavedState';\nimport {ReloadFacetProvider} from '../../contexts/ReloadFacetContext';\nimport {DateRangesProvider} from '../../contexts/DateRangesProvider';\nimport {EntityAndAttributeTypeProvider} from '../../contexts/EntityAndAttributeTypeProvider';\nimport {PermissionsProvider} from '../../contexts/PermissionsProvider';\nimport {ThresholdsContext} from '../../contexts/ThresholdsContext';\nimport {theme} from '../../theme';\n\nimport DQDashboardPerspectiveView from './DQDashboardPerspectiveView';\n\nconst dqDashboardTheme = createMuiTheme(theme);\n\nconst generateClassName = createGenerateClassName({\n productionPrefix: 'DQDashboardPerspective',\n disableGlobal: true\n});\n\ntype Props = {\n store: Store<unknown>;\n config: DQDashboardPerspectiveConfig;\n saveState: (state: DQDashboardSavedState) => void;\n getSavedState: (clb: (state: DQDashboardSavedState) => void) => void;\n};\n\nconst DQDashboardPerspective = ({store, config, saveState, getSavedState}: Props) => {\n const getSavedStatePromisified: () => Promise<DQDashboardSavedState> = useCallback(\n promisifyCallback(getSavedState),\n [getSavedState]\n );\n return (\n <Provider store={store}>\n <MuiPickersUtilsProvider utils={MomentUtils}>\n <MuiThemeProvider theme={dqDashboardTheme}>\n <StylesProvider generateClassName={generateClassName}>\n <ReloadFacetProvider>\n <EntityAndAttributeTypeProvider>\n <PermissionsProvider config={config}>\n <DateRangesProvider>\n <ThresholdsContext.Provider value={config.showThresholds}>\n <DQDashboardPerspectiveView\n config={config}\n saveState={saveState}\n getSavedState={getSavedStatePromisified}\n />\n </ThresholdsContext.Provider>\n </DateRangesProvider>\n </PermissionsProvider>\n </EntityAndAttributeTypeProvider>\n </ReloadFacetProvider>\n </StylesProvider>\n </MuiThemeProvider>\n </MuiPickersUtilsProvider>\n </Provider>\n );\n};\n\nexport default DQDashboardPerspective;\n","import {DQDashboardView} from '@reltio/dq-dashboard';\n\nexport default DQDashboardView;\n"],"names":["AvatarStates","className","icon","avatarText","rootClasses","otherProps","state","setState","useState","useEffect","ICON_MODE","TEXT_MODE","onImageLoadFail","ERROR_MODE","Avatar","classnames","iconRoot","src","onError","textRoot","useStyles","makeStyles","flex","padding","paddingTop","children","styles","theme","root","display","flexWrap","flexDirection","alignItems","justifyContent","overflow","height","minHeight","boxSizing","color","palette","text","primary","fontSize","fontWeight","lineHeight","letterSpacing","textAlign","secondary","root_small","embedded","flexShrink","width","full","textBox","maxWidth","marginTop","secondaryText","button","minWidth","borderRadius","boxShadow","EMPTY_STATE_VARIANTS","EMPTY_STATE_ICONS","SEARCH_RESULTS","props","viewBox","xmlns","xmlnsXlink","cx","cy","fx","fy","r","gradientTransform","id","stopColor","stopOpacity","offset","x1","y1","x2","y2","x","y","filterUnits","stdDeviation","in","stroke","strokeWidth","fill","fillRule","xlinkHref","fillOpacity","mask","transform","opacity","d","rx","ry","filter","SELECT_ATTRIBUTES","style","maskType","maskUnits","clipRule","gradientUnits","NO_DATA","dx","dy","result","values","type","mixBlendMode","ERROR","colorInterpolationFilters","floodOpacity","mode","in2","variant","LogoRenderer","buttonTitle","onClick","identity","access","showButton","Typography","classes","h5","subtitle1","Button","EmptyStub","HideOnShrink","widthToHide","handleWidth","render","propTypes","PropTypes","sourceType","metadata","useSelector","mdmModule","uri","findSourceSystemByUri","getSourceSystemLabel","sourceIcon","getAbsoluteImageUrl","VerticalDivider","margin","borderLeft","enrichDataWithPercents","data","percents","countPercents","pluck","map","item","i","percent","Component","WithPercents","dataWithPercents","useMemo","displayName","clickable","cursor","useClickableStyle","undefined","useSavedState","getSavedState","isLoaded","setIsLoaded","savedState","setSavedState","then","_","catch","RequestStates","ReloadFacetSignalContext","createContext","ReloadFacetActionContext","RequestsUpdateTimeContext","ReloadFacetProvider","refreshSignals","setRefreshSignals","updateTimes","setUpdateTimes","resetUpdateTimes","useCallback","dataLevel","assoc","refreshAll","signals","nextSignal","propOr","Provider","value","updateTime","actionId","time","Date","now","assocPath","useReloadFacet","reload","useContext","Error","refreshSignal","useRefreshAction","action","nanoid","useUpdateTime","Math","min","Object","PeriodContext","React","ZoomContext","DateRangesProvider","zoom","setZoom","period","setPeriod","changePeriod","newPeriod","changeZoom","validatedZoom","getDateRange","usePeriod","useZoom","EntityAndAttributeTypeContext","EntityAndAttributeTypeProvider","detailedAttributeType","setDetailedAttributeType","entityType","setEntityType","useEntityAndAttributeType","DQDateRangeValue","omit","DateRangeValue","getDQDateRangeByValue","currentDate","moment","subtract","valueOf","getDateRangeByValue","getFirstEntityTypeUri","path","dateRangeValues","getValuesDateRange","pipe","defaultTo","PermissionsContext","PermissionsProvider","config","permissions","tenantPermissions","requestState","permissionsLoadingState","setPermissions","setRequestState","safePromise","useSafePromise","apiPath","tenant","onRequestFinished","error","console","loadPermissions","getTenantPermissions","usePermissionsRequest","entityTypeUri","roles","canGetDQStatistic","noMetaDataRestrictions","canReadWithoutFilter","includes","getPermissionsForRoles","prop","__","getPermissionByUri","find","propEq","configurationLevelPermission","entityLevelPermission","isEmpty","some","checkPermissions","hasRestrictions","showTimeSeries","isTimeSeriesAvailable","usePermissionsContext","ThresholdsContext","defaultTheme","tooltip","backgroundColor","DVFContext","ChartsDataContext","ChartsDataProvider","chartsData","setChartsData","changeChartsData","useChartsDataContext","useEntityCount","entityTypes","entitiesCountMap","setEntitiesCountMap","getEntityCount","buildFilterQueryString","fieldName","FilterOptions","getFacets","query","generateValuableQueryString","activeness","body","pageSize","pageNo","Number","getLastUriPart","ChartDataType","CustomViewType","ViewType","DQMetric","RDMLookupState","defaultViewsByDataLevel","DQDataLevel","FILL_RATE","title","i18n","UNIQUENESS","SUMMARY","DATA_VALIDATION","FREQUENCY","LENGTH_STATISTIC","PATTERN","CROSSWALK_ANALYSIS","VALUE_DISTRIBUTION","UNSUPPORTED","options","timeSeries","CONSOLIDATION_RATE","RDM_TRANSCODE","defaultLayoutsByDataLevel","today","default","SSN","BOOLEAN","DATE","INTEGER","FLOAT","timeRange","boolean","date","integer","float","RDM_LOOKUP_EXIST","RDM_LOOKUP_NOT_EXIST","getAdvancedSearchFilter","filters","attributes","index","operator","SearchOperator","localizeChartValues","chartData","localizedValue","getPercentLabel","isNil","isEmptyData","facetFiltersToSearchState","curry","advanced","when","isDateType","evolve","mapFilterValue","parseTimestamp","searchOptions","searchByOv","ovOnly","version","getSearchState","getFilter","getChartDataTypeByAttributeType","DataTypes","STRING","UNKNOWN","getValidViews","views","allViews","supportedViews","layout","reduce","layoutItem","viewType","viewIndex","findIndex","concat","getMetricsFromViews","metric","uniq","getBarWidthStyle","enrichChartDataWithSourceLabel","max","group","label","getEntityTypeSummarySearchState","formatPercent","toFixed","transformTimeSeriesChartData","getChartState","states","all","equals","any","prependZeroIfNeeds","number","getTimeSeriesData","getData","timeSeriesData","_max_date","sortBy","getStatisticData","anomalyData","dataValues","anomaly","pick","getAnomalyData","getTimeRangeDates","startTimestamp","endTimeStamp","getDateRangeByDatePeriod","startDate","endDate","getFullYear","getMonth","getDate","checkIsTimeSeries","getChartTooltipDateTitle","hasData","hasTimeRange","enrichTimeSeriesDataWithTodayData","todayChartData","format","reject","append","todayData","currentData","todayChartDataWithPercent","todayOption","FillRateState","UniquenessAnalysisState","getStateFromMetric","todayDataForTimeSeries","dataItem","getTodayData","DataLevelContext","isContainActiveVF","dvf","attributeTypeUri","allPass","StatusVF","isFloatingType","getAttributeLabel","getLabel","name","AttrTypeDetailsType","filterAttributeByDetails","filterOptions","detail","details","filterAttributeTreeByDetails","length","child","filterAttributeByNotEmpty","fillRates","fillRate","filterAttributesTypesByName","filterText","array","resultArray","currentItem","isCurrentItemMatch","toLowerCase","filterAttributeByName","push","assign","getAttrTypeDetails","attrTypeItem","matchAttributes","required","isAttributeReference","INCLUDED_IN_MATCHING","CONTAIN_VF","REQUIRED","REFERENCE","RDM_LOOKUP","isRDMLookupAttrType","getDetailLabel","attributeDetailType","buildItems","items","parents","level","chain","childrenItems","isReference","attributeItem","attributeUriToSearchUri","isReferenceChild","useChartsDataRequest","metrics","attributeFieldName","loadChartsData","async","getActiveProfiles","ActivityFilters","getInactiveProfiles","getDqChartsData","getDQChartsData","Promise","activeProfiles","inactiveProfiles","dqChartsData","sourceSystems","keys","summary","pathOr","ifElse","has","refreshAction","whiteSpace","paddingRight","infoDataLabel","chartDataLabel","anomalyTitle","anomalyTitleBackground","position","top","left","anomalyTitleWrapper","marginRight","anomalyValue","paddingLeft","row","tooltipWrapper","DataRenderer","ChartDataRenderer","key","fillRateSquare","verticalAlign","getValueLabel","getColor","tooltipData","background","infoIcon","infoTooltipTitle","hasInfoIcon","hasChildren","BasicViewHeader","SmallIconButton","InfoIcon","size","tooltipTitle","view","dataReltioId","BasicView","FillRateChartColors","getFillRateColorByState","getChartItemColor","getFillRateColors","getLabelFromState","formatFillRateData","entries","indexOf","formatFillRatesData","toPairs","getFillRateData","getFillRateChartData","always","converge","colors","getFillRateFilter","getFillRateSearchState","useChartData","getChartData","getRawFilterSearchState","keyword","isRawFilter","getEqualsRawFilterSearchState","excludeDescendantEntityTypes","searchState","entityTypesFilter","entityTypesUris","AdditionalFilterOptionsValues","join","getExcludedEntityTypesRawFilter","getDescendantEntityTypes","currentRawFilter","newRawFilter","useSearchRedirect","dispatch","useDispatch","activityFilter","ActivityFilter","search","ui","EmptyStateVariants","container","paddingBottom","small","maxHeight","marginBottom","medium","large","message","refreshButton","main","refreshIcon","defaultIcon","onRefresh","errorData","SMALL","Icon","startIcon","Replay","viewContent","loadingState","BasicViewContent","refreshMode","refreshRate","handleHeight","ErrorBoundary","DashboardLinearLoader","legendLabel","legendValue","legendHorizontal","legendVertical","itemColor","payload","dataKey","ANOMALY_DATA_KEY","withPercents","legendProps","align","wrapperStyle","overflowY","content","formatNumberAsMetric","BarAxis","bottom","stackedBar","right","bar","flexGrow","transition","zIndex","pointerEvents","inactivePart","tooltipFillRate","legendWrapper","rangeWrapper","rangeValue","Bar","forwardRef","ref","BarWithTooltip","withTooltip","getTooltipData","onItemClick","onBarClick","maxValue","sum","searchProfiles","ANOMALY_METRICS","useMlDqDataRequest","LAST_WEEK","setTimeSeriesData","mlDqPath","oldRequestDependencies","useRef","showThresholds","memoizedRequestDependencies","toString","getMlDqData","attribute","applySpec","statisticData","needRefresh","currentRange","last","head","currentStartTime","currentEndTime","startTime","endTime","needRefreshData","current","getValuesFromChartData","flatten","roundPercent","round","XAxisTickFormatter","getZoomedData","dateRange","indexStart","indexEnd","slice","_extends","target","arguments","source","prototype","hasOwnProperty","call","apply","this","infoPanel","gap","info","dynamicInfo","dynamicInfoPositive","dynamicInfoNegative","dynamicIcon","dynamicPercent","isPositiveDynamic","abs","infoLabel","percentKey","zoomedData","lastChartData","filteredData","Infinity","prevPercent","lastPercent","getDynamicPercent","lastDateOfPeriod","dateLabel","isSame","DAYS_OF_WEEK","MONTHS","getFormattedDataForBarChart","chartType","RELTIO_PROFILES","SOURCE_PROFILES","getConsolidationRateChartData","InfoPanelProperties","getLabelForInfoPanel","propName","Properties","lengthStatistics","MEDIAN","AVERAGE","MININMUN","MAXIMUM","valueDistribution","crosswalkAnalysis","NUMBER_OF_SOURCES","AVG_NUMBER_OF_PROFILES","MIN_NUMBER_OF_PROFILES","MAX_NUMBER_OF_PROFILES","getInfoPanelDataForBarChart","getDataForBarChart","infoPanelData","getChartValueLabel","attributeType","formatDataTypeValue","dataTypeDefinition","convertDataWithInterval","getStartRangeFromChartData","split","chartDataWithRange","sort","ascend","startRange","endRange","isLastItem","addIntervalBrackets","getLengthChartData","getMonthDistributionData","getDayOfWeekDistributionData","getDayOfMonthDistributionData","getDayOfweekDistributionSearchState","dayOfWeek","getMonthDistributionSearchState","month","getDayOfMonthDistributionSearchState","dayOfMonth","getLengthStatisticsSearchState","getRangeRawFilterSearchState","getCrosswalkAnalysisSearchState","getValueDistributionFilterForDate","timestampStart","timestampEnd","getValueDistributionFilterForNumber","getValueDistributionFilterForFloat","lastItem","isSingleValue","getValueDistributionSearchState","cond","getConsolidationRateFilter","getConsolidationRateSearchState","getBarOpacity","selectedBar","tickFormatter","toUpperCase","lineKeys","isPercent","minLineChartData","getMinValueFromLineChartData","maxLineChartData","getMaxValueFromLineChartData","minYAxisValue","maxYAxisValue","updatedMinData","updatedMaxData","getUpdatedEdgeData","xAxis","tick","tickMargin","userSelect","angle","textAnchor","tickLine","interval","scale","yAxis","tickCount","domain","cartesianGrid","strokeDasharray","strokeOpacity","line","dot","activeDot","referenceLine","isFront","labelForY","area","legend","DEFAULT_LINE_COLOR","getTooltip","getTooltipProp","areaKeys","yAxisLabel","getLineChartSettings","tooltipProps","selectedDots","setSelectedDots","zoomAreaStart","setZoomAreaStart","zoomAreaEnd","setZoomAreaEnd","emptyAreas","getDateByIndex","every","isNaN","isLineChartDataEmpty","areas","lastArea","end","start","extendArea","getEmptyAreas","hasZoomArea","onMouseMove","mouseEvent","isTooltipActive","activePayload","activeLabel","onMouseLeave","onMouseDown","onMouseUp","either","emptyArea","filterNull","renderData","monoFontCell","fontFamily","timeSeriesContent","tooltipKeys","active","currentPayload","mlDqData","mlDqState","mlDqReload","todayState","todayReload","reloadFunction","border","disabled","chipProps","isDateRangeValue","getRangeOptionLabel","Chip","isTimeSeries","showErrorBands","InfoDataRenderer","UniquenessChartColors","getUniquenessColorByState","getUniquenessColors","formatUniquenessAnalysisData","getUniquenessData","getUniquenessChartData","uniqueness","dataMlDq","stateMlDq","reloadMlDq","dataToday","stateToday","reloadToday","loading","badQuality","AttributeTypeDetailIconSizes","NORMAL","AttributeTypeDetailIconVariant","AttributeTypeDetailIcon","detailType","iconVariant","isDataLoading","isDataQualitative","checkIsDataQualitativeForSummary","LOADING","BAD_QUALITY","rootTimeRange","marginLeft","chipClasses","header","borderRight","entitySummary","attributeTypeSummary","infoTitle","infoContent","attributeTypeIconWrapper","totalLoading","summaryWrapper","HeaderInfo","AttributeTypeIconSizes","entityTypesArray","total","recordsInfo","CircularProgress","Tooltip","attributeTypesCount","getAttributeTypesTree","collectAttributes","attributesCollection","countEntityTypeAttributes","getValue","isAttributeTypeLevel","DefaultIcon","titleChildren","viewTitle","getFormattedDataForTableChart","valueComparator","sortDirection","sortField","a","b","filterExistedDVF","dvfs","chartDataItem","findDVFByUri","enrichDVFDataWithFunctionLabel","getAttributeTypeLabelFromHierarhy","enrichEntityLevelDVFData","attributeUri","attributeTypesHierarhy","getAttributeTypesHierarchyByUri","attributeLabel","getValidationChartData","getFrequencyChartData","getPatternAnalisysData","getDVFAnalyticAttribtuteUri","attributeName","getValidationFilter","getFrequencyAnalysisStateForTimestamp","attributeValue","getFrequencyAnalysisFilterForDate","getFrequencyAnalysisFilter","getFrequencyAnalysisFilterForBoolean","parseBoolean","getFrequencyAnalysisSearchState","isTimestampBasedType","isBooleanType","getPatternAnalysisSearchState","pattern","getRowsCounterLabel","NO_DATA_FIELD","getEntityLevelColumnsOptions","functionsCount","sortable","secondLabel","getBarColor","getDvfColor","getAttributeLevelColumnsOptions","getColumnsOptions","getViolatedValidationData","textOverflow","titleCount","countProfiles","chartInfoPanel","VVFNoDataChartType","chartTitle","dvfConfigLink","dataSourceLabel","DVF_NOT_SUPPORTED","NotSupportedIcon","DVF_NOT_CONFIGURE","SettingsIcon","Link","href","component","underline","DATA_VALID","NiceOneIcon","PERMISSION_DENIED","useNoDataDvfType","activeDvfs","errorCode","dvfsState","chartDataState","chartState","isAttributeDataLevel","isPermissionDenied","ApiErrorCode","isDVFNotSupported","isDVFNotConfigured","isDataValid","useDvfs","onlyActive","dvfsData","currentDvfs","getDVFsForAttribute","getLabelAndMaxValue","getValueByColumnId","rowValue","is","handler","childrenRef","onResize","el","clientWidth","scrollWidth","RootRef","rootRef","headCell","isFirstColumn","headCellWithRange","headLabel","labelWrapper","rangeLabel","tooltipValue","useNumberCellStyles","barColor","colorBarContainer","numberContainer","headCellData","headIndex","formattedMaxValue","hasRange","isOverflowing","setIsOverflowing","labelElement","overflowed","DefaultHeadCellRenderer","columnsHeaders","withTableContext","columnData","cellClassName","labelRenderer","LabelRenderer","hasCustomRenderer","utils","formattedValue","ColorBar","tableContainer","cellBorder","getExtendedLabel","columnsOptions","basicTableRef","tableClasses","headData","columnOptions","resizable","headCellRenderer","HeadCellRenderer","rowCellValueRenderer","LabelCellRenderer","initialWidth","NumberCellValueRenderer","context","BasicTable","columnsData","rowsData","headRowHeight","getRowCellHeight","defaultColumnWidth","defaultColumnMinWidth","hoverStateEnabled","layoutItemContent","customComparator","contentChildren","setSortDirection","setSortField","comparator","defaultComparator","handleSort","field","toggleSortOrder","sortedData","sorting","order","onSort","TotalInfo","totalProfiles","invalidProfiles","totalInfo","dvfData","dvfErrorCode","dvfsReload","getNoDataStatus","getEntityLevelValidationChartData","noDataType","dvfUris","invalidProfilesCount","setInvalidProfilesCount","getTotals","useInvalidProfiles","dvfUri","getValidationSearchState","dataKeys","functionId","propSatisfies","reloadDvf","stateDvf","acc","without","preparedData","convertDateLabelsInChartData","isSSNType","xAxisLabel","textTransform","XAxisLabel","xCoord","ExpandedValueTooltip","renderXAxis","tickProps","visibleTicksCount","maxTickWidth","showCategories","barCategoryGap","maxBarSize","yTickRenderer","barChart","minPointSize","axisLine","vertical","labelForX","BarTooltip","tooltipPayload","tooltipLabel","propertiesName","chartInfoLabel","chartInfoValue","chartInfoWrapper","chartInfoItem","InfoPanel","isClickable","rectangleProps","barTooltipTitle","getBarChartSettings","showInfoPanel","shape","useLabelStyles","INCLUDE_SOURCE_ICON","getSourceColor","SourceIcon","getCrosswalkAnalysisData","SourceLabelRenderer","getValueDistributionData","onBarSelect","showTopLabel","uniqueDataKeys","mergeAll","getBarLabel","stackId","onMouseOver","getBars","consolidationRateWrapper","ratePercent","tableWithSelectedRow","ConsolidationPercentage","totalCrosswalks","totalEntities","consolidationRate","reltioCleanser","totalCrosswalksBySource","formattedPercent","YAxisTickRenderer","selectedSource","setSelectedSource","barChartData","tableChartData","crosswalk","descend","getConsolidationRateTableData","sortedBarChartData","sortedSourceData","barSelectHandler","rowIndex","rowSelectHandler","rowClickHandler","chartHeight","onRowClick","onRowHover","hoverRowIndex","RDMTranscodeStatus","RDMChartColors","RESOLVED","UNRESOLVED","getRDMChartColors","formatRDMTranscodeData","resolveCount","unresolveCount","getRDMTranscodeFilter","rdmTranscodeStatus","getRDMTranscodeSearchState","setData","getRDMData","isRDMLoolupResolve","loadRDMChartData","useRDMChartDataRequest","ViewsFactory","getComponent","isFullscreen","onToggleFullscreen","MONTH_DISTRIBUTION","DAY_OF_WEEK_DISTRIBUTION","DAY_OF_MONTH_DISTRIBUTION","DQDashboardLayoutItem","layoutItemConfig","ResizeComponent","reltioGridLayoutToStaticLayout","DEFAULT_LAYOUT_OPTIONS","cols","rowHeight","memo","layoutOptions","staticLayout","ReltioGridLayout","LayoutItem","warning","errorIcon","scrollTopShadow","perspectiveView","overflowX","attributeLevelWrapper","navigationWrapper","headerRightSide","periodSelector","flexBasis","paper","input","inputRoot","dropdownIndicator","layoutRoot","customAttributeLayouts","layoutsByDataLevel","layouts","timeRangeAvailable","chartDataType","customLayouts","defaultLayouts","mergedLayoutsByType","mergeLeft","getLayoutByAttributeType","uniqBy","getViewsByDataType","getAttributeLevelViews","viewsByDataLevel","attributeLevelMetrics","breadcrumb","onChange","Breadcrumbs","separator","NavigateNext","handleChangeDataLevel","getPagePartWidth","pagePartIndex","getPageIndexes","transitionTime","pagesWrapper","pagesCount","page","pages","startSliding","endSliding","TRANSITION_TIMEOUT_MS","savedPage","setSavedPage","setTimeout","currentPageIndexes","pagesSettings","allWidth","pagesettings","fixedWidth","pagePart","partWidth","calculatePagePartsWidth","pageIndexes","prevPageIndexes","leftPagesIndexes","getLeftPageOffset","showComponent","styleWidth","minCurrentIndex","maxCurrentIndex","pageSettings","indexPage","getPagePartStyleWidth","entityLevelBar","writingMode","expandButton","expandButtonText","showEntityLevel","expandButtonTitle","getAttrTypeFromItem","getFirstSimpleDetailedAttrType","isComplexAttribute","isImage","not","filterDetailedAttrTypeByFieldName","getFilterOptionsByGroup","EmptinessFilterValue","noDataFilterOptions","SHOW_EMPTY","filterItemsByEmptiness","firstEmptinessOption","filterValidDetailsOptions","validOptionValues","getFieldNameFromItem","filterItemsByDetails","detailsOptions","filteredNestedFieldNames","both","getFilteredNestedFieldNames","startsWith","getAtrributeFieldNames","detailIcon","activeIcon","fillRateData","fillRateState","iconsWrapper","reverse","barPart","inactiveBarPart","levelLineColor","linesWrapper","horizontalLine","parentLine","lastLevel","lastLevelSelected","isLastLevelItem","isCollapsed","isSelected","drawLine","range","getLevelsRange","Marginator","listItem","selectedItem","clickableItem","marginWrapper","parentAttributeLabel","detailsIcon","collapseIcon","iconLoader","iconsLoaderWrapper","iconLoaderWrapper","fillRateLineLoader","noData","noDataLabel","selected","onCollapse","noop","isLoading","hasFillRate","CollapseIcon","ArrowRightIcon","ArrowDropDownIcon","ListItem","times","searchWrapper","filterByDetails","searchInput","filledInput","menu","filterIcon","filterIconFilterApplied","filterIconWrapper","filterIconWrapperActive","filterIconWrapperSelected","dropdownMenuTitle","option","isActive","typeIconWrapper","valueContainer","counter","optionLabel","groupLabel","actionsContainer","clearAllButton","count","showCounter","MenuItem","Checkbox","checked","containsOption","withoutOption","optionIndex","remove","defaultFilterOptions","defaultFilterText","onChangeFilterText","onChangeFilterOptions","anchorEl","setAnchorEl","selectedFilterOptions","setSelectedFilterOptions","valueInFilterTextInput","setValueInFilterTextInput","filterOptionsGroups","allValidFilterOptions","getValidFilterOptions","closeFilter","handleOptionChange","hasSelectedOptions","isPopupOpen","indicatorClassname","indicatorIconClassname","SearchInput","autofocus","initialValue","placeholder","event","currentTarget","FilterList","Popover","open","onClose","anchorOrigin","horizontal","transformOrigin","PaperProps","itemCount","listWrapper","loadingAnimation","animation","columnsTitle","gridGap","gridTemplateColumns","borderBottom","loaderWrapper","onAttributesListChange","defaultFieldName","disableAttributeSelection","listRef","setFilterText","collapsedFieldNames","setCollapsedFieldNames","selectedFieldName","setSelectedFieldName","setFillRates","dvfState","attrTypeItems","collectFilteredAttributeItems","itemsWithDetails","setItemsWithDetails","getEntityTypeMatchAttributes","reference","useAttrTypeDetails","attributeFieldNames","memoizedAttributeFieldNames","initialFillRates","fillRatesState","setFillRateData","loadFillRateData","e","useFillRateRequest","fillRateFromChartsData","fillRateForSelectedAttribute","isDVFLoaded","isFillRateLoaded","filteredItems","filteredByEmptinessItems","detailsFilterOptions","getDetailsOptionCount","getDetailsOptions","visibleItems","collapsedFieldName","rejectCollapsedItemsChildren","countAttrTypes","handleAttrTypeDetailsChange","selectedDetailedAttributeType","getDetailedAttrTypeByFieldName","scrollTo","indexOfSelectedFieldName","getIndexByFieldName","scrollToItem","handleScroll","scrollOffset","currentBorderTop","borderTop","renderAttribute","getFillRateByAttributeType","showNoData","itemData","itemSize","onScroll","MEDIUM","LARGE","hasRDMLookup","isAttrTreeHasRDMLookup","checkEntityTypeHasRDMLookup","currentRDMLookupState","getEntityLevelViews","selectRoot","outline","select","selectValue","arrowIcon","optionRoot","dataReltioOptionId","classesProps","selectProps","renderCount","mergeClasses","outlined","Select","MenuProps","getContentAnchorEl","list","renderValue","autoWidth","entityCount","radius","EmptyState","LoadingIcon","setTick","useReloadAllFacets","intervalId","setInterval","timer","clearInterval","isValid","fromNow","RefreshIcon","saveState","isAvailableEntityType","useEntityTypes","setEntityTypeUri","entityCountRequestState","setDataLevel","selectedEntityType","consoleLink","setConsoleLink","setDVFConfigLink","servicesPath","environment","getConsoleApps","response","apps","insert","useDvfConfigLink","setDvfs","setErrorCode","dvfPath","env","canUserReadDVF","functions","loadDVFs","getDVF","useDVF","dvfContext","dqDashboardSavedState","isSavedStateLoaded","isPermissionsRequestFinished","getEntityType","isEntityTypeExists","sortedEntityTypesWithCount","defaultPeriod","Array","isArray","saveStateHandler","saveStateDebounce","fn","lastParams","params","startParams","clearTimeout","useDebounceFunction","newSavedState","getNewSavedState","sortWith","sortEntityTypesWithCount","handleSetEntityTypeByUri","showDashboard","showContent","showTimeRange","dateRangeEditorValue","getPeriodValue","DateRangeEditor","getDateRangeOptions","TextFieldProps","InputProps","disableUnderline","DateRangePickerProps","maxDate","startOf","toDate","ATTRIBUTE_LIST_WIDTH","dqDashboardTheme","createMuiTheme","generateClassName","createGenerateClassName","productionPrefix","disableGlobal","store","getSavedStatePromisified","promisifyCallback","MuiPickersUtilsProvider","MomentUtils","StylesProvider"],"sourceRoot":""}
|