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AAAsH,CAAA,CAAAzQ,GAAA,UACF9F,CAAA,g8BAAc,CACdiP,IAAA,aAEE,GAAAsH,CAAA,CAAAzQ,GAAA,UACF9F,CAAA,qjEAAc,CACdiP,IAAA,aAEE,GAAAsH,CAAA,CAAAzQ,GAAA,UACF9F,CAAA,y2CAAc,CACdiP,IAAA,aAEJ,CACH,EAED,CAA4B,gBAAApP,CAAA,CAAAC,CAAA,CAAAC,CAAA,EAAAA,CAAA,CAAAC,CAAA,CAAAF,CAAA,sBAAA0W,CAAA,QAAAD,CAAA,CAAAxW,CAAA,iBC9B1ByW,CAAA,GACM,MAAW,GAAAD,CAAA,CAAA5O,IAAA,SAACkD,KAAA,CAAM,IAAC,CAAKC,MAAA,CAAO,IAAC,CAAYkE,OAAM,aAA4BE,KAAA,8BAAAtH,QAAA,EAE5E,GAAA2O,CAAA,CAAAzQ,GAAA,UACF9F,CAAA,gvCAAmB,CACnBiP,IAAA,kBACM,GAAAsH,CAA6C,CAAAzQ,GAAA,UAAC9F,CAAA,8CAAmB,CAAGiP,IAAA,kBAE9E,CACH,GAZD,QAYC","sources":["webpack://_N_E/./src/redux/reselect/top-chart.js","webpack://_N_E/./src/theme/charts/line/index.js","webpack://_N_E/./src/components/top-line-charts/list-chart/row.js","webpack://_N_E/./src/components/top-line-charts/list-chart/index.js","webpack://_N_E/./src/lib/utils.js","webpack://_N_E/./src/redux/reselect/duration.js","webpack://_N_E/./src/lib/format-number.js","webpack://_N_E/./src/redux/reselect/quantity.js","webpack://_N_E/./src/theme/charts/area-analytic/label.js","webpack://_N_E/./src/theme/charts/area-analytic/tabs.js","webpack://_N_E/./src/theme/charts/area-analytic/index.js","webpack://_N_E/./src/theme/icons/filetype-xlsx.js","webpack://_N_E/./src/theme/icons/history.js","webpack://_N_E/"],"sourcesContent":["/* eslint-disable camelcase */\nimport { createSelector } from 'reselect';\nimport formatCurrency from 'lib/format-currency';\nimport translations from 'translations';\nimport configSelector from './config';\n\nconst selectPayloadByKey = createSelector(\n (state) => state.aggr.payload,\n (_, key) => key,\n (payload, key) => payload[key],\n);\n\nconst selectTopLine = createSelector(selectPayloadByKey, configSelector, (payload, config) => {\n const { languageCode } = config;\n if (!payload || !payload.data) return [];\n\n const {\n currency,\n query,\n data: {\n aggregations: {\n results: { buckets },\n },\n },\n } = payload;\n\n const isUsage = query.includes('usage_data');\n let currentTotal = 0;\n let durationTotal = 0;\n\n buckets.forEach((data) => {\n const {\n current_period: {\n total_revenues: { value },\n total_duration: { value: valueDuration },\n },\n } = data;\n\n currentTotal += value;\n durationTotal += valueDuration;\n });\n\n return buckets\n .map((data) => {\n const { key: title, current_period, previous_period } = data;\n\n const totalCurrentRevenues = formatCurrency(currency, current_period.total_revenues.value);\n const totalPreviousRevenues = formatCurrency(currency, previous_period.total_revenues.value);\n const totalCurrentDuration = `${parseFloat(current_period.total_duration.value / 60).toFixed(\n 1,\n )} ${translations[languageCode].hours}`;\n const totalPreviousDuration = `${parseFloat(\n previous_period.total_duration.value / 60,\n ).toFixed(1)} ${translations[languageCode].hours}`;\n\n let percentEarning = 0;\n if (previous_period.total_revenues.value !== 0) {\n percentEarning = Math.round(\n ((current_period.total_revenues.value - previous_period.total_revenues.value) /\n previous_period.total_revenues.value) *\n 100,\n );\n }\n\n let percentTrend = 0;\n if (previous_period.total_duration.value !== 0) {\n percentTrend = Math.round(\n ((current_period.total_duration.value - previous_period.total_duration.value) /\n previous_period.total_duration.value) *\n 100,\n );\n }\n\n let percent = 0;\n if (currentTotal > 0) percent = Math.round((current_period.total_revenues.value * 100) / currentTotal);\n\n let percentDuration = 0;\n if (durationTotal > 0) percentDuration = Math.round((current_period.total_duration.value * 100) / durationTotal);\n\n return {\n title,\n unformattedRevenues: current_period.total_revenues.value,\n unformattedDuration: current_period.total_duration.value,\n totalCurrentRevenues,\n totalPreviousRevenues,\n totalCurrentDoc: current_period.doc_count,\n totalCurrentQuantity: current_period.total_quantity.value,\n totalPreviousQuantity: previous_period.total_quantity.value,\n totalCurrentDuration,\n totalPreviousDuration,\n percentEarning,\n percent,\n percentTrend,\n percentDuration,\n };\n })\n .sort((a, b) => !isUsage ? a.unformattedRevenues - b.unformattedRevenues : a.unformattedDuration - b.unformattedDuration)\n .reverse();\n});\n\nexport default selectTopLine;\n","import React from 'react';\nimport styled from 'styled-components';\nimport { color, space, border } from 'styled-system';\nimport { themeGet } from '@styled-system/theme-get';\n\nconst Wrapper = styled.div`\n ${color}\n ${space}\n\n display: flex;\n position: relative;\n height: 8px;\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n\n :after {\n content: ' ';\n position: absolute;\n top: 0px;\n background-color: ${({ colorLine }) => themeGet(`colors.${colorLine}`)};\n height: 8px;\n width: ${({ percent }) => percent}%;\n border-bottom-left-radius: 3px;\n border-bottom-right-radius: 3px;\n\n ${border}\n }\n`;\n\nexport default function line({ className, percent, defaultColor }) {\n return (\n \n );\n}\n","/* eslint-disable no-nested-ternary */\nimport React, { useMemo } from 'react';\nimport styled from 'styled-components';\nimport { typography, color, space } from 'styled-system';\nimport { themeGet } from '@styled-system/theme-get';\nimport colors from 'theme/charts/colors';\nimport Line from 'theme/charts/line';\nimport Text from 'theme/text';\nimport History from 'theme/icons/history';\nimport translations from 'translations';\n\nconst Wrapper = styled.div`\n display: flex;\n flex-direction: column;\n height: 83px;\n`;\n\nconst Flex = styled.div`\n display: flex;\n flex-direction: row;\n`;\n\nconst Card = styled.div`\n display: flex;\n flex-direction: row;\n flex: 1;\n align-items: center;\n\n & > .row {\n height: 75px;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n flex: 1;\n padding: ${themeGet('space.s')}px ${themeGet('space.m')}px;\n\n & > .left {\n max-width: 380px;\n }\n\n .small {\n max-width: 200px;\n }\n\n & > .right {\n & > .right-row {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n }\n\n & > .previous-revenues {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n\n & > p {\n padding-right: ${themeGet('space.s')}px;\n }\n }\n }\n }\n`;\n\nconst WrapIcon = styled.span`\n ${color}\n`;\n\nconst Value = styled.div`\n ${color}\n ${space}\n\n display: flex;\n justify-content: flex-end;\n align-items: center;\n`;\n\nconst TextEllipsis = styled.p`\n ${typography}\n ${color}\n ${space}\n\n height: ${({ line }) => line * 22}px;\n overflow: hidden;\n text-overflow: ellipsis;\n /* stylelint-disable */\n display: -webkit-box;\n -webkit-box-orient: vertical;\n /* stylelint-enable */\n -webkit-line-clamp: ${({ line }) => line};\n`;\n\nfunction Row({\n payload,\n index,\n languageCode,\n dataType,\n size,\n color = 'store_name',\n noPrevious = false,\n}) {\n const colorLine = useMemo(() => colors[color][index % 6], [index]);\n const isUsage = dataType === 'usage_data';\n\n return (\n \n \n \n {index + 1}\n \n
\n
\n \n \n {isUsage\n ? isNaN(payload.percentDuration)\n ? 0\n : payload.percentDuration\n : isNaN(payload.percent)\n ? 0\n : payload.percent}\n %\n \n \n {payload.title}\n \n \n \n {`${isUsage ? payload.totalCurrentDuration : payload.totalCurrentRevenues} (${\n payload.totalCurrentQuantity\n } ${translations[languageCode].units})`}\n \n
\n {!noPrevious && (\n
\n
\n \n {translations[languageCode].previous_period}\n \n\n \n \n \n
\n\n
\n \n {isUsage ? payload.totalPreviousDuration : payload.totalPreviousRevenues}\n \n {isUsage ? (\n \n 0\n ? 'lime_400'\n : payload.percentTrend < 0\n ? 'red_400'\n : 'grey_600'\n }\n textAlign=\"right\"\n >\n {`${\n payload.percentTrend > 0 ? '+' : payload.percentTrend < 0 ? '-' : ''\n } ${Math.abs(payload.percentTrend)}%`}\n \n \n ) : (\n \n 0\n ? 'lime_400'\n : payload.percentEarning < 0\n ? 'red_400'\n : 'grey_600'\n }\n textAlign=\"right\"\n >\n {`${\n payload.percentEarning > 0 ? '+' : payload.percentEarning < 0 ? '-' : ''\n } ${Math.abs(payload.percentEarning)}%`}\n \n \n )}\n
\n
\n )}\n
\n
\n \n
\n );\n}\n\nexport default Row;\n","/* eslint-disable no-nested-ternary */\nimport React, { useState, useEffect, useMemo, useCallback } from 'react';\nimport styled from 'styled-components';\nimport { color, layout } from 'styled-system';\nimport base64 from 'base-64';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { getAggrRequest } from 'redux-api/action/aggr';\nimport { topLineCsvRequest } from 'redux-api/action/csv';\nimport selectTopChart from 'redux-api/reselect/top-chart';\nimport ContentLoader from 'theme/content-loader';\nimport EmptyData from 'theme/empty-data';\nimport BtnLink from 'theme/buttons/btn-link';\nimport FiletypeXlsx from 'theme/icons/filetype-xlsx';\nimport translations from 'translations';\nimport Row from './row';\n\nconst Wrapper = styled.div`\n display: flex;\n flex-direction: column;\n width: 100%;\n height: 100%;\n overflow-y: auto;\n\n & > .head {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n }\n\n ${layout}\n`;\n\nconst WrapEmpty = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n height: 100%;\n\n ${color}\n`;\n\nfunction ListChart({\n compare,\n term,\n dataType,\n dateFrom,\n dateTo,\n dateRange,\n filters,\n terms,\n size,\n color,\n reloadChecked,\n noPrevious,\n topList,\n}) {\n const [queriedKey, setQueriedKey] = useState(null);\n\n const dispatch = useDispatch();\n\n const { currency, languageCode } = useSelector((state) => state.config);\n const resultPayload = useSelector((state) => state.aggr.payload[queriedKey]);\n let resultTopChart = useSelector((state) => selectTopChart(state, queriedKey));\n const { analytics_type } = useSelector((state) => state.profile.payload);\n\n if (size === 'small') resultTopChart = resultTopChart.slice(0, 5);\n\n const query = useMemo(() => {\n if (!dataType || !dateTo || !dateFrom) return [];\n\n let result = `currency=${currency}&dataType=${dataType}&term=${term}&size=100&dateTo=${dateTo}&dateFrom=${dateFrom}&dateRange=${dateRange}&compare=${compare}&version=7&enterprise=${\n analytics_type || 'standard'\n }`;\n\n if (filters) {\n result = `${result}&filters=${filters}`;\n }\n\n if (terms) {\n result = `${result}&terms=${terms}`;\n }\n\n return result;\n }, [\n term,\n dateTo,\n dateFrom,\n dateRange,\n dataType,\n filters,\n terms,\n currency,\n compare,\n analytics_type,\n ]);\n\n useEffect(() => {\n const key = base64.encode(query);\n setQueriedKey(key);\n\n dispatch(\n getAggrRequest({\n term,\n size: 0,\n key,\n query,\n currency,\n }),\n );\n }, [dispatch, query, currency, term, reloadChecked]);\n\n const handleExportCsv = useCallback(() => {\n dispatch(\n topLineCsvRequest({\n dateFrom,\n dateTo,\n currency,\n languageCode,\n term,\n query,\n }),\n );\n }, [dispatch, dateFrom, dateTo, query, term, currency, languageCode]);\n\n const isWaiting = useMemo(() => {\n if (!resultPayload) return true;\n\n return resultPayload.isWaiting;\n }, [resultPayload]);\n\n const isEmpty = useMemo(() => {\n if (isWaiting) return false;\n\n return resultTopChart.length === 0;\n }, [isWaiting, resultTopChart]);\n\n return (\n \n {isWaiting ? (\n \n ) : isEmpty ? (\n \n \n \n ) : (\n <>\n {(topList !== 'partners' && size !== 'small') && (\n
\n }\n label={translations[languageCode]['Export XLS']}\n onClick={handleExportCsv}\n />\n
\n )}\n {resultTopChart.map((payload, index) => (\n \n ))}\n \n )}\n
\n );\n}\n\nexport default ListChart;\n","const capitalizeFirstLetter = (string) => {\n return string.charAt(0).toUpperCase() + string.slice(1);\n}\n\nconst formatDateString = {\n it: 'DD MMM',\n pt: 'DD MMM',\n de: 'DD MMM',\n en: 'MMM DD',\n};\n\nexport { capitalizeFirstLetter, formatDateString };\n","/* eslint-disable camelcase */\nimport { createSelector } from 'reselect';\nimport translations from 'translations';\nimport configSelector from './config';\n\nexport default createSelector(\n (state) => state.count.payload,\n (_, key) => key,\n configSelector,\n (payload, key, { languageCode }) => {\n let percent = 0;\n const card = payload[key];\n\n if (!card || !card.data) return { percent, value: null };\n\n const {\n data: {\n aggregations: { current_period, previous_period },\n },\n } = card;\n\n const currentDuration = parseFloat((current_period.total_duration.value / 60).toFixed(1));\n const previousDuration = parseFloat((previous_period.total_duration.value / 60).toFixed(1));\n\n percent = 100;\n\n if (previousDuration !== 0) {\n percent = Math.round(((currentDuration - previousDuration) / previousDuration) * 100);\n }\n\n if (previousDuration === 0 && currentDuration === 0) percent = 0;\n\n return {\n percent,\n value: `${currentDuration} ${translations[languageCode].hours}`,\n previousValue: `${previousDuration} ${translations[languageCode].hours}`,\n };\n },\n);\n","const formatNumber = (locale, value) => {\n if (locale === 'it') {\n return new Intl.NumberFormat('it-IT').format(value);\n }\n\n return new Intl.NumberFormat('en-US').format(value);\n};\n\nexport default formatNumber;\n","/* eslint-disable camelcase */\nimport { createSelector } from 'reselect';\nimport translations from 'translations';\nimport configSelector from './config';\nimport formatNumber from 'lib/format-number';\n\nexport default createSelector(\n (state) => state.count.payload,\n (_, key) => key,\n configSelector,\n (payload, key, { languageCode }) => {\n let percent = 0;\n const card = payload[key];\n\n if (!card || !card.data) return { percent, value: null };\n\n const {\n data: {\n aggregations: { current_period, previous_period },\n },\n query,\n } = card;\n\n const currentQuantity = current_period.total_quantity.value;\n const previousQuantity = previous_period.total_quantity.value;\n\n percent = 100;\n\n if (previousQuantity !== 0) {\n percent = Math.round(((currentQuantity - previousQuantity) / previousQuantity) * 100);\n }\n\n if (previousQuantity === 0 && currentQuantity === 0) percent = 0;\n\n return {\n percent,\n value: `${formatNumber(languageCode, currentQuantity)} ${query.match(/usage_data/) ? translations[languageCode].users : translations[languageCode].qty}`,\n previousValue: `${formatNumber(languageCode, previousQuantity)} ${query.match(/usage_data/) ? translations[languageCode].users : translations[languageCode].qty}`,\n };\n },\n);\n","import React, { useContext, useMemo, useCallback } from 'react';\nimport formatCurrency from 'lib/format-currency';\nimport { FormattedNumber } from 'react-intl';\nimport styled, { ThemeContext } from 'styled-components';\nimport { themeGet } from '@styled-system/theme-get';\n\nconst width = 300;\nconst height = 125;\n\nconst Wrapper = styled.g`\n transform: ${({ isRotate }) => (isRotate ? 'rotate(180deg)' : 'rotate(0deg)')};\n transform-origin: ${({ isRotate }) => (isRotate ? `${width / 2}px ${height / 2}px` : '0px 0px')};\n`;\n\nfunction Label({ maxWidth, x, y, activePoints, data: areaData }) {\n const isRotate = useMemo(() => x > maxWidth / 2, [x, maxWidth]);\n\n const theme = useContext(ThemeContext);\n\n const getLabel = useCallback(\n (color) => {\n const el = areaData.find((row) => themeGet(`colors.${row.color}`)({ theme }) === color);\n\n return el && el.label ? el.label : '';\n },\n [areaData, theme],\n );\n\n const getValue = useCallback(\n ({ color, data }) => {\n if (color === 'trasparent') return '';\n const el = areaData.find((row) => themeGet(`colors.${row.color}`)({ theme }) === color);\n\n if (el && el.id) {\n if (el && el.id.match(/revenue/)) {\n return formatCurrency(el.currency, Number(data));\n }\n\n return ;\n }\n\n return ;\n },\n [areaData, theme],\n );\n\n return (\n \n \n \n \n \n \n \n \n {activePoints[0].xName}\n \n \n \n {activePoints.map(\n ({ style, y: data }, index) =>\n areaData[index] && (\n \n \n \n \n {`${getLabel(style.data.stroke)}`}\n \n \n {getValue({ color: style.data.stroke, data })}\n \n \n \n ),\n )}\n \n );\n}\n\nexport default Label;\n","import styled from 'styled-components';\nimport { space, color } from 'styled-system';\nimport { useSelector } from 'react-redux';\nimport translations from 'translations';\nimport Text from 'theme/text';\n\nconst WrapTab = styled.div`\n display: flex;\n flex-direction: row;\n align-items: center;\n width: 100%;\n\n ${space}\n`;\n\nconst TabBtn = styled.button`\n border-radius: 8px;\n\n ${color}\n ${space}\n`;\n\nfunction AreaTabs({ handleChangeTab, activeKey, dataType }) {\n const { languageCode } = useSelector((state) => state.config);\n return (\n \n \n\n \n \n );\n}\n\nexport default AreaTabs;\n","/* eslint-disable no-nested-ternary */\nimport React, { useContext, useMemo, useState } from 'react';\nimport styled, { ThemeContext } from 'styled-components';\nimport { space, typography, color, border } from 'styled-system';\nimport { themeGet } from '@styled-system/theme-get';\nimport {\n VictoryTooltip,\n VictoryVoronoiContainer,\n VictoryAxis,\n VictoryGroup,\n VictoryArea,\n VictoryChart,\n VictoryLine,\n Flyout,\n} from 'victory';\nimport { useDimensions } from 'hooks';\nimport History from 'theme/icons/history';\nimport BtnGhost from 'theme/buttons/ghost';\nimport translations from 'translations';\nimport Label from './label';\nimport AreaTabs from './tabs';\nimport { useSelector } from 'react-redux';\nimport moment from 'moment';\nimport { formatDateString } from '../../../lib/utils';\n\nconst Wrapper = styled.div`\n width: 100%;\n z-index: 999;\n\n .VictoryContainer {\n & > svg {\n overflow: visible;\n }\n }\n\n @media only screen and (max-width: 768px) {\n .VictoryContainer {\n user-select: auto !important;\n touch-action: auto !important;\n }\n }\n`;\n\nconst Head = styled.div`\n ${space}\n\n display: flex;\n flex-direction: row;\n\n .left {\n display: flex;\n justify-content: flex-start;\n flex: 1;\n }\n\n .right {\n display: flex;\n justify-content: flex-end;\n flex: 1;\n }\n`;\n\nconst WrapValues = styled.div`\n display: flex;\n flex-direction: column;\n\n .row {\n display: flex;\n flex-direction: row;\n }\n`;\n\nconst Value = styled.div`\n ${color}\n ${space}\n\n display: flex;\n justify-content: flex-end;\n align-items: center;\n`;\n\nconst Text = styled.p`\n ${typography}\n ${color}\n ${space}\n\n white-space: nowrap;\n text-transform: capitalize;\n`;\n\nconst Legend = styled.div`\n display: flex;\n justify-content: center;\n`;\n\nconst LegendLabel = styled.span`\n ${space}\n\n display: flex;\n align-items: center;\n\n & > :before {\n ${color}\n\n display: inline-block;\n content: '';\n width: 10px;\n height: 10px;\n border-radius: 50%;\n margin-right: 6px;\n }\n`;\n\nconst WrapIcon = styled.span`\n ${color}\n ${space}\n`;\n\nconst Menu = styled.div`\n ${space}\n ${color}\n\n display: ${({ isVisible }) => (isVisible ? 'block' : 'none')};\n\n width: 150px;\n position: absolute;\n top: auto;\n right: 32px;\n margin-top: 60px;\n border: 1px solid;\n border-radius: 12px;\n z-index: 999;\n overflow: hidden;\n\n ${border}\n\n & > ul {\n width: 100%;\n margin: 0;\n padding: 0;\n\n & > li {\n width: 100%;\n height: 54px;\n list-style-type: none;\n display: flex;\n padding: 0 8px;\n box-shadow: inset 0px -1px 0px ${themeGet('colors.primary_100')};\n\n &:hover {\n box-shadow: inset 0px -2px 0px ${themeGet('colors.primary_200')};\n }\n\n &:active {\n box-shadow: inset 0px -4px 0px ${themeGet('colors.primary_500')};\n background-color: ${themeGet('colors.primary_200')};\n }\n\n &.active {\n background-color: ${themeGet('colors.primary_100')};\n }\n }\n }\n`;\n\nconst StyledBtnGhost = styled(BtnGhost)`\n width: 100%;\n\n & > span {\n justify-content: flex-start;\n }\n`;\n\nfunction Area({\n title,\n temporaryRevenue,\n interval,\n intervalDiff,\n onChangeInterval,\n chart,\n isWithinRange,\n chartHeight,\n titleMargin,\n handleChangeTab,\n activeKey,\n dataType,\n}) {\n const { languageCode } = useSelector((state) => state.config);\n const { width } = useDimensions();\n const [isOpen, setOpen] = useState(false);\n const theme = useContext(ThemeContext);\n\n const xAxisLength = useMemo(() => {\n if (chart?.length === 0) return 0;\n if (chart[0]?.data?.length <= 6) return 1;\n\n return Math.round(chart[0]?.data?.length / 6);\n }, [chart]);\n\n const maxAxisY = useMemo(() => {\n if (chart.length === 0) return 0;\n\n const maxAxis = chart.reduce((max, item) => Math.max(max, item.maxAxisY), -Infinity);\n\n return maxAxis;\n }, [chart]);\n\n const yAxisPadding = useMemo(() => {\n if (maxAxisY === 0) return 0;\n\n return -20 - maxAxisY.toString()?.length * 5;\n }, [chart]);\n\n const PageWidth = useMemo(() => width, [width]);\n\n const { sideDate = null, value: isSideDateActive = false } = isWithinRange || {};\n const sideDateParsed = (sideDate && moment(sideDate).format(formatDateString[languageCode])) || null;\n\n // console.log('isWithinRange', sideDate, sideDateParsed, isSideDateActive);\n\n return (\n \n \n \n
\n \n {title}\n \n
\n\n {temporaryRevenue && (\n
\n \n
\n \n {chart.map((el) => (\n \n \n {el.label}\n \n \n ))}\n \n
\n
\n \n {temporaryRevenue.value}\n \n \n 0\n ? 'lime_400'\n : temporaryRevenue.percent < 0\n ? 'red_400'\n : 'grey_600'\n }\n >\n {`${\n temporaryRevenue.percent > 0 ? '+' : temporaryRevenue.percent < 0 ? '-' : ''\n } ${Math.abs(temporaryRevenue.percent)}%`}\n \n \n
\n
\n \n {temporaryRevenue.previousValue}\n \n \n \n \n
\n
\n
\n )}\n \n\n ' '}\n labelComponent={\n }\n />\n }\n />\n }\n padding={{ left: 0, right: 0, top: 0, bottom: 50 }}\n >\n (index % xAxisLength === 0 ? t : '')}\n style={{\n axis: { stroke: 'transparent' },\n tickLabels: {\n fontFamily: 'inherit',\n fontSize: 13,\n padding: 12,\n angle: 35,\n verticalAnchor: 'end',\n textAnchor: 'start',\n },\n }}\n />\n t.toFixed(0)}\n dependentAxis\n style={{\n grid: { stroke: 'grey', strokeDasharray: '4, 8', strokeWidth: 0.5 },\n axis: { stroke: 'transparent' },\n tickLabels: {\n fontFamily: 'inherit',\n textAnchor: 'end',\n fontSize: 13,\n padding: yAxisPadding,\n },\n }}\n />\n {chart.map((el) => {\n // Divide i dati in base alla sideDate\n const sideDateTime = sideDate\n ? moment(sideDate).endOf('day').utc().startOf('day').format()\n : moment('2100-01-01').format();\n const dataBeforeSideDate = el.data.filter((datum) =>\n moment(datum.timestamp).isSameOrBefore(sideDateTime),\n );\n const dataAfterSideDate = el.data.filter((datum) =>\n moment(datum.timestamp).isSameOrAfter(sideDateTime),\n );\n\n if (el.id.match(/prev_/)) {\n return (\n \n ' '}\n />\n ' '}\n />\n \n );\n } else {\n return (\n \n {/* Blocco per i dati prima di sideDate */}\n \n {/* Blocco per i dati dopo sideDate */}\n \n \n );\n }\n })}\n\n {isSideDateActive && (\n translations[languageCode]['sideDateText']}\n labelComponent={\n \n }\n />\n )}\n \n
\n );\n}\n\nexport default Area;\n","import React from 'react';\n\nfunction FiletypeXlsx() {\n return (\n \n \n \n \n \n \n \n \n );\n}\n\nexport default FiletypeXlsx;\n","import React from 'react';\n\nexport default function history() {\n return (\n \n \n \n \n );\n}\n","\"use strict\";\n(self[\"webpackChunk_N_E\"] = self[\"webpackChunk_N_E\"] || []).push([[842],{\n\n/***/ 11053:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"Z\": function() { return /* binding */ list_chart; }\n});\n\n// EXTERNAL MODULE: ./node_modules/@swc/helpers/src/_tagged_template_literal.mjs\nvar _tagged_template_literal = __webpack_require__(7297);\n// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js\nvar jsx_runtime = __webpack_require__(85893);\n// EXTERNAL MODULE: ./node_modules/react/index.js\nvar react = __webpack_require__(67294);\n// EXTERNAL MODULE: ./node_modules/styled-components/dist/styled-components.browser.esm.js + 4 modules\nvar styled_components_browser_esm = __webpack_require__(14141);\n// EXTERNAL MODULE: ./node_modules/styled-system/dist/index.esm.js + 12 modules\nvar index_esm = __webpack_require__(32016);\n// EXTERNAL MODULE: ./node_modules/base-64/base64.js\nvar base64 = __webpack_require__(97501);\nvar base64_default = /*#__PURE__*/__webpack_require__.n(base64);\n// EXTERNAL MODULE: ./node_modules/react-redux/es/index.js + 19 modules\nvar es = __webpack_require__(15313);\n// EXTERNAL MODULE: ./src/redux/action/aggr.js\nvar aggr = __webpack_require__(49888);\n// EXTERNAL MODULE: ./src/redux/action/csv.js\nvar csv = __webpack_require__(63383);\n// EXTERNAL MODULE: ./node_modules/reselect/es/index.js + 1 modules\nvar reselect_es = __webpack_require__(68697);\n// EXTERNAL MODULE: ./src/lib/format-currency.js\nvar format_currency = __webpack_require__(70351);\n// EXTERNAL MODULE: ./src/translations/index.js + 4 modules\nvar translations = __webpack_require__(99408);\n// EXTERNAL MODULE: ./src/redux/reselect/config.js\nvar config = __webpack_require__(57708);\n;// CONCATENATED MODULE: ./src/redux/reselect/top-chart.js\n/* eslint-disable camelcase */ \n\n\n\nvar selectPayloadByKey = (0,reselect_es/* createSelector */.P1)(function(state) {\n return state.aggr.payload;\n}, function(_, key) {\n return key;\n}, function(payload, key) {\n return payload[key];\n});\nvar selectTopLine = (0,reselect_es/* createSelector */.P1)(selectPayloadByKey, config/* default */.ZP, function(payload, config) {\n var languageCode = config.languageCode;\n if (!payload || !payload.data) return [];\n var currency = payload.currency, query = payload.query, _data = payload.data, _aggregations = _data.aggregations, buckets = _aggregations.results.buckets;\n var isUsage = query.includes(\"usage_data\");\n var currentTotal = 0;\n var durationTotal = 0;\n buckets.forEach(function(data) {\n var _current_period = data.current_period, value = _current_period.total_revenues.value, _total_duration = _current_period.total_duration, valueDuration = _total_duration.value;\n currentTotal += value;\n durationTotal += valueDuration;\n });\n return buckets.map(function(data) {\n var title = data.key, current_period = data.current_period, previous_period = data.previous_period;\n var totalCurrentRevenues = (0,format_currency/* default */.Z)(currency, current_period.total_revenues.value);\n var totalPreviousRevenues = (0,format_currency/* default */.Z)(currency, previous_period.total_revenues.value);\n var totalCurrentDuration = \"\".concat(parseFloat(current_period.total_duration.value / 60).toFixed(1), \" \").concat(translations/* default */.Z[languageCode].hours);\n var totalPreviousDuration = \"\".concat(parseFloat(previous_period.total_duration.value / 60).toFixed(1), \" \").concat(translations/* default */.Z[languageCode].hours);\n var percentEarning = 0;\n if (previous_period.total_revenues.value !== 0) {\n percentEarning = Math.round((current_period.total_revenues.value - previous_period.total_revenues.value) / previous_period.total_revenues.value * 100);\n }\n var percentTrend = 0;\n if (previous_period.total_duration.value !== 0) {\n percentTrend = Math.round((current_period.total_duration.value - previous_period.total_duration.value) / previous_period.total_duration.value * 100);\n }\n var percent = 0;\n if (currentTotal > 0) percent = Math.round(current_period.total_revenues.value * 100 / currentTotal);\n var percentDuration = 0;\n if (durationTotal > 0) percentDuration = Math.round(current_period.total_duration.value * 100 / durationTotal);\n return {\n title: title,\n unformattedRevenues: current_period.total_revenues.value,\n unformattedDuration: current_period.total_duration.value,\n totalCurrentRevenues: totalCurrentRevenues,\n totalPreviousRevenues: totalPreviousRevenues,\n totalCurrentDoc: current_period.doc_count,\n totalCurrentQuantity: current_period.total_quantity.value,\n totalPreviousQuantity: previous_period.total_quantity.value,\n totalCurrentDuration: totalCurrentDuration,\n totalPreviousDuration: totalPreviousDuration,\n percentEarning: percentEarning,\n percent: percent,\n percentTrend: percentTrend,\n percentDuration: percentDuration\n };\n }).sort(function(a, b) {\n return !isUsage ? a.unformattedRevenues - b.unformattedRevenues : a.unformattedDuration - b.unformattedDuration;\n }).reverse();\n});\n/* harmony default export */ var top_chart = (selectTopLine);\n\n// EXTERNAL MODULE: ./src/theme/content-loader/index.js\nvar content_loader = __webpack_require__(52005);\n// EXTERNAL MODULE: ./src/theme/empty-data/index.js + 1 modules\nvar empty_data = __webpack_require__(40372);\n// EXTERNAL MODULE: ./src/theme/buttons/btn-link.js\nvar btn_link = __webpack_require__(25733);\n// EXTERNAL MODULE: ./src/theme/icons/filetype-xlsx.js\nvar filetype_xlsx = __webpack_require__(29651);\n// EXTERNAL MODULE: ./node_modules/@styled-system/theme-get/dist/index.esm.js\nvar dist_index_esm = __webpack_require__(50056);\n// EXTERNAL MODULE: ./src/theme/charts/colors.js\nvar colors = __webpack_require__(1778);\n;// CONCATENATED MODULE: ./src/theme/charts/line/index.js\n\nfunction _templateObject() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n \",\n \"\\n \",\n \"\\n\\n display: flex;\\n position: relative;\\n height: 8px;\\n border-bottom-left-radius: 3px;\\n border-bottom-right-radius: 3px;\\n\\n :after {\\n content: ' ';\\n position: absolute;\\n top: 0px;\\n background-color: \",\n \";\\n height: 8px;\\n width: \",\n \"%;\\n border-bottom-left-radius: 3px;\\n border-bottom-right-radius: 3px;\\n\\n \",\n \"\\n }\\n\"\n ]);\n _templateObject = function _templateObject() {\n return data;\n };\n return data;\n}\n\n\n\n\n\nvar Wrapper = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-4190790-0\"\n})(_templateObject(), index_esm/* color */.$_, index_esm/* space */.Dh, function(param) {\n var colorLine = param.colorLine;\n return (0,dist_index_esm/* themeGet */.R)(\"colors.\".concat(colorLine));\n}, function(param) {\n var percent = param.percent;\n return percent;\n}, index_esm/* border */.Cg);\nfunction line(param) {\n var className = param.className, percent = param.percent, defaultColor = param.defaultColor;\n return /*#__PURE__*/ (0,jsx_runtime.jsx)(Wrapper, {\n className: className,\n bg: \"primary_100\",\n colorLine: defaultColor,\n percent: percent\n });\n}\n\n// EXTERNAL MODULE: ./src/theme/text/index.js\nvar theme_text = __webpack_require__(5799);\n// EXTERNAL MODULE: ./src/theme/icons/history.js\nvar icons_history = __webpack_require__(87504);\n;// CONCATENATED MODULE: ./src/components/top-line-charts/list-chart/row.js\n/* eslint-disable no-nested-ternary */ \nfunction row_templateObject() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n display: flex;\\n flex-direction: column;\\n height: 83px;\\n\"\n ]);\n row_templateObject = function _templateObject() {\n return data;\n };\n return data;\n}\nfunction _templateObject1() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n display: flex;\\n flex-direction: row;\\n\"\n ]);\n _templateObject1 = function _templateObject1() {\n return data;\n };\n return data;\n}\nfunction _templateObject2() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n display: flex;\\n flex-direction: row;\\n flex: 1;\\n align-items: center;\\n\\n & > .row {\\n height: 75px;\\n display: flex;\\n flex-direction: row;\\n justify-content: space-between;\\n flex: 1;\\n padding: \",\n \"px \",\n \"px;\\n\\n & > .left {\\n max-width: 380px;\\n }\\n\\n .small {\\n max-width: 200px;\\n }\\n\\n & > .right {\\n & > .right-row {\\n display: flex;\\n flex-direction: row;\\n justify-content: flex-end;\\n }\\n\\n & > .previous-revenues {\\n display: flex;\\n flex-direction: row;\\n justify-content: flex-end;\\n\\n & > p {\\n padding-right: \",\n \"px;\\n }\\n }\\n }\\n }\\n\"\n ]);\n _templateObject2 = function _templateObject2() {\n return data;\n };\n return data;\n}\nfunction _templateObject3() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n \",\n \"\\n\"\n ]);\n _templateObject3 = function _templateObject3() {\n return data;\n };\n return data;\n}\nfunction _templateObject4() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n \",\n \"\\n \",\n \"\\n\\n display: flex;\\n justify-content: flex-end;\\n align-items: center;\\n\"\n ]);\n _templateObject4 = function _templateObject4() {\n return data;\n };\n return data;\n}\nfunction _templateObject5() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n \",\n \"\\n \",\n \"\\n \",\n \"\\n\\n height: \",\n \"px;\\n overflow: hidden;\\n text-overflow: ellipsis;\\n /* stylelint-disable */\\n display: -webkit-box;\\n -webkit-box-orient: vertical;\\n /* stylelint-enable */\\n -webkit-line-clamp: \",\n \";\\n\"\n ]);\n _templateObject5 = function _templateObject5() {\n return data;\n };\n return data;\n}\n\n\n\n\n\n\n\n\n\n\nvar row_Wrapper = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-93935d7f-0\"\n})(row_templateObject());\nvar Flex = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-93935d7f-1\"\n})(_templateObject1());\nvar Card = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-93935d7f-2\"\n})(_templateObject2(), (0,dist_index_esm/* themeGet */.R)(\"space.s\"), (0,dist_index_esm/* themeGet */.R)(\"space.m\"), (0,dist_index_esm/* themeGet */.R)(\"space.s\"));\nvar WrapIcon = styled_components_browser_esm/* default.span.withConfig */.ZP.span.withConfig({\n componentId: \"sc-93935d7f-3\"\n})(_templateObject3(), index_esm/* color */.$_);\nvar Value = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-93935d7f-4\"\n})(_templateObject4(), index_esm/* color */.$_, index_esm/* space */.Dh);\nvar TextEllipsis = styled_components_browser_esm/* default.p.withConfig */.ZP.p.withConfig({\n componentId: \"sc-93935d7f-5\"\n})(_templateObject5(), index_esm/* typography */.cp, index_esm/* color */.$_, index_esm/* space */.Dh, function(param) {\n var line = param.line;\n return line * 22;\n}, function(param) {\n var line = param.line;\n return line;\n});\nfunction Row(param) {\n var payload = param.payload, index = param.index, languageCode = param.languageCode, dataType = param.dataType, size = param.size, _color = param.color, _$color = _color === void 0 ? \"store_name\" : _color, _noPrevious = param.noPrevious, noPrevious = _noPrevious === void 0 ? false : _noPrevious;\n var colorLine = (0,react.useMemo)(function() {\n return colors/* default */.Z[_$color][index % 6];\n }, [\n index\n ]);\n var isUsage = dataType === \"usage_data\";\n return /*#__PURE__*/ (0,jsx_runtime.jsxs)(row_Wrapper, {\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(Card, {\n colorLine: colorLine,\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(theme_text/* default */.Z, {\n fontSize: \"display\",\n lineHeight: \"display\",\n fontWeight: \"medium\",\n ml: \"m\",\n children: index + 1\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(\"div\", {\n className: \"row\",\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(\"div\", {\n className: \"left \".concat(size === \"small\" && \"small\"),\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(Flex, {\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(theme_text/* default */.Z, {\n fontSize: \"h3\",\n lineHeight: \"h3\",\n fontWeight: \"bold\",\n ml: \"xs\",\n color: colorLine,\n children: [\n isUsage ? isNaN(payload.percentDuration) ? 0 : payload.percentDuration : isNaN(payload.percent) ? 0 : payload.percent,\n \"%\"\n ]\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(TextEllipsis, {\n fontSize: \"h3\",\n lineHeight: \"h3\",\n fontWeight: \"bold\",\n line: \"1\",\n ml: \"xs\",\n children: payload.title\n })\n ]\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(theme_text/* default */.Z, {\n fontSize: \"pSmall\",\n lineHeight: \"pSmall\",\n fontWeight: \"bold\",\n ml: \"xs\",\n color: colorLine,\n children: \"\".concat(isUsage ? payload.totalCurrentDuration : payload.totalCurrentRevenues, \" (\").concat(payload.totalCurrentQuantity, \" \").concat(translations/* default */.Z[languageCode].units, \")\")\n })\n ]\n }),\n !noPrevious && /*#__PURE__*/ (0,jsx_runtime.jsxs)(\"div\", {\n className: \"right\",\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(\"div\", {\n className: \"right-row\",\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(theme_text/* default */.Z, {\n fontSize: \"label\",\n lineHeight: \"label\",\n fontWeight: \"normal\",\n mr: \"xs\",\n children: translations/* default */.Z[languageCode].previous_period\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(WrapIcon, {\n color: colorLine,\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(icons_history/* default */.Z, {})\n })\n ]\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(\"div\", {\n className: \"previous-revenues\",\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(theme_text/* default */.Z, {\n fontSize: \"label\",\n lineHeight: \"label\",\n fontWeight: \"bold\",\n color: \"grey_400\",\n children: isUsage ? payload.totalPreviousDuration : payload.totalPreviousRevenues\n }),\n isUsage ? /*#__PURE__*/ (0,jsx_runtime.jsx)(Value, {\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(theme_text/* default */.Z, {\n fontSize: \"label\",\n lineHeight: \"label\",\n fontWeight: \"bold\",\n color: payload.percentTrend > 0 ? \"lime_400\" : payload.percentTrend < 0 ? \"red_400\" : \"grey_600\",\n textAlign: \"right\",\n children: \"\".concat(payload.percentTrend > 0 ? \"+\" : payload.percentTrend < 0 ? \"-\" : \"\", \" \").concat(Math.abs(payload.percentTrend), \"%\")\n })\n }) : /*#__PURE__*/ (0,jsx_runtime.jsx)(Value, {\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(theme_text/* default */.Z, {\n fontSize: \"label\",\n lineHeight: \"label\",\n fontWeight: \"bold\",\n color: payload.percentEarning > 0 ? \"lime_400\" : payload.percentEarning < 0 ? \"red_400\" : \"grey_600\",\n textAlign: \"right\",\n children: \"\".concat(payload.percentEarning > 0 ? \"+\" : payload.percentEarning < 0 ? \"-\" : \"\", \" \").concat(Math.abs(payload.percentEarning), \"%\")\n })\n })\n ]\n })\n ]\n })\n ]\n })\n ]\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(line, {\n percent: isUsage ? payload.percentDuration : payload.percent,\n defaultColor: colorLine\n })\n ]\n });\n}\n/* harmony default export */ var row = (Row);\n\n;// CONCATENATED MODULE: ./src/components/top-line-charts/list-chart/index.js\n/* eslint-disable no-nested-ternary */ \nfunction list_chart_templateObject() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n display: flex;\\n flex-direction: column;\\n width: 100%;\\n height: 100%;\\n overflow-y: auto;\\n\\n & > .head {\\n width: 100%;\\n display: flex;\\n align-items: center;\\n justify-content: flex-end;\\n }\\n\\n \",\n \"\\n\"\n ]);\n list_chart_templateObject = function _templateObject() {\n return data;\n };\n return data;\n}\nfunction list_chart_templateObject1() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n width: 100%;\\n height: 100%;\\n\\n \",\n \"\\n\"\n ]);\n list_chart_templateObject1 = function _templateObject1() {\n return data;\n };\n return data;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar list_chart_Wrapper = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-c4bde265-0\"\n})(list_chart_templateObject(), index_esm/* layout */.bK);\nvar WrapEmpty = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-c4bde265-1\"\n})(list_chart_templateObject1(), index_esm/* color */.$_);\nfunction ListChart(param) {\n var compare = param.compare, term = param.term, dataType = param.dataType, dateFrom = param.dateFrom, dateTo = param.dateTo, dateRange = param.dateRange, filters = param.filters, terms = param.terms, size = param.size, _$color = param.color, reloadChecked = param.reloadChecked, noPrevious = param.noPrevious, topList = param.topList;\n var ref = (0,react.useState)(null), queriedKey = ref[0], setQueriedKey = ref[1];\n var dispatch = (0,es/* useDispatch */.I0)();\n var ref1 = (0,es/* useSelector */.v9)(function(state) {\n return state.config;\n }), currency = ref1.currency, languageCode = ref1.languageCode;\n var resultPayload = (0,es/* useSelector */.v9)(function(state) {\n return state.aggr.payload[queriedKey];\n });\n var resultTopChart = (0,es/* useSelector */.v9)(function(state) {\n return top_chart(state, queriedKey);\n });\n var analytics_type = (0,es/* useSelector */.v9)(function(state) {\n return state.profile.payload;\n }).analytics_type;\n if (size === \"small\") resultTopChart = resultTopChart.slice(0, 5);\n var query = (0,react.useMemo)(function() {\n if (!dataType || !dateTo || !dateFrom) return [];\n var result = \"currency=\".concat(currency, \"&dataType=\").concat(dataType, \"&term=\").concat(term, \"&size=100&dateTo=\").concat(dateTo, \"&dateFrom=\").concat(dateFrom, \"&dateRange=\").concat(dateRange, \"&compare=\").concat(compare, \"&version=7&enterprise=\").concat(analytics_type || \"standard\");\n if (filters) {\n result = \"\".concat(result, \"&filters=\").concat(filters);\n }\n if (terms) {\n result = \"\".concat(result, \"&terms=\").concat(terms);\n }\n return result;\n }, [\n term,\n dateTo,\n dateFrom,\n dateRange,\n dataType,\n filters,\n terms,\n currency,\n compare,\n analytics_type, \n ]);\n (0,react.useEffect)(function() {\n var key = base64_default().encode(query);\n setQueriedKey(key);\n dispatch((0,aggr/* getAggrRequest */.js)({\n term: term,\n size: 0,\n key: key,\n query: query,\n currency: currency\n }));\n }, [\n dispatch,\n query,\n currency,\n term,\n reloadChecked\n ]);\n var handleExportCsv = (0,react.useCallback)(function() {\n dispatch((0,csv/* topLineCsvRequest */.nV)({\n dateFrom: dateFrom,\n dateTo: dateTo,\n currency: currency,\n languageCode: languageCode,\n term: term,\n query: query\n }));\n }, [\n dispatch,\n dateFrom,\n dateTo,\n query,\n term,\n currency,\n languageCode\n ]);\n var isWaiting = (0,react.useMemo)(function() {\n if (!resultPayload) return true;\n return resultPayload.isWaiting;\n }, [\n resultPayload\n ]);\n var isEmpty = (0,react.useMemo)(function() {\n if (isWaiting) return false;\n return resultTopChart.length === 0;\n }, [\n isWaiting,\n resultTopChart\n ]);\n return /*#__PURE__*/ (0,jsx_runtime.jsx)(list_chart_Wrapper, {\n maxHeight: isEmpty ? \"100%\" : \"660px\",\n children: isWaiting ? /*#__PURE__*/ (0,jsx_runtime.jsx)(content_loader/* default */.Z, {\n width: 470,\n height: 200,\n lines: [\n {\n x: 0,\n y: 0,\n rx: 5,\n ry: 5,\n width: 80,\n height: 12\n },\n {\n x: 0,\n y: 20,\n rx: 5,\n ry: 5,\n width: 120,\n height: 12\n },\n {\n x: 0,\n y: 60,\n rx: 5,\n ry: 5,\n width: 300,\n height: 12\n },\n {\n x: 0,\n y: 100,\n rx: 5,\n ry: 5,\n width: 80,\n height: 12\n },\n {\n x: 0,\n y: 120,\n rx: 5,\n ry: 5,\n width: 120,\n height: 12\n },\n {\n x: 0,\n y: 160,\n rx: 5,\n ry: 5,\n width: 300,\n height: 12\n }, \n ]\n }) : isEmpty ? /*#__PURE__*/ (0,jsx_runtime.jsx)(WrapEmpty, {\n bg: \"primary_50\",\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(empty_data/* default */.Z, {\n label: translations/* default */.Z[languageCode][\"no available\"]\n })\n }) : /*#__PURE__*/ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, {\n children: [\n topList !== \"partners\" && size !== \"small\" && /*#__PURE__*/ (0,jsx_runtime.jsx)(\"div\", {\n className: \"head\",\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(btn_link/* default */.Z, {\n icon: /*#__PURE__*/ (0,jsx_runtime.jsx)(filetype_xlsx/* default */.Z, {}),\n label: translations/* default */.Z[languageCode][\"Export XLS\"],\n onClick: handleExportCsv\n })\n }),\n resultTopChart.map(function(payload, index) {\n return /*#__PURE__*/ (0,jsx_runtime.jsx)(row, {\n payload: payload,\n index: index,\n languageCode: languageCode,\n dataType: dataType,\n size: size,\n color: _$color,\n noPrevious: noPrevious\n }, payload.title);\n })\n ]\n })\n });\n}\n/* harmony default export */ var list_chart = (ListChart);\n\n\n/***/ }),\n\n/***/ 60873:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"f\": function() { return /* binding */ capitalizeFirstLetter; },\n/* harmony export */ \"i\": function() { return /* binding */ formatDateString; }\n/* harmony export */ });\nvar capitalizeFirstLetter = function(string) {\n return string.charAt(0).toUpperCase() + string.slice(1);\n};\nvar formatDateString = {\n it: \"DD MMM\",\n pt: \"DD MMM\",\n de: \"DD MMM\",\n en: \"MMM DD\"\n};\n\n\n\n/***/ }),\n\n/***/ 95718:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n/* harmony import */ var reselect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(68697);\n/* harmony import */ var translations__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(99408);\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57708);\n/* eslint-disable camelcase */ \n\n\n/* harmony default export */ __webpack_exports__[\"Z\"] = ((0,reselect__WEBPACK_IMPORTED_MODULE_2__/* .createSelector */ .P1)(function(state) {\n return state.count.payload;\n}, function(_, key) {\n return key;\n}, _config__WEBPACK_IMPORTED_MODULE_1__/* [\"default\"] */ .ZP, function(payload, key, param) {\n var languageCode = param.languageCode;\n var percent = 0;\n var card = payload[key];\n if (!card || !card.data) return {\n percent: percent,\n value: null\n };\n var _data = card.data, _aggregations = _data.aggregations, current_period = _aggregations.current_period, previous_period = _aggregations.previous_period;\n var currentDuration = parseFloat((current_period.total_duration.value / 60).toFixed(1));\n var previousDuration = parseFloat((previous_period.total_duration.value / 60).toFixed(1));\n percent = 100;\n if (previousDuration !== 0) {\n percent = Math.round((currentDuration - previousDuration) / previousDuration * 100);\n }\n if (previousDuration === 0 && currentDuration === 0) percent = 0;\n return {\n percent: percent,\n value: \"\".concat(currentDuration, \" \").concat(translations__WEBPACK_IMPORTED_MODULE_0__/* [\"default\"] */ .Z[languageCode].hours),\n previousValue: \"\".concat(previousDuration, \" \").concat(translations__WEBPACK_IMPORTED_MODULE_0__/* [\"default\"] */ .Z[languageCode].hours)\n };\n}));\n\n\n/***/ }),\n\n/***/ 53189:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"Z\": function() { return /* binding */ quantity; }\n});\n\n// EXTERNAL MODULE: ./node_modules/reselect/es/index.js + 1 modules\nvar es = __webpack_require__(68697);\n// EXTERNAL MODULE: ./src/translations/index.js + 4 modules\nvar translations = __webpack_require__(99408);\n// EXTERNAL MODULE: ./src/redux/reselect/config.js\nvar config = __webpack_require__(57708);\n;// CONCATENATED MODULE: ./src/lib/format-number.js\nvar formatNumber = function(locale, value) {\n if (locale === \"it\") {\n return new Intl.NumberFormat(\"it-IT\").format(value);\n }\n return new Intl.NumberFormat(\"en-US\").format(value);\n};\n/* harmony default export */ var format_number = (formatNumber);\n\n;// CONCATENATED MODULE: ./src/redux/reselect/quantity.js\n/* eslint-disable camelcase */ \n\n\n\n/* harmony default export */ var quantity = ((0,es/* createSelector */.P1)(function(state) {\n return state.count.payload;\n}, function(_, key) {\n return key;\n}, config/* default */.ZP, function(payload, key, param) {\n var languageCode = param.languageCode;\n var percent = 0;\n var card = payload[key];\n if (!card || !card.data) return {\n percent: percent,\n value: null\n };\n var _data = card.data, _aggregations = _data.aggregations, current_period = _aggregations.current_period, previous_period = _aggregations.previous_period, query = card.query;\n var currentQuantity = current_period.total_quantity.value;\n var previousQuantity = previous_period.total_quantity.value;\n percent = 100;\n if (previousQuantity !== 0) {\n percent = Math.round((currentQuantity - previousQuantity) / previousQuantity * 100);\n }\n if (previousQuantity === 0 && currentQuantity === 0) percent = 0;\n return {\n percent: percent,\n value: \"\".concat(format_number(languageCode, currentQuantity), \" \").concat(query.match(/usage_data/) ? translations/* default */.Z[languageCode].users : translations/* default */.Z[languageCode].qty),\n previousValue: \"\".concat(format_number(languageCode, previousQuantity), \" \").concat(query.match(/usage_data/) ? translations/* default */.Z[languageCode].users : translations/* default */.Z[languageCode].qty)\n };\n}));\n\n\n/***/ }),\n\n/***/ 69575:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"Z\": function() { return /* binding */ area_analytic; }\n});\n\n// EXTERNAL MODULE: ./node_modules/@swc/helpers/src/_tagged_template_literal.mjs\nvar _tagged_template_literal = __webpack_require__(7297);\n// EXTERNAL MODULE: ./node_modules/react/jsx-runtime.js\nvar jsx_runtime = __webpack_require__(85893);\n// EXTERNAL MODULE: ./node_modules/react/index.js\nvar react = __webpack_require__(67294);\n// EXTERNAL MODULE: ./node_modules/styled-components/dist/styled-components.browser.esm.js + 4 modules\nvar styled_components_browser_esm = __webpack_require__(14141);\n// EXTERNAL MODULE: ./node_modules/styled-system/dist/index.esm.js + 12 modules\nvar index_esm = __webpack_require__(32016);\n// EXTERNAL MODULE: ./node_modules/@styled-system/theme-get/dist/index.esm.js\nvar dist_index_esm = __webpack_require__(50056);\n// EXTERNAL MODULE: ./node_modules/victory-chart/es/victory-chart.js + 5 modules\nvar victory_chart = __webpack_require__(58843);\n// EXTERNAL MODULE: ./node_modules/victory-voronoi-container/es/victory-voronoi-container.js + 2 modules\nvar victory_voronoi_container = __webpack_require__(16098);\n// EXTERNAL MODULE: ./node_modules/victory-tooltip/es/victory-tooltip.js + 1 modules\nvar victory_tooltip = __webpack_require__(77013);\n// EXTERNAL MODULE: ./node_modules/victory-axis/es/victory-axis.js + 1 modules\nvar victory_axis = __webpack_require__(73091);\n// EXTERNAL MODULE: ./node_modules/victory-group/es/victory-group.js + 1 modules\nvar victory_group = __webpack_require__(54878);\n// EXTERNAL MODULE: ./node_modules/victory-line/es/victory-line.js + 2 modules\nvar victory_line = __webpack_require__(37203);\n// EXTERNAL MODULE: ./node_modules/victory-area/es/victory-area.js + 2 modules\nvar victory_area = __webpack_require__(42371);\n// EXTERNAL MODULE: ./src/hooks/index.js\nvar hooks = __webpack_require__(85480);\n// EXTERNAL MODULE: ./src/theme/icons/history.js\nvar icons_history = __webpack_require__(87504);\n// EXTERNAL MODULE: ./src/theme/buttons/ghost.js\nvar ghost = __webpack_require__(17227);\n// EXTERNAL MODULE: ./src/translations/index.js + 4 modules\nvar translations = __webpack_require__(99408);\n// EXTERNAL MODULE: ./src/lib/format-currency.js\nvar format_currency = __webpack_require__(70351);\n// EXTERNAL MODULE: ./node_modules/react-intl/lib/index.js + 1 modules\nvar lib = __webpack_require__(54490);\n;// CONCATENATED MODULE: ./src/theme/charts/area-analytic/label.js\n\nfunction _templateObject() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n transform: \",\n \";\\n transform-origin: \",\n \";\\n\"\n ]);\n _templateObject = function _templateObject() {\n return data;\n };\n return data;\n}\n\n\n\n\n\n\nvar width = 300;\nvar height = 125;\nvar Wrapper = styled_components_browser_esm/* default.g.withConfig */.ZP.g.withConfig({\n componentId: \"sc-d6ec18a6-0\"\n})(_templateObject(), function(param) {\n var isRotate = param.isRotate;\n return isRotate ? \"rotate(180deg)\" : \"rotate(0deg)\";\n}, function(param) {\n var isRotate = param.isRotate;\n return isRotate ? \"\".concat(width / 2, \"px \").concat(height / 2, \"px\") : \"0px 0px\";\n});\nfunction Label(param) {\n var maxWidth = param.maxWidth, x = param.x, y = param.y, activePoints = param.activePoints, areaData = param.data;\n var isRotate = (0,react.useMemo)(function() {\n return x > maxWidth / 2;\n }, [\n x,\n maxWidth\n ]);\n var theme = (0,react.useContext)(styled_components_browser_esm/* ThemeContext */.Ni);\n var getLabel = (0,react.useCallback)(function(color) {\n var el = areaData.find(function(row) {\n return (0,dist_index_esm/* themeGet */.R)(\"colors.\".concat(row.color))({\n theme: theme\n }) === color;\n });\n return el && el.label ? el.label : \"\";\n }, [\n areaData,\n theme\n ]);\n var getValue = (0,react.useCallback)(function(param) {\n var color = param.color, data = param.data;\n if (color === \"trasparent\") return \"\";\n var el = areaData.find(function(row) {\n return (0,dist_index_esm/* themeGet */.R)(\"colors.\".concat(row.color))({\n theme: theme\n }) === color;\n });\n if (el && el.id) {\n if (el && el.id.match(/revenue/)) {\n return (0,format_currency/* default */.Z)(el.currency, Number(data));\n }\n return /*#__PURE__*/ (0,jsx_runtime.jsx)(lib/* FormattedNumber */.BK, {\n value: data\n });\n }\n return /*#__PURE__*/ (0,jsx_runtime.jsx)(lib/* FormattedNumber */.BK, {\n value: 0\n });\n }, [\n areaData,\n theme\n ]);\n return /*#__PURE__*/ (0,jsx_runtime.jsxs)(\"svg\", {\n x: \"\".concat(isRotate ? x - width : x + 5),\n y: \"\".concat(isRotate ? y - height / 2 - 15 : y - height / 2 + 15),\n width: width,\n height: height,\n viewBox: \"0 0 \".concat(width, \" \").concat(height),\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(Wrapper, {\n isRotate: isRotate,\n stroke: \"grey\",\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"polygon\", {\n points: \"10,25 0,35 10,45\",\n fill: \"white\"\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"rect\", {\n width: width - 15,\n height: height,\n x: \"9\",\n rx: \"5\",\n ry: \"5\",\n fill: \"white\"\n })\n ]\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"g\", {\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(\"text\", {\n fill: (0,dist_index_esm/* themeGet */.R)(\"colors.grey_600\")({\n theme: theme\n }),\n style: {\n whiteSpace: \"pre\",\n fontFamily: \"inherit\",\n fontSize: \"16\",\n letterSpacing: \"0px\",\n fontWeight: \"bold\"\n },\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(\"tspan\", {\n x: \"100\",\n y: \"20\",\n children: activePoints[0].xName\n })\n })\n }),\n activePoints.map(function(param, index) {\n var style = param.style, data = param.y;\n return areaData[index] && /*#__PURE__*/ (0,jsx_runtime.jsxs)(\"g\", {\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"circle\", {\n cx: \"20\",\n r: \"5\",\n fill: style.data.stroke,\n cy: 40 + index * 20\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(\"text\", {\n fill: (0,dist_index_esm/* themeGet */.R)(\"colors.grey_600\")({\n theme: theme\n }),\n style: {\n whiteSpace: \"pre\",\n fontFamily: \"inherit\",\n fontSize: \"14\",\n letterSpacing: \"0px\"\n },\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"tspan\", {\n x: \"35\",\n y: \"45\",\n dy: index * 20,\n children: \"\".concat(getLabel(style.data.stroke))\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"tspan\", {\n textAnchor: \"end\",\n x: width - 15,\n y: \"45\",\n dy: index * 20,\n children: getValue({\n color: style.data.stroke,\n data: data\n })\n })\n ]\n })\n ]\n }, areaData[index].id);\n })\n ]\n });\n}\n/* harmony default export */ var label = (Label);\n\n// EXTERNAL MODULE: ./node_modules/react-redux/es/index.js + 19 modules\nvar es = __webpack_require__(15313);\n// EXTERNAL MODULE: ./src/theme/text/index.js\nvar theme_text = __webpack_require__(5799);\n;// CONCATENATED MODULE: ./src/theme/charts/area-analytic/tabs.js\n\nfunction tabs_templateObject() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n display: flex;\\n flex-direction: row;\\n align-items: center;\\n width: 100%;\\n\\n \",\n \"\\n\"\n ]);\n tabs_templateObject = function _templateObject() {\n return data;\n };\n return data;\n}\nfunction _templateObject1() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n border-radius: 8px;\\n\\n \",\n \"\\n \",\n \"\\n\"\n ]);\n _templateObject1 = function _templateObject1() {\n return data;\n };\n return data;\n}\n\n\n\n\n\n\nvar WrapTab = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-c556f3b7-0\"\n})(tabs_templateObject(), index_esm/* space */.Dh);\nvar TabBtn = styled_components_browser_esm/* default.button.withConfig */.ZP.button.withConfig({\n componentId: \"sc-c556f3b7-1\"\n})(_templateObject1(), index_esm/* color */.$_, index_esm/* space */.Dh);\nfunction AreaTabs(param) {\n var handleChangeTab = param.handleChangeTab, activeKey = param.activeKey, dataType = param.dataType;\n var languageCode = (0,es/* useSelector */.v9)(function(state) {\n return state.config;\n }).languageCode;\n return /*#__PURE__*/ (0,jsx_runtime.jsxs)(WrapTab, {\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"button\", {\n type: \"button\",\n className: \"link\",\n onClick: function() {\n return handleChangeTab(\"amounts\");\n },\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(TabBtn, {\n type: \"button\",\n py: \"s\",\n px: \"m\",\n bg: activeKey === \"amounts\" ? \"primary_100\" : \"grey_100\",\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(theme_text/* default */.Z, {\n fontSize: \"h3\",\n lineHeight: \"h3\",\n fontWeight: \"medium\",\n color: activeKey === \"amounts\" ? \"primary_500\" : \"grey_400\",\n textAlign: \"center\",\n children: dataType === \"usage_data\" ? translations/* default */.Z[languageCode].usageChart : translations/* default */.Z[languageCode].revenueChart\n })\n })\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"button\", {\n type: \"button\",\n className: \"link\",\n onClick: function() {\n return handleChangeTab(\"units\");\n },\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(TabBtn, {\n type: \"button\",\n py: \"s\",\n px: \"m\",\n bg: activeKey === \"units\" ? \"primary_100\" : \"grey_100\",\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(theme_text/* default */.Z, {\n fontSize: \"h3\",\n lineHeight: \"h3\",\n fontWeight: \"medium\",\n color: activeKey === \"units\" ? \"primary_500\" : \"grey_400\",\n textAlign: \"center\",\n children: dataType === \"usage_data\" ? translations/* default */.Z[languageCode].userChart : translations/* default */.Z[languageCode].quantityChart\n })\n })\n })\n ]\n });\n}\n/* harmony default export */ var tabs = (AreaTabs);\n\n// EXTERNAL MODULE: ./node_modules/moment/moment.js\nvar moment = __webpack_require__(30381);\nvar moment_default = /*#__PURE__*/__webpack_require__.n(moment);\n// EXTERNAL MODULE: ./src/lib/utils.js\nvar utils = __webpack_require__(60873);\n;// CONCATENATED MODULE: ./src/theme/charts/area-analytic/index.js\n/* eslint-disable no-nested-ternary */ \nfunction area_analytic_templateObject() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n width: 100%;\\n z-index: 999;\\n\\n .VictoryContainer {\\n & > svg {\\n overflow: visible;\\n }\\n }\\n\\n @media only screen and (max-width: 768px) {\\n .VictoryContainer {\\n user-select: auto !important;\\n touch-action: auto !important;\\n }\\n }\\n\"\n ]);\n area_analytic_templateObject = function _templateObject() {\n return data;\n };\n return data;\n}\nfunction area_analytic_templateObject1() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n \",\n \"\\n\\n display: flex;\\n flex-direction: row;\\n\\n .left {\\n display: flex;\\n justify-content: flex-start;\\n flex: 1;\\n }\\n\\n .right {\\n display: flex;\\n justify-content: flex-end;\\n flex: 1;\\n }\\n\"\n ]);\n area_analytic_templateObject1 = function _templateObject1() {\n return data;\n };\n return data;\n}\nfunction _templateObject2() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n display: flex;\\n flex-direction: column;\\n\\n .row {\\n display: flex;\\n flex-direction: row;\\n }\\n\"\n ]);\n _templateObject2 = function _templateObject2() {\n return data;\n };\n return data;\n}\nfunction _templateObject3() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n \",\n \"\\n \",\n \"\\n\\n display: flex;\\n justify-content: flex-end;\\n align-items: center;\\n\"\n ]);\n _templateObject3 = function _templateObject3() {\n return data;\n };\n return data;\n}\nfunction _templateObject4() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n \",\n \"\\n \",\n \"\\n \",\n \"\\n\\n white-space: nowrap;\\n text-transform: capitalize;\\n\"\n ]);\n _templateObject4 = function _templateObject4() {\n return data;\n };\n return data;\n}\nfunction _templateObject5() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n display: flex;\\n justify-content: center;\\n\"\n ]);\n _templateObject5 = function _templateObject5() {\n return data;\n };\n return data;\n}\nfunction _templateObject6() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n \",\n \"\\n\\n display: flex;\\n align-items: center;\\n\\n & > :before {\\n \",\n \"\\n\\n display: inline-block;\\n content: '';\\n width: 10px;\\n height: 10px;\\n border-radius: 50%;\\n margin-right: 6px;\\n }\\n\"\n ]);\n _templateObject6 = function _templateObject6() {\n return data;\n };\n return data;\n}\nfunction _templateObject7() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n \",\n \"\\n \",\n \"\\n\"\n ]);\n _templateObject7 = function _templateObject7() {\n return data;\n };\n return data;\n}\nfunction _templateObject8() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n \",\n \"\\n \",\n \"\\n\\n display: \",\n \";\\n\\n width: 150px;\\n position: absolute;\\n top: auto;\\n right: 32px;\\n margin-top: 60px;\\n border: 1px solid;\\n border-radius: 12px;\\n z-index: 999;\\n overflow: hidden;\\n\\n \",\n \"\\n\\n & > ul {\\n width: 100%;\\n margin: 0;\\n padding: 0;\\n\\n & > li {\\n width: 100%;\\n height: 54px;\\n list-style-type: none;\\n display: flex;\\n padding: 0 8px;\\n box-shadow: inset 0px -1px 0px \",\n \";\\n\\n &:hover {\\n box-shadow: inset 0px -2px 0px \",\n \";\\n }\\n\\n &:active {\\n box-shadow: inset 0px -4px 0px \",\n \";\\n background-color: \",\n \";\\n }\\n\\n &.active {\\n background-color: \",\n \";\\n }\\n }\\n }\\n\"\n ]);\n _templateObject8 = function _templateObject8() {\n return data;\n };\n return data;\n}\nfunction _templateObject9() {\n var data = (0,_tagged_template_literal/* default */.Z)([\n \"\\n width: 100%;\\n\\n & > span {\\n justify-content: flex-start;\\n }\\n\"\n ]);\n _templateObject9 = function _templateObject9() {\n return data;\n };\n return data;\n}\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar area_analytic_Wrapper = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-958acec2-0\"\n})(area_analytic_templateObject());\nvar Head = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-958acec2-1\"\n})(area_analytic_templateObject1(), index_esm/* space */.Dh);\nvar WrapValues = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-958acec2-2\"\n})(_templateObject2());\nvar Value = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-958acec2-3\"\n})(_templateObject3(), index_esm/* color */.$_, index_esm/* space */.Dh);\nvar Text = styled_components_browser_esm/* default.p.withConfig */.ZP.p.withConfig({\n componentId: \"sc-958acec2-4\"\n})(_templateObject4(), index_esm/* typography */.cp, index_esm/* color */.$_, index_esm/* space */.Dh);\nvar Legend = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-958acec2-5\"\n})(_templateObject5());\nvar LegendLabel = styled_components_browser_esm/* default.span.withConfig */.ZP.span.withConfig({\n componentId: \"sc-958acec2-6\"\n})(_templateObject6(), index_esm/* space */.Dh, index_esm/* color */.$_);\nvar WrapIcon = styled_components_browser_esm/* default.span.withConfig */.ZP.span.withConfig({\n componentId: \"sc-958acec2-7\"\n})(_templateObject7(), index_esm/* color */.$_, index_esm/* space */.Dh);\nvar Menu = styled_components_browser_esm/* default.div.withConfig */.ZP.div.withConfig({\n componentId: \"sc-958acec2-8\"\n})(_templateObject8(), index_esm/* space */.Dh, index_esm/* color */.$_, function(param) {\n var isVisible = param.isVisible;\n return isVisible ? \"block\" : \"none\";\n}, index_esm/* border */.Cg, (0,dist_index_esm/* themeGet */.R)(\"colors.primary_100\"), (0,dist_index_esm/* themeGet */.R)(\"colors.primary_200\"), (0,dist_index_esm/* themeGet */.R)(\"colors.primary_500\"), (0,dist_index_esm/* themeGet */.R)(\"colors.primary_200\"), (0,dist_index_esm/* themeGet */.R)(\"colors.primary_100\"));\nvar StyledBtnGhost = (0,styled_components_browser_esm/* default */.ZP)(ghost/* default */.Z).withConfig({\n componentId: \"sc-958acec2-9\"\n})(_templateObject9());\nfunction Area(param) {\n var title = param.title, temporaryRevenue = param.temporaryRevenue, interval = param.interval, intervalDiff = param.intervalDiff, onChangeInterval = param.onChangeInterval, chart = param.chart, isWithinRange = param.isWithinRange, chartHeight = param.chartHeight, titleMargin = param.titleMargin, handleChangeTab = param.handleChangeTab, activeKey = param.activeKey, dataType = param.dataType;\n var ref;\n var languageCode = (0,es/* useSelector */.v9)(function(state) {\n return state.config;\n }).languageCode;\n var width = (0,hooks/* useDimensions */.Bs)().width;\n var ref1 = (0,react.useState)(false), isOpen = ref1[0], setOpen = ref1[1];\n var theme = (0,react.useContext)(styled_components_browser_esm/* ThemeContext */.Ni);\n var xAxisLength = (0,react.useMemo)(function() {\n var ref, ref1, ref2, ref3;\n if ((chart === null || chart === void 0 ? void 0 : chart.length) === 0) return 0;\n if (((ref = chart[0]) === null || ref === void 0 ? void 0 : (ref1 = ref.data) === null || ref1 === void 0 ? void 0 : ref1.length) <= 6) return 1;\n return Math.round(((ref2 = chart[0]) === null || ref2 === void 0 ? void 0 : (ref3 = ref2.data) === null || ref3 === void 0 ? void 0 : ref3.length) / 6);\n }, [\n chart\n ]);\n var maxAxisY = (0,react.useMemo)(function() {\n if (chart.length === 0) return 0;\n var maxAxis = chart.reduce(function(max, item) {\n return Math.max(max, item.maxAxisY);\n }, -Infinity);\n return maxAxis;\n }, [\n chart\n ]);\n var yAxisPadding = (0,react.useMemo)(function() {\n var ref;\n if (maxAxisY === 0) return 0;\n return -20 - ((ref = maxAxisY.toString()) === null || ref === void 0 ? void 0 : ref.length) * 5;\n }, [\n chart\n ]);\n var PageWidth = (0,react.useMemo)(function() {\n return width;\n }, [\n width\n ]);\n var ref2 = isWithinRange || {}, _sideDate = ref2.sideDate, sideDate = _sideDate === void 0 ? null : _sideDate, tmp = ref2.value, isSideDateActive = tmp === void 0 ? false : tmp;\n var sideDateParsed = sideDate && moment_default()(sideDate).format(utils/* formatDateString */.i[languageCode]) || null;\n // console.log('isWithinRange', sideDate, sideDateParsed, isSideDateActive);\n return /*#__PURE__*/ (0,jsx_runtime.jsxs)(area_analytic_Wrapper, {\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(Head, {\n py: \"s\",\n px: \"xs\",\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(tabs, {\n handleChangeTab: handleChangeTab,\n activeKey: activeKey,\n dataType: dataType\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"div\", {\n className: \"left\",\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(Text, {\n fontSize: \"h2\",\n lineHeight: \"h2\",\n fontWeight: \"bold\",\n color: \"grey_400\",\n ml: titleMargin,\n children: title\n })\n }),\n temporaryRevenue && /*#__PURE__*/ (0,jsx_runtime.jsx)(\"div\", {\n className: \"right\",\n children: /*#__PURE__*/ (0,jsx_runtime.jsxs)(WrapValues, {\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(\"div\", {\n className: \"row\",\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(Legend, {\n children: chart.map(function(el) {\n return /*#__PURE__*/ (0,jsx_runtime.jsx)(LegendLabel, {\n px: \"xs\",\n bg: el.color,\n mb: \"0\",\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(Text, {\n fontSize: \"pSmall\",\n lineHeight: \"pSmall\",\n fontWeight: \"bold\",\n color: \"grey_600\",\n children: el.label\n })\n }, el.color);\n })\n })\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(\"div\", {\n className: \"row\",\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(Text, {\n fontSize: \"h2\",\n lineHeight: \"h2\",\n fontWeight: \"bold\",\n color: chart && chart[0] && ((ref = chart[0]) === null || ref === void 0 ? void 0 : ref.color),\n children: temporaryRevenue.value\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(Value, {\n pl: \"s\",\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(Text, {\n fontSize: \"label\",\n lineHeight: \"label\",\n fontWeight: \"bold\",\n color: temporaryRevenue.percent > 0 ? \"lime_400\" : temporaryRevenue.percent < 0 ? \"red_400\" : \"grey_600\",\n children: \"\".concat(temporaryRevenue.percent > 0 ? \"+\" : temporaryRevenue.percent < 0 ? \"-\" : \"\", \" \").concat(Math.abs(temporaryRevenue.percent), \"%\")\n })\n })\n ]\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(\"div\", {\n className: \"row\",\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(Text, {\n fontSize: \"pLarge\",\n lineHeight: \"pLarge\",\n fontWeight: \"bold\",\n color: chart && chart[1] && chart[1].color,\n children: temporaryRevenue.previousValue\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(WrapIcon, {\n color: \"primary_300\",\n pl: \"s\",\n children: /*#__PURE__*/ (0,jsx_runtime.jsx)(icons_history/* default */.Z, {})\n })\n ]\n })\n ]\n })\n })\n ]\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsxs)(victory_chart/* VictoryChart */.k, {\n height: chartHeight || 300,\n width: PageWidth,\n animate: {\n duration: 1000\n },\n domainPadding: {\n x: 0,\n y: 30\n },\n containerComponent: /*#__PURE__*/ (0,jsx_runtime.jsx)(victory_voronoi_container/* default */.Z, {\n voronoiBlacklist: [\n \"parent\"\n ],\n voronoiDimension: \"x\",\n labels: function() {\n return \" \";\n },\n labelComponent: /*#__PURE__*/ (0,jsx_runtime.jsx)(victory_tooltip/* default */.Z, {\n cornerRadius: 4,\n flyoutStyle: {\n fill: \"white\",\n stroke: \"transparent\"\n },\n style: {\n fontSize: 13,\n fontFamily: \"inherit\",\n lineHeight: \"20px\",\n fill: (0,dist_index_esm/* themeGet */.R)(\"colors.grey_600\")({\n theme: theme\n })\n },\n flyoutComponent: /*#__PURE__*/ (0,jsx_runtime.jsx)(label, {\n maxWidth: PageWidth,\n data: chart\n })\n })\n }),\n padding: {\n left: 0,\n right: 0,\n top: 0,\n bottom: 50\n },\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(victory_axis/* VictoryAxis */.E, {\n tickFormat: function(t, index) {\n return index % xAxisLength === 0 ? t : \"\";\n },\n style: {\n axis: {\n stroke: \"transparent\"\n },\n tickLabels: {\n fontFamily: \"inherit\",\n fontSize: 13,\n padding: 12,\n angle: 35,\n verticalAnchor: \"end\",\n textAnchor: \"start\"\n }\n }\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(victory_axis/* VictoryAxis */.E, {\n tickFormat: function(t) {\n return t.toFixed(0);\n },\n dependentAxis: true,\n style: {\n grid: {\n stroke: \"grey\",\n strokeDasharray: \"4, 8\",\n strokeWidth: 0.5\n },\n axis: {\n stroke: \"transparent\"\n },\n tickLabels: {\n fontFamily: \"inherit\",\n textAnchor: \"end\",\n fontSize: 13,\n padding: yAxisPadding\n }\n }\n }),\n chart.map(function(el) {\n // Divide i dati in base alla sideDate\n var sideDateTime = sideDate ? moment_default()(sideDate).endOf(\"day\").utc().startOf(\"day\").format() : moment_default()(\"2100-01-01\").format();\n var dataBeforeSideDate = el.data.filter(function(datum) {\n return moment_default()(datum.timestamp).isSameOrBefore(sideDateTime);\n });\n var dataAfterSideDate = el.data.filter(function(datum) {\n return moment_default()(datum.timestamp).isSameOrAfter(sideDateTime);\n });\n if (el.id.match(/prev_/)) {\n return /*#__PURE__*/ (0,jsx_runtime.jsxs)(victory_group/* VictoryGroup */.G, {\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(victory_line/* VictoryLine */.j, {\n style: {\n data: {\n stroke: (0,dist_index_esm/* themeGet */.R)(\"colors.\".concat(el.color))({\n theme: theme\n }),\n strokeWidth: 3,\n opacity: el.opacity || 0.65\n }\n },\n data: dataBeforeSideDate,\n x: \"date\",\n interpolation: \"natural\",\n labels: function() {\n return \" \";\n }\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(victory_line/* VictoryLine */.j, {\n style: {\n data: {\n stroke: (0,dist_index_esm/* themeGet */.R)(\"colors.\".concat(el.color))({\n theme: theme\n }),\n strokeWidth: 3,\n opacity: 0.4\n }\n },\n data: dataAfterSideDate,\n x: \"date\",\n interpolation: \"natural\",\n labels: function() {\n return \" \";\n }\n })\n ]\n }, \"\".concat(el.id));\n } else {\n return /*#__PURE__*/ (0,jsx_runtime.jsxs)(victory_group/* VictoryGroup */.G, {\n children: [\n /*#__PURE__*/ (0,jsx_runtime.jsx)(victory_area/* VictoryArea */.b, {\n style: {\n data: {\n fill: (0,dist_index_esm/* themeGet */.R)(\"colors.\".concat(el.color))({\n theme: theme\n }),\n stroke: (0,dist_index_esm/* themeGet */.R)(\"colors.\".concat(el.color))({\n theme: theme\n }),\n opacity: el.opacity || 0.65\n }\n },\n data: dataBeforeSideDate,\n x: \"date\",\n interpolation: \"natural\"\n }),\n /*#__PURE__*/ (0,jsx_runtime.jsx)(victory_area/* VictoryArea */.b, {\n style: {\n data: {\n fill: (0,dist_index_esm/* themeGet */.R)(\"colors.\".concat(el.color))({\n theme: theme\n }),\n stroke: (0,dist_index_esm/* themeGet */.R)(\"colors.\".concat(el.color))({\n theme: theme\n }),\n opacity: 0.4\n }\n },\n data: dataAfterSideDate,\n x: \"date\",\n interpolation: \"natural\"\n })\n ]\n }, \"\".concat(el.id));\n }\n }),\n isSideDateActive && /*#__PURE__*/ (0,jsx_runtime.jsx)(victory_line/* VictoryLine */.j, {\n data: [\n {\n x: sideDateParsed,\n y: 0\n },\n {\n x: sideDateParsed,\n y: maxAxisY\n }\n ],\n style: {\n data: {\n stroke: \"red\",\n strokeDasharray: \"4\",\n strokeWidth: 2\n }\n },\n labels: function() {\n return translations/* default */.Z[languageCode][\"sideDateText\"];\n },\n labelComponent: /*#__PURE__*/ (0,jsx_runtime.jsx)(victory_tooltip/* default */.Z, {\n constrainToVisibleArea: true,\n flyoutStyle: {\n stroke: \"red\",\n strokeWidth: 1,\n fill: \"white\"\n },\n flyoutPadding: 10,\n orientation: \"top\"\n })\n })\n ]\n })\n ]\n });\n}\n/* harmony default export */ var area_analytic = (Area);\n\n\n/***/ }),\n\n/***/ 29651:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85893);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67294);\n\n\nfunction FiletypeXlsx() {\n return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"svg\", {\n width: \"24\",\n height: \"25\",\n viewBox: \"0 0 24 25\",\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: [\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"path\", {\n d: \"M16.5 22.2676H7.5C6.70435 22.2676 5.94129 21.9515 5.37868 21.3889C4.81607 20.8263 4.5 20.0632 4.5 19.2676V5.26758C4.5 4.47193 4.81607 3.70887 5.37868 3.14626C5.94129 2.58365 6.70435 2.26758 7.5 2.26758H14.09C14.3523 2.26868 14.6037 2.37283 14.79 2.55758L19.21 6.97758C19.3947 7.16384 19.4989 7.41524 19.5 7.67758V19.2676C19.5 20.0632 19.1839 20.8263 18.6213 21.3889C18.0587 21.9515 17.2956 22.2676 16.5 22.2676Z\",\n fill: \"#4CAF50\"\n }),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"path\", {\n d: \"M18.8002 8.00766H15.2002C14.8024 8.00766 14.4208 7.84962 14.1395 7.56832C13.8582 7.28701 13.7002 6.90548 13.7002 6.50766V2.90766C13.6998 2.79856 13.7318 2.6918 13.7922 2.60095C13.8526 2.5101 13.9387 2.43927 14.0394 2.39746C14.1402 2.35565 14.2511 2.34475 14.3581 2.36616C14.4651 2.38756 14.5633 2.4403 14.6402 2.51766L19.1902 7.06766C19.2676 7.14459 19.3203 7.24278 19.3417 7.34976C19.3631 7.45674 19.3522 7.56766 19.3104 7.66843C19.2686 7.7692 19.1978 7.85526 19.1069 7.91567C19.0161 7.97607 18.9093 8.00809 18.8002 8.00766Z\",\n fill: \"#B9F6CA\"\n }),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"path\", {\n d: \"M6.74988 18.3676C6.63743 18.3762 6.5261 18.3403 6.43988 18.2676C6.40345 18.2351 6.37469 18.1949 6.35567 18.15C6.33665 18.105 6.32784 18.0564 6.32988 18.0076C6.32926 17.8898 6.37197 17.7759 6.44988 17.6876L7.11988 16.8776L6.51988 16.1576C6.43846 16.0667 6.39233 15.9496 6.38988 15.8276C6.39103 15.7784 6.40227 15.7299 6.42291 15.6852C6.44355 15.6404 6.47315 15.6004 6.50988 15.5676C6.59455 15.4913 6.70605 15.4517 6.81988 15.4576C6.924 15.4569 7.0268 15.4809 7.11988 15.5276C7.2049 15.576 7.27964 15.6405 7.33988 15.7176L7.69988 16.1776L8.04988 15.7176C8.11197 15.6361 8.1922 15.5702 8.28419 15.525C8.37618 15.4799 8.47742 15.4568 8.57988 15.4576C8.69013 15.4554 8.7972 15.4946 8.87988 15.5676C8.9187 15.5986 8.94975 15.6383 8.97058 15.6834C8.99141 15.7286 9.00144 15.7779 8.99988 15.8276C8.99758 15.9516 8.94741 16.0698 8.85988 16.1576L8.26988 16.8776L8.93988 17.6876C9.02061 17.775 9.06682 17.8887 9.06988 18.0076C9.07851 18.0534 9.0767 18.1006 9.06458 18.1456C9.05246 18.1906 9.03034 18.2323 8.99988 18.2676C8.91413 18.3421 8.80339 18.3814 8.68988 18.3776C8.58659 18.381 8.48391 18.3605 8.38988 18.3176C8.30139 18.2659 8.22337 18.1981 8.15988 18.1176L7.73988 17.5776L7.31988 18.1176C7.22628 18.1917 7.11673 18.2431 6.99988 18.2676C6.92726 18.3232 6.84079 18.3578 6.74988 18.3676Z\",\n fill: \"#E8F5E9\"\n }),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"path\", {\n d: \"M10.8399 18.3777C10.6918 18.3927 10.5423 18.3744 10.4021 18.3242C10.262 18.2741 10.1348 18.1933 10.0299 18.0877C9.83507 17.8339 9.74231 17.5164 9.76991 17.1977V14.7477C9.7602 14.6793 9.76635 14.6096 9.78788 14.544C9.80942 14.4784 9.84576 14.4187 9.8941 14.3693C9.94244 14.32 10.0015 14.2825 10.0667 14.2597C10.1318 14.2369 10.2014 14.2293 10.2699 14.2377C10.3392 14.23 10.4094 14.2378 10.4753 14.2605C10.5412 14.2833 10.6012 14.3204 10.651 14.3693C10.7008 14.4181 10.739 14.4774 10.7631 14.5428C10.7871 14.6083 10.7963 14.6782 10.7899 14.7477V17.1677C10.7786 17.2773 10.807 17.3873 10.8699 17.4777C10.897 17.5061 10.9296 17.5288 10.9657 17.5442C11.0018 17.5597 11.0406 17.5677 11.0799 17.5677H11.2599C11.2889 17.5646 11.3182 17.5694 11.3447 17.5818C11.3711 17.5941 11.3937 17.6135 11.4099 17.6377C11.4513 17.7355 11.4684 17.8418 11.4599 17.9477C11.4651 18.0536 11.4371 18.1584 11.3799 18.2477C11.3122 18.3161 11.2248 18.3616 11.1299 18.3777H10.9999H10.8399Z\",\n fill: \"#E8F5E9\"\n }),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"path\", {\n d: \"M13.0001 18.3778C12.8271 18.3929 12.6531 18.3929 12.4801 18.3778C12.318 18.3572 12.1598 18.3134 12.0101 18.2478C11.9595 18.2333 11.9126 18.2079 11.8729 18.1734C11.8332 18.1388 11.8015 18.096 11.7801 18.0478C11.7625 18.0068 11.7534 17.9625 11.7534 17.9178C11.7534 17.8731 11.7625 17.8289 11.7801 17.7878C11.8063 17.7033 11.8634 17.6319 11.9401 17.5878C11.9815 17.5651 12.0279 17.5531 12.0751 17.5531C12.1223 17.5531 12.1687 17.5651 12.2101 17.5878C12.349 17.6424 12.493 17.6827 12.6401 17.7078C12.763 17.7221 12.8872 17.7221 13.0101 17.7078C13.1137 17.7161 13.2176 17.6953 13.3101 17.6478C13.3407 17.634 13.3665 17.6115 13.3843 17.583C13.4021 17.5545 13.4111 17.5214 13.4101 17.4878C13.4117 17.4629 13.4071 17.4379 13.3966 17.4152C13.3861 17.3925 13.3701 17.3728 13.3501 17.3578C13.2991 17.3245 13.2408 17.3039 13.1801 17.2978L12.5401 17.1878C12.3343 17.1673 12.1409 17.0794 11.9901 16.9378C11.9249 16.8665 11.8746 16.7829 11.842 16.6919C11.8093 16.6009 11.7951 16.5044 11.8001 16.4078C11.7965 16.2249 11.8527 16.0459 11.9601 15.8978C12.0851 15.7485 12.2472 15.6347 12.4301 15.5678C12.6468 15.4841 12.8778 15.4433 13.1101 15.4478C13.2666 15.4367 13.4236 15.4367 13.5801 15.4478C13.721 15.4763 13.8585 15.5199 13.9901 15.5778C14.0352 15.5959 14.0762 15.623 14.1106 15.6574C14.1449 15.6917 14.172 15.7327 14.1901 15.7778C14.2252 15.8685 14.2252 15.969 14.19 16.0596C14.1549 16.1503 14.0871 16.2245 14.0001 16.2678C13.9552 16.2907 13.9055 16.3026 13.8551 16.3026C13.8047 16.3026 13.755 16.2907 13.7101 16.2678C13.6039 16.2207 13.4934 16.1839 13.3801 16.1578C13.2903 16.1495 13.1999 16.1495 13.1101 16.1578C12.9927 16.1518 12.8756 16.1759 12.7701 16.2278C12.7428 16.2447 12.7202 16.2683 12.7045 16.2962C12.6888 16.3242 12.6804 16.3557 12.6801 16.3878C12.6801 16.4878 12.7501 16.5478 12.8901 16.5778L13.5201 16.6878C13.7307 16.7056 13.9302 16.7896 14.0901 16.9278C14.1573 16.9962 14.2097 17.0776 14.2441 17.1671C14.2785 17.2565 14.2941 17.3521 14.2901 17.4478C14.2961 17.5885 14.2662 17.7284 14.2032 17.8544C14.1403 17.9804 14.0463 18.0882 13.9301 18.1678C13.6491 18.3319 13.3243 18.4053 13.0001 18.3778Z\",\n fill: \"#E8F5E9\"\n }),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"path\", {\n d: \"M15.2202 18.3678C15.1653 18.3704 15.1105 18.3621 15.059 18.3432C15.0075 18.3243 14.9603 18.2952 14.9202 18.2578C14.8807 18.2273 14.8492 18.1877 14.8283 18.1424C14.8074 18.0972 14.7978 18.0475 14.8002 17.9978C14.8032 17.8788 14.8494 17.7651 14.9302 17.6778L15.5902 16.8678L15.0002 16.1478C14.9154 16.059 14.8687 15.9405 14.8702 15.8178C14.8686 15.7681 14.8786 15.7187 14.8995 15.6736C14.9203 15.6285 14.9513 15.5888 14.9902 15.5578C15.0303 15.5203 15.0775 15.4912 15.129 15.4723C15.1805 15.4534 15.2353 15.4451 15.2902 15.4478C15.3926 15.447 15.4939 15.4701 15.5858 15.5152C15.6778 15.5603 15.7581 15.6262 15.8202 15.7078L16.1702 16.1678L16.5302 15.7078C16.5916 15.6279 16.6702 15.563 16.7602 15.5178C16.8501 15.4723 16.9494 15.4483 17.0502 15.4478C17.1637 15.444 17.2744 15.4833 17.3602 15.5578C17.3955 15.5911 17.4236 15.6314 17.4425 15.6762C17.4615 15.7209 17.4709 15.7692 17.4702 15.8178C17.4716 15.9405 17.4249 16.059 17.3402 16.1478L16.7502 16.8678L17.4102 17.6778C17.4971 17.7619 17.5474 17.8768 17.5502 17.9978C17.5484 18.0479 17.5359 18.097 17.5134 18.1419C17.491 18.1867 17.4592 18.2263 17.4202 18.2578C17.3375 18.3307 17.2304 18.37 17.1202 18.3678C17.0169 18.3712 16.9142 18.3506 16.8202 18.3078C16.7297 18.2588 16.6512 18.1905 16.5902 18.1078L16.1702 17.5678L15.7402 18.1078C15.6824 18.1871 15.6071 18.2521 15.5202 18.2978C15.4287 18.3487 15.3247 18.3729 15.2202 18.3678Z\",\n fill: \"#E8F5E9\"\n })\n ]\n });\n}\n/* harmony default export */ __webpack_exports__[\"Z\"] = (FiletypeXlsx);\n\n\n/***/ }),\n\n/***/ 87504:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Z\": function() { return /* binding */ history; }\n/* harmony export */ });\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(85893);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67294);\n\n\nfunction history() {\n return /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(\"svg\", {\n width: \"18\",\n height: \"18\",\n viewBox: \"0 0 18 18\",\n xmlns: \"http://www.w3.org/2000/svg\",\n children: [\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"path\", {\n d: \"M15.6276 3.27156C16.3675 4.00957 16.9568 4.8844 17.3628 5.84736C17.7855 6.84457 18.0022 7.91695 18 9.00006C18.002 10.6144 17.5198 12.1923 16.6158 13.5298C15.7374 14.8323 14.4996 15.8516 13.0527 16.4637C12.0545 16.8833 10.9827 17.0996 9.89999 17.1C8.83632 17.1007 7.78298 16.8914 6.8003 16.4844C5.81762 16.0773 4.92491 15.4803 4.1733 14.7277L5.44589 13.4551C5.73184 13.7406 6.04435 13.9983 6.37919 14.2246C7.06001 14.6851 7.82486 15.0072 8.63009 15.1722C9.46849 15.3419 10.3324 15.3419 11.1708 15.1722C11.5758 15.089 11.9716 14.966 12.3525 14.8051C13.1002 14.487 13.78 14.0284 14.355 13.4542C14.6403 13.1698 14.8986 12.8557 15.1236 12.5218C15.5851 11.8407 15.9075 11.0751 16.0722 10.2691C16.242 9.43036 16.242 8.56615 16.0722 7.72746C15.7347 6.09098 14.7612 4.6555 13.3656 3.73656C11.9701 2.81763 10.2668 2.49045 8.63009 2.82696C7.8247 2.99382 7.05954 3.31602 6.37739 3.77556C5.70685 4.22962 5.1292 4.80758 4.6755 5.47836C3.97211 6.51792 3.59741 7.74489 3.6 9.00006L3.6009 9.02256H5.39999L2.7 12.6001L0 9.02256H1.8009L1.8 9.00006C1.79849 7.91673 2.0152 6.84421 2.4372 5.84646C2.8452 4.88513 3.4343 4.01126 4.1724 3.27246C5.29152 2.15016 6.7164 1.38231 8.26919 1.06476C9.34595 0.8456 10.4558 0.8456 11.5326 1.06476C13.0839 1.38435 14.5076 2.15157 15.6276 3.27156Z\",\n fill: \"currentColor\"\n }),\n /*#__PURE__*/ (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(\"path\", {\n d: \"M9 9.8999V5.3999H10.8V8.0999H13.5V9.8999H9Z\",\n fill: \"currentColor\"\n })\n ]\n });\n}\n\n\n/***/ })\n\n}]);"],"names":["self","push","__unused_webpack_module","__webpack_exports__","__webpack_require__","d","list_chart","_tagged_template_literal","jsx_runtime","react","styled_components_browser_esm","index_esm","base64","base64_default","n","es","aggr","csv","reselect_es","format_currency","translations","config","selectPayloadByKey","P1","state","payload","_","key","selectTopLine","ZP","languageCode","data","currency","query","buckets","_aggregations","aggregations","results","isUsage","includes","currentTotal","durationTotal","forEach","_current_period","current_period","value","total_revenues","valueDuration","_total_duration","total_duration","map","title","previous_period","totalCurrentRevenues","Z","totalPreviousRevenues","totalCurrentDuration","concat","parseFloat","toFixed","hours","totalPreviousDuration","percentEarning","Math","round","percentTrend","percent","percentDuration","unformattedRevenues","unformattedDuration","totalCurrentDoc","doc_count","totalCurrentQuantity","total_quantity","totalPreviousQuantity","sort","a","b","reverse","content_loader","empty_data","btn_link","filetype_xlsx","dist_index_esm","colors","_templateObject","Wrapper","div","withConfig","componentId","$_","Dh","param","colorLine","R","Cg","line","className","defaultColor","jsx","bg","theme_text","icons_history","row_templateObject","_templateObject1","_templateObject2","_templateObject3","_templateObject4","_templateObject5","row_Wrapper","Flex","Card","WrapIcon","span","Value","TextEllipsis","p","cp","row","index","dataType","size","_color","color","_$color","_noPrevious","noPrevious","useMemo","jsxs","children","fontSize","lineHeight","fontWeight","ml","isNaN","units","mr","textAlign","abs","list_chart_templateObject","list_chart_templateObject1","list_chart_Wrapper","bK","WrapEmpty","compare","term","dateFrom","dateTo","dateRange","filters","terms","reloadChecked","topList","ref","useState","queriedKey","setQueriedKey","dispatch","I0","ref1","v9","resultPayload","resultTopChart","top_chart","analytics_type","profile","slice","result","useEffect","encode","js","handleExportCsv","useCallback","nV","isWaiting","isEmpty","length","maxHeight","width","height","lines","x","y","rx","ry","label","Fragment","icon","onClick","capitalizeFirstLetter","formatDateString","string","charAt","toUpperCase","it","pt","de","en","reselect__WEBPACK_IMPORTED_MODULE_2__","translations__WEBPACK_IMPORTED_MODULE_0__","_config__WEBPACK_IMPORTED_MODULE_1__","count","card","_data","currentDuration","previousDuration","previousValue","quantity","formatNumber","locale","Intl","NumberFormat","format","currentQuantity","previousQuantity","format_number","match","users","qty","area_analytic","victory_chart","victory_voronoi_container","victory_tooltip","victory_axis","victory_group","victory_line","victory_area","hooks","ghost","lib","g","isRotate","maxWidth","activePoints","areaData","theme","useContext","Ni","getLabel","el","find","getValue","id","Number","BK","viewBox","fill","xmlns","stroke","points","style","whiteSpace","fontFamily","letterSpacing","xName","cx","r","cy","dy","textAnchor","tabs_templateObject","WrapTab","TabBtn","button","tabs","handleChangeTab","activeKey","type","py","px","usageChart","revenueChart","userChart","quantityChart","moment","moment_default","utils","area_analytic_templateObject","area_analytic_templateObject1","_templateObject6","_templateObject7","_templateObject8","_templateObject9","area_analytic_Wrapper","Head","WrapValues","Text","Legend","LegendLabel","isVisible","temporaryRevenue","chart","interval","intervalDiff","onChangeInterval","isWithinRange","chartHeight","titleMargin","Bs","xAxisLength","ref2","ref3","maxAxisY","reduce","max","item","Infinity","yAxisPadding","toString","PageWidth","_sideDate","sideDate","tmp","sideDateParsed","i","mb","pl","k","animate","duration","domainPadding","containerComponent","voronoiBlacklist","voronoiDimension","labels","labelComponent","cornerRadius","flyoutStyle","flyoutComponent","padding","left","right","top","bottom","E","tickFormat","t","axis","tickLabels","angle","verticalAnchor","dependentAxis","grid","strokeDasharray","strokeWidth","sideDateTime","endOf","utc","startOf","dataBeforeSideDate","filter","datum","timestamp","isSameOrBefore","dataAfterSideDate","isSameOrAfter","G","j","opacity","interpolation","isSideDateActive","constrainToVisibleArea","flyoutPadding","orientation","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","history"],"sourceRoot":""}