@reltio/remotes 1.4.1600 → 1.4.1602
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/1039.js +1 -1
- package/1146.js +1 -1
- package/1148.js +1 -1
- package/1148.js.map +1 -1
- package/1334.js +1 -1
- package/1425.js +1 -1
- package/1425.js.map +1 -1
- package/1572.js +2 -0
- package/1572.js.map +1 -0
- package/1584.js +1 -1
- package/1584.js.map +1 -1
- package/1664.js +1 -1
- package/1707.js +1 -1
- package/1790.js +1 -1
- package/1840.js +1 -1
- package/1840.js.map +1 -1
- package/1946.js +1 -1
- package/1946.js.map +1 -1
- package/2066.js +1 -1
- package/2066.js.map +1 -1
- package/2201.js +1 -1
- package/2400.js +1 -1
- package/2463.js +1 -1
- package/2463.js.map +1 -1
- package/2579.js +1 -1
- package/2641.js +1 -1
- package/2641.js.map +1 -1
- package/2775.js +1 -1
- package/3096.js +1 -1
- package/3123.js +1 -1
- package/3348.js +1 -1
- package/3358.js +1 -1
- package/3358.js.map +1 -1
- package/3383.js +1 -1
- package/3383.js.map +1 -1
- package/3424.js +1 -1
- package/3424.js.map +1 -1
- package/3463.js +1 -1
- package/3469.js +1 -1
- package/3538.js +1 -1
- package/3538.js.map +1 -1
- package/356.js +1 -1
- package/3603.js +1 -1
- package/3603.js.map +1 -1
- package/3875.js +1 -1
- package/3875.js.map +1 -1
- package/3879.js +1 -1
- package/3902.js +1 -1
- package/3902.js.map +1 -1
- package/3926.js +1 -1
- package/3926.js.map +1 -1
- package/4212.js +1 -1
- package/4390.js +1 -1
- package/4390.js.map +1 -1
- package/4426.js +1 -1
- package/4426.js.map +1 -1
- package/4703.js +1 -1
- package/4703.js.map +1 -1
- package/4806.js +1 -1
- package/4826.js +1 -1
- package/50.js +1 -1
- package/5108.js +1 -1
- package/5108.js.map +1 -1
- package/5171.js +1 -1
- package/5225.js +2 -0
- package/5225.js.map +1 -0
- package/527.js +1 -1
- package/5617.js +1 -1
- package/584.js +1 -1
- package/6020.js +1 -1
- package/6287.js +1 -1
- package/6287.js.map +1 -1
- package/6606.js +1 -1
- package/6606.js.map +1 -1
- package/673.js +1 -1
- package/673.js.map +1 -1
- package/6799.js +1 -1
- package/68.js +1 -1
- package/6844.js +1 -1
- package/6853.js +1 -1
- package/6860.js +1 -1
- package/6903.js +1 -1
- package/7293.js +1 -1
- package/735.js +1 -1
- package/7422.js +1 -1
- package/7422.js.map +1 -1
- package/7436.js +1 -1
- package/764.js +1 -1
- package/764.js.map +1 -1
- package/7829.js +1 -1
- package/7896.js +1 -1
- package/8075.js +1 -1
- package/820.js +1 -1
- package/8207.js +1 -1
- package/8322.js +1 -1
- package/8360.js +1 -1
- package/8360.js.map +1 -1
- package/8565.js +1 -1
- package/8741.js +1 -1
- package/8741.js.map +1 -1
- package/9016.js +1 -1
- package/9251.js +1 -1
- package/9251.js.map +1 -1
- package/9283.js +1 -1
- package/9283.js.map +1 -1
- package/9309.js +1 -1
- package/9328.js +1 -1
- package/9397.js +1 -1
- package/9397.js.map +1 -1
- package/9470.js +1 -1
- package/9622.js +1 -1
- package/9622.js.map +1 -1
- package/9719.js +1 -1
- package/9736.js +1 -1
- package/9736.js.map +1 -1
- package/9854.js +1 -1
- package/9854.js.map +1 -1
- package/9861.js +1 -1
- package/987.js +1 -1
- package/9960.js +1 -1
- package/9960.js.map +1 -1
- package/main.js +1 -1
- package/package.json +1 -1
- package/remoteEntry.js +1 -1
- package/remoteEntry.js.map +1 -1
- package/7056.js +0 -2
- package/7056.js.map +0 -1
- package/9383.js +0 -2
- package/9383.js.map +0 -1
package/7422.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"7422.js","mappings":"soBAWO,MAAMA,EAAsB,IAAkC,IAAjC,OAACC,EAAD,IAASC,EAAT,OAAcC,GAAmB,EACjE,OAAOC,EAAAA,EAAAA,cAAYC,UACf,MAAMC,GAAeC,EAAAA,EAAAA,GAA4BN,GAC3CO,QAAaC,EAAAA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AAA,cAAoC,IAExED,EAAqB1G,YAAc","sources":["webpack://@reltio/remotes/../components/src/components/activityLog/hooks/useActivitiesLoader.ts","webpack://@reltio/remotes/../components/src/components/charts/BarChart/BarChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/BarChart/getBarChartSettings.ts","webpack://@reltio/remotes/../components/src/components/charts/hooks/useTooltipState.ts","webpack://@reltio/remotes/../components/src/components/charts/BubbleChart/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/BubbleChart/BubbleChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/BubbleChart/helpers.ts","webpack://@reltio/remotes/../components/src/components/charts/BubbleChart/useBubbles.ts","webpack://@reltio/remotes/../components/src/components/charts/LineChart/LineChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/LineChart/getLineChartSettings.ts","webpack://@reltio/remotes/../components/src/components/charts/MapChart/Legend/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/MapChart/Legend/Legend.tsx","webpack://@reltio/remotes/../components/src/components/charts/MapChart/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/MapChart/MapChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/MapChart/useGeography.ts","webpack://@reltio/remotes/../components/src/components/charts/CloudChart/useCloud.ts","webpack://@reltio/remotes/../components/src/components/charts/CloudChart/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/CloudChart/CloudChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/ChartsFactory.js","webpack://@reltio/remotes/../components/src/components/charts/CustomLegend/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/CustomLegend/CustomLegend.tsx","webpack://@reltio/remotes/../components/src/components/charts/CustomLegend/getLegendProps.tsx","webpack://@reltio/remotes/../components/src/components/charts/CustomTooltip/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/CustomTooltip/CustomTooltip.tsx","webpack://@reltio/remotes/../components/src/components/charts/HOCs/withPercents.tsx","webpack://@reltio/remotes/../components/src/components/charts/ActiveShape/ActiveShape.tsx","webpack://@reltio/remotes/../components/src/components/charts/PieChart/PieChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/cell-renderers/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/cell-renderers/HeadCellRenderer.tsx","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/cell-renderers/AttributeCellRenderer.tsx","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/cell-renderers/NumberCellValueRenderer.tsx","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/TableWithBars.tsx","webpack://@reltio/remotes/../components/src/components/charts/TreeChart/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/TreeChart/TreeChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/hooks/useClickableStyle.ts","webpack://@reltio/remotes/../components/src/contexts/ReloadFacetContext/index.tsx","webpack://@reltio/remotes/../components/src/contexts/SearchFiltersContext/index.ts"],"sourcesContent":["import {useCallback} from 'react';\nimport {ActivitiesFilter} from '../types';\nimport {getActivities, getActivitiesTotal} from '@reltio/mdm-sdk';\nimport {buildActivitiesFilterString} from '../utils/filters';\n\ntype Props = {\n filter: ActivitiesFilter;\n max: number;\n offset: number;\n};\n\nexport const useActivitiesLoader = ({filter, max, offset}: Props) => {\n return useCallback(async () => {\n const filterString = buildActivitiesFilterString(filter);\n const data = await getActivities({filter: filterString, max, offset});\n const {total} = await getActivitiesTotal({filter: filterString});\n return {data, total};\n }, [filter, max, offset]);\n};\n","import React from 'react';\nimport {Bar, Rectangle, BarChart as BarChartWidget, CartesianGrid, Tooltip, XAxis, YAxis} from 'recharts';\nimport {BarChartOptions, ChartProps} from '../types';\nimport getBarChartSettings from './getBarChartSettings';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\ntype BarChartProps = ChartProps & {\n options?: BarChartOptions;\n};\n\nconst BarChart = ({width, height, data, options = {}, onItemClick}: BarChartProps) => {\n const {barChart, cartesianGrid, bar, tooltip, xAxis, yAxis} = getBarChartSettings(options);\n const onBarClick = onItemClick && (({group}) => onItemClick(group));\n const clickable = useClickableStyle(onBarClick);\n return (\n <BarChartWidget width={width} height={height} data={data} {...barChart}>\n <CartesianGrid {...cartesianGrid} />\n <Tooltip content={<CustomTooltip />} {...tooltip} />\n <Bar {...bar} shape={<Rectangle className={clickable} />} onClick={onBarClick} />\n <XAxis {...xAxis} />\n <YAxis {...yAxis} />\n </BarChartWidget>\n );\n};\n\nexport default BarChart;\n","import {BarChartProps, BarProps, CartesianGridProps, TooltipProps, XAxisProps, YAxisProps} from 'recharts';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\nimport {BarChartOptions} from '../types';\n\ntype BarChartSettings = {\n barChart: BarChartProps;\n bar: BarProps;\n xAxis: XAxisProps;\n yAxis: YAxisProps;\n cartesianGrid: CartesianGridProps;\n tooltip: TooltipProps;\n};\n\nconst getBarChartSettings = ({margin, isHorizontal, isLabelRotated}: BarChartOptions): BarChartSettings => {\n return {\n barChart: {\n layout: isHorizontal ? 'vertical' : 'horizontal',\n barCategoryGap: '30%',\n margin: margin\n },\n bar: {\n dataKey: 'value',\n fill: isHorizontal ? '#9FC3FF' : '#0072CE'\n },\n xAxis: {\n type: isHorizontal ? 'number' : 'category',\n dataKey: isHorizontal ? '' : 'label',\n tick: {\n fill: '#000',\n opacity: '0.54'\n },\n angle: isLabelRotated ? -45 : 0,\n textAnchor: isLabelRotated ? 'end' : 'middle',\n stroke: '#666'\n },\n yAxis: {\n dataKey: isHorizontal ? 'label' : '',\n type: isHorizontal ? 'category' : 'number',\n tick: {\n fill: '#000',\n opacity: isHorizontal ? '0.87' : '0.54',\n width: isHorizontal ? 150 : undefined\n },\n tickFormatter: formatNumberAsMetric,\n stroke: '#666',\n tickCount: 8,\n mirror: isHorizontal\n },\n cartesianGrid: {\n strokeDasharray: '3 3',\n stroke: '#666',\n strokeOpacity: '0.4',\n vertical: !isHorizontal\n },\n tooltip: {\n cursor: {\n fill: '#000',\n opacity: '0.1'\n }\n }\n };\n};\n\nexport default getBarChartSettings;\n","import {useState, useCallback} from 'react';\nimport {Coordinate, TooltipProps} from 'recharts';\nimport {ChartData} from '../types';\n\nconst useTooltipState = () => {\n const [tooltipState, setTooltipState] = useState<TooltipProps>({active: false});\n const showTooltip = useCallback((data: ChartData, coordinate: Coordinate) => {\n setTooltipState({\n active: true,\n label: data.label,\n coordinate,\n payload: [{value: data.value, payload: data, name: data.label}]\n });\n }, []);\n const hideTooltip = useCallback(() => {\n setTooltipState((state) => ({\n ...state,\n active: false\n }));\n }, []);\n return {tooltipState, showTooltip, hideTooltip};\n};\n\nexport default useTooltipState;\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n bubbleChart: {\n position: 'relative',\n cursor: 'default'\n }\n});\n","import React, {useMemo, useState} from 'react';\nimport {Legend, Margin, Tooltip} from 'recharts';\nimport useBubbles from './useBubbles';\nimport {ChartProps} from '../types';\nimport getLegendProps from '../CustomLegend/getLegendProps';\nimport {adjustRectWithLegend} from './helpers';\nimport withPercents from '../HOCs/withPercents';\nimport {propOr} from 'ramda';\nimport {getChartItemColor} from '@reltio/mdm-sdk';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport useTooltipState from '../hooks/useTooltipState';\n\nimport {useStyles} from './styles';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\ntype Props = ChartProps & {\n options?: {\n showLegend?: boolean;\n margin?: Margin;\n };\n};\n\nexport const BubbleChart = ({width, height, data, options = {}, onItemClick}: Props) => {\n const styles = useStyles();\n const {showLegend = true, margin} = options;\n\n const initialRect = {\n x: propOr(0, 'left', margin),\n y: propOr(0, 'top', margin),\n width: width - propOr(0, 'left', margin) - propOr(0, 'right', margin),\n height: height - propOr(0, 'top', margin) - propOr(0, 'bottom', margin)\n };\n const initialLegendProps = getLegendProps(width);\n const [legendBox, setLegendBox] = useState({width: 0, height: 0});\n\n const {rect, legendProps} = adjustRectWithLegend(initialRect, initialLegendProps, legendBox);\n\n const bubbles = useBubbles({data, width: rect.width, height: rect.height});\n const {tooltipState, showTooltip, hideTooltip} = useTooltipState();\n\n const clickable = useClickableStyle(onItemClick);\n\n const circles = useMemo(\n () =>\n bubbles.map((bubble) => {\n const cx = rect.x + bubble.x;\n const cy = rect.y + bubble.y;\n return (\n <circle\n key={bubble.data.label}\n cx={cx}\n cy={cy}\n r={bubble.r}\n onMouseEnter={() => showTooltip(bubble.data, {x: cx, y: cy})}\n onMouseLeave={() => hideTooltip()}\n onClick={onItemClick && (() => onItemClick(bubble.data.group))}\n fill={getChartItemColor(bubble.data.label)}\n className={clickable}\n >\n <animate attributeName={'r'} from={0} to={bubble.r} dur=\"0.5s\" />\n </circle>\n );\n }),\n [bubbles, hideTooltip, rect.x, rect.y, showTooltip, onItemClick, clickable]\n );\n\n return (\n <div className={styles.bubbleChart} style={{width, height}}>\n <svg width={width} height={height}>\n {circles}\n </svg>\n {showLegend && (\n <Legend\n {...legendProps}\n payload={(data || []).map((item) => ({\n id: item.label,\n type: 'square',\n color: getChartItemColor(item.label),\n value: `${item.label} (${item.percent}%)`\n }))}\n chartWidth={width}\n chartHeight={height}\n margin={margin}\n onBBoxUpdate={setLegendBox}\n />\n )}\n <Tooltip viewBox={rect} content={<CustomTooltip />} {...tooltipState} />\n </div>\n );\n};\n\nexport default withPercents(BubbleChart);\n","import {LegendProps, ViewBox} from 'recharts';\n\nconst adjustRectWithLegend = (rect: ViewBox, legendProps: LegendProps, legendBox: ViewBox) => {\n const {layout} = legendProps;\n\n if (layout === 'vertical') {\n return {rect: {...rect, width: rect.width - legendBox.width}, legendProps};\n }\n\n if (layout === 'horizontal') {\n return {\n rect: {...rect, height: rect.height - legendBox.height},\n legendProps: {...legendProps, width: rect.width}\n };\n }\n\n return {rect, legendProps};\n};\n\nexport {adjustRectWithLegend};\n","import {useMemo} from 'react';\nimport {hierarchy, pack} from 'd3-hierarchy';\nimport {ChartData} from '../types';\n\ntype Props = {\n width: number;\n height: number;\n data: ChartData[];\n};\n\nexport type Bubble = {\n data: ChartData;\n r: number;\n x: number;\n y: number;\n};\n\nconst useBubbles = ({data, width, height}: Props): Bubble[] => {\n return useMemo(() => {\n if (width === 0 || height === 0) {\n return [];\n }\n\n const bubblesLayout = pack().size([width, height]).padding(2);\n\n const bubblesData = hierarchy({children: data})\n .sum((d) => d.value)\n .sort((a, b) => b.value - a.value);\n\n return bubblesLayout(bubblesData).leaves();\n }, [data, height, width]);\n};\n\nexport default useBubbles;\n","import React from 'react';\nimport {ChartProps, LineChartOptions} from '../types';\nimport {CartesianGrid, Dot, Line, LineChart as LineChartWidget, Tooltip, XAxis, YAxis} from 'recharts';\nimport getLineChartSettings from './getLineChartSettings';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\nconst CustomDot = ({payload, onClick, ...otherProps}: any) => {\n const clickable = useClickableStyle(onClick);\n return (\n <Dot\n className={clickable}\n payload={payload}\n onClick={onClick && (() => onClick(payload.group))}\n {...otherProps}\n />\n );\n};\n\ntype LineChartProps = ChartProps & {\n options?: LineChartOptions;\n};\n\nconst LineChart = ({width, height, data, options = {}, onItemClick}: LineChartProps) => {\n const {cartesianGrid, tooltip, xAxis, yAxis, lineChart, line} = getLineChartSettings(options);\n return (\n <LineChartWidget width={width} height={height} data={data} {...lineChart}>\n <CartesianGrid {...cartesianGrid} />\n <XAxis {...xAxis} />\n <YAxis {...yAxis} />\n <Tooltip content={<CustomTooltip />} {...tooltip} />\n <Line\n {...line}\n activeDot={<CustomDot {...(line.activeDot as Record<string, unknown>)} onClick={onItemClick} />}\n />\n </LineChartWidget>\n );\n};\n\nexport default LineChart;\n","import {CartesianGridProps, LineChartProps, LineProps, TooltipProps, XAxisProps, YAxisProps} from 'recharts';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\nimport {LineChartOptions} from '../types/LineChartOptions';\n\ntype LineChartSettings = {\n lineChart: LineChartProps;\n xAxis: XAxisProps;\n yAxis: YAxisProps;\n cartesianGrid: CartesianGridProps;\n tooltip: TooltipProps;\n line: LineProps;\n};\n\nconst getLineChartSettings = ({margin, isLabelRotated}: LineChartOptions): LineChartSettings => {\n return {\n lineChart: {\n layout: 'horizontal',\n margin: margin\n },\n xAxis: {\n type: 'category',\n dataKey: 'label',\n tick: {\n fill: '#000',\n opacity: '0.54'\n },\n angle: isLabelRotated ? -45 : 0,\n textAnchor: isLabelRotated ? 'end' : 'middle',\n stroke: '#666'\n },\n yAxis: {\n dataKey: '',\n type: 'number',\n tick: {\n fill: '#000',\n opacity: '0.54',\n width: undefined\n },\n tickFormatter: formatNumberAsMetric,\n stroke: '#666',\n tickCount: 8\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 stroke: '#4BAFFF',\n strokeWidth: 3,\n dot: {\n strokeWidth: 2,\n r: 5\n },\n activeDot: {\n strokeWidth: 2,\n r: 5,\n stroke: '#4BAFFF'\n }\n }\n };\n};\n\nexport default getLineChartSettings;\n","import {makeStyles} from '@mui/styles';\n\ntype StylesProps = {\n colors: string[];\n width: number;\n};\n\nconst barWidth = 15;\n\nexport const useStyles = makeStyles((theme) => ({\n legendContainer: ({width}: StylesProps) => ({\n width: `${width}px`,\n top: '5%',\n height: '90%',\n position: 'relative'\n }),\n alignTop: {\n top: 0\n },\n alignBottom: {\n bottom: 0\n },\n legendBar: ({colors}: StylesProps) => ({\n background: `linear-gradient(to top, ${colors.join(', ')})`,\n width: `${barWidth}px`,\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0\n }),\n legendLabel: ({width}: StylesProps) => ({\n position: 'absolute',\n fontSize: '13px',\n lineHeight: '15px',\n fontWeight: 'normal',\n color: theme.palette.text.primary,\n width: `${width - barWidth}px`,\n textAlign: 'right',\n right: `${barWidth}px`,\n paddingRight: '10px',\n boxSizing: 'border-box',\n overflowWrap: 'break-word'\n })\n}));\n","import React from 'react';\nimport Typography from '@mui/material/Typography';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\nimport classnames from 'classnames';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n minValue: number;\n maxValue: number;\n colors: string[];\n width: number;\n};\n\nconst Legend = ({minValue, maxValue, colors, width}: Props) => {\n const styles = useStyles({\n colors,\n width\n });\n\n return (\n <div className={styles.legendContainer}>\n <Typography className={classnames(styles.legendLabel, styles.alignTop)}>\n {formatNumberAsMetric(maxValue)}\n </Typography>\n <div className={styles.legendBar} />\n <Typography className={classnames(styles.legendLabel, styles.alignBottom)}>\n {formatNumberAsMetric(minValue)}\n </Typography>\n </div>\n );\n};\n\nexport default Legend;\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n mapChart: {\n position: 'relative',\n cursor: 'default',\n display: 'flex'\n },\n geography: {\n '&:focus': {\n outline: 'none'\n }\n }\n});\n","import React, {useMemo, useCallback} from 'react';\nimport withPercents from '../HOCs/withPercents';\nimport {ChartProps} from '../types';\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport {Geographies, Geography, MapProvider} from 'react-simple-maps';\nimport {scaleLog} from 'd3-scale';\nimport * as d3Geo from 'd3-geo';\nimport {feature} from 'topojson-client';\nimport useGeography from './useGeography';\nimport {pluck} from 'ramda';\nimport Legend from './Legend/Legend';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {Tooltip} from 'recharts';\nimport useTooltipState from '../hooks/useTooltipState';\nimport classnames from 'classnames';\nimport {useStyles} from './styles';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\ntype Props = ChartProps & {\n options?: {\n geoUrl?: string;\n projection?: string;\n geoIdName?: string;\n showLegend?: boolean;\n };\n};\n\nconst USA_MAP = 'https://s3.amazonaws.com/reltio-ui-files/map_resources/us-albers.json';\nconst MAP_COLORS = ['#CDE0FE', '#0160AD'];\nexport const LEGEND_WIDTH = 75;\n\nexport const MapChart = ({data, width, height, options, onItemClick}: Props) => {\n const styles = useStyles();\n\n const {geoUrl, geoIdName, showLegend = true} = options || {};\n const values = pluck('value', data);\n const minValue = Math.min(...values);\n const maxValue = Math.max(...values);\n\n const mapWidth = width < LEGEND_WIDTH ? 0 : width - (showLegend ? 1 : 0) * LEGEND_WIDTH;\n const colorScale = scaleLog().domain([minValue, maxValue]).range(MAP_COLORS);\n\n const geography = useGeography(geoUrl || USA_MAP);\n\n const getProjectionFunc = useCallback(\n (projection: string) => {\n const geoFunc = (projection && d3Geo[projection]) || d3Geo['geoEqualEarth'];\n const geoObj = geography.objects && geography.objects[Object.keys(geography.objects)[0]];\n const featureObj = geography.type === 'FeatureCollection' ? geography : feature(geography, geoObj);\n return geoFunc().fitSize([mapWidth, height], featureObj);\n },\n [geography, height, mapWidth]\n );\n\n const projection = geoUrl ? options.projection : 'geoAlbersUsa';\n const projectionFunc = useMemo(\n () => (geography ? getProjectionFunc(projection) : undefined),\n [geography, getProjectionFunc, projection]\n );\n\n const {tooltipState, showTooltip, hideTooltip} = useTooltipState();\n const clickable = useClickableStyle(onItemClick);\n\n return (\n <div className={styles.mapChart} style={{width, height}}>\n <MapProvider width={mapWidth} height={height} projection={projectionFunc} projectionConfig={{}}>\n <svg width={mapWidth} height={height} viewBox={`0 0 ${mapWidth} ${height}`} className={'rsm-svg'}>\n <Geographies geography={geography}>\n {({geographies}) => {\n return geographies.map((geo) => {\n const geoId = geo.properties[geoIdName || 'name'];\n const geoLabel = geo.properties.name;\n const cur = data.find(({group}) => group === geoId);\n return (\n <Geography\n key={geo.rsmKey}\n geography={geo}\n fill={cur ? colorScale(cur.value) : '#EEE'}\n stroke={'#FFF'}\n className={classnames(styles.geography, clickable)}\n onMouseEnter={(event) => {\n const data = cur || {label: geoLabel, value: 0, percent: 0, group: geoId};\n const mapRect = (\n event.target as Element\n ).parentElement.parentElement.getBoundingClientRect();\n const coordinate = {\n x: event.clientX - mapRect.x,\n y: event.clientY - mapRect.y\n };\n showTooltip(data, coordinate);\n }}\n onMouseLeave={() => hideTooltip()}\n onClick={onItemClick && (() => onItemClick(geoId))}\n />\n );\n });\n }}\n </Geographies>\n </svg>\n </MapProvider>\n {showLegend && <Legend width={LEGEND_WIDTH} minValue={minValue} maxValue={maxValue} colors={MAP_COLORS} />}\n <Tooltip\n viewBox={{\n x: 0,\n y: 0,\n width: mapWidth,\n height\n }}\n content={<CustomTooltip />}\n {...tooltipState}\n />\n </div>\n );\n};\n\nexport default withPercents(MapChart);\n","import {useEffect, useState} from 'react';\n\nconst useGeography = (geoUrl) => {\n const [geography, setGeography] = useState(null);\n\n useEffect(() => {\n fetch(geoUrl)\n .then((res) => {\n if (!res.ok) {\n throw Error(res.statusText);\n }\n return res.json();\n })\n .then((geography) => {\n setGeography(geography);\n })\n .catch((error) => {\n console.warn(`Could not load map ${geoUrl} :`, error);\n });\n }, []); // eslint-disable-line\n\n return geography;\n};\n\nexport default useGeography;\n","import d3Cloud, {Word} from 'd3-cloud';\nimport {useMemo} from 'react';\nimport {ChartData} from '../types';\n\ntype Props = {\n data: ChartData[];\n width: number;\n height: number;\n maxFontSize: number;\n};\n\nexport type CloudWord = Word & {\n data?: ChartData;\n};\n\nconst useCloud = ({data, width, height, maxFontSize = 40}: Props): CloudWord[] =>\n useMemo(() => {\n if (!width || !height) return [];\n const dataValues = data.map((item) => item.value);\n const minDataValue = Math.min(...dataValues);\n const maxDataValue = Math.max(...dataValues);\n\n const minFont = Math.log(12);\n const maxFont = Math.log(maxFontSize);\n const valDiff = maxDataValue - minDataValue;\n const scale = (maxFont - minFont) / (valDiff || 1);\n const layout = d3Cloud()\n .size([width, height])\n .words(\n data.map((item) => ({\n text: item.label,\n size: Math.floor(Math.exp(minFont + scale * (item.value - minDataValue))),\n font: 'Roboto',\n data: item\n }))\n )\n .random(() => 0.5)\n .fontSize((word) => word.size)\n .rotate(0)\n .padding(3)\n .start();\n\n return layout.words();\n }, [data, width, height, maxFontSize]);\n\nexport default useCloud;\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n container: {\n position: 'relative',\n '& text': {\n transition: 'transform .5s',\n userSelect: 'none',\n animation: '$fadeInOpacity ease-in',\n '&:nth-child(4n+1)': {\n animationDuration: '0.25s'\n },\n '&:nth-child(4n+2)': {\n animationDuration: '1.5s'\n },\n '&:nth-child(4n+3)': {\n animationDuration: '1s'\n },\n '&:nth-child(4n+4)': {\n animationDuration: '0.5s'\n }\n }\n },\n\n '@keyframes fadeInOpacity': {\n '0%': {\n opacity: 0\n },\n '100%': {\n opacity: 1\n }\n }\n});\n","import React, {useMemo} from 'react';\nimport {Tooltip, ViewBox} from 'recharts';\nimport useCloud from './useCloud';\nimport {ChartProps} from '../types';\nimport withPercents from '../HOCs/withPercents';\nimport {getChartItemColor} from '@reltio/mdm-sdk';\nimport {useStyles} from './styles';\nimport useTooltipState from '../hooks/useTooltipState';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\ntype Props = ChartProps & {\n options?: {\n maxFontSize?: number;\n };\n};\n\nexport const CloudChart = ({width, height, data, options = {}, onItemClick}: Props) => {\n const {tooltipState, showTooltip, hideTooltip} = useTooltipState();\n const {maxFontSize} = options;\n const styles = useStyles();\n const clickable = useClickableStyle(onItemClick);\n\n const rect: ViewBox = useMemo(\n () => ({\n x: 0,\n y: 0,\n width: width || 0,\n height: height || 0\n }),\n [width, height]\n );\n\n const words = useCloud({data, width, height, maxFontSize});\n\n const cloudWords = useMemo(() => {\n const cx = rect.width / 2;\n const cy = rect.height / 2;\n\n return (\n <g transform={`translate(${cx},${cy})`}>\n {words.map(({text, data, x, y, size}) => (\n <text\n key={text}\n onMouseEnter={() => showTooltip(data, {x: cx + x, y: cy + y})}\n onMouseLeave={() => hideTooltip()}\n fill={getChartItemColor(text)}\n textAnchor=\"middle\"\n transform={`translate(${x},${y})`}\n fontSize={size}\n className={clickable}\n onClick={onItemClick && (() => onItemClick(data.group))}\n >\n {text}\n </text>\n ))}\n </g>\n );\n }, [rect.width, rect.height, words, clickable, onItemClick, showTooltip, hideTooltip]);\n\n return (\n <div className={styles.container}>\n <svg width={rect.width} height={rect.height}>\n {cloudWords}\n </svg>\n <Tooltip offset={5} viewBox={rect} content={<CustomTooltip />} {...tooltipState} />\n </div>\n );\n};\n\nexport default withPercents(CloudChart);\n","import React from 'react';\nimport BarChart from './BarChart/BarChart';\nimport PieChart from './PieChart/PieChart';\nimport TreeChart from './TreeChart/TreeChart';\nimport TableWithBars from './TableWithBars/TableWithBars';\nimport BubbleChart from './BubbleChart/BubbleChart';\nimport LineChart from './LineChart/LineChart';\nimport MapChart from './MapChart/MapChart';\nimport CloudChart from './CloudChart/CloudChart';\nimport {ChartTypes} from '@reltio/mdm-sdk';\n\nexport default class ChartsFactory {\n static build(chartType, props = {}) {\n switch (chartType) {\n case ChartTypes.BAR:\n return <BarChart {...props} />;\n case ChartTypes.DONUT:\n return <PieChart {...props} isDonut />;\n case ChartTypes.PIE:\n return <PieChart {...props} />;\n case ChartTypes.TREE:\n return <TreeChart {...props} />;\n case ChartTypes.TABLE:\n return <TableWithBars {...props} />;\n case ChartTypes.BUBBLE:\n return <BubbleChart {...props} />;\n case ChartTypes.LINE:\n return <LineChart {...props} />;\n case ChartTypes.MAP:\n return <MapChart {...props} />;\n case ChartTypes.CLOUD:\n return <CloudChart {...props} />;\n default:\n return <div />;\n }\n }\n}\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n wrapper: {\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n margin: 'auto',\n flexWrap: 'wrap',\n '&.alignRight': {\n display: 'grid',\n gridAutoRows: 'min-content',\n gridTemplateColumns: '1fr',\n '&.isTwoCols': {\n gridTemplateColumns: '1fr 1fr',\n minWidth: '141px',\n maxWidth: '282px'\n }\n }\n },\n item: {\n display: 'flex',\n alignItems: 'baseline',\n '&:not(:last-child)': {\n marginRight: 10\n }\n },\n itemColor: {\n width: 12,\n height: 12,\n marginRight: 10,\n flexShrink: 0\n },\n value: {\n fontSize: '14px',\n lineHeight: '27px',\n letterSpacing: '0.5px'\n }\n});\n","import React from 'react';\nimport {LegendProps} from 'recharts';\nimport classnames from 'classnames';\nimport {useStyles} from './styles';\n\ntype CustomLegendProps = LegendProps & {\n alignRight: boolean;\n};\n\nconst CustomLegend = ({payload, alignRight}: CustomLegendProps) => {\n const isTwoCols = payload.length > 8;\n const styles = useStyles();\n return (\n <div className={classnames(styles.wrapper, {isTwoCols}, {alignRight})}>\n {payload.map((item) => (\n <div key={item.id} className={styles.item}>\n <div style={{background: item.color}} className={styles.itemColor} />\n <span className={styles.value}>{item.value}</span>\n </div>\n ))}\n </div>\n );\n};\n\nexport default CustomLegend;\n","import React from 'react';\nimport {LegendProps} from 'recharts';\nimport CustomLegend from './CustomLegend';\n\nconst getLegendProps = (width: number): LegendProps => {\n const alignRight = width > 550;\n return {\n layout: alignRight ? 'vertical' : 'horizontal',\n align: alignRight ? 'right' : 'center',\n verticalAlign: alignRight ? 'middle' : 'bottom',\n wrapperStyle: {\n display: 'flex',\n overflowY: 'auto',\n maxHeight: alignRight ? '100%' : '50%',\n maxWidth: alignRight ? '50%' : '100%'\n },\n content: <CustomLegend alignRight={alignRight} />\n };\n};\n\nexport default getLegendProps;\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n tooltipWrapper: {\n borderRadius: '4px',\n background: 'rgba(0, 0, 0, 0.54)',\n padding: '6px 8px 7px 8px',\n textAlign: 'center',\n color: '#FFFFFF',\n '& p': {\n fontSize: '12px',\n lineHeight: '14px',\n padding: 0,\n margin: 0\n }\n },\n tooltipTitle: {\n fontWeight: 500\n },\n tooltipValue: {\n fontWeight: 'normal'\n },\n tooltipValueBold: {\n fontWeight: 500\n },\n tooltipPercent: {\n fontWeight: 'normal'\n }\n});\n","import {useStyles} from './styles';\nimport React from 'react';\nimport {TooltipProps} from 'recharts';\nimport {isNil} from 'ramda';\n\nexport const CustomTooltip = ({payload, active}: TooltipProps) => {\n const styles = useStyles();\n const tooltipPayload = payload?.[0]?.payload;\n const localizedValue = tooltipPayload?.localizedValue || tooltipPayload?.value;\n const tooltipLabel = tooltipPayload?.label;\n const percent = tooltipPayload?.percent;\n\n return (\n active && (\n <div className={styles.tooltipWrapper}>\n <p className={styles.tooltipTitle}>{tooltipLabel}</p>\n {isNil(percent) ? (\n <p className={styles.tooltipValue}>Value: {localizedValue}</p>\n ) : (\n <p className={styles.tooltipValueBold}>\n {localizedValue}\n <span className={styles.tooltipPercent}> ({percent}%)</span>\n </p>\n )}\n </div>\n )\n );\n};\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 React from 'react';\nimport {PieLabelRenderProps, Sector, SectorProps} from 'recharts';\n\ntype ActiveShapeProps = PieLabelRenderProps & {\n cx: number;\n cy: number;\n innerRadius: number;\n outerRadius: number;\n};\n\nconst ActiveShape = ({\n cx,\n cy,\n midAngle,\n innerRadius,\n outerRadius,\n startAngle,\n endAngle,\n fill,\n percent,\n value,\n label\n}: ActiveShapeProps) => {\n const RADIAN = Math.PI / 180;\n const sin = Math.sin(-RADIAN * midAngle);\n const cos = Math.cos(-RADIAN * midAngle);\n\n const sx = cx + (outerRadius + 10) * cos;\n const sy = cy + (outerRadius + 10) * sin;\n const mx = cx + (outerRadius + 30) * cos;\n const my = cy + (outerRadius + 30) * sin;\n\n const circleX = mx + (cos >= 0 ? 1 : -1) * 20;\n const circleY = my;\n const textX = circleX + (cos >= 0 ? 1 : -1) * 12;\n const textAnchor = cos >= 0 ? 'start' : 'end';\n const linePath = `M${sx},${sy}L${mx},${my}L${circleX},${circleY}`;\n\n const sectorProps: SectorProps = {\n cx,\n cy,\n innerRadius,\n outerRadius,\n startAngle,\n endAngle,\n fill\n };\n\n return (\n <g>\n <Sector {...sectorProps} />\n <Sector {...sectorProps} innerRadius={outerRadius + 6} outerRadius={outerRadius + 10} />\n <path d={linePath} stroke={fill} fill=\"none\" />\n <circle cx={circleX} cy={circleY} r={2} fill={fill} />\n <text x={textX} y={circleY} textAnchor={textAnchor} fill=\"#444\" fontSize={12} fontWeight={500}>\n {label}\n </text>\n <text x={textX} y={circleY} dy={14} textAnchor={textAnchor} fill=\"#000\" opacity={0.6} fontSize={12}>\n <tspan fontWeight={500}>{value}</tspan>\n <tspan fontWeight={400}>{` (${percent}%)`}</tspan>\n </text>\n </g>\n );\n};\n\nexport default ActiveShape;\n","import React, {useState} from 'react';\nimport {Cell, Legend, Margin, Pie, PieChart as PieChartWidget, Tooltip} from 'recharts';\nimport {getChartItemColor} from '@reltio/mdm-sdk';\nimport {ChartProps} from '../types';\nimport withPercents from '../HOCs/withPercents';\nimport getLegendProps from '../CustomLegend/getLegendProps';\nimport ActiveShape from '../ActiveShape/ActiveShape';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\ntype Props = ChartProps & {\n options?: {\n margin?: Margin;\n showLegend?: boolean;\n showActiveShape?: boolean;\n };\n isDonut?: boolean;\n};\n\nexport const PieChart = ({width, height, data, options = {}, isDonut, onItemClick}: Props) => {\n const {showLegend = true, margin, showActiveShape} = options;\n const [activeId, setActiveId] = useState(-1);\n const onPieEnter = (_, index: number) => setActiveId(index);\n const onPieLeave = () => setActiveId(-1);\n const onPieClick = onItemClick && (({group}) => onItemClick(group));\n const clickable = useClickableStyle(onPieClick);\n\n return (\n <PieChartWidget width={width} height={height} margin={margin}>\n {!showActiveShape && <Tooltip content={<CustomTooltip />} />}\n {showLegend && (\n <Legend\n {...getLegendProps(width)}\n payload={(data || []).map((item) => ({\n id: item.label,\n type: 'square',\n color: getChartItemColor(item.label),\n value: `${item.label} (${item.percent}%)`\n }))}\n />\n )}\n <Pie\n dataKey=\"value\"\n data={data}\n activeIndex={activeId}\n activeShape={showActiveShape ? ActiveShape : undefined}\n onMouseEnter={showActiveShape ? onPieEnter : undefined}\n onMouseLeave={showActiveShape ? onPieLeave : undefined}\n innerRadius={isDonut ? (showActiveShape ? '50%' : '60%') : 0}\n outerRadius={showActiveShape ? '70%' : '80%'}\n onClick={onPieClick}\n >\n {(data || []).map((entry, index) => (\n <Cell key={index} fill={getChartItemColor(entry.label)} className={clickable} />\n ))}\n </Pie>\n </PieChartWidget>\n );\n};\n\nexport default withPercents(PieChart);\n","import {makeStyles} from '@mui/styles';\n\nconst textOverflow = {\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\nexport const useStyles = makeStyles((theme) => ({\n headCell: {\n display: 'flex',\n alignItems: 'center',\n height: '100%',\n '&>div': {\n padding: '0 16px'\n }\n },\n headLabel: {\n color: theme.palette.text.primary,\n fontSize: '12px',\n fontWeight: 500,\n lineHeight: '16px',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n '&:after': textOverflow\n },\n attribute: {\n color: theme.palette.text.primary,\n fontSize: '13px',\n fontWeight: 'normal',\n lineHeight: '15px',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n display: 'flex',\n alignItems: 'center',\n height: '100%',\n padding: '0 16px',\n '&:after': textOverflow\n },\n numberContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n padding: '0 16px',\n height: '100%'\n },\n number: {\n fontSize: '13px',\n lineHeight: '15px',\n fontWeight: 'normal',\n color: theme.palette.text.primary,\n width: '40px',\n flexShrink: 0\n },\n colorBarContainer: {\n position: 'relative',\n width: '100%',\n marginLeft: '16px',\n height: '20px',\n '&>div': {\n opacity: 1,\n backgroundColor: '#0072CE'\n }\n }\n}));\n","import React from 'react';\nimport classnames from 'classnames';\nimport DefaultHeadCellRenderer from 'react-components/dist/Table/DefaultHeadCellRenderer/DefaultHeadCellRenderer';\nimport ExpandedValueTooltip from '../../../ExpandedValueTooltip/ExpandedValueTooltip';\nimport {useStyles} from './styles';\n\ntype HeadCellRendererProps = {\n className?: string;\n headCellData: {\n label: string;\n };\n};\n\nconst HeadCellRenderer = ({className, headCellData, ...otherProps}: HeadCellRendererProps) => {\n const styles = useStyles();\n\n return (\n <div className={classnames(styles.headCell, className)}>\n <DefaultHeadCellRenderer\n {...otherProps}\n headCellData={{\n ...headCellData,\n label: (\n <ExpandedValueTooltip value={headCellData.label}>\n <div className={styles.headLabel}>{headCellData.label}</div>\n </ExpandedValueTooltip>\n )\n }}\n />\n </div>\n );\n};\n\nexport default HeadCellRenderer;\n","import React from 'react';\nimport ExpandedValueTooltip from '../../../ExpandedValueTooltip/ExpandedValueTooltip';\nimport {withTableContext} from '../../../BasicTableView';\nimport classnames from 'classnames';\nimport {useStyles} from './styles';\nimport {useClickableStyle} from '../../hooks/useClickableStyle';\n\ntype Props = {\n value?: string;\n onClick?: () => void;\n};\n\nexport const AttributeCellRenderer = ({value = '', onClick}: Props) => {\n const styles = useStyles();\n const clickable = useClickableStyle(onClick);\n return (\n <ExpandedValueTooltip value={value}>\n <div className={classnames(styles.attribute, clickable)} onClick={onClick}>\n {value}\n </div>\n </ExpandedValueTooltip>\n );\n};\n\nexport default withTableContext(({onItemClick}, {rowValue: {group}}) => {\n return {\n onClick:\n onItemClick &&\n (() => {\n onItemClick(group);\n })\n };\n})(AttributeCellRenderer);\n","import React from 'react';\nimport {isNil} from 'ramda';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\nimport Typography from '@mui/material/Typography';\nimport ColorBar from '../../../ColorBar/ColorBar';\n\nimport {useStyles} from './styles';\n\ntype NumberCellValueRendererProps = {\n value: number;\n columnData: {\n maxValue?: number;\n };\n};\n\nconst NumberCellValueRenderer = ({value, columnData: {maxValue}}: NumberCellValueRendererProps) => {\n const styles = useStyles();\n\n return (\n <div className={styles.numberContainer}>\n <Typography className={styles.number}>{formatNumberAsMetric(value, 9999)}</Typography>\n {!isNil(maxValue) && (\n <div className={styles.colorBarContainer}>\n <ColorBar width={value} maxWidth={maxValue} />\n </div>\n )}\n </div>\n );\n};\n\nexport default NumberCellValueRenderer;\n","import {makeStyles} from '@mui/styles';\n\ntype Dimensions = {\n width: number | string;\n height: number | string;\n};\n\nexport const useStyles = makeStyles({\n tableContainer: ({width, height}: Dimensions) => ({\n height: height,\n width: width,\n display: 'flex',\n flexDirection: 'column'\n }),\n cellBorder: {\n borderLeft: 'none',\n borderRight: 'none'\n }\n});\n","import React, {useMemo} from 'react';\nimport i18n from 'ui-i18n';\nimport {BasicTable} from '../../BasicTableView';\nimport HeadCellRenderer from './cell-renderers/HeadCellRenderer';\nimport AttributeCellRenderer from './cell-renderers/AttributeCellRenderer';\nimport NumberCellValueRenderer from './cell-renderers/NumberCellValueRenderer';\nimport {ChartProps, TableWithBarsOptions} from '../types';\n\nimport {useStyles} from './styles';\n\ntype TableWithBarsProps = ChartProps & {\n options?: TableWithBarsOptions;\n basicTableRef?: React.MutableRefObject<any> | null;\n};\n\nconst TableWithBars = ({width, height, data, options = {}, basicTableRef, onItemClick}: TableWithBarsProps) => {\n const styles = useStyles({width, height});\n\n const {headers: [labelHeader, valueHeader] = [], showValues = true} = options;\n\n const tableClasses = useMemo(() => ({cellBorder: styles.cellBorder}), [styles]);\n const maxValue = useMemo(() => Math.max(...data.map((item) => item.value)), [data]);\n\n const headData = useMemo(\n () => [\n {\n id: 'label',\n label: labelHeader || i18n.text('Attributes'),\n resizable: false,\n headCellRenderer: HeadCellRenderer,\n rowCellValueRenderer: AttributeCellRenderer,\n initialWidth: width * 0.4\n },\n ...(showValues\n ? [\n {\n id: 'value',\n label: valueHeader || i18n.text('No of Profiles'),\n resizable: false,\n headCellRenderer: HeadCellRenderer,\n rowCellValueRenderer: NumberCellValueRenderer,\n maxValue,\n initialWidth: width * 0.6\n }\n ]\n : [])\n ],\n [maxValue, width, valueHeader, labelHeader, showValues]\n );\n\n const context = useMemo(\n () => ({\n onItemClick\n }),\n [onItemClick]\n );\n\n return (\n <div className={styles.tableContainer}>\n <BasicTable\n columnsData={headData}\n rowsData={data}\n headRowHeight={48}\n getRowCellHeight={null}\n classes={tableClasses}\n defaultColumnWidth={100}\n defaultColumnMinWidth={100}\n ref={basicTableRef}\n context={context}\n />\n </div>\n );\n};\n\nexport default TableWithBars;\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n treeBlock: {\n fill: '#6BAED6',\n stroke: '#fff',\n strokeOpacity: 1\n },\n treeLabel: {\n fill: 'black',\n fontSize: '14px',\n letterSpacing: 0\n }\n});\n","import React, {useRef} from 'react';\nimport {Text, Tooltip, Treemap} from 'recharts';\nimport {ChartProps} from '../types';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {useStyles} from './styles';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\nimport {nanoid} from 'nanoid';\n\ntype ContentProps = {\n x?: number;\n y?: number;\n width?: number;\n height?: number;\n label?: string;\n group?: string;\n onClick: (group: string) => void;\n};\n\nconst CustomizedContent = ({x, y, width, height, label, onClick, group}: ContentProps) => {\n const styles = useStyles();\n const clickable = useClickableStyle(onClick);\n const clipPathId = useRef(nanoid()).current;\n const strokeWidth = 2;\n return (\n <g className={clickable} onClick={onClick && (() => onClick(group))}>\n <clipPath id={clipPathId}>\n <rect\n x={x + strokeWidth}\n y={y + strokeWidth}\n width={width - strokeWidth * 2}\n height={height - strokeWidth * 2}\n />\n </clipPath>\n <rect x={x} y={y} width={width} height={height} strokeWidth={strokeWidth} className={styles.treeBlock} />\n <Text\n clipPath={`url(#${clipPathId})`}\n textAnchor={'middle'}\n verticalAnchor={'middle'}\n width={width}\n x={x + width / 2}\n y={y + height / 2}\n className={styles.treeLabel}\n >\n {label}\n </Text>\n </g>\n );\n};\n\nconst normalizeValues = (data) => {\n const dataTotal = data.reduce((acc, item) => acc + item.value, 0);\n const threshold = dataTotal / (data.length * 10);\n return data.map((item) => {\n return {\n ...item,\n normalizedValue: item.value < threshold ? threshold : item.value\n };\n });\n};\n\nconst TreeChart = ({data, width, height, onItemClick}: ChartProps) => {\n return (\n <Treemap\n dataKey=\"normalizedValue\"\n nameKey=\"label\"\n content={<CustomizedContent onClick={onItemClick} />}\n data={normalizeValues(data)}\n width={width}\n animationDuration={500}\n height={height}\n >\n <Tooltip content={<CustomTooltip />} />\n </Treemap>\n );\n};\n\nexport default TreeChart;\n","import {makeStyles} from '@mui/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 React, {createContext, useCallback, useContext, useEffect, useState} from 'react';\nimport {RequestStates} from '../../types';\n\nconst ReloadFacetSignalContext = createContext(null);\nconst ReloadFacetActionContext = createContext(null);\n\ntype Props = {\n children: React.ReactNode;\n};\n\nexport const ReloadFacetProvider = ({children}: Props) => {\n const [refreshSignal, setRefreshSignal] = useState<number>(0);\n const refreshAll = useCallback(() => {\n setRefreshSignal((signal) => signal + 1);\n }, [setRefreshSignal]);\n return (\n <ReloadFacetActionContext.Provider value={refreshAll}>\n <ReloadFacetSignalContext.Provider value={refreshSignal}>{children}</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};\n\nexport const useReloadFacet = ({state, reload}: useReloadFacetProps) => {\n const refreshSignal = useContext(ReloadFacetSignalContext);\n\n if (refreshSignal === undefined) {\n throw new Error('useReloadFacet must be used within a ReloadFacetProvider');\n }\n\n useEffect(() => {\n if (state === RequestStates.LOADED || state === RequestStates.ERROR) {\n reload();\n }\n }, [refreshSignal]);\n};\n","import React from 'react';\nimport {SearchFilter} from '@reltio/mdm-sdk';\n\nexport const SearchFiltersContext = React.createContext<SearchFilter[]>([]);\n\nSearchFiltersContext.displayName = 'SearchFiltersContext';\n"],"names":["useActivitiesLoader","filter","max","offset","useCallback","async","filterString","buildActivitiesFilterString","data","getActivities","total","getActivitiesTotal","width","height","options","onItemClick","barChart","cartesianGrid","bar","tooltip","xAxis","yAxis","margin","isHorizontal","isLabelRotated","layout","barCategoryGap","dataKey","fill","type","tick","opacity","angle","textAnchor","stroke","undefined","tickFormatter","formatNumberAsMetric","tickCount","mirror","strokeDasharray","strokeOpacity","vertical","cursor","getBarChartSettings","onBarClick","group","clickable","useClickableStyle","content","CustomTooltip","shape","className","onClick","tooltipState","setTooltipState","useState","active","showTooltip","coordinate","label","payload","value","name","hideTooltip","state","useStyles","makeStyles","bubbleChart","position","withPercents","styles","showLegend","initialRect","x","propOr","y","initialLegendProps","getLegendProps","legendBox","setLegendBox","rect","legendProps","adjustRectWithLegend","bubbles","useMemo","pack","size","padding","bubblesLayout","hierarchy","children","sum","d","sort","a","b","leaves","useBubbles","useTooltipState","circles","map","bubble","cx","cy","key","r","onMouseEnter","onMouseLeave","getChartItemColor","attributeName","from","to","dur","style","item","id","color","percent","chartWidth","chartHeight","onBBoxUpdate","viewBox","CustomDot","otherProps","lineChart","line","strokeWidth","dot","activeDot","getLineChartSettings","theme","legendContainer","top","alignTop","alignBottom","bottom","legendBar","colors","background","join","right","legendLabel","fontSize","lineHeight","fontWeight","palette","text","primary","textAlign","paddingRight","boxSizing","overflowWrap","minValue","maxValue","Typography","classnames","mapChart","display","geography","outline","MAP_COLORS","geoUrl","geoIdName","values","pluck","Math","min","mapWidth","colorScale","scaleLog","domain","range","setGeography","useEffect","fetch","then","res","ok","Error","statusText","json","catch","error","console","warn","useGeography","getProjectionFunc","projection","geoFunc","d3Geo","geoObj","objects","Object","keys","featureObj","feature","fitSize","projectionFunc","MapProvider","projectionConfig","Geographies","geographies","geo","geoId","properties","geoLabel","cur","find","Geography","rsmKey","event","mapRect","target","parentElement","getBoundingClientRect","clientX","clientY","container","transition","userSelect","animation","animationDuration","maxFontSize","words","dataValues","minDataValue","maxDataValue","minFont","log","scale","d3Cloud","floor","exp","font","random","word","rotate","start","useCloud","cloudWords","transform","ChartsFactory","chartType","props","ChartTypes","BarChart","PieChart","isDonut","TreeChart","TableWithBars","wrapper","justifyContent","flexWrap","gridAutoRows","gridTemplateColumns","minWidth","maxWidth","alignItems","marginRight","itemColor","flexShrink","letterSpacing","alignRight","isTwoCols","length","align","verticalAlign","wrapperStyle","overflowY","maxHeight","tooltipWrapper","borderRadius","tooltipTitle","tooltipValue","tooltipValueBold","tooltipPercent","tooltipPayload","localizedValue","tooltipLabel","isNil","enrichDataWithPercents","percents","countPercents","i","Component","WithPercents","dataWithPercents","displayName","midAngle","innerRadius","outerRadius","startAngle","endAngle","RADIAN","PI","sin","cos","mx","my","circleX","circleY","textX","linePath","sectorProps","dy","showActiveShape","activeId","setActiveId","onPieClick","activeIndex","activeShape","ActiveShape","_","index","entry","textOverflow","pointerEvents","headCell","headLabel","whiteSpace","overflow","attribute","numberContainer","flexDirection","number","colorBarContainer","marginLeft","backgroundColor","headCellData","DefaultHeadCellRenderer","ExpandedValueTooltip","withTableContext","rowValue","columnData","ColorBar","tableContainer","cellBorder","borderLeft","borderRight","basicTableRef","headers","labelHeader","valueHeader","showValues","tableClasses","headData","i18n","resizable","headCellRenderer","HeadCellRenderer","rowCellValueRenderer","AttributeCellRenderer","initialWidth","NumberCellValueRenderer","context","BasicTable","columnsData","rowsData","headRowHeight","getRowCellHeight","classes","defaultColumnWidth","defaultColumnMinWidth","ref","treeBlock","treeLabel","CustomizedContent","clipPathId","useRef","nanoid","current","clipPath","verticalAnchor","normalizeValues","threshold","reduce","acc","normalizedValue","nameKey","ReloadFacetSignalContext","createContext","ReloadFacetActionContext","ReloadFacetProvider","refreshSignal","setRefreshSignal","refreshAll","signal","Provider","useReloadAllFacets","useContext","useReloadFacet","reload","RequestStates","SearchFiltersContext","React"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"file":"7422.js","mappings":"uoBAWO,MAAMA,EAAsB,IAAkC,IAAjC,OAACC,EAAD,IAASC,EAAT,OAAcC,GAAmB,EACjE,OAAOC,EAAAA,EAAAA,cAAYC,UACf,MAAMC,GAAeC,EAAAA,EAAAA,GAA4BN,GAC3CO,QAAaC,EAAAA,EAAAA,KAAc,CAACR,OAAQK,EAAcJ,IAAAA,EAAKC,OAAAA,KACvD,MAACO,SAAeC,EAAAA,EAAAA,KAAmB,CAACV,OAAQK,IAClD,MAAO,CAACE,KAAAA,EAAME,MAAAA,KACf,CAACT,EAAQC,EAAKC,M,yTCNrB,MAeA,EAfiB,IAAqE,IAApE,MAACS,EAAD,OAAQC,EAAR,KAAgBL,EAAhB,QAAsBM,EAAU,GAAhC,YAAoCC,GAAgC,EAClF,MAAM,SAACC,EAAD,cAAWC,EAAX,IAA0BC,EAA1B,QAA+BC,EAA/B,MAAwCC,EAAxC,MAA+CC,GCC7B,KAA+E,IAA9E,OAACC,EAAD,aAASC,EAAT,eAAuBC,GAAuD,EACvG,MAAO,CACHR,SAAU,CACNS,OAAQF,EAAe,WAAa,aACpCG,eAAgB,MAChBJ,OAAQA,GAEZJ,IAAK,CACDS,QAAS,QACTC,KAAML,EAAe,UAAY,WAErCH,MAAO,CACHS,KAAMN,EAAe,SAAW,W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iB,GACrD0U,GAAa9X,EAAAA,EAAAA,cAAY,KAC3B6X,GAAkBE,GAAWA,EAAS,MACvC,CAACF,IACJ,OACI,kBAACH,EAAyBM,SAA1B,CAAmCtU,MAAOoU,GACtC,kBAACN,EAAyBQ,SAA1B,CAAmCtU,MAAOkU,GAAgBrS,KAKzD0S,EAAqB,KAC9B,MAAMH,GAAaI,EAAAA,EAAAA,YAAWR,GAE9B,QAAmB3V,IAAf+V,EACA,MAAM,IAAI/M,MAAM,gEAGpB,OAAO+M,GAQEK,EAAiB,IAA0C,IAAzC,MAACtU,EAAD,OAAQuU,GAAiC,EACpE,MAAMR,GAAgBM,EAAAA,EAAAA,YAAWV,GAEjC,QAAsBzV,IAAlB6V,EACA,MAAM,IAAI7M,MAAM,6DAGpBL,EAAAA,EAAAA,YAAU,KACF7G,IAAUwU,EAAAA,EAAAA,QAAwBxU,IAAUwU,EAAAA,EAAAA,OAC5CD,MAEL,CAACR,M,gDC7CD,MAAMU,E,MAAuBC,GAAAA,cAAoC,IAExED,EAAqB1G,YAAc","sources":["webpack://@reltio/remotes/../components/src/components/activityLog/hooks/useActivitiesLoader.ts","webpack://@reltio/remotes/../components/src/components/charts/BarChart/BarChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/BarChart/getBarChartSettings.ts","webpack://@reltio/remotes/../components/src/components/charts/hooks/useTooltipState.ts","webpack://@reltio/remotes/../components/src/components/charts/BubbleChart/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/BubbleChart/BubbleChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/BubbleChart/helpers.ts","webpack://@reltio/remotes/../components/src/components/charts/BubbleChart/useBubbles.ts","webpack://@reltio/remotes/../components/src/components/charts/LineChart/LineChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/LineChart/getLineChartSettings.ts","webpack://@reltio/remotes/../components/src/components/charts/MapChart/Legend/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/MapChart/Legend/Legend.tsx","webpack://@reltio/remotes/../components/src/components/charts/MapChart/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/MapChart/MapChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/MapChart/useGeography.ts","webpack://@reltio/remotes/../components/src/components/charts/CloudChart/useCloud.ts","webpack://@reltio/remotes/../components/src/components/charts/CloudChart/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/CloudChart/CloudChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/ChartsFactory.js","webpack://@reltio/remotes/../components/src/components/charts/CustomLegend/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/CustomLegend/CustomLegend.tsx","webpack://@reltio/remotes/../components/src/components/charts/CustomLegend/getLegendProps.tsx","webpack://@reltio/remotes/../components/src/components/charts/CustomTooltip/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/CustomTooltip/CustomTooltip.tsx","webpack://@reltio/remotes/../components/src/components/charts/HOCs/withPercents.tsx","webpack://@reltio/remotes/../components/src/components/charts/ActiveShape/ActiveShape.tsx","webpack://@reltio/remotes/../components/src/components/charts/PieChart/PieChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/cell-renderers/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/cell-renderers/HeadCellRenderer.tsx","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/cell-renderers/AttributeCellRenderer.tsx","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/cell-renderers/NumberCellValueRenderer.tsx","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/TableWithBars/TableWithBars.tsx","webpack://@reltio/remotes/../components/src/components/charts/TreeChart/styles.ts","webpack://@reltio/remotes/../components/src/components/charts/TreeChart/TreeChart.tsx","webpack://@reltio/remotes/../components/src/components/charts/hooks/useClickableStyle.ts","webpack://@reltio/remotes/../components/src/contexts/ReloadFacetContext/index.tsx","webpack://@reltio/remotes/../components/src/contexts/SearchFiltersContext/index.ts"],"sourcesContent":["import {useCallback} from 'react';\nimport {ActivitiesFilter} from '../types';\nimport {getActivities, getActivitiesTotal} from '@reltio/mdm-sdk';\nimport {buildActivitiesFilterString} from '../utils/filters';\n\ntype Props = {\n filter: ActivitiesFilter;\n max: number;\n offset: number;\n};\n\nexport const useActivitiesLoader = ({filter, max, offset}: Props) => {\n return useCallback(async () => {\n const filterString = buildActivitiesFilterString(filter);\n const data = await getActivities({filter: filterString, max, offset});\n const {total} = await getActivitiesTotal({filter: filterString});\n return {data, total};\n }, [filter, max, offset]);\n};\n","import React from 'react';\nimport {Bar, Rectangle, BarChart as BarChartWidget, CartesianGrid, Tooltip, XAxis, YAxis} from 'recharts';\nimport {BarChartOptions, ChartProps} from '../types';\nimport getBarChartSettings from './getBarChartSettings';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\ntype BarChartProps = ChartProps & {\n options?: BarChartOptions;\n};\n\nconst BarChart = ({width, height, data, options = {}, onItemClick}: BarChartProps) => {\n const {barChart, cartesianGrid, bar, tooltip, xAxis, yAxis} = getBarChartSettings(options);\n const onBarClick = onItemClick && (({group}) => onItemClick(group));\n const clickable = useClickableStyle(onBarClick);\n return (\n <BarChartWidget width={width} height={height} data={data} {...barChart}>\n <CartesianGrid {...cartesianGrid} />\n <Tooltip content={<CustomTooltip />} {...tooltip} />\n <Bar {...bar} shape={<Rectangle className={clickable} />} onClick={onBarClick} />\n <XAxis {...xAxis} />\n <YAxis {...yAxis} />\n </BarChartWidget>\n );\n};\n\nexport default BarChart;\n","import {BarChartProps, BarProps, CartesianGridProps, TooltipProps, XAxisProps, YAxisProps} from 'recharts';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\nimport {BarChartOptions} from '../types';\n\ntype BarChartSettings = {\n barChart: BarChartProps;\n bar: BarProps;\n xAxis: XAxisProps;\n yAxis: YAxisProps;\n cartesianGrid: CartesianGridProps;\n tooltip: TooltipProps;\n};\n\nconst getBarChartSettings = ({margin, isHorizontal, isLabelRotated}: BarChartOptions): BarChartSettings => {\n return {\n barChart: {\n layout: isHorizontal ? 'vertical' : 'horizontal',\n barCategoryGap: '30%',\n margin: margin\n },\n bar: {\n dataKey: 'value',\n fill: isHorizontal ? '#9FC3FF' : '#0072CE'\n },\n xAxis: {\n type: isHorizontal ? 'number' : 'category',\n dataKey: isHorizontal ? '' : 'label',\n tick: {\n fill: '#000',\n opacity: '0.54'\n },\n angle: isLabelRotated ? -45 : 0,\n textAnchor: isLabelRotated ? 'end' : 'middle',\n stroke: '#666'\n },\n yAxis: {\n dataKey: isHorizontal ? 'label' : '',\n type: isHorizontal ? 'category' : 'number',\n tick: {\n fill: '#000',\n opacity: isHorizontal ? '0.87' : '0.54',\n width: isHorizontal ? 150 : undefined\n },\n tickFormatter: formatNumberAsMetric,\n stroke: '#666',\n tickCount: 8,\n mirror: isHorizontal\n },\n cartesianGrid: {\n strokeDasharray: '3 3',\n stroke: '#666',\n strokeOpacity: '0.4',\n vertical: !isHorizontal\n },\n tooltip: {\n cursor: {\n fill: '#000',\n opacity: '0.1'\n }\n }\n };\n};\n\nexport default getBarChartSettings;\n","import {useState, useCallback} from 'react';\nimport {Coordinate, TooltipProps} from 'recharts';\nimport {ChartData} from '../types';\n\nconst useTooltipState = () => {\n const [tooltipState, setTooltipState] = useState<TooltipProps>({active: false});\n const showTooltip = useCallback((data: ChartData, coordinate: Coordinate) => {\n setTooltipState({\n active: true,\n label: data.label,\n coordinate,\n payload: [{value: data.value, payload: data, name: data.label}]\n });\n }, []);\n const hideTooltip = useCallback(() => {\n setTooltipState((state) => ({\n ...state,\n active: false\n }));\n }, []);\n return {tooltipState, showTooltip, hideTooltip};\n};\n\nexport default useTooltipState;\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n bubbleChart: {\n position: 'relative',\n cursor: 'default'\n }\n});\n","import React, {useMemo, useState} from 'react';\nimport {Legend, Margin, Tooltip} from 'recharts';\nimport useBubbles from './useBubbles';\nimport {ChartProps} from '../types';\nimport getLegendProps from '../CustomLegend/getLegendProps';\nimport {adjustRectWithLegend} from './helpers';\nimport withPercents from '../HOCs/withPercents';\nimport {propOr} from 'ramda';\nimport {getChartItemColor} from '@reltio/mdm-sdk';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport useTooltipState from '../hooks/useTooltipState';\n\nimport {useStyles} from './styles';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\ntype Props = ChartProps & {\n options?: {\n showLegend?: boolean;\n margin?: Margin;\n };\n};\n\nexport const BubbleChart = ({width, height, data, options = {}, onItemClick}: Props) => {\n const styles = useStyles();\n const {showLegend = true, margin} = options;\n\n const initialRect = {\n x: propOr(0, 'left', margin),\n y: propOr(0, 'top', margin),\n width: width - propOr(0, 'left', margin) - propOr(0, 'right', margin),\n height: height - propOr(0, 'top', margin) - propOr(0, 'bottom', margin)\n };\n const initialLegendProps = getLegendProps(width);\n const [legendBox, setLegendBox] = useState({width: 0, height: 0});\n\n const {rect, legendProps} = adjustRectWithLegend(initialRect, initialLegendProps, legendBox);\n\n const bubbles = useBubbles({data, width: rect.width, height: rect.height});\n const {tooltipState, showTooltip, hideTooltip} = useTooltipState();\n\n const clickable = useClickableStyle(onItemClick);\n\n const circles = useMemo(\n () =>\n bubbles.map((bubble) => {\n const cx = rect.x + bubble.x;\n const cy = rect.y + bubble.y;\n return (\n <circle\n key={bubble.data.label}\n cx={cx}\n cy={cy}\n r={bubble.r}\n onMouseEnter={() => showTooltip(bubble.data, {x: cx, y: cy})}\n onMouseLeave={() => hideTooltip()}\n onClick={onItemClick && (() => onItemClick(bubble.data.group))}\n fill={getChartItemColor(bubble.data.label)}\n className={clickable}\n >\n <animate attributeName={'r'} from={0} to={bubble.r} dur=\"0.5s\" />\n </circle>\n );\n }),\n [bubbles, hideTooltip, rect.x, rect.y, showTooltip, onItemClick, clickable]\n );\n\n return (\n <div className={styles.bubbleChart} style={{width, height}}>\n <svg width={width} height={height}>\n {circles}\n </svg>\n {showLegend && (\n <Legend\n {...legendProps}\n payload={(data || []).map((item) => ({\n id: item.label,\n type: 'square',\n color: getChartItemColor(item.label),\n value: `${item.label} (${item.percent}%)`\n }))}\n chartWidth={width}\n chartHeight={height}\n margin={margin}\n onBBoxUpdate={setLegendBox}\n />\n )}\n <Tooltip viewBox={rect} content={<CustomTooltip />} {...tooltipState} />\n </div>\n );\n};\n\nexport default withPercents(BubbleChart);\n","import {LegendProps, ViewBox} from 'recharts';\n\nconst adjustRectWithLegend = (rect: ViewBox, legendProps: LegendProps, legendBox: ViewBox) => {\n const {layout} = legendProps;\n\n if (layout === 'vertical') {\n return {rect: {...rect, width: rect.width - legendBox.width}, legendProps};\n }\n\n if (layout === 'horizontal') {\n return {\n rect: {...rect, height: rect.height - legendBox.height},\n legendProps: {...legendProps, width: rect.width}\n };\n }\n\n return {rect, legendProps};\n};\n\nexport {adjustRectWithLegend};\n","import {useMemo} from 'react';\nimport {hierarchy, pack} from 'd3-hierarchy';\nimport {ChartData} from '../types';\n\ntype Props = {\n width: number;\n height: number;\n data: ChartData[];\n};\n\nexport type Bubble = {\n data: ChartData;\n r: number;\n x: number;\n y: number;\n};\n\nconst useBubbles = ({data, width, height}: Props): Bubble[] => {\n return useMemo(() => {\n if (width === 0 || height === 0) {\n return [];\n }\n\n const bubblesLayout = pack().size([width, height]).padding(2);\n\n const bubblesData = hierarchy({children: data})\n .sum((d) => d.value)\n .sort((a, b) => b.value - a.value);\n\n return bubblesLayout(bubblesData).leaves();\n }, [data, height, width]);\n};\n\nexport default useBubbles;\n","import React from 'react';\nimport {ChartProps, LineChartOptions} from '../types';\nimport {CartesianGrid, Dot, Line, LineChart as LineChartWidget, Tooltip, XAxis, YAxis} from 'recharts';\nimport getLineChartSettings from './getLineChartSettings';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\nconst CustomDot = ({payload, onClick, ...otherProps}: any) => {\n const clickable = useClickableStyle(onClick);\n return (\n <Dot\n className={clickable}\n payload={payload}\n onClick={onClick && (() => onClick(payload.group))}\n {...otherProps}\n />\n );\n};\n\ntype LineChartProps = ChartProps & {\n options?: LineChartOptions;\n};\n\nconst LineChart = ({width, height, data, options = {}, onItemClick}: LineChartProps) => {\n const {cartesianGrid, tooltip, xAxis, yAxis, lineChart, line} = getLineChartSettings(options);\n return (\n <LineChartWidget width={width} height={height} data={data} {...lineChart}>\n <CartesianGrid {...cartesianGrid} />\n <XAxis {...xAxis} />\n <YAxis {...yAxis} />\n <Tooltip content={<CustomTooltip />} {...tooltip} />\n <Line\n {...line}\n activeDot={<CustomDot {...(line.activeDot as Record<string, unknown>)} onClick={onItemClick} />}\n />\n </LineChartWidget>\n );\n};\n\nexport default LineChart;\n","import {CartesianGridProps, LineChartProps, LineProps, TooltipProps, XAxisProps, YAxisProps} from 'recharts';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\nimport {LineChartOptions} from '../types/LineChartOptions';\n\ntype LineChartSettings = {\n lineChart: LineChartProps;\n xAxis: XAxisProps;\n yAxis: YAxisProps;\n cartesianGrid: CartesianGridProps;\n tooltip: TooltipProps;\n line: LineProps;\n};\n\nconst getLineChartSettings = ({margin, isLabelRotated}: LineChartOptions): LineChartSettings => {\n return {\n lineChart: {\n layout: 'horizontal',\n margin: margin\n },\n xAxis: {\n type: 'category',\n dataKey: 'label',\n tick: {\n fill: '#000',\n opacity: '0.54'\n },\n angle: isLabelRotated ? -45 : 0,\n textAnchor: isLabelRotated ? 'end' : 'middle',\n stroke: '#666'\n },\n yAxis: {\n dataKey: '',\n type: 'number',\n tick: {\n fill: '#000',\n opacity: '0.54',\n width: undefined\n },\n tickFormatter: formatNumberAsMetric,\n stroke: '#666',\n tickCount: 8\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 stroke: '#4BAFFF',\n strokeWidth: 3,\n dot: {\n strokeWidth: 2,\n r: 5\n },\n activeDot: {\n strokeWidth: 2,\n r: 5,\n stroke: '#4BAFFF'\n }\n }\n };\n};\n\nexport default getLineChartSettings;\n","import {makeStyles} from '@mui/styles';\n\ntype StylesProps = {\n colors: string[];\n width: number;\n};\n\nconst barWidth = 15;\n\nexport const useStyles = makeStyles((theme) => ({\n legendContainer: ({width}: StylesProps) => ({\n width: `${width}px`,\n top: '5%',\n height: '90%',\n position: 'relative'\n }),\n alignTop: {\n top: 0\n },\n alignBottom: {\n bottom: 0\n },\n legendBar: ({colors}: StylesProps) => ({\n background: `linear-gradient(to top, ${colors.join(', ')})`,\n width: `${barWidth}px`,\n position: 'absolute',\n top: 0,\n right: 0,\n bottom: 0\n }),\n legendLabel: ({width}: StylesProps) => ({\n position: 'absolute',\n fontSize: '13px',\n lineHeight: '15px',\n fontWeight: 'normal',\n color: theme.palette.text.primary,\n width: `${width - barWidth}px`,\n textAlign: 'right',\n right: `${barWidth}px`,\n paddingRight: '10px',\n boxSizing: 'border-box',\n overflowWrap: 'break-word'\n })\n}));\n","import React from 'react';\nimport Typography from '@mui/material/Typography';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\nimport classnames from 'classnames';\n\nimport {useStyles} from './styles';\n\ntype Props = {\n minValue: number;\n maxValue: number;\n colors: string[];\n width: number;\n};\n\nconst Legend = ({minValue, maxValue, colors, width}: Props) => {\n const styles = useStyles({\n colors,\n width\n });\n\n return (\n <div className={styles.legendContainer}>\n <Typography className={classnames(styles.legendLabel, styles.alignTop)}>\n {formatNumberAsMetric(maxValue)}\n </Typography>\n <div className={styles.legendBar} />\n <Typography className={classnames(styles.legendLabel, styles.alignBottom)}>\n {formatNumberAsMetric(minValue)}\n </Typography>\n </div>\n );\n};\n\nexport default Legend;\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n mapChart: {\n position: 'relative',\n cursor: 'default',\n display: 'flex'\n },\n geography: {\n '&:focus': {\n outline: 'none'\n }\n }\n});\n","import React, {useMemo, useCallback} from 'react';\nimport withPercents from '../HOCs/withPercents';\nimport {ChartProps} from '../types';\n// eslint-disable-next-line @typescript-eslint/ban-ts-comment\n// @ts-ignore\nimport {Geographies, Geography, MapProvider} from 'react-simple-maps';\nimport {scaleLog} from 'd3-scale';\nimport * as d3Geo from 'd3-geo';\nimport {feature} from 'topojson-client';\nimport useGeography from './useGeography';\nimport {pluck} from 'ramda';\nimport Legend from './Legend/Legend';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {Tooltip} from 'recharts';\nimport useTooltipState from '../hooks/useTooltipState';\nimport classnames from 'classnames';\nimport {useStyles} from './styles';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\ntype Props = ChartProps & {\n options?: {\n geoUrl?: string;\n projection?: string;\n geoIdName?: string;\n showLegend?: boolean;\n };\n};\n\nconst USA_MAP = 'https://s3.amazonaws.com/reltio-ui-files/map_resources/us-albers.json';\nconst MAP_COLORS = ['#CDE0FE', '#0160AD'];\nexport const LEGEND_WIDTH = 75;\n\nexport const MapChart = ({data, width, height, options, onItemClick}: Props) => {\n const styles = useStyles();\n\n const {geoUrl, geoIdName, showLegend = true} = options || {};\n const values = pluck('value', data);\n const minValue = Math.min(...values);\n const maxValue = Math.max(...values);\n\n const mapWidth = width < LEGEND_WIDTH ? 0 : width - (showLegend ? 1 : 0) * LEGEND_WIDTH;\n const colorScale = scaleLog().domain([minValue, maxValue]).range(MAP_COLORS);\n\n const geography = useGeography(geoUrl || USA_MAP);\n\n const getProjectionFunc = useCallback(\n (projection: string) => {\n const geoFunc = (projection && d3Geo[projection]) || d3Geo['geoEqualEarth'];\n const geoObj = geography.objects && geography.objects[Object.keys(geography.objects)[0]];\n const featureObj = geography.type === 'FeatureCollection' ? geography : feature(geography, geoObj);\n return geoFunc().fitSize([mapWidth, height], featureObj);\n },\n [geography, height, mapWidth]\n );\n\n const projection = geoUrl ? options.projection : 'geoAlbersUsa';\n const projectionFunc = useMemo(\n () => (geography ? getProjectionFunc(projection) : undefined),\n [geography, getProjectionFunc, projection]\n );\n\n const {tooltipState, showTooltip, hideTooltip} = useTooltipState();\n const clickable = useClickableStyle(onItemClick);\n\n return (\n <div className={styles.mapChart} style={{width, height}}>\n <MapProvider width={mapWidth} height={height} projection={projectionFunc} projectionConfig={{}}>\n <svg width={mapWidth} height={height} viewBox={`0 0 ${mapWidth} ${height}`} className={'rsm-svg'}>\n <Geographies geography={geography}>\n {({geographies}) => {\n return geographies.map((geo) => {\n const geoId = geo.properties[geoIdName || 'name'];\n const geoLabel = geo.properties.name;\n const cur = data.find(({group}) => group === geoId);\n return (\n <Geography\n key={geo.rsmKey}\n geography={geo}\n fill={cur ? colorScale(cur.value) : '#EEE'}\n stroke={'#FFF'}\n className={classnames(styles.geography, clickable)}\n onMouseEnter={(event) => {\n const data = cur || {label: geoLabel, value: 0, percent: 0, group: geoId};\n const mapRect = (\n event.target as Element\n ).parentElement.parentElement.getBoundingClientRect();\n const coordinate = {\n x: event.clientX - mapRect.x,\n y: event.clientY - mapRect.y\n };\n showTooltip(data, coordinate);\n }}\n onMouseLeave={() => hideTooltip()}\n onClick={onItemClick && (() => onItemClick(geoId))}\n />\n );\n });\n }}\n </Geographies>\n </svg>\n </MapProvider>\n {showLegend && <Legend width={LEGEND_WIDTH} minValue={minValue} maxValue={maxValue} colors={MAP_COLORS} />}\n <Tooltip\n viewBox={{\n x: 0,\n y: 0,\n width: mapWidth,\n height\n }}\n content={<CustomTooltip />}\n {...tooltipState}\n />\n </div>\n );\n};\n\nexport default withPercents(MapChart);\n","import {useEffect, useState} from 'react';\n\nconst useGeography = (geoUrl) => {\n const [geography, setGeography] = useState(null);\n\n useEffect(() => {\n fetch(geoUrl)\n .then((res) => {\n if (!res.ok) {\n throw Error(res.statusText);\n }\n return res.json();\n })\n .then((geography) => {\n setGeography(geography);\n })\n .catch((error) => {\n console.warn(`Could not load map ${geoUrl} :`, error);\n });\n }, []); // eslint-disable-line\n\n return geography;\n};\n\nexport default useGeography;\n","import d3Cloud, {Word} from 'd3-cloud';\nimport {useMemo} from 'react';\nimport {ChartData} from '../types';\n\ntype Props = {\n data: ChartData[];\n width: number;\n height: number;\n maxFontSize: number;\n};\n\nexport type CloudWord = Word & {\n data?: ChartData;\n};\n\nconst useCloud = ({data, width, height, maxFontSize = 40}: Props): CloudWord[] =>\n useMemo(() => {\n if (!width || !height) return [];\n const dataValues = data.map((item) => item.value);\n const minDataValue = Math.min(...dataValues);\n const maxDataValue = Math.max(...dataValues);\n\n const minFont = Math.log(12);\n const maxFont = Math.log(maxFontSize);\n const valDiff = maxDataValue - minDataValue;\n const scale = (maxFont - minFont) / (valDiff || 1);\n const layout = d3Cloud()\n .size([width, height])\n .words(\n data.map((item) => ({\n text: item.label,\n size: Math.floor(Math.exp(minFont + scale * (item.value - minDataValue))),\n font: 'Roboto',\n data: item\n }))\n )\n .random(() => 0.5)\n .fontSize((word) => word.size)\n .rotate(0)\n .padding(3)\n .start();\n\n return layout.words();\n }, [data, width, height, maxFontSize]);\n\nexport default useCloud;\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n container: {\n position: 'relative',\n '& text': {\n transition: 'transform .5s',\n userSelect: 'none',\n animation: '$fadeInOpacity ease-in',\n '&:nth-child(4n+1)': {\n animationDuration: '0.25s'\n },\n '&:nth-child(4n+2)': {\n animationDuration: '1.5s'\n },\n '&:nth-child(4n+3)': {\n animationDuration: '1s'\n },\n '&:nth-child(4n+4)': {\n animationDuration: '0.5s'\n }\n }\n },\n\n '@keyframes fadeInOpacity': {\n '0%': {\n opacity: 0\n },\n '100%': {\n opacity: 1\n }\n }\n});\n","import React, {useMemo} from 'react';\nimport {Tooltip, ViewBox} from 'recharts';\nimport useCloud from './useCloud';\nimport {ChartProps} from '../types';\nimport withPercents from '../HOCs/withPercents';\nimport {getChartItemColor} from '@reltio/mdm-sdk';\nimport {useStyles} from './styles';\nimport useTooltipState from '../hooks/useTooltipState';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\ntype Props = ChartProps & {\n options?: {\n maxFontSize?: number;\n };\n};\n\nexport const CloudChart = ({width, height, data, options = {}, onItemClick}: Props) => {\n const {tooltipState, showTooltip, hideTooltip} = useTooltipState();\n const {maxFontSize} = options;\n const styles = useStyles();\n const clickable = useClickableStyle(onItemClick);\n\n const rect: ViewBox = useMemo(\n () => ({\n x: 0,\n y: 0,\n width: width || 0,\n height: height || 0\n }),\n [width, height]\n );\n\n const words = useCloud({data, width, height, maxFontSize});\n\n const cloudWords = useMemo(() => {\n const cx = rect.width / 2;\n const cy = rect.height / 2;\n\n return (\n <g transform={`translate(${cx},${cy})`}>\n {words.map(({text, data, x, y, size}) => (\n <text\n key={text}\n onMouseEnter={() => showTooltip(data, {x: cx + x, y: cy + y})}\n onMouseLeave={() => hideTooltip()}\n fill={getChartItemColor(text)}\n textAnchor=\"middle\"\n transform={`translate(${x},${y})`}\n fontSize={size}\n className={clickable}\n onClick={onItemClick && (() => onItemClick(data.group))}\n >\n {text}\n </text>\n ))}\n </g>\n );\n }, [rect.width, rect.height, words, clickable, onItemClick, showTooltip, hideTooltip]);\n\n return (\n <div className={styles.container}>\n <svg width={rect.width} height={rect.height}>\n {cloudWords}\n </svg>\n <Tooltip offset={5} viewBox={rect} content={<CustomTooltip />} {...tooltipState} />\n </div>\n );\n};\n\nexport default withPercents(CloudChart);\n","import React from 'react';\nimport BarChart from './BarChart/BarChart';\nimport PieChart from './PieChart/PieChart';\nimport TreeChart from './TreeChart/TreeChart';\nimport TableWithBars from './TableWithBars/TableWithBars';\nimport BubbleChart from './BubbleChart/BubbleChart';\nimport LineChart from './LineChart/LineChart';\nimport MapChart from './MapChart/MapChart';\nimport CloudChart from './CloudChart/CloudChart';\nimport {ChartTypes} from '@reltio/mdm-sdk';\n\nexport default class ChartsFactory {\n static build(chartType, props = {}) {\n switch (chartType) {\n case ChartTypes.BAR:\n return <BarChart {...props} />;\n case ChartTypes.DONUT:\n return <PieChart {...props} isDonut />;\n case ChartTypes.PIE:\n return <PieChart {...props} />;\n case ChartTypes.TREE:\n return <TreeChart {...props} />;\n case ChartTypes.TABLE:\n return <TableWithBars {...props} />;\n case ChartTypes.BUBBLE:\n return <BubbleChart {...props} />;\n case ChartTypes.LINE:\n return <LineChart {...props} />;\n case ChartTypes.MAP:\n return <MapChart {...props} />;\n case ChartTypes.CLOUD:\n return <CloudChart {...props} />;\n default:\n return <div />;\n }\n }\n}\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n wrapper: {\n width: '100%',\n display: 'flex',\n justifyContent: 'center',\n margin: 'auto',\n flexWrap: 'wrap',\n '&.alignRight': {\n display: 'grid',\n gridAutoRows: 'min-content',\n gridTemplateColumns: '1fr',\n '&.isTwoCols': {\n gridTemplateColumns: '1fr 1fr',\n minWidth: '141px',\n maxWidth: '282px'\n }\n }\n },\n item: {\n display: 'flex',\n alignItems: 'baseline',\n '&:not(:last-child)': {\n marginRight: 10\n }\n },\n itemColor: {\n width: 12,\n height: 12,\n marginRight: 10,\n flexShrink: 0\n },\n value: {\n fontSize: '14px',\n lineHeight: '27px',\n letterSpacing: '0.5px'\n }\n});\n","import React from 'react';\nimport {LegendProps} from 'recharts';\nimport classnames from 'classnames';\nimport {useStyles} from './styles';\n\ntype CustomLegendProps = LegendProps & {\n alignRight: boolean;\n};\n\nconst CustomLegend = ({payload, alignRight}: CustomLegendProps) => {\n const isTwoCols = payload.length > 8;\n const styles = useStyles();\n return (\n <div className={classnames(styles.wrapper, {isTwoCols}, {alignRight})}>\n {payload.map((item) => (\n <div key={item.id} className={styles.item}>\n <div style={{background: item.color}} className={styles.itemColor} />\n <span className={styles.value}>{item.value}</span>\n </div>\n ))}\n </div>\n );\n};\n\nexport default CustomLegend;\n","import React from 'react';\nimport {LegendProps} from 'recharts';\nimport CustomLegend from './CustomLegend';\n\nconst getLegendProps = (width: number): LegendProps => {\n const alignRight = width > 550;\n return {\n layout: alignRight ? 'vertical' : 'horizontal',\n align: alignRight ? 'right' : 'center',\n verticalAlign: alignRight ? 'middle' : 'bottom',\n wrapperStyle: {\n display: 'flex',\n overflowY: 'auto',\n maxHeight: alignRight ? '100%' : '50%',\n maxWidth: alignRight ? '50%' : '100%'\n },\n content: <CustomLegend alignRight={alignRight} />\n };\n};\n\nexport default getLegendProps;\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n tooltipWrapper: {\n borderRadius: '4px',\n background: 'rgba(0, 0, 0, 0.54)',\n padding: '6px 8px 7px 8px',\n textAlign: 'center',\n color: '#FFFFFF',\n '& p': {\n fontSize: '12px',\n lineHeight: '14px',\n padding: 0,\n margin: 0\n }\n },\n tooltipTitle: {\n fontWeight: 500\n },\n tooltipValue: {\n fontWeight: 'normal'\n },\n tooltipValueBold: {\n fontWeight: 500\n },\n tooltipPercent: {\n fontWeight: 'normal'\n }\n});\n","import {useStyles} from './styles';\nimport React from 'react';\nimport {TooltipProps} from 'recharts';\nimport {isNil} from 'ramda';\n\nexport const CustomTooltip = ({payload, active}: TooltipProps) => {\n const styles = useStyles();\n const tooltipPayload = payload?.[0]?.payload;\n const localizedValue = tooltipPayload?.localizedValue || tooltipPayload?.value;\n const tooltipLabel = tooltipPayload?.label;\n const percent = tooltipPayload?.percent;\n\n return (\n active && (\n <div className={styles.tooltipWrapper}>\n <p className={styles.tooltipTitle}>{tooltipLabel}</p>\n {isNil(percent) ? (\n <p className={styles.tooltipValue}>Value: {localizedValue}</p>\n ) : (\n <p className={styles.tooltipValueBold}>\n {localizedValue}\n <span className={styles.tooltipPercent}> ({percent}%)</span>\n </p>\n )}\n </div>\n )\n );\n};\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 React from 'react';\nimport {PieLabelRenderProps, Sector, SectorProps} from 'recharts';\n\ntype ActiveShapeProps = PieLabelRenderProps & {\n cx: number;\n cy: number;\n innerRadius: number;\n outerRadius: number;\n};\n\nconst ActiveShape = ({\n cx,\n cy,\n midAngle,\n innerRadius,\n outerRadius,\n startAngle,\n endAngle,\n fill,\n percent,\n value,\n label\n}: ActiveShapeProps) => {\n const RADIAN = Math.PI / 180;\n const sin = Math.sin(-RADIAN * midAngle);\n const cos = Math.cos(-RADIAN * midAngle);\n\n const sx = cx + (outerRadius + 10) * cos;\n const sy = cy + (outerRadius + 10) * sin;\n const mx = cx + (outerRadius + 30) * cos;\n const my = cy + (outerRadius + 30) * sin;\n\n const circleX = mx + (cos >= 0 ? 1 : -1) * 20;\n const circleY = my;\n const textX = circleX + (cos >= 0 ? 1 : -1) * 12;\n const textAnchor = cos >= 0 ? 'start' : 'end';\n const linePath = `M${sx},${sy}L${mx},${my}L${circleX},${circleY}`;\n\n const sectorProps: SectorProps = {\n cx,\n cy,\n innerRadius,\n outerRadius,\n startAngle,\n endAngle,\n fill\n };\n\n return (\n <g>\n <Sector {...sectorProps} />\n <Sector {...sectorProps} innerRadius={outerRadius + 6} outerRadius={outerRadius + 10} />\n <path d={linePath} stroke={fill} fill=\"none\" />\n <circle cx={circleX} cy={circleY} r={2} fill={fill} />\n <text x={textX} y={circleY} textAnchor={textAnchor} fill=\"#444\" fontSize={12} fontWeight={500}>\n {label}\n </text>\n <text x={textX} y={circleY} dy={14} textAnchor={textAnchor} fill=\"#000\" opacity={0.6} fontSize={12}>\n <tspan fontWeight={500}>{value}</tspan>\n <tspan fontWeight={400}>{` (${percent}%)`}</tspan>\n </text>\n </g>\n );\n};\n\nexport default ActiveShape;\n","import React, {useState} from 'react';\nimport {Cell, Legend, Margin, Pie, PieChart as PieChartWidget, Tooltip} from 'recharts';\nimport {getChartItemColor} from '@reltio/mdm-sdk';\nimport {ChartProps} from '../types';\nimport withPercents from '../HOCs/withPercents';\nimport getLegendProps from '../CustomLegend/getLegendProps';\nimport ActiveShape from '../ActiveShape/ActiveShape';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\n\ntype Props = ChartProps & {\n options?: {\n margin?: Margin;\n showLegend?: boolean;\n showActiveShape?: boolean;\n };\n isDonut?: boolean;\n};\n\nexport const PieChart = ({width, height, data, options = {}, isDonut, onItemClick}: Props) => {\n const {showLegend = true, margin, showActiveShape} = options;\n const [activeId, setActiveId] = useState(-1);\n const onPieEnter = (_, index: number) => setActiveId(index);\n const onPieLeave = () => setActiveId(-1);\n const onPieClick = onItemClick && (({group}) => onItemClick(group));\n const clickable = useClickableStyle(onPieClick);\n\n return (\n <PieChartWidget width={width} height={height} margin={margin}>\n {!showActiveShape && <Tooltip content={<CustomTooltip />} />}\n {showLegend && (\n <Legend\n {...getLegendProps(width)}\n payload={(data || []).map((item) => ({\n id: item.label,\n type: 'square',\n color: getChartItemColor(item.label),\n value: `${item.label} (${item.percent}%)`\n }))}\n />\n )}\n <Pie\n dataKey=\"value\"\n data={data}\n activeIndex={activeId}\n activeShape={showActiveShape ? ActiveShape : undefined}\n onMouseEnter={showActiveShape ? onPieEnter : undefined}\n onMouseLeave={showActiveShape ? onPieLeave : undefined}\n innerRadius={isDonut ? (showActiveShape ? '50%' : '60%') : 0}\n outerRadius={showActiveShape ? '70%' : '80%'}\n onClick={onPieClick}\n >\n {(data || []).map((entry, index) => (\n <Cell key={index} fill={getChartItemColor(entry.label)} className={clickable} />\n ))}\n </Pie>\n </PieChartWidget>\n );\n};\n\nexport default withPercents(PieChart);\n","import {makeStyles} from '@mui/styles';\n\nconst textOverflow = {\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\nexport const useStyles = makeStyles((theme) => ({\n headCell: {\n display: 'flex',\n alignItems: 'center',\n height: '100%',\n '&>div': {\n padding: '0 16px'\n }\n },\n headLabel: {\n color: theme.palette.text.primary,\n fontSize: '12px',\n fontWeight: 500,\n lineHeight: '16px',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n '&:after': textOverflow\n },\n attribute: {\n color: theme.palette.text.primary,\n fontSize: '13px',\n fontWeight: 'normal',\n lineHeight: '15px',\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n display: 'flex',\n alignItems: 'center',\n height: '100%',\n padding: '0 16px',\n '&:after': textOverflow\n },\n numberContainer: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n padding: '0 16px',\n height: '100%'\n },\n number: {\n fontSize: '13px',\n lineHeight: '15px',\n fontWeight: 'normal',\n color: theme.palette.text.primary,\n width: '40px',\n flexShrink: 0\n },\n colorBarContainer: {\n position: 'relative',\n width: '100%',\n marginLeft: '16px',\n height: '20px',\n '&>div': {\n opacity: 1,\n backgroundColor: '#0072CE'\n }\n }\n}));\n","import React from 'react';\nimport classnames from 'classnames';\nimport DefaultHeadCellRenderer from 'react-components/dist/Table/DefaultHeadCellRenderer/DefaultHeadCellRenderer';\nimport ExpandedValueTooltip from '../../../ExpandedValueTooltip/ExpandedValueTooltip';\nimport {useStyles} from './styles';\n\ntype HeadCellRendererProps = {\n className?: string;\n headCellData: {\n label: string;\n };\n};\n\nconst HeadCellRenderer = ({className, headCellData, ...otherProps}: HeadCellRendererProps) => {\n const styles = useStyles();\n\n return (\n <div className={classnames(styles.headCell, className)}>\n <DefaultHeadCellRenderer\n {...otherProps}\n headCellData={{\n ...headCellData,\n label: (\n <ExpandedValueTooltip value={headCellData.label}>\n <div className={styles.headLabel}>{headCellData.label}</div>\n </ExpandedValueTooltip>\n )\n }}\n />\n </div>\n );\n};\n\nexport default HeadCellRenderer;\n","import React from 'react';\nimport ExpandedValueTooltip from '../../../ExpandedValueTooltip/ExpandedValueTooltip';\nimport {withTableContext} from '../../../BasicTableView';\nimport classnames from 'classnames';\nimport {useStyles} from './styles';\nimport {useClickableStyle} from '../../hooks/useClickableStyle';\n\ntype Props = {\n value?: string;\n onClick?: () => void;\n};\n\nexport const AttributeCellRenderer = ({value = '', onClick}: Props) => {\n const styles = useStyles();\n const clickable = useClickableStyle(onClick);\n return (\n <ExpandedValueTooltip value={value}>\n <div className={classnames(styles.attribute, clickable)} onClick={onClick}>\n {value}\n </div>\n </ExpandedValueTooltip>\n );\n};\n\nexport default withTableContext(({onItemClick}, {rowValue: {group}}) => {\n return {\n onClick:\n onItemClick &&\n (() => {\n onItemClick(group);\n })\n };\n})(AttributeCellRenderer);\n","import React from 'react';\nimport {isNil} from 'ramda';\nimport {formatNumberAsMetric} from '@reltio/mdm-sdk';\nimport Typography from '@mui/material/Typography';\nimport ColorBar from '../../../ColorBar/ColorBar';\n\nimport {useStyles} from './styles';\n\ntype NumberCellValueRendererProps = {\n value: number;\n columnData: {\n maxValue?: number;\n };\n};\n\nconst NumberCellValueRenderer = ({value, columnData: {maxValue}}: NumberCellValueRendererProps) => {\n const styles = useStyles();\n\n return (\n <div className={styles.numberContainer}>\n <Typography className={styles.number}>{formatNumberAsMetric(value, 9999)}</Typography>\n {!isNil(maxValue) && (\n <div className={styles.colorBarContainer}>\n <ColorBar width={value} maxWidth={maxValue} />\n </div>\n )}\n </div>\n );\n};\n\nexport default NumberCellValueRenderer;\n","import {makeStyles} from '@mui/styles';\n\ntype Dimensions = {\n width: number | string;\n height: number | string;\n};\n\nexport const useStyles = makeStyles({\n tableContainer: ({width, height}: Dimensions) => ({\n height: height,\n width: width,\n display: 'flex',\n flexDirection: 'column'\n }),\n cellBorder: {\n borderLeft: 'none',\n borderRight: 'none'\n }\n});\n","import React, {useMemo} from 'react';\nimport i18n from 'ui-i18n';\nimport {BasicTable} from '../../BasicTableView';\nimport HeadCellRenderer from './cell-renderers/HeadCellRenderer';\nimport AttributeCellRenderer from './cell-renderers/AttributeCellRenderer';\nimport NumberCellValueRenderer from './cell-renderers/NumberCellValueRenderer';\nimport {ChartProps, TableWithBarsOptions} from '../types';\n\nimport {useStyles} from './styles';\n\ntype TableWithBarsProps = ChartProps & {\n options?: TableWithBarsOptions;\n basicTableRef?: React.MutableRefObject<any> | null;\n};\n\nconst TableWithBars = ({width, height, data, options = {}, basicTableRef, onItemClick}: TableWithBarsProps) => {\n const styles = useStyles({width, height});\n\n const {headers: [labelHeader, valueHeader] = [], showValues = true} = options;\n\n const tableClasses = useMemo(() => ({cellBorder: styles.cellBorder}), [styles]);\n const maxValue = useMemo(() => Math.max(...data.map((item) => item.value)), [data]);\n\n const headData = useMemo(\n () => [\n {\n id: 'label',\n label: labelHeader || i18n.text('Attributes'),\n resizable: false,\n headCellRenderer: HeadCellRenderer,\n rowCellValueRenderer: AttributeCellRenderer,\n initialWidth: width * 0.4\n },\n ...(showValues\n ? [\n {\n id: 'value',\n label: valueHeader || i18n.text('No of Profiles'),\n resizable: false,\n headCellRenderer: HeadCellRenderer,\n rowCellValueRenderer: NumberCellValueRenderer,\n maxValue,\n initialWidth: width * 0.6\n }\n ]\n : [])\n ],\n [maxValue, width, valueHeader, labelHeader, showValues]\n );\n\n const context = useMemo(\n () => ({\n onItemClick\n }),\n [onItemClick]\n );\n\n return (\n <div className={styles.tableContainer}>\n <BasicTable\n columnsData={headData}\n rowsData={data}\n headRowHeight={48}\n getRowCellHeight={null}\n classes={tableClasses}\n defaultColumnWidth={100}\n defaultColumnMinWidth={100}\n ref={basicTableRef}\n context={context}\n />\n </div>\n );\n};\n\nexport default TableWithBars;\n","import {makeStyles} from '@mui/styles';\n\nexport const useStyles = makeStyles({\n treeBlock: {\n fill: '#6BAED6',\n stroke: '#fff',\n strokeOpacity: 1\n },\n treeLabel: {\n fill: 'black',\n fontSize: '14px',\n letterSpacing: 0\n }\n});\n","import React, {useRef} from 'react';\nimport {Text, Tooltip, Treemap} from 'recharts';\nimport {ChartProps} from '../types';\nimport {CustomTooltip} from '../CustomTooltip/CustomTooltip';\nimport {useStyles} from './styles';\nimport {useClickableStyle} from '../hooks/useClickableStyle';\nimport {nanoid} from 'nanoid';\n\ntype ContentProps = {\n x?: number;\n y?: number;\n width?: number;\n height?: number;\n label?: string;\n group?: string;\n onClick: (group: string) => void;\n};\n\nconst CustomizedContent = ({x, y, width, height, label, onClick, group}: ContentProps) => {\n const styles = useStyles();\n const clickable = useClickableStyle(onClick);\n const clipPathId = useRef(nanoid()).current;\n const strokeWidth = 2;\n return (\n <g className={clickable} onClick={onClick && (() => onClick(group))}>\n <clipPath id={clipPathId}>\n <rect\n x={x + strokeWidth}\n y={y + strokeWidth}\n width={width - strokeWidth * 2}\n height={height - strokeWidth * 2}\n />\n </clipPath>\n <rect x={x} y={y} width={width} height={height} strokeWidth={strokeWidth} className={styles.treeBlock} />\n <Text\n clipPath={`url(#${clipPathId})`}\n textAnchor={'middle'}\n verticalAnchor={'middle'}\n width={width}\n x={x + width / 2}\n y={y + height / 2}\n className={styles.treeLabel}\n >\n {label}\n </Text>\n </g>\n );\n};\n\nconst normalizeValues = (data) => {\n const dataTotal = data.reduce((acc, item) => acc + item.value, 0);\n const threshold = dataTotal / (data.length * 10);\n return data.map((item) => {\n return {\n ...item,\n normalizedValue: item.value < threshold ? threshold : item.value\n };\n });\n};\n\nconst TreeChart = ({data, width, height, onItemClick}: ChartProps) => {\n return (\n <Treemap\n dataKey=\"normalizedValue\"\n nameKey=\"label\"\n content={<CustomizedContent onClick={onItemClick} />}\n data={normalizeValues(data)}\n width={width}\n animationDuration={500}\n height={height}\n >\n <Tooltip content={<CustomTooltip />} />\n </Treemap>\n );\n};\n\nexport default TreeChart;\n","import {makeStyles} from '@mui/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 React, {createContext, useCallback, useContext, useEffect, useState} from 'react';\nimport {RequestStates} from '../../types';\n\nconst ReloadFacetSignalContext = createContext(null);\nconst ReloadFacetActionContext = createContext(null);\n\ntype Props = {\n children: React.ReactNode;\n};\n\nexport const ReloadFacetProvider = ({children}: Props) => {\n const [refreshSignal, setRefreshSignal] = useState<number>(0);\n const refreshAll = useCallback(() => {\n setRefreshSignal((signal) => signal + 1);\n }, [setRefreshSignal]);\n return (\n <ReloadFacetActionContext.Provider value={refreshAll}>\n <ReloadFacetSignalContext.Provider value={refreshSignal}>{children}</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};\n\nexport const useReloadFacet = ({state, reload}: useReloadFacetProps) => {\n const refreshSignal = useContext(ReloadFacetSignalContext);\n\n if (refreshSignal === undefined) {\n throw new Error('useReloadFacet must be used within a ReloadFacetProvider');\n }\n\n useEffect(() => {\n if (state === RequestStates.LOADED || state === RequestStates.ERROR) {\n reload();\n }\n }, [refreshSignal]);\n};\n","import React from 'react';\nimport {SearchFilter} from '@reltio/mdm-sdk';\n\nexport const SearchFiltersContext = React.createContext<SearchFilter[]>([]);\n\nSearchFiltersContext.displayName = 'SearchFiltersContext';\n"],"names":["useActivitiesLoader","filter","max","offset","useCallback","async","filterString","buildActivitiesFilterString","data","getActivities","total","getActivitiesTotal","width","height","options","onItemClick","barChart","cartesianGrid","bar","tooltip","xAxis","yAxis","margin","isHorizontal","isLabelRotated","layout","barCategoryGap","dataKey","fill","type","tick","opacity","angle","textAnchor","stroke","undefined","tickFormatter","formatNumberAsMetric","tickCount","mirror","strokeDasharray","strokeOpacity","vertical","cursor","getBarChartSettings","onBarClick","group","clickable","useClickableStyle","content","CustomTooltip","shape","className","onClick","tooltipState","setTooltipState","useState","active","showTooltip","coordinate","label","payload","value","name","hideTooltip","state","useStyles","makeStyles","bubbleChart","position","withPercents","styles","showLegend","initialRect","x","propOr","y","initialLegendProps","getLegendProps","legendBox","setLegendBox","rect","legendProps","adjustRectWithLegend","bubbles","useMemo","pack","size","padding","bubblesLayout","hierarchy","children","sum","d","sort","a","b","leaves","useBubbles","useTooltipState","circles","map","bubble","cx","cy","key","r","onMouseEnter","onMouseLeave","getChartItemColor","attributeName","from","to","dur","style","item","id","color","percent","chartWidth","chartHeight","onBBoxUpdate","viewBox","CustomDot","otherProps","lineChart","line","strokeWidth","dot","activeDot","getLineChartSettings","theme","legendContainer","top","alignTop","alignBottom","bottom","legendBar","colors","background","join","right","legendLabel","fontSize","lineHeight","fontWeight","palette","text","primary","textAlign","paddingRight","boxSizing","overflowWrap","minValue","maxValue","Typography","classnames","mapChart","display","geography","outline","MAP_COLORS","geoUrl","geoIdName","values","pluck","Math","min","mapWidth","colorScale","scaleLog","domain","range","setGeography","useEffect","fetch","then","res","ok","Error","statusText","json","catch","error","console","warn","useGeography","getProjectionFunc","projection","geoFunc","d3Geo","geoObj","objects","Object","keys","featureObj","feature","fitSize","projectionFunc","MapProvider","projectionConfig","Geographies","geographies","geo","geoId","properties","geoLabel","cur","find","Geography","rsmKey","event","mapRect","target","parentElement","getBoundingClientRect","clientX","clientY","container","transition","userSelect","animation","animationDuration","maxFontSize","words","dataValues","minDataValue","maxDataValue","minFont","log","scale","d3Cloud","floor","exp","font","random","word","rotate","start","useCloud","cloudWords","transform","ChartsFactory","chartType","props","ChartTypes","BarChart","PieChart","isDonut","TreeChart","TableWithBars","wrapper","justifyContent","flexWrap","gridAutoRows","gridTemplateColumns","minWidth","maxWidth","alignItems","marginRight","itemColor","flexShrink","letterSpacing","alignRight","isTwoCols","length","align","verticalAlign","wrapperStyle","overflowY","maxHeight","tooltipWrapper","borderRadius","tooltipTitle","tooltipValue","tooltipValueBold","tooltipPercent","tooltipPayload","localizedValue","tooltipLabel","isNil","enrichDataWithPercents","percents","countPercents","i","Component","WithPercents","dataWithPercents","displayName","midAngle","innerRadius","outerRadius","startAngle","endAngle","RADIAN","PI","sin","cos","mx","my","circleX","circleY","textX","linePath","sectorProps","dy","showActiveShape","activeId","setActiveId","onPieClick","activeIndex","activeShape","ActiveShape","_","index","entry","textOverflow","pointerEvents","headCell","headLabel","whiteSpace","overflow","attribute","numberContainer","flexDirection","number","colorBarContainer","marginLeft","backgroundColor","headCellData","DefaultHeadCellRenderer","ExpandedValueTooltip","withTableContext","rowValue","columnData","ColorBar","tableContainer","cellBorder","borderLeft","borderRight","basicTableRef","headers","labelHeader","valueHeader","showValues","tableClasses","headData","i18n","resizable","headCellRenderer","HeadCellRenderer","rowCellValueRenderer","AttributeCellRenderer","initialWidth","NumberCellValueRenderer","context","BasicTable","columnsData","rowsData","headRowHeight","getRowCellHeight","classes","defaultColumnWidth","defaultColumnMinWidth","ref","treeBlock","treeLabel","CustomizedContent","clipPathId","useRef","nanoid","current","clipPath","verticalAnchor","normalizeValues","threshold","reduce","acc","normalizedValue","nameKey","ReloadFacetSignalContext","createContext","ReloadFacetActionContext","ReloadFacetProvider","refreshSignal","setRefreshSignal","refreshAll","signal","Provider","useReloadAllFacets","useContext","useReloadFacet","reload","RequestStates","SearchFiltersContext","React"],"sourceRoot":""}
|
package/7436.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="61a4a805-b867-486f-8348-f73c106c77c2",e._sentryDebugIdIdentifier="sentry-dbid-61a4a805-b867-486f-8348-f73c106c77c2")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1601"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[7436],{93553:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=i},28504:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");t.Z=i},56476:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");t.Z=i},4237:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"}),"CalendarToday");t.Z=i},80653:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList");t.Z=i},34948:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"GetApp");t.Z=i},24648:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=i},66337:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"Restore");t.Z=i},82056:(e,t,s)=>{s.d(t,{Z:()=>f});var n=s(31461),o=s(7896),a=s(24328),i=s(6277),r=s(69075),l=s(79312),d=s(40602),h=s(43853),c=s(65992),u=s(38066),m=s(52322);const p=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],y=(0,c.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${u.Z.primary}`]:t.primary},{[`& .${u.Z.secondary}`]:t.secondary},t.root,s.inset&&t.inset,s.primary&&s.secondary&&t.multiline,s.dense&&t.dense]}})((({ownerState:e})=>(0,o.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),f=a.forwardRef((function(e,t){const s=(0,h.Z)({props:e,name:"MuiListItemText"}),{children:c,className:f,disableTypography:g=!1,inset:v=!1,primary:T,primaryTypographyProps:M,secondary:L,secondaryTypographyProps:O}=s,D=(0,n.Z)(s,p),{dense:b}=a.useContext(d.Z);let Z=null!=T?T:c,k=L;const C=(0,o.Z)({},s,{disableTypography:g,inset:v,primary:!!Z,secondary:!!k,dense:b}),w=(e=>{const{classes:t,inset:s,primary:n,secondary:o,dense:a}=e,i={root:["root",s&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,r.Z)(i,u.L,t)})(C);return null==Z||Z.type===l.Z||g||(Z=(0,m.jsx)(l.Z,(0,o.Z)({variant:b?"body2":"body1",className:w.primary,component:null!=M&&M.variant?void 0:"span",display:"block"},M,{children:Z}))),null==k||k.type===l.Z||g||(k=(0,m.jsx)(l.Z,(0,o.Z)({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},O,{children:k}))),(0,m.jsxs)(y,(0,o.Z)({className:(0,i.default)(w.root,f),ownerState:C,ref:t},D,{children:[Z,k]}))}))},9366:(e,t,s)=>{s.d(t,{Q:()=>d});var n=s(7896),o=s(95038),a=s.n(o);const i={Y:"year",YY:"year",YYYY:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},r={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},l=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join("\n");class d{constructor({locale:e,formats:t,instance:s}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=i,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasTimezonePlugin=()=>void 0!==this.moment.tz,this.createSystemDate=e=>{const t=this.moment(e).local();return void 0===this.locale?t:t.locale(this.locale)},this.createUTCDate=e=>{const t=this.moment.utc(e);return void 0===this.locale?t:t.locale(this.locale)},this.createTZDate=(e,t)=>{if(!this.hasTimezonePlugin())throw new Error(l);const s="default"===t?this.moment(e):this.moment.tz(e,t);return void 0===this.locale?s:s.locale(this.locale)},this.date=e=>{if(null===e)return null;const t=this.moment(e);return t.locale(this.getCurrentLocaleCode()),t},this.dateWithTimezone=(e,t)=>null===e?null:"UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),this.getTimezone=e=>{var t,s,n;if(e.isUTC())return"UTC";const o=null==(t=e._z)?void 0:t.name;return null!=(s=null!=o?o:null==(n=this.moment.defaultZone)?void 0:n.name)?s:"system"},this.setTimezone=(e,t)=>{var s,n;if("UTC"===t)return e.clone().utc();if("system"===t)return e.clone().local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(l)}const o="default"===t?null!=(s=null==(n=this.moment.defaultZone)?void 0:n.name)?s:"system":t,a=e.clone();return a.tz(o),a},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.getCurrentLocaleCode=()=>this.locale||a().locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(a().localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=e=>e.match(/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g).map((e=>{const t=e[0];return"L"===t||";"===t?a().localeData(this.getCurrentLocaleCode()).longDateFormat(e):e})).join(""),this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.moment(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const s=e.clone();return s.locale(this.getCurrentLocaleCode()),s.format(t)},this.formatNumber=e=>e,this.getDiff=(e,t,s)=>e.diff(t,s),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e.isAfter(t),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBefore=(e,t)=>e.isBefore(t),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isWithinRange=(e,[t,s])=>e.isBetween(t,s,null,"[]"),this.startOfYear=e=>e.clone().startOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfYear=e=>e.clone().endOf("year"),this.endOfMonth=e=>e.clone().endOf("month"),this.endOfWeek=e=>e.clone().endOf("week"),this.endOfDay=e=>e.clone().endOf("day"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.getYear=e=>e.get("year"),this.getMonth=e=>e.get("month"),this.getDate=e=>e.get("date"),this.getHours=e=>e.get("hours"),this.getMinutes=e=>e.get("minutes"),this.getSeconds=e=>e.get("seconds"),this.getMilliseconds=e=>e.get("milliseconds"),this.setYear=(e,t)=>e.clone().year(t),this.setMonth=(e,t)=>e.clone().month(t),this.setDate=(e,t)=>e.clone().date(t),this.setHours=(e,t)=>e.clone().hours(t),this.setMinutes=(e,t)=>e.clone().minutes(t),this.setSeconds=(e,t)=>e.clone().seconds(t),this.setMilliseconds=(e,t)=>e.clone().milliseconds(t),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[this.startOfYear(e)];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.mergeDateAndTime=(e,t)=>e.clone().hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>a().weekdaysShort(!0),this.getWeekArray=e=>{const t=this.setLocaleToValue(e),s=t.clone().startOf("month").startOf("week"),n=t.clone().endOf("month").endOf("week");let o=0,a=s;const i=[];for(;a.isBefore(n);){const e=Math.floor(o/7);i[e]=i[e]||[],i[e].push(a),a=a.clone().add(1,"day"),o+=1}return i},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{const s=this.moment(e).startOf("year"),n=this.moment(t).endOf("year"),o=[];let a=s;for(;a.isBefore(n);)o.push(a),a=a.clone().add(1,"year");return o},this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?a().localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.moment=s||a(),this.locale=e,this.formats=(0,n.Z)({},r,t)}}},27308:(e,t,s)=>{s.d(t,{ZP:()=>v});var n=s(59740),o=s(7896),a=s(9249),i=s(87371),r=s(45754),l=s(11987),d=s(95058),h=s(24328),c=s.n(h),u=(s(3528),s(75047),s(81997)),m=s(54573);var p,y,f,g=(0,(s(78951),s(61950),s(64486)).m)(m.S);const v=(p=g,f=y=function(e){(0,r.Z)(m,e);var t,s,h=(t=m,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,d.Z)(t);if(s){var o=(0,d.Z)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,l.Z)(this,e)});function m(e){var t;return(0,a.Z)(this,m),(t=h.call(this)).select=void 0,t.lastRequest=void 0,t.mounted=!1,t.optionsCache={},t.handleInputChange=function(e,s){var n=t.props,o=n.cacheOptions,a=n.onInputChange,i=(0,u.G)(e,s,a);if(!i)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&t.optionsCache[i])t.setState({inputValue:i,loadedInputValue:i,loadedOptions:t.optionsCache[i],isLoading:!1,passEmptyOptions:!1});else{var r=t.lastRequest={};t.setState({inputValue:i,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(i,(function(e){t.mounted&&(e&&(t.optionsCache[i]=e),r===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:i,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return i},t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return(0,i.Z)(m,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,s=this.state.inputValue;!0===t&&this.loadOptions(s,(function(t){if(e.mounted){var s=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:s})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var s=this.props.loadOptions;if(!s)return t();var n=s(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}},{key:"render",value:function(){var e=this,t=this.props,s=(t.loadOptions,t.isLoading),a=(0,n.Z)(t,["loadOptions","isLoading"]),i=this.state,r=i.defaultOptions,l=i.inputValue,d=i.isLoading,h=i.loadedInputValue,u=i.loadedOptions,m=i.passEmptyOptions?[]:l&&h?u:r||[];return c().createElement(p,(0,o.Z)({},a,{ref:function(t){e.select=t},options:m,isLoading:d||s,onInputChange:this.handleInputChange}))}}]),m}(h.Component),y.defaultProps={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},f)}}]);
|
|
1
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="61a4a805-b867-486f-8348-f73c106c77c2",e._sentryDebugIdIdentifier="sentry-dbid-61a4a805-b867-486f-8348-f73c106c77c2")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"1.4.1603"},(self.webpackChunk_reltio_remotes=self.webpackChunk_reltio_remotes||[]).push([[7436],{93553:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");t.Z=i},28504:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack");t.Z=i},56476:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward");t.Z=i},4237:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"}),"CalendarToday");t.Z=i},80653:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"}),"FilterList");t.Z=i},34948:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z"}),"GetApp");t.Z=i},24648:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"Replay");t.Z=i},66337:(e,t,s)=>{var n=s(71600);t.Z=void 0;var o=n(s(68671)),a=s(52322),i=(0,o.default)((0,a.jsx)("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}),"Restore");t.Z=i},82056:(e,t,s)=>{s.d(t,{Z:()=>f});var n=s(31461),o=s(7896),a=s(24328),i=s(6277),r=s(69075),l=s(79312),d=s(40602),h=s(43853),c=s(65992),u=s(38066),m=s(52322);const p=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],y=(0,c.ZP)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${u.Z.primary}`]:t.primary},{[`& .${u.Z.secondary}`]:t.secondary},t.root,s.inset&&t.inset,s.primary&&s.secondary&&t.multiline,s.dense&&t.dense]}})((({ownerState:e})=>(0,o.Z)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}))),f=a.forwardRef((function(e,t){const s=(0,h.Z)({props:e,name:"MuiListItemText"}),{children:c,className:f,disableTypography:g=!1,inset:v=!1,primary:T,primaryTypographyProps:M,secondary:L,secondaryTypographyProps:O}=s,D=(0,n.Z)(s,p),{dense:b}=a.useContext(d.Z);let Z=null!=T?T:c,k=L;const C=(0,o.Z)({},s,{disableTypography:g,inset:v,primary:!!Z,secondary:!!k,dense:b}),w=(e=>{const{classes:t,inset:s,primary:n,secondary:o,dense:a}=e,i={root:["root",s&&"inset",a&&"dense",n&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return(0,r.Z)(i,u.L,t)})(C);return null==Z||Z.type===l.Z||g||(Z=(0,m.jsx)(l.Z,(0,o.Z)({variant:b?"body2":"body1",className:w.primary,component:null!=M&&M.variant?void 0:"span",display:"block"},M,{children:Z}))),null==k||k.type===l.Z||g||(k=(0,m.jsx)(l.Z,(0,o.Z)({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},O,{children:k}))),(0,m.jsxs)(y,(0,o.Z)({className:(0,i.default)(w.root,f),ownerState:C,ref:t},D,{children:[Z,k]}))}))},9366:(e,t,s)=>{s.d(t,{Q:()=>d});var n=s(7896),o=s(95038),a=s.n(o);const i={Y:"year",YY:"year",YYYY:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"digit",maxLength:1},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},d:{sectionType:"weekDay",contentType:"digit",maxLength:1},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},r={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",weekday:"dddd",weekdayShort:"ddd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",fullDateWithWeekday:"dddd, LL",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",monthAndYear:"MMMM YYYY",monthAndDate:"MMMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",fullDateTime:"lll",fullDateTime12h:"ll hh:mm A",fullDateTime24h:"ll HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},l=["Missing timezone plugin","To be able to use timezones, you have to pass the default export from `moment-timezone` to the `dateLibInstance` prop of `LocalizationProvider`","Find more information on https://mui.com/x/react-date-pickers/timezone/#moment-and-timezone"].join("\n");class d{constructor({locale:e,formats:t,instance:s}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="moment",this.moment=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=i,this.setLocaleToValue=e=>{const t=this.getCurrentLocaleCode();return t===e.locale()?e:e.locale(t)},this.hasTimezonePlugin=()=>void 0!==this.moment.tz,this.createSystemDate=e=>{const t=this.moment(e).local();return void 0===this.locale?t:t.locale(this.locale)},this.createUTCDate=e=>{const t=this.moment.utc(e);return void 0===this.locale?t:t.locale(this.locale)},this.createTZDate=(e,t)=>{if(!this.hasTimezonePlugin())throw new Error(l);const s="default"===t?this.moment(e):this.moment.tz(e,t);return void 0===this.locale?s:s.locale(this.locale)},this.date=e=>{if(null===e)return null;const t=this.moment(e);return t.locale(this.getCurrentLocaleCode()),t},this.dateWithTimezone=(e,t)=>null===e?null:"UTC"===t?this.createUTCDate(e):"system"===t||"default"===t&&!this.hasTimezonePlugin()?this.createSystemDate(e):this.createTZDate(e,t),this.getTimezone=e=>{var t,s,n;if(e.isUTC())return"UTC";const o=null==(t=e._z)?void 0:t.name;return null!=(s=null!=o?o:null==(n=this.moment.defaultZone)?void 0:n.name)?s:"system"},this.setTimezone=(e,t)=>{var s,n;if("UTC"===t)return e.clone().utc();if("system"===t)return e.clone().local();if(!this.hasTimezonePlugin()){if("default"===t)return e;throw new Error(l)}const o="default"===t?null!=(s=null==(n=this.moment.defaultZone)?void 0:n.name)?s:"system":t,a=e.clone();return a.tz(o),a},this.toJsDate=e=>e.toDate(),this.parseISO=e=>this.moment(e,!0),this.toISO=e=>e.toISOString(),this.parse=(e,t)=>""===e?null:this.locale?this.moment(e,t,this.locale,!0):this.moment(e,t,!0),this.getCurrentLocaleCode=()=>this.locale||a().locale(),this.is12HourCycleInCurrentLocale=()=>/A|a/.test(a().localeData(this.getCurrentLocaleCode()).longDateFormat("LT")),this.expandFormat=e=>e.match(/(\[[^[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})|./g).map((e=>{const t=e[0];return"L"===t||";"===t?a().localeData(this.getCurrentLocaleCode()).longDateFormat(e):e})).join(""),this.getFormatHelperText=e=>this.expandFormat(e).replace(/a/gi,"(a|p)m").toLocaleLowerCase(),this.isNull=e=>null===e,this.isValid=e=>this.moment(e).isValid(),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>{const s=e.clone();return s.locale(this.getCurrentLocaleCode()),s.format(t)},this.formatNumber=e=>e,this.getDiff=(e,t,s)=>e.diff(t,s),this.isEqual=(e,t)=>null===e&&null===t||this.moment(e).isSame(t),this.isSameYear=(e,t)=>e.isSame(t,"year"),this.isSameMonth=(e,t)=>e.isSame(t,"month"),this.isSameDay=(e,t)=>e.isSame(t,"day"),this.isSameHour=(e,t)=>e.isSame(t,"hour"),this.isAfter=(e,t)=>e.isAfter(t),this.isAfterYear=(e,t)=>e.isAfter(t,"year"),this.isAfterDay=(e,t)=>e.isAfter(t,"day"),this.isBefore=(e,t)=>e.isBefore(t),this.isBeforeYear=(e,t)=>e.isBefore(t,"year"),this.isBeforeDay=(e,t)=>e.isBefore(t,"day"),this.isWithinRange=(e,[t,s])=>e.isBetween(t,s,null,"[]"),this.startOfYear=e=>e.clone().startOf("year"),this.startOfMonth=e=>e.clone().startOf("month"),this.startOfWeek=e=>e.clone().startOf("week"),this.startOfDay=e=>e.clone().startOf("day"),this.endOfYear=e=>e.clone().endOf("year"),this.endOfMonth=e=>e.clone().endOf("month"),this.endOfWeek=e=>e.clone().endOf("week"),this.endOfDay=e=>e.clone().endOf("day"),this.addYears=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"years"):e.clone().add(t,"years"),this.addMonths=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"months"):e.clone().add(t,"months"),this.addWeeks=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"weeks"):e.clone().add(t,"weeks"),this.addDays=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"days"):e.clone().add(t,"days"),this.addHours=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"hours"):e.clone().add(t,"hours"),this.addMinutes=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"minutes"):e.clone().add(t,"minutes"),this.addSeconds=(e,t)=>t<0?e.clone().subtract(Math.abs(t),"seconds"):e.clone().add(t,"seconds"),this.getYear=e=>e.get("year"),this.getMonth=e=>e.get("month"),this.getDate=e=>e.get("date"),this.getHours=e=>e.get("hours"),this.getMinutes=e=>e.get("minutes"),this.getSeconds=e=>e.get("seconds"),this.getMilliseconds=e=>e.get("milliseconds"),this.setYear=(e,t)=>e.clone().year(t),this.setMonth=(e,t)=>e.clone().month(t),this.setDate=(e,t)=>e.clone().date(t),this.setHours=(e,t)=>e.clone().hours(t),this.setMinutes=(e,t)=>e.clone().minutes(t),this.setSeconds=(e,t)=>e.clone().seconds(t),this.setMilliseconds=(e,t)=>e.clone().milliseconds(t),this.getDaysInMonth=e=>e.daysInMonth(),this.getNextMonth=e=>e.clone().add(1,"month"),this.getPreviousMonth=e=>e.clone().subtract(1,"month"),this.getMonthArray=e=>{const t=[this.startOfYear(e)];for(;t.length<12;){const e=t[t.length-1];t.push(this.getNextMonth(e))}return t},this.mergeDateAndTime=(e,t)=>e.clone().hour(t.hour()).minute(t.minute()).second(t.second()),this.getWeekdays=()=>a().weekdaysShort(!0),this.getWeekArray=e=>{const t=this.setLocaleToValue(e),s=t.clone().startOf("month").startOf("week"),n=t.clone().endOf("month").endOf("week");let o=0,a=s;const i=[];for(;a.isBefore(n);){const e=Math.floor(o/7);i[e]=i[e]||[],i[e].push(a),a=a.clone().add(1,"day"),o+=1}return i},this.getWeekNumber=e=>e.week(),this.getYearRange=(e,t)=>{const s=this.moment(e).startOf("year"),n=this.moment(t).endOf("year"),o=[];let a=s;for(;a.isBefore(n);)o.push(a),a=a.clone().add(1,"year");return o},this.getMeridiemText=e=>this.is12HourCycleInCurrentLocale()?a().localeData(this.getCurrentLocaleCode()).meridiem("am"===e?0:13,0,!1):"am"===e?"AM":"PM",this.moment=s||a(),this.locale=e,this.formats=(0,n.Z)({},r,t)}}},27308:(e,t,s)=>{s.d(t,{ZP:()=>v});var n=s(59740),o=s(7896),a=s(9249),i=s(87371),r=s(45754),l=s(11987),d=s(95058),h=s(24328),c=s.n(h),u=(s(3528),s(75047),s(81997)),m=s(54573);var p,y,f,g=(0,(s(78951),s(61950),s(64486)).m)(m.S);const v=(p=g,f=y=function(e){(0,r.Z)(m,e);var t,s,h=(t=m,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=(0,d.Z)(t);if(s){var o=(0,d.Z)(this).constructor;e=Reflect.construct(n,arguments,o)}else e=n.apply(this,arguments);return(0,l.Z)(this,e)});function m(e){var t;return(0,a.Z)(this,m),(t=h.call(this)).select=void 0,t.lastRequest=void 0,t.mounted=!1,t.optionsCache={},t.handleInputChange=function(e,s){var n=t.props,o=n.cacheOptions,a=n.onInputChange,i=(0,u.G)(e,s,a);if(!i)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(o&&t.optionsCache[i])t.setState({inputValue:i,loadedInputValue:i,loadedOptions:t.optionsCache[i],isLoading:!1,passEmptyOptions:!1});else{var r=t.lastRequest={};t.setState({inputValue:i,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(i,(function(e){t.mounted&&(e&&(t.optionsCache[i]=e),r===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:i,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return i},t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return(0,i.Z)(m,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,s=this.state.inputValue;!0===t&&this.loadOptions(s,(function(t){if(e.mounted){var s=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:s})}}))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var s=this.props.loadOptions;if(!s)return t();var n=s(e,t);n&&"function"==typeof n.then&&n.then(t,(function(){return t()}))}},{key:"render",value:function(){var e=this,t=this.props,s=(t.loadOptions,t.isLoading),a=(0,n.Z)(t,["loadOptions","isLoading"]),i=this.state,r=i.defaultOptions,l=i.inputValue,d=i.isLoading,h=i.loadedInputValue,u=i.loadedOptions,m=i.passEmptyOptions?[]:l&&h?u:r||[];return c().createElement(p,(0,o.Z)({},a,{ref:function(t){e.select=t},options:m,isLoading:d||s,onInputChange:this.handleInputChange}))}}]),m}(h.Component),y.defaultProps={cacheOptions:!1,defaultOptions:!1,filterOption:null,isLoading:!1},f)}}]);
|
|
2
2
|
//# sourceMappingURL=7436.js.map
|