siesa-ui-kit 1.0.147 → 1.0.148
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/dist/{BarChart-CvmMmIXu.js → BarChart-C-i5of4Y.js} +5 -5
- package/dist/{BarChart-CvmMmIXu.js.map → BarChart-C-i5of4Y.js.map} +1 -1
- package/dist/{BarChart--Y6K95vz.cjs → BarChart-Rjocw3H9.cjs} +2 -2
- package/dist/{BarChart--Y6K95vz.cjs.map → BarChart-Rjocw3H9.cjs.map} +1 -1
- package/dist/{ChartBarHorizontal-Hz6VgTcd.cjs → ChartBarHorizontal-BdWLXuku.cjs} +2 -2
- package/dist/{ChartBarHorizontal-Hz6VgTcd.cjs.map → ChartBarHorizontal-BdWLXuku.cjs.map} +1 -1
- package/dist/{ChartBarHorizontal-SjgHGKb3.js → ChartBarHorizontal-DL96XTcK.js} +5 -5
- package/dist/{ChartBarHorizontal-SjgHGKb3.js.map → ChartBarHorizontal-DL96XTcK.js.map} +1 -1
- package/dist/{ChartDonut-lyBGgzMK.js → ChartDonut-BSE8fjqa.js} +5 -5
- package/dist/{ChartDonut-lyBGgzMK.js.map → ChartDonut-BSE8fjqa.js.map} +1 -1
- package/dist/{ChartDonut-DzVMDmqN.cjs → ChartDonut-DgxhaVoj.cjs} +2 -2
- package/dist/{ChartDonut-DzVMDmqN.cjs.map → ChartDonut-DgxhaVoj.cjs.map} +1 -1
- package/dist/{ChartLine-BdmX_xGy.cjs → ChartLine-BdUvE4At.cjs} +2 -2
- package/dist/{ChartLine-BdmX_xGy.cjs.map → ChartLine-BdUvE4At.cjs.map} +1 -1
- package/dist/{ChartLine-DLWVzmS2.js → ChartLine-D-vVWI3t.js} +4 -4
- package/dist/{ChartLine-DLWVzmS2.js.map → ChartLine-D-vVWI3t.js.map} +1 -1
- package/dist/{ChartVentasMensual-BcX5Qpy1.cjs → ChartVentasMensual-B3eyj9f3.cjs} +2 -2
- package/dist/{ChartVentasMensual-BcX5Qpy1.cjs.map → ChartVentasMensual-B3eyj9f3.cjs.map} +1 -1
- package/dist/{ChartVentasMensual-4tR8QITV.js → ChartVentasMensual-ClCePaTo.js} +5 -5
- package/dist/{ChartVentasMensual-4tR8QITV.js.map → ChartVentasMensual-ClCePaTo.js.map} +1 -1
- package/dist/{KpiVentasHoy-DFGjBgPP.js → KpiVentasHoy-BEQ7IUea.js} +2 -2
- package/dist/{KpiVentasHoy-DFGjBgPP.js.map → KpiVentasHoy-BEQ7IUea.js.map} +1 -1
- package/dist/{KpiVentasHoy-e72249lU.cjs → KpiVentasHoy-BpaAS9KS.cjs} +2 -2
- package/dist/{KpiVentasHoy-e72249lU.cjs.map → KpiVentasHoy-BpaAS9KS.cjs.map} +1 -1
- package/dist/{StaticImageWidget-DRyIz6pc.js → StaticImageWidget-BJvBq0mX.js} +2 -2
- package/dist/{StaticImageWidget-DRyIz6pc.js.map → StaticImageWidget-BJvBq0mX.js.map} +1 -1
- package/dist/{StaticImageWidget-DUlJD1I6.cjs → StaticImageWidget-BVD72zyl.cjs} +2 -2
- package/dist/{StaticImageWidget-DUlJD1I6.cjs.map → StaticImageWidget-BVD72zyl.cjs.map} +1 -1
- package/dist/{TableStockCritico-BUnNpMgt.cjs → TableStockCritico-B01RIs_D.cjs} +2 -2
- package/dist/{TableStockCritico-BUnNpMgt.cjs.map → TableStockCritico-B01RIs_D.cjs.map} +1 -1
- package/dist/{TableStockCritico-BYdApQed.js → TableStockCritico-CQPn8Pbf.js} +3 -3
- package/dist/{TableStockCritico-BYdApQed.js.map → TableStockCritico-CQPn8Pbf.js.map} +1 -1
- package/dist/{aggregateChartData-DOX-R8x3.cjs → aggregateChartData-CJTTxh2k.cjs} +2 -2
- package/dist/{aggregateChartData-DOX-R8x3.cjs.map → aggregateChartData-CJTTxh2k.cjs.map} +1 -1
- package/dist/{aggregateChartData-B2UAW-WP.js → aggregateChartData-DfMWQUiV.js} +2 -2
- package/dist/{aggregateChartData-B2UAW-WP.js.map → aggregateChartData-DfMWQUiV.js.map} +1 -1
- package/dist/components/MasterDocument/HeaderRenderer.d.ts.map +1 -1
- package/dist/components/MasterDocument/MasterDocument.types.d.ts +14 -0
- package/dist/components/MasterDocument/MasterDocument.types.d.ts.map +1 -1
- package/dist/components/MasterDocument/smart/SmartMasterDocument.d.ts.map +1 -1
- package/dist/{index-DieYMRjT.cjs → index-DOwUCRbF.cjs} +3 -3
- package/dist/{index-DieYMRjT.cjs.map → index-DOwUCRbF.cjs.map} +1 -1
- package/dist/{index-BMDgaTO4.js → index-D_AyI9xa.js} +13 -9
- package/dist/{index-BMDgaTO4.js.map → index-D_AyI9xa.js.map} +1 -1
- package/dist/siesa-ui-kit.cjs +1 -1
- package/dist/siesa-ui-kit.mjs +1 -1
- package/dist/{tooltipContext-CH5FhWSK.js → tooltipContext-Bm4TsIIS.js} +2 -2
- package/dist/{tooltipContext-CH5FhWSK.js.map → tooltipContext-Bm4TsIIS.js.map} +1 -1
- package/dist/{tooltipContext-DMgzQCQh.cjs → tooltipContext-DYc8x5pj.cjs} +2 -2
- package/dist/{tooltipContext-DMgzQCQh.cjs.map → tooltipContext-DYc8x5pj.cjs.map} +1 -1
- package/dist/{useChartData-0fNBg8Ez.cjs → useChartData-CJq1lJYY.cjs} +2 -2
- package/dist/{useChartData-0fNBg8Ez.cjs.map → useChartData-CJq1lJYY.cjs.map} +1 -1
- package/dist/{useChartData-CTX9NnMa.js → useChartData-CzMMMf58.js} +4 -4
- package/dist/{useChartData-CTX9NnMa.js.map → useChartData-CzMMMf58.js.map} +1 -1
- package/dist/{useWidgetFetch-KHtyWHSX.cjs → useWidgetFetch-BkxK2-zy.cjs} +2 -2
- package/dist/{useWidgetFetch-KHtyWHSX.cjs.map → useWidgetFetch-BkxK2-zy.cjs.map} +1 -1
- package/dist/{useWidgetFetch-C43Q4m8v.js → useWidgetFetch-fkAbLXjl.js} +2 -2
- package/dist/{useWidgetFetch-C43Q4m8v.js.map → useWidgetFetch-fkAbLXjl.js.map} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChartLine-BdmX_xGy.cjs","sources":["../node_modules/recharts/es6/shape/Dot.js","../node_modules/recharts/es6/component/Dots.js","../node_modules/recharts/es6/component/ActivePoints.js","../node_modules/recharts/es6/state/selectors/lineSelectors.js","../node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js","../node_modules/recharts/es6/cartesian/Line.js","../node_modules/recharts/es6/chart/LineChart.js","../src/dashboard/widgets/ChartLine.tsx"],"sourcesContent":["function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { adaptEventHandlers } from '../util/types';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nimport { isNumber } from '../util/DataUtils';\n/**\n * Renders a dot in the chart.\n *\n * This component accepts X and Y coordinates in pixels.\n * If you need to position the rectangle based on your chart's data,\n * consider using the {@link ReferenceDot} component instead.\n *\n * @param props\n * @constructor\n */\nexport var Dot = props => {\n var {\n cx,\n cy,\n r,\n className\n } = props;\n var layerClass = clsx('recharts-dot', className);\n if (isNumber(cx) && isNumber(cy) && isNumber(r)) {\n return /*#__PURE__*/React.createElement(\"circle\", _extends({}, svgPropertiesNoEvents(props), adaptEventHandlers(props), {\n className: layerClass,\n cx: cx,\n cy: cy,\n r: r\n }));\n }\n return null;\n};","var _excluded = [\"points\"];\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { cloneElement, isValidElement } from 'react';\nimport { clsx } from 'clsx';\nimport { Dot } from '../shape/Dot';\nimport { Layer } from '../container/Layer';\nimport { isClipDot } from '../util/ReactUtils';\nimport { svgPropertiesAndEventsFromUnknown } from '../util/svgPropertiesAndEvents';\nimport { ZIndexLayer } from '../zIndex/ZIndexLayer';\nimport { DefaultZIndexes } from '../zIndex/DefaultZIndexes';\nfunction DotItem(_ref) {\n var {\n option,\n dotProps,\n className\n } = _ref;\n if (/*#__PURE__*/isValidElement(option)) {\n // @ts-expect-error we can't type check element cloning properly\n return /*#__PURE__*/cloneElement(option, dotProps);\n }\n if (typeof option === 'function') {\n return option(dotProps);\n }\n var finalClassName = clsx(className, typeof option !== 'boolean' ? option.className : '');\n var _ref2 = dotProps !== null && dotProps !== void 0 ? dotProps : {},\n {\n points\n } = _ref2,\n props = _objectWithoutProperties(_ref2, _excluded);\n return /*#__PURE__*/React.createElement(Dot, _extends({}, props, {\n className: finalClassName\n }));\n}\nfunction shouldRenderDots(points, dot) {\n if (points == null) {\n return false;\n }\n if (dot) {\n return true;\n }\n return points.length === 1;\n}\nexport function Dots(_ref3) {\n var {\n points,\n dot,\n className,\n dotClassName,\n dataKey,\n baseProps,\n needClip,\n clipPathId,\n zIndex = DefaultZIndexes.scatter\n } = _ref3;\n if (!shouldRenderDots(points, dot)) {\n return null;\n }\n var clipDot = isClipDot(dot);\n var customDotProps = svgPropertiesAndEventsFromUnknown(dot);\n var dots = points.map((entry, i) => {\n var _entry$x, _entry$y;\n var dotProps = _objectSpread(_objectSpread(_objectSpread({\n r: 3\n }, baseProps), customDotProps), {}, {\n index: i,\n cx: (_entry$x = entry.x) !== null && _entry$x !== void 0 ? _entry$x : undefined,\n cy: (_entry$y = entry.y) !== null && _entry$y !== void 0 ? _entry$y : undefined,\n dataKey,\n value: entry.value,\n payload: entry.payload,\n points\n });\n return /*#__PURE__*/React.createElement(DotItem, {\n key: \"dot-\".concat(i),\n option: dot,\n dotProps: dotProps,\n className: dotClassName\n });\n });\n var layerProps = {};\n if (needClip && clipPathId != null) {\n layerProps.clipPath = \"url(#clipPath-\".concat(clipDot ? '' : 'dots-').concat(clipPathId, \")\");\n }\n return /*#__PURE__*/React.createElement(ZIndexLayer, {\n zIndex: zIndex\n }, /*#__PURE__*/React.createElement(Layer, _extends({\n className: className\n }, layerProps), dots));\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport * as React from 'react';\nimport { cloneElement, isValidElement } from 'react';\nimport { adaptEventHandlers } from '../util/types';\nimport { Dot } from '../shape/Dot';\nimport { Layer } from '../container/Layer';\nimport { useAppSelector } from '../state/hooks';\nimport { selectActiveTooltipIndex } from '../state/selectors/tooltipSelectors';\nimport { useActiveTooltipDataPoints } from '../hooks';\nimport { isNullish } from '../util/DataUtils';\nimport { svgPropertiesNoEventsFromUnknown } from '../util/svgPropertiesNoEvents';\nimport { ZIndexLayer } from '../zIndex/ZIndexLayer';\nimport { DefaultZIndexes } from '../zIndex/DefaultZIndexes';\nvar ActivePoint = _ref => {\n var {\n point,\n childIndex,\n mainColor,\n activeDot,\n dataKey,\n clipPath\n } = _ref;\n if (activeDot === false || point.x == null || point.y == null) {\n return null;\n }\n var dotPropsTyped = {\n index: childIndex,\n dataKey,\n cx: point.x,\n cy: point.y,\n r: 4,\n fill: mainColor !== null && mainColor !== void 0 ? mainColor : 'none',\n strokeWidth: 2,\n stroke: '#fff',\n payload: point.payload,\n value: point.value\n };\n\n // @ts-expect-error svgPropertiesNoEventsFromUnknown(activeDot) is contributing unknown props\n var dotProps = _objectSpread(_objectSpread(_objectSpread({}, dotPropsTyped), svgPropertiesNoEventsFromUnknown(activeDot)), adaptEventHandlers(activeDot));\n var dot;\n if (/*#__PURE__*/isValidElement(activeDot)) {\n // @ts-expect-error we're improperly typing events\n dot = /*#__PURE__*/cloneElement(activeDot, dotProps);\n } else if (typeof activeDot === 'function') {\n dot = activeDot(dotProps);\n } else {\n dot = /*#__PURE__*/React.createElement(Dot, dotProps);\n }\n return /*#__PURE__*/React.createElement(Layer, {\n className: \"recharts-active-dot\",\n clipPath: clipPath\n }, dot);\n};\nexport function ActivePoints(_ref2) {\n var {\n points,\n mainColor,\n activeDot,\n itemDataKey,\n clipPath,\n zIndex = DefaultZIndexes.activeDot\n } = _ref2;\n var activeTooltipIndex = useAppSelector(selectActiveTooltipIndex);\n var activeDataPoints = useActiveTooltipDataPoints();\n if (points == null || activeDataPoints == null) {\n return null;\n }\n var activePoint = points.find(p => activeDataPoints.includes(p.payload));\n if (isNullish(activePoint)) {\n return null;\n }\n return /*#__PURE__*/React.createElement(ZIndexLayer, {\n zIndex: zIndex\n }, /*#__PURE__*/React.createElement(ActivePoint, {\n point: activePoint,\n childIndex: Number(activeTooltipIndex),\n mainColor: mainColor,\n dataKey: itemDataKey,\n activeDot: activeDot,\n clipPath: clipPath\n }));\n}","import { createSelector } from 'reselect';\nimport { computeLinePoints } from '../../cartesian/Line';\nimport { selectChartDataWithIndexesIfNotInPanoramaPosition4 } from './dataSelectors';\nimport { selectChartLayout } from '../../context/chartLayoutContext';\nimport { selectAxisWithScale, selectTicksOfGraphicalItem, selectUnfilteredCartesianItems } from './axisSelectors';\nimport { getBandSizeOfAxis, isCategoricalAxis } from '../../util/ChartUtils';\nvar selectXAxisWithScale = (state, xAxisId, _yAxisId, isPanorama) => selectAxisWithScale(state, 'xAxis', xAxisId, isPanorama);\nvar selectXAxisTicks = (state, xAxisId, _yAxisId, isPanorama) => selectTicksOfGraphicalItem(state, 'xAxis', xAxisId, isPanorama);\nvar selectYAxisWithScale = (state, _xAxisId, yAxisId, isPanorama) => selectAxisWithScale(state, 'yAxis', yAxisId, isPanorama);\nvar selectYAxisTicks = (state, _xAxisId, yAxisId, isPanorama) => selectTicksOfGraphicalItem(state, 'yAxis', yAxisId, isPanorama);\nvar selectBandSize = createSelector([selectChartLayout, selectXAxisWithScale, selectYAxisWithScale, selectXAxisTicks, selectYAxisTicks], (layout, xAxis, yAxis, xAxisTicks, yAxisTicks) => {\n if (isCategoricalAxis(layout, 'xAxis')) {\n return getBandSizeOfAxis(xAxis, xAxisTicks, false);\n }\n return getBandSizeOfAxis(yAxis, yAxisTicks, false);\n});\nvar pickLineId = (_state, _xAxisId, _yAxisId, _isPanorama, id) => id;\nfunction isLineSettings(item) {\n return item.type === 'line';\n}\n\n/*\n * There is a race condition problem because we read some data from props and some from the state.\n * The state is updated through a dispatch and is one render behind,\n * and so we have this weird one tick render where the displayedData in one selector have the old dataKey\n * but the new dataKey in another selector.\n *\n * So here instead of reading the dataKey from the props, we always read it from the state.\n */\nvar selectSynchronisedLineSettings = createSelector([selectUnfilteredCartesianItems, pickLineId], (graphicalItems, id) => graphicalItems.filter(isLineSettings).find(x => x.id === id));\nexport var selectLinePoints = createSelector([selectChartLayout, selectXAxisWithScale, selectYAxisWithScale, selectXAxisTicks, selectYAxisTicks, selectSynchronisedLineSettings, selectBandSize, selectChartDataWithIndexesIfNotInPanoramaPosition4], (layout, xAxis, yAxis, xAxisTicks, yAxisTicks, lineSettings, bandSize, _ref) => {\n var {\n chartData,\n dataStartIndex,\n dataEndIndex\n } = _ref;\n if (lineSettings == null || xAxis == null || yAxis == null || xAxisTicks == null || yAxisTicks == null || xAxisTicks.length === 0 || yAxisTicks.length === 0 || bandSize == null || layout !== 'horizontal' && layout !== 'vertical') {\n return undefined;\n }\n var {\n dataKey,\n data\n } = lineSettings;\n var displayedData;\n if (data != null && data.length > 0) {\n displayedData = data;\n } else {\n displayedData = chartData === null || chartData === void 0 ? void 0 : chartData.slice(dataStartIndex, dataEndIndex + 1);\n }\n if (displayedData == null) {\n return undefined;\n }\n return computeLinePoints({\n layout,\n xAxis,\n yAxis,\n xAxisTicks,\n yAxisTicks,\n dataKey,\n bandSize,\n displayedData\n });\n});","import { svgPropertiesNoEventsFromUnknown } from './svgPropertiesNoEvents';\nexport function getRadiusAndStrokeWidthFromDot(dot) {\n var props = svgPropertiesNoEventsFromUnknown(dot);\n var defaultR = 3;\n var defaultStrokeWidth = 2;\n if (props != null) {\n var {\n r,\n strokeWidth\n } = props;\n var realR = Number(r);\n var realStrokeWidth = Number(strokeWidth);\n if (Number.isNaN(realR) || realR < 0) {\n realR = defaultR;\n }\n if (Number.isNaN(realStrokeWidth) || realStrokeWidth < 0) {\n realStrokeWidth = defaultStrokeWidth;\n }\n return {\n r: realR,\n strokeWidth: realStrokeWidth\n };\n }\n return {\n r: defaultR,\n strokeWidth: defaultStrokeWidth\n };\n}","var _excluded = [\"id\"],\n _excluded2 = [\"type\", \"layout\", \"connectNulls\", \"needClip\", \"shape\"],\n _excluded3 = [\"activeDot\", \"animateNewValues\", \"animationBegin\", \"animationDuration\", \"animationEasing\", \"connectNulls\", \"dot\", \"hide\", \"isAnimationActive\", \"label\", \"legendType\", \"xAxisId\", \"yAxisId\", \"id\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { Component, useCallback, useMemo, useRef, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { Layer } from '../container/Layer';\nimport { CartesianLabelListContextProvider, LabelListFromLabelProp } from '../component/LabelList';\nimport { Dots } from '../component/Dots';\nimport { interpolate, isNullish, noop } from '../util/DataUtils';\nimport { isClipDot } from '../util/ReactUtils';\nimport { getCateCoordinateOfLine, getTooltipNameProp, getValueByDataKey } from '../util/ChartUtils';\nimport { ActivePoints } from '../component/ActivePoints';\nimport { SetTooltipEntrySettings } from '../state/SetTooltipEntrySettings';\nimport { SetErrorBarContext } from '../context/ErrorBarContext';\nimport { GraphicalItemClipPath, useNeedsClip } from './GraphicalItemClipPath';\nimport { useChartLayout } from '../context/chartLayoutContext';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { selectLinePoints } from '../state/selectors/lineSelectors';\nimport { useAppSelector } from '../state/hooks';\nimport { SetLegendPayload } from '../state/SetLegendPayload';\nimport { useAnimationId } from '../util/useAnimationId';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { usePlotArea } from '../hooks';\nimport { RegisterGraphicalItemId } from '../context/RegisterGraphicalItemId';\nimport { SetCartesianGraphicalItem } from '../state/SetGraphicalItem';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nimport { JavascriptAnimate } from '../animation/JavascriptAnimate';\nimport { svgPropertiesAndEvents } from '../util/svgPropertiesAndEvents';\nimport { getRadiusAndStrokeWidthFromDot } from '../util/getRadiusAndStrokeWidthFromDot';\nimport { Shape } from '../util/ActiveShapeUtils';\nimport { ZIndexLayer } from '../zIndex/ZIndexLayer';\nimport { DefaultZIndexes } from '../zIndex/DefaultZIndexes';\nimport { propsAreEqual } from '../util/propsAreEqual';\n\n/**\n * Internal props, combination of external props + defaultProps + private Recharts state\n */\n\n/**\n * External props, intended for end users to fill in\n */\n\n/**\n * Because of naming conflict, we are forced to ignore certain (valid) SVG attributes.\n */\n\nvar computeLegendPayloadFromAreaData = props => {\n var {\n dataKey,\n name,\n stroke,\n legendType,\n hide\n } = props;\n return [{\n inactive: hide,\n dataKey,\n type: legendType,\n color: stroke,\n value: getTooltipNameProp(name, dataKey),\n payload: props\n }];\n};\nvar SetLineTooltipEntrySettings = /*#__PURE__*/React.memo(_ref => {\n var {\n dataKey,\n data,\n stroke,\n strokeWidth,\n fill,\n name,\n hide,\n unit,\n tooltipType,\n id\n } = _ref;\n var tooltipEntrySettings = {\n dataDefinedOnItem: data,\n getPosition: noop,\n settings: {\n stroke,\n strokeWidth,\n fill,\n dataKey,\n nameKey: undefined,\n name: getTooltipNameProp(name, dataKey),\n hide,\n type: tooltipType,\n color: stroke,\n unit,\n graphicalItemId: id\n }\n };\n return /*#__PURE__*/React.createElement(SetTooltipEntrySettings, {\n tooltipEntrySettings: tooltipEntrySettings\n });\n});\n\n/**\n * Generates a simple stroke-dasharray string for animating a line draw effect.\n *\n * Uses `totalLength` as the gap (instead of `totalLength - length`) to prevent a floating-point\n * precision artifact: when fractional dash and gap values are serialized to a string attribute\n * and re-parsed by the SVG renderer, their sum can differ from the actual path length by a ULP,\n * causing the dasharray pattern to repeat and render a phantom dot at the path endpoint\n * with round or square strokeLinecap.\n *\n * @param totalLength The total length of the SVG path\n * @param length The currently visible portion of the path\n * @returns A stroke-dasharray string like \"50px 200px\"\n */\nvar generateSimpleStrokeDasharray = (totalLength, length) => {\n return \"\".concat(length, \"px \").concat(totalLength, \"px\");\n};\n\n/**\n * Repeats a dash pattern array a given number of times.\n *\n * If the input array has an odd length, a trailing `0` is appended to make it even\n * before repeating, because SVG stroke-dasharray patterns must have an even number\n * of values to cycle correctly between dash and gap segments.\n *\n * @param lines Array of dash/gap lengths to repeat\n * @param count Number of times to repeat the pattern\n * @returns A new array with the pattern repeated `count` times\n */\nfunction repeat(lines, count) {\n var linesUnit = lines.length % 2 !== 0 ? [...lines, 0] : lines;\n var result = [];\n for (var i = 0; i < count; ++i) {\n result.push(...linesUnit);\n }\n return result;\n}\n\n/**\n * Computes a stroke-dasharray string for animating a custom-dashed line draw effect.\n *\n * Given a user-specified dash pattern (e.g. `\"7,3\"`), this function builds a dasharray\n * that reveals exactly `length` pixels of that pattern, followed by a gap of `totalLength`\n * to hide the remainder of the path.\n *\n * Like {@link generateSimpleStrokeDasharray}, the trailing gap uses `totalLength` rather than\n * `totalLength - length` to avoid floating-point precision artifacts with round/square strokeLinecap.\n *\n * @param length The currently visible portion of the path\n * @param totalLength The total length of the SVG path\n * @param lines The user-specified dash pattern as an array of numbers (e.g. [7, 3])\n * @returns A stroke-dasharray string incorporating the custom dash pattern\n */\nvar getStrokeDasharray = (length, totalLength, lines) => {\n var lineLength = lines.reduce((pre, next) => pre + next, 0);\n\n // if lineLength is 0 return the default when no strokeDasharray is provided\n if (!lineLength) {\n return generateSimpleStrokeDasharray(totalLength, length);\n }\n var count = Math.floor(length / lineLength);\n var remainLength = length % lineLength;\n var remainLines = [];\n for (var i = 0, sum = 0; i < lines.length; sum += (_lines$i = lines[i]) !== null && _lines$i !== void 0 ? _lines$i : 0, ++i) {\n var _lines$i;\n var lineValue = lines[i];\n if (lineValue != null && sum + lineValue > remainLength) {\n remainLines = [...lines.slice(0, i), remainLength - sum];\n break;\n }\n }\n var emptyLines = remainLines.length % 2 === 0 ? [0, totalLength] : [totalLength];\n return [...repeat(lines, count), ...remainLines, ...emptyLines].map(line => \"\".concat(line, \"px\")).join(', ');\n};\nfunction LineDotsWrapper(_ref2) {\n var {\n clipPathId,\n points,\n props\n } = _ref2;\n var {\n dot,\n dataKey,\n needClip\n } = props;\n\n /*\n * Exclude ID from the props passed to the Dots component\n * because then the ID would be applied to multiple dots, and it would no longer be unique.\n */\n var {\n id\n } = props,\n propsWithoutId = _objectWithoutProperties(props, _excluded);\n var lineProps = svgPropertiesNoEvents(propsWithoutId);\n return /*#__PURE__*/React.createElement(Dots, {\n points: points,\n dot: dot,\n className: \"recharts-line-dots\",\n dotClassName: \"recharts-line-dot\",\n dataKey: dataKey,\n baseProps: lineProps,\n needClip: needClip,\n clipPathId: clipPathId\n });\n}\nfunction LineLabelListProvider(_ref3) {\n var {\n showLabels,\n children,\n points\n } = _ref3;\n var labelListEntries = useMemo(() => {\n return points === null || points === void 0 ? void 0 : points.map(point => {\n var _point$x, _point$y;\n var viewBox = {\n x: (_point$x = point.x) !== null && _point$x !== void 0 ? _point$x : 0,\n y: (_point$y = point.y) !== null && _point$y !== void 0 ? _point$y : 0,\n width: 0,\n lowerWidth: 0,\n upperWidth: 0,\n height: 0\n };\n return _objectSpread(_objectSpread({}, viewBox), {}, {\n value: point.value,\n payload: point.payload,\n viewBox,\n /*\n * Line is not passing parentViewBox to the LabelList so the labels can escape - looks like a bug, should we pass parentViewBox?\n * Or should this just be the root chart viewBox?\n */\n parentViewBox: undefined,\n fill: undefined\n });\n });\n }, [points]);\n return /*#__PURE__*/React.createElement(CartesianLabelListContextProvider, {\n value: showLabels ? labelListEntries : undefined\n }, children);\n}\nfunction StaticCurve(_ref4) {\n var {\n clipPathId,\n pathRef,\n points,\n strokeDasharray,\n props\n } = _ref4;\n var {\n type,\n layout,\n connectNulls,\n needClip,\n shape\n } = props,\n others = _objectWithoutProperties(props, _excluded2);\n var curveProps = _objectSpread(_objectSpread({}, svgPropertiesAndEvents(others)), {}, {\n fill: 'none',\n className: 'recharts-line-curve',\n clipPath: needClip ? \"url(#clipPath-\".concat(clipPathId, \")\") : undefined,\n points,\n type,\n layout,\n connectNulls,\n strokeDasharray: strokeDasharray !== null && strokeDasharray !== void 0 ? strokeDasharray : props.strokeDasharray\n });\n return /*#__PURE__*/React.createElement(React.Fragment, null, (points === null || points === void 0 ? void 0 : points.length) > 1 && /*#__PURE__*/React.createElement(Shape, _extends({\n shapeType: \"curve\",\n option: shape\n }, curveProps, {\n pathRef: pathRef\n })), /*#__PURE__*/React.createElement(LineDotsWrapper, {\n points: points,\n clipPathId: clipPathId,\n props: props\n }));\n}\nfunction getTotalLength(mainCurve) {\n try {\n return mainCurve && mainCurve.getTotalLength && mainCurve.getTotalLength() || 0;\n } catch (_unused) {\n return 0;\n }\n}\nfunction CurveWithAnimation(_ref5) {\n var {\n clipPathId,\n props,\n pathRef,\n previousPointsRef,\n longestAnimatedLengthRef\n } = _ref5;\n var {\n points,\n strokeDasharray,\n isAnimationActive,\n animationBegin,\n animationDuration,\n animationEasing,\n animateNewValues,\n width,\n height,\n onAnimationEnd,\n onAnimationStart\n } = props;\n var prevPoints = previousPointsRef.current;\n var animationId = useAnimationId(points, 'recharts-line-');\n var animationIdRef = useRef(animationId);\n var [isAnimating, setIsAnimating] = useState(false);\n var showLabels = !isAnimating;\n var handleAnimationEnd = useCallback(() => {\n if (typeof onAnimationEnd === 'function') {\n onAnimationEnd();\n }\n setIsAnimating(false);\n }, [onAnimationEnd]);\n var handleAnimationStart = useCallback(() => {\n if (typeof onAnimationStart === 'function') {\n onAnimationStart();\n }\n setIsAnimating(true);\n }, [onAnimationStart]);\n var totalLength = getTotalLength(pathRef.current);\n /*\n * Here we want to detect if the length animation has been interrupted.\n * For that we keep a reference to the furthest length that has been animated.\n *\n * And then, to keep things smooth, we add to it the current length that is being animated right now.\n *\n * If we did Math.max then it makes the length animation \"pause\" but we want to keep it smooth\n * so in case we have some \"leftover\" length from the previous animation we add it to the current length.\n *\n * This is not perfect because the animation changes speed due to easing. The default easing is 'ease' which is not linear\n * and makes it stand out. But it's good enough I suppose.\n * If we want to fix it then we need to keep track of multiple animations and their easing and timings.\n *\n * If you want to see this in action, try to change the dataKey of the line chart while the initial animation is running.\n * The Line begins with zero length and slowly grows to the full length. While this growth is in progress,\n * change the dataKey and the Line will continue growing from where it has grown so far.\n *\n * This is for the case when new animation triggers. When that happens we get new points, everything re-renders,\n * and we get fresh new state in this component and use the ref stored above.\n *\n * In case when we get render without new animation - for example when opacity changes, or color changes,\n * then the animationId remains the same, and we do not update the starting point.\n * See https://github.com/recharts/recharts/issues/6044\n */\n var startingPointRef = useRef(0);\n if (animationIdRef.current !== animationId) {\n startingPointRef.current = longestAnimatedLengthRef.current;\n animationIdRef.current = animationId;\n }\n var startingPoint = startingPointRef.current;\n return /*#__PURE__*/React.createElement(LineLabelListProvider, {\n points: points,\n showLabels: showLabels\n }, props.children, /*#__PURE__*/React.createElement(JavascriptAnimate, {\n animationId: animationId,\n begin: animationBegin,\n duration: animationDuration,\n isActive: isAnimationActive,\n easing: animationEasing,\n onAnimationEnd: handleAnimationEnd,\n onAnimationStart: handleAnimationStart,\n key: animationId\n }, t => {\n var lengthInterpolated = interpolate(startingPoint, totalLength + startingPoint, t);\n var curLength = Math.min(lengthInterpolated, totalLength);\n var currentStrokeDasharray;\n if (isAnimationActive) {\n if (strokeDasharray) {\n var lines = \"\".concat(strokeDasharray).split(/[,\\s]+/gim).map(num => parseFloat(num));\n currentStrokeDasharray = getStrokeDasharray(curLength, totalLength, lines);\n } else {\n currentStrokeDasharray = generateSimpleStrokeDasharray(totalLength, curLength);\n }\n } else {\n currentStrokeDasharray = strokeDasharray == null ? undefined : String(strokeDasharray);\n }\n\n /*\n * Here it is important to wait a little bit with updating the previousPointsRef\n * before the animation has a time to initialize.\n * If we set the previous pointsRef immediately, we set it before the Legend height it calculated\n * and before pathRef is set.\n * If that happens, the Line will re-render again after Legend had reported its height\n * which will start a new animation with the previous points as the starting point\n * which gives the effect of the Line animating slightly upwards (where the animation distance equals the Legend height).\n * Waiting for t > 0 is indirect but good enough to ensure that the Legend height is calculated and animation works properly.\n *\n * Total length similarly is calculated from the pathRef. We should not update the previousPointsRef\n * before the pathRef is set, otherwise we will have a wrong total length.\n */\n if (t > 0 && totalLength > 0) {\n // eslint-disable-next-line no-param-reassign\n previousPointsRef.current = points;\n /*\n * totalLength is set from a ref and is not updated in the first tick of the animation.\n * It defaults to zero which is exactly what we want here because we want to grow from zero,\n * however the same happens when the data change.\n *\n * In that case we want to remember the previous length and continue from there, and only animate the shape.\n *\n * Therefore the totalLength > 0 check.\n *\n * The Animate is about to fire handleAnimationStart which will update the state\n * and cause a re-render and read a new proper totalLength which will be used in the next tick\n * and update the longestAnimatedLengthRef.\n *\n * Why Math.max? Sometimes the curve goes through a smaller length than previously recorded.\n * If we just set it to curLength, then the next animation would start from a smaller length\n * which looks weird. So we keep the longest length ever reached and then animate from there.\n */\n // eslint-disable-next-line no-param-reassign\n longestAnimatedLengthRef.current = Math.max(longestAnimatedLengthRef.current, curLength);\n }\n if (prevPoints) {\n var prevPointsDiffFactor = prevPoints.length / points.length;\n var stepData = t === 1 ? points : points.map((entry, index) => {\n var prevPointIndex = Math.floor(index * prevPointsDiffFactor);\n if (prevPoints[prevPointIndex]) {\n var prev = prevPoints[prevPointIndex];\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: interpolate(prev.x, entry.x, t),\n y: interpolate(prev.y, entry.y, t)\n });\n }\n\n // magic number of faking previous x and y location\n if (animateNewValues) {\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: interpolate(width * 2, entry.x, t),\n y: interpolate(height / 2, entry.y, t)\n });\n }\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: entry.x,\n y: entry.y\n });\n });\n // eslint-disable-next-line no-param-reassign\n previousPointsRef.current = stepData;\n return /*#__PURE__*/React.createElement(StaticCurve, {\n props: props,\n points: stepData,\n clipPathId: clipPathId,\n pathRef: pathRef,\n strokeDasharray: currentStrokeDasharray\n });\n }\n return /*#__PURE__*/React.createElement(StaticCurve, {\n props: props,\n points: points,\n clipPathId: clipPathId,\n pathRef: pathRef,\n strokeDasharray: currentStrokeDasharray\n });\n }), /*#__PURE__*/React.createElement(LabelListFromLabelProp, {\n label: props.label\n }));\n}\nfunction RenderCurve(_ref6) {\n var {\n clipPathId,\n props\n } = _ref6;\n var previousPointsRef = useRef(null);\n var longestAnimatedLengthRef = useRef(0);\n var pathRef = useRef(null);\n return /*#__PURE__*/React.createElement(CurveWithAnimation, {\n props: props,\n clipPathId: clipPathId,\n previousPointsRef: previousPointsRef,\n longestAnimatedLengthRef: longestAnimatedLengthRef,\n pathRef: pathRef\n });\n}\nvar errorBarDataPointFormatter = (dataPoint, dataKey) => {\n var _dataPoint$x, _dataPoint$y;\n return {\n x: (_dataPoint$x = dataPoint.x) !== null && _dataPoint$x !== void 0 ? _dataPoint$x : undefined,\n y: (_dataPoint$y = dataPoint.y) !== null && _dataPoint$y !== void 0 ? _dataPoint$y : undefined,\n value: dataPoint.value,\n // getValueByDataKey does not validate the output type\n errorVal: getValueByDataKey(dataPoint.payload, dataKey)\n };\n};\n\n// eslint-disable-next-line react/prefer-stateless-function\nclass LineWithState extends Component {\n render() {\n var {\n hide,\n dot,\n points,\n className,\n xAxisId,\n yAxisId,\n top,\n left,\n width,\n height,\n id,\n needClip,\n zIndex\n } = this.props;\n if (hide) {\n return null;\n }\n var layerClass = clsx('recharts-line', className);\n var clipPathId = id;\n var {\n r,\n strokeWidth\n } = getRadiusAndStrokeWidthFromDot(dot);\n var clipDot = isClipDot(dot);\n var dotSize = r * 2 + strokeWidth;\n var activePointsClipPath = needClip ? \"url(#clipPath-\".concat(clipDot ? '' : 'dots-').concat(clipPathId, \")\") : undefined;\n return /*#__PURE__*/React.createElement(ZIndexLayer, {\n zIndex: zIndex\n }, /*#__PURE__*/React.createElement(Layer, {\n className: layerClass\n }, needClip && /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(GraphicalItemClipPath, {\n clipPathId: clipPathId,\n xAxisId: xAxisId,\n yAxisId: yAxisId\n }), !clipDot && /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clipPath-dots-\".concat(clipPathId)\n }, /*#__PURE__*/React.createElement(\"rect\", {\n x: left - dotSize / 2,\n y: top - dotSize / 2,\n width: width + dotSize,\n height: height + dotSize\n }))), /*#__PURE__*/React.createElement(SetErrorBarContext, {\n xAxisId: xAxisId,\n yAxisId: yAxisId,\n data: points,\n dataPointFormatter: errorBarDataPointFormatter,\n errorBarOffset: 0\n }, /*#__PURE__*/React.createElement(RenderCurve, {\n props: this.props,\n clipPathId: clipPathId\n }))), /*#__PURE__*/React.createElement(ActivePoints, {\n activeDot: this.props.activeDot,\n points: points,\n mainColor: this.props.stroke,\n itemDataKey: this.props.dataKey,\n clipPath: activePointsClipPath\n }));\n }\n}\nexport var defaultLineProps = {\n activeDot: true,\n animateNewValues: true,\n animationBegin: 0,\n animationDuration: 1500,\n animationEasing: 'ease',\n connectNulls: false,\n dot: true,\n fill: '#fff',\n hide: false,\n isAnimationActive: 'auto',\n label: false,\n legendType: 'line',\n stroke: '#3182bd',\n strokeWidth: 1,\n xAxisId: 0,\n yAxisId: 0,\n zIndex: DefaultZIndexes.line,\n type: 'linear'\n};\nfunction LineImpl(props) {\n var _resolveDefaultProps = resolveDefaultProps(props, defaultLineProps),\n {\n activeDot,\n animateNewValues,\n animationBegin,\n animationDuration,\n animationEasing,\n connectNulls,\n dot,\n hide,\n isAnimationActive,\n label,\n legendType,\n xAxisId,\n yAxisId,\n id\n } = _resolveDefaultProps,\n everythingElse = _objectWithoutProperties(_resolveDefaultProps, _excluded3);\n var {\n needClip\n } = useNeedsClip(xAxisId, yAxisId);\n var plotArea = usePlotArea();\n var layout = useChartLayout();\n var isPanorama = useIsPanorama();\n var points = useAppSelector(state => selectLinePoints(state, xAxisId, yAxisId, isPanorama, id));\n if (layout !== 'horizontal' && layout !== 'vertical' || points == null || plotArea == null) {\n // Cannot render Line in an unsupported layout\n return null;\n }\n var {\n height,\n width,\n x: left,\n y: top\n } = plotArea;\n return /*#__PURE__*/React.createElement(LineWithState, _extends({}, everythingElse, {\n id: id,\n connectNulls: connectNulls,\n dot: dot,\n activeDot: activeDot,\n animateNewValues: animateNewValues,\n animationBegin: animationBegin,\n animationDuration: animationDuration,\n animationEasing: animationEasing,\n isAnimationActive: isAnimationActive,\n hide: hide,\n label: label,\n legendType: legendType,\n xAxisId: xAxisId,\n yAxisId: yAxisId,\n points: points,\n layout: layout,\n height: height,\n width: width,\n left: left,\n top: top,\n needClip: needClip\n }));\n}\nexport function computeLinePoints(_ref7) {\n var {\n layout,\n xAxis,\n yAxis,\n xAxisTicks,\n yAxisTicks,\n dataKey,\n bandSize,\n displayedData\n } = _ref7;\n return displayedData.map((entry, index) => {\n // getValueByDataKey does not validate the output type\n var value = getValueByDataKey(entry, dataKey);\n if (layout === 'horizontal') {\n var _x = getCateCoordinateOfLine({\n axis: xAxis,\n ticks: xAxisTicks,\n bandSize,\n entry,\n index\n });\n var _y = isNullish(value) ? null : yAxis.scale.map(value);\n return {\n x: _x,\n y: _y !== null && _y !== void 0 ? _y : null,\n value,\n payload: entry\n };\n }\n var x = isNullish(value) ? null : xAxis.scale.map(value);\n var y = getCateCoordinateOfLine({\n axis: yAxis,\n ticks: yAxisTicks,\n bandSize,\n entry,\n index\n });\n if (x == null || y == null) {\n return null;\n }\n return {\n x,\n y,\n value,\n payload: entry\n };\n }).filter(Boolean);\n}\nfunction LineFn(outsideProps) {\n var props = resolveDefaultProps(outsideProps, defaultLineProps);\n var isPanorama = useIsPanorama();\n return /*#__PURE__*/React.createElement(RegisterGraphicalItemId, {\n id: props.id,\n type: \"line\"\n }, id => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SetLegendPayload, {\n legendPayload: computeLegendPayloadFromAreaData(props)\n }), /*#__PURE__*/React.createElement(SetLineTooltipEntrySettings, {\n dataKey: props.dataKey,\n data: props.data,\n stroke: props.stroke,\n strokeWidth: props.strokeWidth,\n fill: props.fill,\n name: props.name,\n hide: props.hide,\n unit: props.unit,\n tooltipType: props.tooltipType,\n id: id\n }), /*#__PURE__*/React.createElement(SetCartesianGraphicalItem, {\n type: \"line\",\n id: id,\n data: props.data,\n xAxisId: props.xAxisId,\n yAxisId: props.yAxisId,\n zAxisId: 0,\n dataKey: props.dataKey,\n hide: props.hide,\n isPanorama: isPanorama\n }), /*#__PURE__*/React.createElement(LineImpl, _extends({}, props, {\n id: id\n }))));\n}\n\n/**\n * @provides LabelListContext\n * @provides ErrorBarContext\n * @consumes CartesianChartContext\n */\nexport var Line = /*#__PURE__*/React.memo(LineFn, propsAreEqual);\n// @ts-expect-error we need to set the displayName for debugging purposes\nLine.displayName = 'Line';","import * as React from 'react';\nimport { forwardRef } from 'react';\nimport { arrayTooltipSearcher } from '../state/optionsSlice';\nimport { CartesianChart } from './CartesianChart';\nvar allowedTooltipTypes = ['axis'];\n\n/**\n * @consumes ResponsiveContainerContext\n * @provides CartesianViewBoxContext\n * @provides CartesianChartContext\n */\nexport var LineChart = /*#__PURE__*/forwardRef((props, ref) => {\n return /*#__PURE__*/React.createElement(CartesianChart, {\n chartName: \"LineChart\",\n defaultTooltipEventType: \"axis\",\n validateTooltipEventTypes: allowedTooltipTypes,\n tooltipPayloadSearcher: arrayTooltipSearcher,\n categoricalChartProps: props,\n ref: ref\n });\n});","import React from 'react';\nimport {\n LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer\n} from 'recharts';\nimport type { WidgetProps } from '../types';\nimport { WidgetDataGuard } from '../components/WidgetDataGuard';\nimport { resolveLabel } from '../utils/resolveChartFields';\nimport { useChartData } from '../hooks/useChartData';\nimport { LINE_CHART_COLORS } from '../utils/chartColors';\n\nconst ChartLine: React.FC<WidgetProps> = ({ definition, period, preference }) => {\n const { chartData, valueKeys, categoryField, aliases, data, loading, error } =\n useChartData(definition, preference, period);\n\n return (\n <WidgetDataGuard loading={loading} error={error} data={data}>\n <div className=\"w-full h-full p-4\">\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <LineChart data={chartData} margin={{ top: 10, right: 20, left: -20, bottom: 0 }}>\n <CartesianGrid strokeDasharray=\"3 3\" vertical={false} stroke=\"#E2E8F0\" />\n <XAxis dataKey={categoryField} axisLine={false} tickLine={false} tick={{ fill: '#718096', fontSize: 12 }} dy={10} />\n <YAxis axisLine={false} tickLine={false} tick={{ fill: '#718096', fontSize: 12 }} tickFormatter={(value) => value.toLocaleString('es-CO')} />\n <Tooltip cursor={{ stroke: '#E2E8F0', strokeWidth: 2 }} contentStyle={{ borderRadius: '8px', border: 'none', boxShadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1)' }} />\n {valueKeys.length > 1 && <Legend wrapperStyle={{ paddingTop: '10px' }} />}\n {valueKeys.map((key, i) => (\n <Line key={key} type=\"monotone\" dataKey={key} name={resolveLabel(key, aliases)} stroke={LINE_CHART_COLORS[i % LINE_CHART_COLORS.length]} strokeWidth={3}\n dot={{ r: 4, fill: LINE_CHART_COLORS[i % LINE_CHART_COLORS.length], strokeWidth: 2, stroke: '#FFF' }} activeDot={{ r: 6 }} />\n ))}\n </LineChart>\n </ResponsiveContainer>\n </div>\n </WidgetDataGuard>\n );\n};\n\nexport default ChartLine;\n"],"names":["_extends","n","e","t","r","Dot","props","cx","cy","className","layerClass","clsx","isNumber","React","svgPropertiesNoEvents","adaptEventHandlers","_excluded","ownKeys","o","_objectSpread","_defineProperty","_toPropertyKey","i","_toPrimitive","_objectWithoutProperties","_objectWithoutPropertiesLoose","DotItem","_ref","option","dotProps","isValidElement","cloneElement","finalClassName","_ref2","points","shouldRenderDots","dot","Dots","_ref3","dotClassName","dataKey","baseProps","needClip","clipPathId","zIndex","DefaultZIndexes","clipDot","isClipDot","customDotProps","svgPropertiesAndEventsFromUnknown","dots","entry","_entry$x","_entry$y","layerProps","ZIndexLayer","Layer","ActivePoint","point","childIndex","mainColor","activeDot","clipPath","dotPropsTyped","svgPropertiesNoEventsFromUnknown","ActivePoints","itemDataKey","activeTooltipIndex","useAppSelector","selectActiveTooltipIndex","activeDataPoints","useActiveTooltipDataPoints","activePoint","isNullish","selectXAxisWithScale","state","xAxisId","_yAxisId","isPanorama","selectAxisWithScale","selectXAxisTicks","selectTicksOfGraphicalItem","selectYAxisWithScale","_xAxisId","yAxisId","selectYAxisTicks","selectBandSize","createSelector","selectChartLayout","layout","xAxis","yAxis","xAxisTicks","yAxisTicks","isCategoricalAxis","getBandSizeOfAxis","pickLineId","_state","_isPanorama","id","isLineSettings","item","selectSynchronisedLineSettings","selectUnfilteredCartesianItems","graphicalItems","x","selectLinePoints","selectChartDataWithIndexesIfNotInPanoramaPosition4","lineSettings","bandSize","chartData","dataStartIndex","dataEndIndex","data","displayedData","computeLinePoints","getRadiusAndStrokeWidthFromDot","defaultR","defaultStrokeWidth","strokeWidth","realR","realStrokeWidth","_excluded2","_excluded3","computeLegendPayloadFromAreaData","name","stroke","legendType","hide","getTooltipNameProp","SetLineTooltipEntrySettings","fill","unit","tooltipType","tooltipEntrySettings","noop","SetTooltipEntrySettings","generateSimpleStrokeDasharray","totalLength","length","repeat","lines","count","linesUnit","result","getStrokeDasharray","lineLength","pre","next","remainLength","remainLines","sum","_lines$i","lineValue","emptyLines","line","LineDotsWrapper","propsWithoutId","lineProps","LineLabelListProvider","showLabels","children","labelListEntries","useMemo","_point$x","_point$y","viewBox","CartesianLabelListContextProvider","StaticCurve","_ref4","pathRef","strokeDasharray","type","connectNulls","shape","others","curveProps","svgPropertiesAndEvents","Shape","getTotalLength","mainCurve","CurveWithAnimation","_ref5","previousPointsRef","longestAnimatedLengthRef","isAnimationActive","animationBegin","animationDuration","animationEasing","animateNewValues","width","height","onAnimationEnd","onAnimationStart","prevPoints","animationId","useAnimationId","animationIdRef","useRef","isAnimating","setIsAnimating","useState","handleAnimationEnd","useCallback","handleAnimationStart","startingPointRef","startingPoint","JavascriptAnimate","lengthInterpolated","interpolate","curLength","currentStrokeDasharray","num","prevPointsDiffFactor","stepData","index","prevPointIndex","prev","LabelListFromLabelProp","RenderCurve","_ref6","errorBarDataPointFormatter","dataPoint","_dataPoint$x","_dataPoint$y","getValueByDataKey","LineWithState","Component","top","left","dotSize","activePointsClipPath","GraphicalItemClipPath","SetErrorBarContext","defaultLineProps","LineImpl","_resolveDefaultProps","resolveDefaultProps","label","everythingElse","useNeedsClip","plotArea","usePlotArea","useChartLayout","useIsPanorama","_ref7","value","_x","getCateCoordinateOfLine","_y","LineFn","outsideProps","RegisterGraphicalItemId","SetLegendPayload","SetCartesianGraphicalItem","Line","propsAreEqual","allowedTooltipTypes","LineChart","forwardRef","ref","CartesianChart","arrayTooltipSearcher","ChartLine","definition","period","preference","valueKeys","categoryField","aliases","loading","error","useChartData","jsx","WidgetDataGuard","ResponsiveContainer","jsxs","CartesianGrid","XAxis","YAxis","Tooltip","Legend","key","resolveLabel","LINE_CHART_COLORS"],"mappings":"2kBAAA,SAASA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AAG,KAAMA,EAAAA,kBAAkBtQ,EAAIsQ,EAAAA,kBAAkB,MAAM,EAAG,YAAa,EAAG,OAAQ,MAAA,EAAU,UAAW,CAAE,EAAG,CAAA,CAAE,EAD/GF,CAAA,CAEZ,CAAA,EACH,CAAA,CACF,EACF,EACA,CAEJ","x_google_ignoreList":[0,1,2,3,4,5,6]}
|
|
1
|
+
{"version":3,"file":"ChartLine-BdUvE4At.cjs","sources":["../node_modules/recharts/es6/shape/Dot.js","../node_modules/recharts/es6/component/Dots.js","../node_modules/recharts/es6/component/ActivePoints.js","../node_modules/recharts/es6/state/selectors/lineSelectors.js","../node_modules/recharts/es6/util/getRadiusAndStrokeWidthFromDot.js","../node_modules/recharts/es6/cartesian/Line.js","../node_modules/recharts/es6/chart/LineChart.js","../src/dashboard/widgets/ChartLine.tsx"],"sourcesContent":["function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nimport * as React from 'react';\nimport { clsx } from 'clsx';\nimport { adaptEventHandlers } from '../util/types';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nimport { isNumber } from '../util/DataUtils';\n/**\n * Renders a dot in the chart.\n *\n * This component accepts X and Y coordinates in pixels.\n * If you need to position the rectangle based on your chart's data,\n * consider using the {@link ReferenceDot} component instead.\n *\n * @param props\n * @constructor\n */\nexport var Dot = props => {\n var {\n cx,\n cy,\n r,\n className\n } = props;\n var layerClass = clsx('recharts-dot', className);\n if (isNumber(cx) && isNumber(cy) && isNumber(r)) {\n return /*#__PURE__*/React.createElement(\"circle\", _extends({}, svgPropertiesNoEvents(props), adaptEventHandlers(props), {\n className: layerClass,\n cx: cx,\n cy: cy,\n r: r\n }));\n }\n return null;\n};","var _excluded = [\"points\"];\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { cloneElement, isValidElement } from 'react';\nimport { clsx } from 'clsx';\nimport { Dot } from '../shape/Dot';\nimport { Layer } from '../container/Layer';\nimport { isClipDot } from '../util/ReactUtils';\nimport { svgPropertiesAndEventsFromUnknown } from '../util/svgPropertiesAndEvents';\nimport { ZIndexLayer } from '../zIndex/ZIndexLayer';\nimport { DefaultZIndexes } from '../zIndex/DefaultZIndexes';\nfunction DotItem(_ref) {\n var {\n option,\n dotProps,\n className\n } = _ref;\n if (/*#__PURE__*/isValidElement(option)) {\n // @ts-expect-error we can't type check element cloning properly\n return /*#__PURE__*/cloneElement(option, dotProps);\n }\n if (typeof option === 'function') {\n return option(dotProps);\n }\n var finalClassName = clsx(className, typeof option !== 'boolean' ? option.className : '');\n var _ref2 = dotProps !== null && dotProps !== void 0 ? dotProps : {},\n {\n points\n } = _ref2,\n props = _objectWithoutProperties(_ref2, _excluded);\n return /*#__PURE__*/React.createElement(Dot, _extends({}, props, {\n className: finalClassName\n }));\n}\nfunction shouldRenderDots(points, dot) {\n if (points == null) {\n return false;\n }\n if (dot) {\n return true;\n }\n return points.length === 1;\n}\nexport function Dots(_ref3) {\n var {\n points,\n dot,\n className,\n dotClassName,\n dataKey,\n baseProps,\n needClip,\n clipPathId,\n zIndex = DefaultZIndexes.scatter\n } = _ref3;\n if (!shouldRenderDots(points, dot)) {\n return null;\n }\n var clipDot = isClipDot(dot);\n var customDotProps = svgPropertiesAndEventsFromUnknown(dot);\n var dots = points.map((entry, i) => {\n var _entry$x, _entry$y;\n var dotProps = _objectSpread(_objectSpread(_objectSpread({\n r: 3\n }, baseProps), customDotProps), {}, {\n index: i,\n cx: (_entry$x = entry.x) !== null && _entry$x !== void 0 ? _entry$x : undefined,\n cy: (_entry$y = entry.y) !== null && _entry$y !== void 0 ? _entry$y : undefined,\n dataKey,\n value: entry.value,\n payload: entry.payload,\n points\n });\n return /*#__PURE__*/React.createElement(DotItem, {\n key: \"dot-\".concat(i),\n option: dot,\n dotProps: dotProps,\n className: dotClassName\n });\n });\n var layerProps = {};\n if (needClip && clipPathId != null) {\n layerProps.clipPath = \"url(#clipPath-\".concat(clipDot ? '' : 'dots-').concat(clipPathId, \")\");\n }\n return /*#__PURE__*/React.createElement(ZIndexLayer, {\n zIndex: zIndex\n }, /*#__PURE__*/React.createElement(Layer, _extends({\n className: className\n }, layerProps), dots));\n}","function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nimport * as React from 'react';\nimport { cloneElement, isValidElement } from 'react';\nimport { adaptEventHandlers } from '../util/types';\nimport { Dot } from '../shape/Dot';\nimport { Layer } from '../container/Layer';\nimport { useAppSelector } from '../state/hooks';\nimport { selectActiveTooltipIndex } from '../state/selectors/tooltipSelectors';\nimport { useActiveTooltipDataPoints } from '../hooks';\nimport { isNullish } from '../util/DataUtils';\nimport { svgPropertiesNoEventsFromUnknown } from '../util/svgPropertiesNoEvents';\nimport { ZIndexLayer } from '../zIndex/ZIndexLayer';\nimport { DefaultZIndexes } from '../zIndex/DefaultZIndexes';\nvar ActivePoint = _ref => {\n var {\n point,\n childIndex,\n mainColor,\n activeDot,\n dataKey,\n clipPath\n } = _ref;\n if (activeDot === false || point.x == null || point.y == null) {\n return null;\n }\n var dotPropsTyped = {\n index: childIndex,\n dataKey,\n cx: point.x,\n cy: point.y,\n r: 4,\n fill: mainColor !== null && mainColor !== void 0 ? mainColor : 'none',\n strokeWidth: 2,\n stroke: '#fff',\n payload: point.payload,\n value: point.value\n };\n\n // @ts-expect-error svgPropertiesNoEventsFromUnknown(activeDot) is contributing unknown props\n var dotProps = _objectSpread(_objectSpread(_objectSpread({}, dotPropsTyped), svgPropertiesNoEventsFromUnknown(activeDot)), adaptEventHandlers(activeDot));\n var dot;\n if (/*#__PURE__*/isValidElement(activeDot)) {\n // @ts-expect-error we're improperly typing events\n dot = /*#__PURE__*/cloneElement(activeDot, dotProps);\n } else if (typeof activeDot === 'function') {\n dot = activeDot(dotProps);\n } else {\n dot = /*#__PURE__*/React.createElement(Dot, dotProps);\n }\n return /*#__PURE__*/React.createElement(Layer, {\n className: \"recharts-active-dot\",\n clipPath: clipPath\n }, dot);\n};\nexport function ActivePoints(_ref2) {\n var {\n points,\n mainColor,\n activeDot,\n itemDataKey,\n clipPath,\n zIndex = DefaultZIndexes.activeDot\n } = _ref2;\n var activeTooltipIndex = useAppSelector(selectActiveTooltipIndex);\n var activeDataPoints = useActiveTooltipDataPoints();\n if (points == null || activeDataPoints == null) {\n return null;\n }\n var activePoint = points.find(p => activeDataPoints.includes(p.payload));\n if (isNullish(activePoint)) {\n return null;\n }\n return /*#__PURE__*/React.createElement(ZIndexLayer, {\n zIndex: zIndex\n }, /*#__PURE__*/React.createElement(ActivePoint, {\n point: activePoint,\n childIndex: Number(activeTooltipIndex),\n mainColor: mainColor,\n dataKey: itemDataKey,\n activeDot: activeDot,\n clipPath: clipPath\n }));\n}","import { createSelector } from 'reselect';\nimport { computeLinePoints } from '../../cartesian/Line';\nimport { selectChartDataWithIndexesIfNotInPanoramaPosition4 } from './dataSelectors';\nimport { selectChartLayout } from '../../context/chartLayoutContext';\nimport { selectAxisWithScale, selectTicksOfGraphicalItem, selectUnfilteredCartesianItems } from './axisSelectors';\nimport { getBandSizeOfAxis, isCategoricalAxis } from '../../util/ChartUtils';\nvar selectXAxisWithScale = (state, xAxisId, _yAxisId, isPanorama) => selectAxisWithScale(state, 'xAxis', xAxisId, isPanorama);\nvar selectXAxisTicks = (state, xAxisId, _yAxisId, isPanorama) => selectTicksOfGraphicalItem(state, 'xAxis', xAxisId, isPanorama);\nvar selectYAxisWithScale = (state, _xAxisId, yAxisId, isPanorama) => selectAxisWithScale(state, 'yAxis', yAxisId, isPanorama);\nvar selectYAxisTicks = (state, _xAxisId, yAxisId, isPanorama) => selectTicksOfGraphicalItem(state, 'yAxis', yAxisId, isPanorama);\nvar selectBandSize = createSelector([selectChartLayout, selectXAxisWithScale, selectYAxisWithScale, selectXAxisTicks, selectYAxisTicks], (layout, xAxis, yAxis, xAxisTicks, yAxisTicks) => {\n if (isCategoricalAxis(layout, 'xAxis')) {\n return getBandSizeOfAxis(xAxis, xAxisTicks, false);\n }\n return getBandSizeOfAxis(yAxis, yAxisTicks, false);\n});\nvar pickLineId = (_state, _xAxisId, _yAxisId, _isPanorama, id) => id;\nfunction isLineSettings(item) {\n return item.type === 'line';\n}\n\n/*\n * There is a race condition problem because we read some data from props and some from the state.\n * The state is updated through a dispatch and is one render behind,\n * and so we have this weird one tick render where the displayedData in one selector have the old dataKey\n * but the new dataKey in another selector.\n *\n * So here instead of reading the dataKey from the props, we always read it from the state.\n */\nvar selectSynchronisedLineSettings = createSelector([selectUnfilteredCartesianItems, pickLineId], (graphicalItems, id) => graphicalItems.filter(isLineSettings).find(x => x.id === id));\nexport var selectLinePoints = createSelector([selectChartLayout, selectXAxisWithScale, selectYAxisWithScale, selectXAxisTicks, selectYAxisTicks, selectSynchronisedLineSettings, selectBandSize, selectChartDataWithIndexesIfNotInPanoramaPosition4], (layout, xAxis, yAxis, xAxisTicks, yAxisTicks, lineSettings, bandSize, _ref) => {\n var {\n chartData,\n dataStartIndex,\n dataEndIndex\n } = _ref;\n if (lineSettings == null || xAxis == null || yAxis == null || xAxisTicks == null || yAxisTicks == null || xAxisTicks.length === 0 || yAxisTicks.length === 0 || bandSize == null || layout !== 'horizontal' && layout !== 'vertical') {\n return undefined;\n }\n var {\n dataKey,\n data\n } = lineSettings;\n var displayedData;\n if (data != null && data.length > 0) {\n displayedData = data;\n } else {\n displayedData = chartData === null || chartData === void 0 ? void 0 : chartData.slice(dataStartIndex, dataEndIndex + 1);\n }\n if (displayedData == null) {\n return undefined;\n }\n return computeLinePoints({\n layout,\n xAxis,\n yAxis,\n xAxisTicks,\n yAxisTicks,\n dataKey,\n bandSize,\n displayedData\n });\n});","import { svgPropertiesNoEventsFromUnknown } from './svgPropertiesNoEvents';\nexport function getRadiusAndStrokeWidthFromDot(dot) {\n var props = svgPropertiesNoEventsFromUnknown(dot);\n var defaultR = 3;\n var defaultStrokeWidth = 2;\n if (props != null) {\n var {\n r,\n strokeWidth\n } = props;\n var realR = Number(r);\n var realStrokeWidth = Number(strokeWidth);\n if (Number.isNaN(realR) || realR < 0) {\n realR = defaultR;\n }\n if (Number.isNaN(realStrokeWidth) || realStrokeWidth < 0) {\n realStrokeWidth = defaultStrokeWidth;\n }\n return {\n r: realR,\n strokeWidth: realStrokeWidth\n };\n }\n return {\n r: defaultR,\n strokeWidth: defaultStrokeWidth\n };\n}","var _excluded = [\"id\"],\n _excluded2 = [\"type\", \"layout\", \"connectNulls\", \"needClip\", \"shape\"],\n _excluded3 = [\"activeDot\", \"animateNewValues\", \"animationBegin\", \"animationDuration\", \"animationEasing\", \"connectNulls\", \"dot\", \"hide\", \"isAnimationActive\", \"label\", \"legendType\", \"xAxisId\", \"yAxisId\", \"id\"];\nfunction _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == typeof i ? i : i + \"\"; }\nfunction _toPrimitive(t, r) { if (\"object\" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != typeof i) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }\nfunction _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }\nimport * as React from 'react';\nimport { Component, useCallback, useMemo, useRef, useState } from 'react';\nimport { clsx } from 'clsx';\nimport { Layer } from '../container/Layer';\nimport { CartesianLabelListContextProvider, LabelListFromLabelProp } from '../component/LabelList';\nimport { Dots } from '../component/Dots';\nimport { interpolate, isNullish, noop } from '../util/DataUtils';\nimport { isClipDot } from '../util/ReactUtils';\nimport { getCateCoordinateOfLine, getTooltipNameProp, getValueByDataKey } from '../util/ChartUtils';\nimport { ActivePoints } from '../component/ActivePoints';\nimport { SetTooltipEntrySettings } from '../state/SetTooltipEntrySettings';\nimport { SetErrorBarContext } from '../context/ErrorBarContext';\nimport { GraphicalItemClipPath, useNeedsClip } from './GraphicalItemClipPath';\nimport { useChartLayout } from '../context/chartLayoutContext';\nimport { useIsPanorama } from '../context/PanoramaContext';\nimport { selectLinePoints } from '../state/selectors/lineSelectors';\nimport { useAppSelector } from '../state/hooks';\nimport { SetLegendPayload } from '../state/SetLegendPayload';\nimport { useAnimationId } from '../util/useAnimationId';\nimport { resolveDefaultProps } from '../util/resolveDefaultProps';\nimport { usePlotArea } from '../hooks';\nimport { RegisterGraphicalItemId } from '../context/RegisterGraphicalItemId';\nimport { SetCartesianGraphicalItem } from '../state/SetGraphicalItem';\nimport { svgPropertiesNoEvents } from '../util/svgPropertiesNoEvents';\nimport { JavascriptAnimate } from '../animation/JavascriptAnimate';\nimport { svgPropertiesAndEvents } from '../util/svgPropertiesAndEvents';\nimport { getRadiusAndStrokeWidthFromDot } from '../util/getRadiusAndStrokeWidthFromDot';\nimport { Shape } from '../util/ActiveShapeUtils';\nimport { ZIndexLayer } from '../zIndex/ZIndexLayer';\nimport { DefaultZIndexes } from '../zIndex/DefaultZIndexes';\nimport { propsAreEqual } from '../util/propsAreEqual';\n\n/**\n * Internal props, combination of external props + defaultProps + private Recharts state\n */\n\n/**\n * External props, intended for end users to fill in\n */\n\n/**\n * Because of naming conflict, we are forced to ignore certain (valid) SVG attributes.\n */\n\nvar computeLegendPayloadFromAreaData = props => {\n var {\n dataKey,\n name,\n stroke,\n legendType,\n hide\n } = props;\n return [{\n inactive: hide,\n dataKey,\n type: legendType,\n color: stroke,\n value: getTooltipNameProp(name, dataKey),\n payload: props\n }];\n};\nvar SetLineTooltipEntrySettings = /*#__PURE__*/React.memo(_ref => {\n var {\n dataKey,\n data,\n stroke,\n strokeWidth,\n fill,\n name,\n hide,\n unit,\n tooltipType,\n id\n } = _ref;\n var tooltipEntrySettings = {\n dataDefinedOnItem: data,\n getPosition: noop,\n settings: {\n stroke,\n strokeWidth,\n fill,\n dataKey,\n nameKey: undefined,\n name: getTooltipNameProp(name, dataKey),\n hide,\n type: tooltipType,\n color: stroke,\n unit,\n graphicalItemId: id\n }\n };\n return /*#__PURE__*/React.createElement(SetTooltipEntrySettings, {\n tooltipEntrySettings: tooltipEntrySettings\n });\n});\n\n/**\n * Generates a simple stroke-dasharray string for animating a line draw effect.\n *\n * Uses `totalLength` as the gap (instead of `totalLength - length`) to prevent a floating-point\n * precision artifact: when fractional dash and gap values are serialized to a string attribute\n * and re-parsed by the SVG renderer, their sum can differ from the actual path length by a ULP,\n * causing the dasharray pattern to repeat and render a phantom dot at the path endpoint\n * with round or square strokeLinecap.\n *\n * @param totalLength The total length of the SVG path\n * @param length The currently visible portion of the path\n * @returns A stroke-dasharray string like \"50px 200px\"\n */\nvar generateSimpleStrokeDasharray = (totalLength, length) => {\n return \"\".concat(length, \"px \").concat(totalLength, \"px\");\n};\n\n/**\n * Repeats a dash pattern array a given number of times.\n *\n * If the input array has an odd length, a trailing `0` is appended to make it even\n * before repeating, because SVG stroke-dasharray patterns must have an even number\n * of values to cycle correctly between dash and gap segments.\n *\n * @param lines Array of dash/gap lengths to repeat\n * @param count Number of times to repeat the pattern\n * @returns A new array with the pattern repeated `count` times\n */\nfunction repeat(lines, count) {\n var linesUnit = lines.length % 2 !== 0 ? [...lines, 0] : lines;\n var result = [];\n for (var i = 0; i < count; ++i) {\n result.push(...linesUnit);\n }\n return result;\n}\n\n/**\n * Computes a stroke-dasharray string for animating a custom-dashed line draw effect.\n *\n * Given a user-specified dash pattern (e.g. `\"7,3\"`), this function builds a dasharray\n * that reveals exactly `length` pixels of that pattern, followed by a gap of `totalLength`\n * to hide the remainder of the path.\n *\n * Like {@link generateSimpleStrokeDasharray}, the trailing gap uses `totalLength` rather than\n * `totalLength - length` to avoid floating-point precision artifacts with round/square strokeLinecap.\n *\n * @param length The currently visible portion of the path\n * @param totalLength The total length of the SVG path\n * @param lines The user-specified dash pattern as an array of numbers (e.g. [7, 3])\n * @returns A stroke-dasharray string incorporating the custom dash pattern\n */\nvar getStrokeDasharray = (length, totalLength, lines) => {\n var lineLength = lines.reduce((pre, next) => pre + next, 0);\n\n // if lineLength is 0 return the default when no strokeDasharray is provided\n if (!lineLength) {\n return generateSimpleStrokeDasharray(totalLength, length);\n }\n var count = Math.floor(length / lineLength);\n var remainLength = length % lineLength;\n var remainLines = [];\n for (var i = 0, sum = 0; i < lines.length; sum += (_lines$i = lines[i]) !== null && _lines$i !== void 0 ? _lines$i : 0, ++i) {\n var _lines$i;\n var lineValue = lines[i];\n if (lineValue != null && sum + lineValue > remainLength) {\n remainLines = [...lines.slice(0, i), remainLength - sum];\n break;\n }\n }\n var emptyLines = remainLines.length % 2 === 0 ? [0, totalLength] : [totalLength];\n return [...repeat(lines, count), ...remainLines, ...emptyLines].map(line => \"\".concat(line, \"px\")).join(', ');\n};\nfunction LineDotsWrapper(_ref2) {\n var {\n clipPathId,\n points,\n props\n } = _ref2;\n var {\n dot,\n dataKey,\n needClip\n } = props;\n\n /*\n * Exclude ID from the props passed to the Dots component\n * because then the ID would be applied to multiple dots, and it would no longer be unique.\n */\n var {\n id\n } = props,\n propsWithoutId = _objectWithoutProperties(props, _excluded);\n var lineProps = svgPropertiesNoEvents(propsWithoutId);\n return /*#__PURE__*/React.createElement(Dots, {\n points: points,\n dot: dot,\n className: \"recharts-line-dots\",\n dotClassName: \"recharts-line-dot\",\n dataKey: dataKey,\n baseProps: lineProps,\n needClip: needClip,\n clipPathId: clipPathId\n });\n}\nfunction LineLabelListProvider(_ref3) {\n var {\n showLabels,\n children,\n points\n } = _ref3;\n var labelListEntries = useMemo(() => {\n return points === null || points === void 0 ? void 0 : points.map(point => {\n var _point$x, _point$y;\n var viewBox = {\n x: (_point$x = point.x) !== null && _point$x !== void 0 ? _point$x : 0,\n y: (_point$y = point.y) !== null && _point$y !== void 0 ? _point$y : 0,\n width: 0,\n lowerWidth: 0,\n upperWidth: 0,\n height: 0\n };\n return _objectSpread(_objectSpread({}, viewBox), {}, {\n value: point.value,\n payload: point.payload,\n viewBox,\n /*\n * Line is not passing parentViewBox to the LabelList so the labels can escape - looks like a bug, should we pass parentViewBox?\n * Or should this just be the root chart viewBox?\n */\n parentViewBox: undefined,\n fill: undefined\n });\n });\n }, [points]);\n return /*#__PURE__*/React.createElement(CartesianLabelListContextProvider, {\n value: showLabels ? labelListEntries : undefined\n }, children);\n}\nfunction StaticCurve(_ref4) {\n var {\n clipPathId,\n pathRef,\n points,\n strokeDasharray,\n props\n } = _ref4;\n var {\n type,\n layout,\n connectNulls,\n needClip,\n shape\n } = props,\n others = _objectWithoutProperties(props, _excluded2);\n var curveProps = _objectSpread(_objectSpread({}, svgPropertiesAndEvents(others)), {}, {\n fill: 'none',\n className: 'recharts-line-curve',\n clipPath: needClip ? \"url(#clipPath-\".concat(clipPathId, \")\") : undefined,\n points,\n type,\n layout,\n connectNulls,\n strokeDasharray: strokeDasharray !== null && strokeDasharray !== void 0 ? strokeDasharray : props.strokeDasharray\n });\n return /*#__PURE__*/React.createElement(React.Fragment, null, (points === null || points === void 0 ? void 0 : points.length) > 1 && /*#__PURE__*/React.createElement(Shape, _extends({\n shapeType: \"curve\",\n option: shape\n }, curveProps, {\n pathRef: pathRef\n })), /*#__PURE__*/React.createElement(LineDotsWrapper, {\n points: points,\n clipPathId: clipPathId,\n props: props\n }));\n}\nfunction getTotalLength(mainCurve) {\n try {\n return mainCurve && mainCurve.getTotalLength && mainCurve.getTotalLength() || 0;\n } catch (_unused) {\n return 0;\n }\n}\nfunction CurveWithAnimation(_ref5) {\n var {\n clipPathId,\n props,\n pathRef,\n previousPointsRef,\n longestAnimatedLengthRef\n } = _ref5;\n var {\n points,\n strokeDasharray,\n isAnimationActive,\n animationBegin,\n animationDuration,\n animationEasing,\n animateNewValues,\n width,\n height,\n onAnimationEnd,\n onAnimationStart\n } = props;\n var prevPoints = previousPointsRef.current;\n var animationId = useAnimationId(points, 'recharts-line-');\n var animationIdRef = useRef(animationId);\n var [isAnimating, setIsAnimating] = useState(false);\n var showLabels = !isAnimating;\n var handleAnimationEnd = useCallback(() => {\n if (typeof onAnimationEnd === 'function') {\n onAnimationEnd();\n }\n setIsAnimating(false);\n }, [onAnimationEnd]);\n var handleAnimationStart = useCallback(() => {\n if (typeof onAnimationStart === 'function') {\n onAnimationStart();\n }\n setIsAnimating(true);\n }, [onAnimationStart]);\n var totalLength = getTotalLength(pathRef.current);\n /*\n * Here we want to detect if the length animation has been interrupted.\n * For that we keep a reference to the furthest length that has been animated.\n *\n * And then, to keep things smooth, we add to it the current length that is being animated right now.\n *\n * If we did Math.max then it makes the length animation \"pause\" but we want to keep it smooth\n * so in case we have some \"leftover\" length from the previous animation we add it to the current length.\n *\n * This is not perfect because the animation changes speed due to easing. The default easing is 'ease' which is not linear\n * and makes it stand out. But it's good enough I suppose.\n * If we want to fix it then we need to keep track of multiple animations and their easing and timings.\n *\n * If you want to see this in action, try to change the dataKey of the line chart while the initial animation is running.\n * The Line begins with zero length and slowly grows to the full length. While this growth is in progress,\n * change the dataKey and the Line will continue growing from where it has grown so far.\n *\n * This is for the case when new animation triggers. When that happens we get new points, everything re-renders,\n * and we get fresh new state in this component and use the ref stored above.\n *\n * In case when we get render without new animation - for example when opacity changes, or color changes,\n * then the animationId remains the same, and we do not update the starting point.\n * See https://github.com/recharts/recharts/issues/6044\n */\n var startingPointRef = useRef(0);\n if (animationIdRef.current !== animationId) {\n startingPointRef.current = longestAnimatedLengthRef.current;\n animationIdRef.current = animationId;\n }\n var startingPoint = startingPointRef.current;\n return /*#__PURE__*/React.createElement(LineLabelListProvider, {\n points: points,\n showLabels: showLabels\n }, props.children, /*#__PURE__*/React.createElement(JavascriptAnimate, {\n animationId: animationId,\n begin: animationBegin,\n duration: animationDuration,\n isActive: isAnimationActive,\n easing: animationEasing,\n onAnimationEnd: handleAnimationEnd,\n onAnimationStart: handleAnimationStart,\n key: animationId\n }, t => {\n var lengthInterpolated = interpolate(startingPoint, totalLength + startingPoint, t);\n var curLength = Math.min(lengthInterpolated, totalLength);\n var currentStrokeDasharray;\n if (isAnimationActive) {\n if (strokeDasharray) {\n var lines = \"\".concat(strokeDasharray).split(/[,\\s]+/gim).map(num => parseFloat(num));\n currentStrokeDasharray = getStrokeDasharray(curLength, totalLength, lines);\n } else {\n currentStrokeDasharray = generateSimpleStrokeDasharray(totalLength, curLength);\n }\n } else {\n currentStrokeDasharray = strokeDasharray == null ? undefined : String(strokeDasharray);\n }\n\n /*\n * Here it is important to wait a little bit with updating the previousPointsRef\n * before the animation has a time to initialize.\n * If we set the previous pointsRef immediately, we set it before the Legend height it calculated\n * and before pathRef is set.\n * If that happens, the Line will re-render again after Legend had reported its height\n * which will start a new animation with the previous points as the starting point\n * which gives the effect of the Line animating slightly upwards (where the animation distance equals the Legend height).\n * Waiting for t > 0 is indirect but good enough to ensure that the Legend height is calculated and animation works properly.\n *\n * Total length similarly is calculated from the pathRef. We should not update the previousPointsRef\n * before the pathRef is set, otherwise we will have a wrong total length.\n */\n if (t > 0 && totalLength > 0) {\n // eslint-disable-next-line no-param-reassign\n previousPointsRef.current = points;\n /*\n * totalLength is set from a ref and is not updated in the first tick of the animation.\n * It defaults to zero which is exactly what we want here because we want to grow from zero,\n * however the same happens when the data change.\n *\n * In that case we want to remember the previous length and continue from there, and only animate the shape.\n *\n * Therefore the totalLength > 0 check.\n *\n * The Animate is about to fire handleAnimationStart which will update the state\n * and cause a re-render and read a new proper totalLength which will be used in the next tick\n * and update the longestAnimatedLengthRef.\n *\n * Why Math.max? Sometimes the curve goes through a smaller length than previously recorded.\n * If we just set it to curLength, then the next animation would start from a smaller length\n * which looks weird. So we keep the longest length ever reached and then animate from there.\n */\n // eslint-disable-next-line no-param-reassign\n longestAnimatedLengthRef.current = Math.max(longestAnimatedLengthRef.current, curLength);\n }\n if (prevPoints) {\n var prevPointsDiffFactor = prevPoints.length / points.length;\n var stepData = t === 1 ? points : points.map((entry, index) => {\n var prevPointIndex = Math.floor(index * prevPointsDiffFactor);\n if (prevPoints[prevPointIndex]) {\n var prev = prevPoints[prevPointIndex];\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: interpolate(prev.x, entry.x, t),\n y: interpolate(prev.y, entry.y, t)\n });\n }\n\n // magic number of faking previous x and y location\n if (animateNewValues) {\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: interpolate(width * 2, entry.x, t),\n y: interpolate(height / 2, entry.y, t)\n });\n }\n return _objectSpread(_objectSpread({}, entry), {}, {\n x: entry.x,\n y: entry.y\n });\n });\n // eslint-disable-next-line no-param-reassign\n previousPointsRef.current = stepData;\n return /*#__PURE__*/React.createElement(StaticCurve, {\n props: props,\n points: stepData,\n clipPathId: clipPathId,\n pathRef: pathRef,\n strokeDasharray: currentStrokeDasharray\n });\n }\n return /*#__PURE__*/React.createElement(StaticCurve, {\n props: props,\n points: points,\n clipPathId: clipPathId,\n pathRef: pathRef,\n strokeDasharray: currentStrokeDasharray\n });\n }), /*#__PURE__*/React.createElement(LabelListFromLabelProp, {\n label: props.label\n }));\n}\nfunction RenderCurve(_ref6) {\n var {\n clipPathId,\n props\n } = _ref6;\n var previousPointsRef = useRef(null);\n var longestAnimatedLengthRef = useRef(0);\n var pathRef = useRef(null);\n return /*#__PURE__*/React.createElement(CurveWithAnimation, {\n props: props,\n clipPathId: clipPathId,\n previousPointsRef: previousPointsRef,\n longestAnimatedLengthRef: longestAnimatedLengthRef,\n pathRef: pathRef\n });\n}\nvar errorBarDataPointFormatter = (dataPoint, dataKey) => {\n var _dataPoint$x, _dataPoint$y;\n return {\n x: (_dataPoint$x = dataPoint.x) !== null && _dataPoint$x !== void 0 ? _dataPoint$x : undefined,\n y: (_dataPoint$y = dataPoint.y) !== null && _dataPoint$y !== void 0 ? _dataPoint$y : undefined,\n value: dataPoint.value,\n // getValueByDataKey does not validate the output type\n errorVal: getValueByDataKey(dataPoint.payload, dataKey)\n };\n};\n\n// eslint-disable-next-line react/prefer-stateless-function\nclass LineWithState extends Component {\n render() {\n var {\n hide,\n dot,\n points,\n className,\n xAxisId,\n yAxisId,\n top,\n left,\n width,\n height,\n id,\n needClip,\n zIndex\n } = this.props;\n if (hide) {\n return null;\n }\n var layerClass = clsx('recharts-line', className);\n var clipPathId = id;\n var {\n r,\n strokeWidth\n } = getRadiusAndStrokeWidthFromDot(dot);\n var clipDot = isClipDot(dot);\n var dotSize = r * 2 + strokeWidth;\n var activePointsClipPath = needClip ? \"url(#clipPath-\".concat(clipDot ? '' : 'dots-').concat(clipPathId, \")\") : undefined;\n return /*#__PURE__*/React.createElement(ZIndexLayer, {\n zIndex: zIndex\n }, /*#__PURE__*/React.createElement(Layer, {\n className: layerClass\n }, needClip && /*#__PURE__*/React.createElement(\"defs\", null, /*#__PURE__*/React.createElement(GraphicalItemClipPath, {\n clipPathId: clipPathId,\n xAxisId: xAxisId,\n yAxisId: yAxisId\n }), !clipDot && /*#__PURE__*/React.createElement(\"clipPath\", {\n id: \"clipPath-dots-\".concat(clipPathId)\n }, /*#__PURE__*/React.createElement(\"rect\", {\n x: left - dotSize / 2,\n y: top - dotSize / 2,\n width: width + dotSize,\n height: height + dotSize\n }))), /*#__PURE__*/React.createElement(SetErrorBarContext, {\n xAxisId: xAxisId,\n yAxisId: yAxisId,\n data: points,\n dataPointFormatter: errorBarDataPointFormatter,\n errorBarOffset: 0\n }, /*#__PURE__*/React.createElement(RenderCurve, {\n props: this.props,\n clipPathId: clipPathId\n }))), /*#__PURE__*/React.createElement(ActivePoints, {\n activeDot: this.props.activeDot,\n points: points,\n mainColor: this.props.stroke,\n itemDataKey: this.props.dataKey,\n clipPath: activePointsClipPath\n }));\n }\n}\nexport var defaultLineProps = {\n activeDot: true,\n animateNewValues: true,\n animationBegin: 0,\n animationDuration: 1500,\n animationEasing: 'ease',\n connectNulls: false,\n dot: true,\n fill: '#fff',\n hide: false,\n isAnimationActive: 'auto',\n label: false,\n legendType: 'line',\n stroke: '#3182bd',\n strokeWidth: 1,\n xAxisId: 0,\n yAxisId: 0,\n zIndex: DefaultZIndexes.line,\n type: 'linear'\n};\nfunction LineImpl(props) {\n var _resolveDefaultProps = resolveDefaultProps(props, defaultLineProps),\n {\n activeDot,\n animateNewValues,\n animationBegin,\n animationDuration,\n animationEasing,\n connectNulls,\n dot,\n hide,\n isAnimationActive,\n label,\n legendType,\n xAxisId,\n yAxisId,\n id\n } = _resolveDefaultProps,\n everythingElse = _objectWithoutProperties(_resolveDefaultProps, _excluded3);\n var {\n needClip\n } = useNeedsClip(xAxisId, yAxisId);\n var plotArea = usePlotArea();\n var layout = useChartLayout();\n var isPanorama = useIsPanorama();\n var points = useAppSelector(state => selectLinePoints(state, xAxisId, yAxisId, isPanorama, id));\n if (layout !== 'horizontal' && layout !== 'vertical' || points == null || plotArea == null) {\n // Cannot render Line in an unsupported layout\n return null;\n }\n var {\n height,\n width,\n x: left,\n y: top\n } = plotArea;\n return /*#__PURE__*/React.createElement(LineWithState, _extends({}, everythingElse, {\n id: id,\n connectNulls: connectNulls,\n dot: dot,\n activeDot: activeDot,\n animateNewValues: animateNewValues,\n animationBegin: animationBegin,\n animationDuration: animationDuration,\n animationEasing: animationEasing,\n isAnimationActive: isAnimationActive,\n hide: hide,\n label: label,\n legendType: legendType,\n xAxisId: xAxisId,\n yAxisId: yAxisId,\n points: points,\n layout: layout,\n height: height,\n width: width,\n left: left,\n top: top,\n needClip: needClip\n }));\n}\nexport function computeLinePoints(_ref7) {\n var {\n layout,\n xAxis,\n yAxis,\n xAxisTicks,\n yAxisTicks,\n dataKey,\n bandSize,\n displayedData\n } = _ref7;\n return displayedData.map((entry, index) => {\n // getValueByDataKey does not validate the output type\n var value = getValueByDataKey(entry, dataKey);\n if (layout === 'horizontal') {\n var _x = getCateCoordinateOfLine({\n axis: xAxis,\n ticks: xAxisTicks,\n bandSize,\n entry,\n index\n });\n var _y = isNullish(value) ? null : yAxis.scale.map(value);\n return {\n x: _x,\n y: _y !== null && _y !== void 0 ? _y : null,\n value,\n payload: entry\n };\n }\n var x = isNullish(value) ? null : xAxis.scale.map(value);\n var y = getCateCoordinateOfLine({\n axis: yAxis,\n ticks: yAxisTicks,\n bandSize,\n entry,\n index\n });\n if (x == null || y == null) {\n return null;\n }\n return {\n x,\n y,\n value,\n payload: entry\n };\n }).filter(Boolean);\n}\nfunction LineFn(outsideProps) {\n var props = resolveDefaultProps(outsideProps, defaultLineProps);\n var isPanorama = useIsPanorama();\n return /*#__PURE__*/React.createElement(RegisterGraphicalItemId, {\n id: props.id,\n type: \"line\"\n }, id => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SetLegendPayload, {\n legendPayload: computeLegendPayloadFromAreaData(props)\n }), /*#__PURE__*/React.createElement(SetLineTooltipEntrySettings, {\n dataKey: props.dataKey,\n data: props.data,\n stroke: props.stroke,\n strokeWidth: props.strokeWidth,\n fill: props.fill,\n name: props.name,\n hide: props.hide,\n unit: props.unit,\n tooltipType: props.tooltipType,\n id: id\n }), /*#__PURE__*/React.createElement(SetCartesianGraphicalItem, {\n type: \"line\",\n id: id,\n data: props.data,\n xAxisId: props.xAxisId,\n yAxisId: props.yAxisId,\n zAxisId: 0,\n dataKey: props.dataKey,\n hide: props.hide,\n isPanorama: isPanorama\n }), /*#__PURE__*/React.createElement(LineImpl, _extends({}, props, {\n id: id\n }))));\n}\n\n/**\n * @provides LabelListContext\n * @provides ErrorBarContext\n * @consumes CartesianChartContext\n */\nexport var Line = /*#__PURE__*/React.memo(LineFn, propsAreEqual);\n// @ts-expect-error we need to set the displayName for debugging purposes\nLine.displayName = 'Line';","import * as React from 'react';\nimport { forwardRef } from 'react';\nimport { arrayTooltipSearcher } from '../state/optionsSlice';\nimport { CartesianChart } from './CartesianChart';\nvar allowedTooltipTypes = ['axis'];\n\n/**\n * @consumes ResponsiveContainerContext\n * @provides CartesianViewBoxContext\n * @provides CartesianChartContext\n */\nexport var LineChart = /*#__PURE__*/forwardRef((props, ref) => {\n return /*#__PURE__*/React.createElement(CartesianChart, {\n chartName: \"LineChart\",\n defaultTooltipEventType: \"axis\",\n validateTooltipEventTypes: allowedTooltipTypes,\n tooltipPayloadSearcher: arrayTooltipSearcher,\n categoricalChartProps: props,\n ref: ref\n });\n});","import React from 'react';\nimport {\n LineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer\n} from 'recharts';\nimport type { WidgetProps } from '../types';\nimport { WidgetDataGuard } from '../components/WidgetDataGuard';\nimport { resolveLabel } from '../utils/resolveChartFields';\nimport { useChartData } from '../hooks/useChartData';\nimport { LINE_CHART_COLORS } from '../utils/chartColors';\n\nconst ChartLine: React.FC<WidgetProps> = ({ definition, period, preference }) => {\n const { chartData, valueKeys, categoryField, aliases, data, loading, error } =\n useChartData(definition, preference, period);\n\n return (\n <WidgetDataGuard loading={loading} error={error} data={data}>\n <div className=\"w-full h-full p-4\">\n <ResponsiveContainer width=\"100%\" height=\"100%\">\n <LineChart data={chartData} margin={{ top: 10, right: 20, left: -20, bottom: 0 }}>\n <CartesianGrid strokeDasharray=\"3 3\" vertical={false} stroke=\"#E2E8F0\" />\n <XAxis dataKey={categoryField} axisLine={false} tickLine={false} tick={{ fill: '#718096', fontSize: 12 }} dy={10} />\n <YAxis axisLine={false} tickLine={false} tick={{ fill: '#718096', fontSize: 12 }} tickFormatter={(value) => value.toLocaleString('es-CO')} />\n <Tooltip cursor={{ stroke: '#E2E8F0', strokeWidth: 2 }} contentStyle={{ borderRadius: '8px', border: 'none', boxShadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1)' }} />\n {valueKeys.length > 1 && <Legend wrapperStyle={{ paddingTop: '10px' }} />}\n {valueKeys.map((key, i) => (\n <Line key={key} type=\"monotone\" dataKey={key} name={resolveLabel(key, aliases)} stroke={LINE_CHART_COLORS[i % LINE_CHART_COLORS.length]} strokeWidth={3}\n dot={{ r: 4, fill: LINE_CHART_COLORS[i % LINE_CHART_COLORS.length], strokeWidth: 2, stroke: '#FFF' }} activeDot={{ r: 6 }} />\n ))}\n </LineChart>\n </ResponsiveContainer>\n </div>\n </WidgetDataGuard>\n );\n};\n\nexport default ChartLine;\n"],"names":["_extends","n","e","t","r","Dot","props","cx","cy","className","layerClass","clsx","isNumber","React","svgPropertiesNoEvents","adaptEventHandlers","_excluded","ownKeys","o","_objectSpread","_defineProperty","_toPropertyKey","i","_toPrimitive","_objectWithoutProperties","_objectWithoutPropertiesLoose","DotItem","_ref","option","dotProps","isValidElement","cloneElement","finalClassName","_ref2","points","shouldRenderDots","dot","Dots","_ref3","dotClassName","dataKey","baseProps","needClip","clipPathId","zIndex","DefaultZIndexes","clipDot","isClipDot","customDotProps","svgPropertiesAndEventsFromUnknown","dots","entry","_entry$x","_entry$y","layerProps","ZIndexLayer","Layer","ActivePoint","point","childIndex","mainColor","activeDot","clipPath","dotPropsTyped","svgPropertiesNoEventsFromUnknown","ActivePoints","itemDataKey","activeTooltipIndex","useAppSelector","selectActiveTooltipIndex","activeDataPoints","useActiveTooltipDataPoints","activePoint","isNullish","selectXAxisWithScale","state","xAxisId","_yAxisId","isPanorama","selectAxisWithScale","selectXAxisTicks","selectTicksOfGraphicalItem","selectYAxisWithScale","_xAxisId","yAxisId","selectYAxisTicks","selectBandSize","createSelector","selectChartLayout","layout","xAxis","yAxis","xAxisTicks","yAxisTicks","isCategoricalAxis","getBandSizeOfAxis","pickLineId","_state","_isPanorama","id","isLineSettings","item","selectSynchronisedLineSettings","selectUnfilteredCartesianItems","graphicalItems","x","selectLinePoints","selectChartDataWithIndexesIfNotInPanoramaPosition4","lineSettings","bandSize","chartData","dataStartIndex","dataEndIndex","data","displayedData","computeLinePoints","getRadiusAndStrokeWidthFromDot","defaultR","defaultStrokeWidth","strokeWidth","realR","realStrokeWidth","_excluded2","_excluded3","computeLegendPayloadFromAreaData","name","stroke","legendType","hide","getTooltipNameProp","SetLineTooltipEntrySettings","fill","unit","tooltipType","tooltipEntrySettings","noop","SetTooltipEntrySettings","generateSimpleStrokeDasharray","totalLength","length","repeat","lines","count","linesUnit","result","getStrokeDasharray","lineLength","pre","next","remainLength","remainLines","sum","_lines$i","lineValue","emptyLines","line","LineDotsWrapper","propsWithoutId","lineProps","LineLabelListProvider","showLabels","children","labelListEntries","useMemo","_point$x","_point$y","viewBox","CartesianLabelListContextProvider","StaticCurve","_ref4","pathRef","strokeDasharray","type","connectNulls","shape","others","curveProps","svgPropertiesAndEvents","Shape","getTotalLength","mainCurve","CurveWithAnimation","_ref5","previousPointsRef","longestAnimatedLengthRef","isAnimationActive","animationBegin","animationDuration","animationEasing","animateNewValues","width","height","onAnimationEnd","onAnimationStart","prevPoints","animationId","useAnimationId","animationIdRef","useRef","isAnimating","setIsAnimating","useState","handleAnimationEnd","useCallback","handleAnimationStart","startingPointRef","startingPoint","JavascriptAnimate","lengthInterpolated","interpolate","curLength","currentStrokeDasharray","num","prevPointsDiffFactor","stepData","index","prevPointIndex","prev","LabelListFromLabelProp","RenderCurve","_ref6","errorBarDataPointFormatter","dataPoint","_dataPoint$x","_dataPoint$y","getValueByDataKey","LineWithState","Component","top","left","dotSize","activePointsClipPath","GraphicalItemClipPath","SetErrorBarContext","defaultLineProps","LineImpl","_resolveDefaultProps","resolveDefaultProps","label","everythingElse","useNeedsClip","plotArea","usePlotArea","useChartLayout","useIsPanorama","_ref7","value","_x","getCateCoordinateOfLine","_y","LineFn","outsideProps","RegisterGraphicalItemId","SetLegendPayload","SetCartesianGraphicalItem","Line","propsAreEqual","allowedTooltipTypes","LineChart","forwardRef","ref","CartesianChart","arrayTooltipSearcher","ChartLine","definition","period","preference","valueKeys","categoryField","aliases","loading","error","useChartData","jsx","WidgetDataGuard","ResponsiveContainer","jsxs","CartesianGrid","XAxis","YAxis","Tooltip","Legend","key","resolveLabel","LINE_CHART_COLORS"],"mappings":"2kBAAA,SAASA,GAAW,CAAE,OAAOA,EAAW,OAAO,OAAS,OAAO,OAAO,KAAI,EAAK,SAAUC,EAAG,CAAE,QAASC,EAAI,EAAGA,EAAI,UAAU,OAAQA,IAAK,CAAE,IAAIC,EAAI,UAAUD,CAAC,EAAG,QAASE,KAAKD,GAAI,CAAA,GAAI,eAAe,KAAKA,EAAGC,CAAC,IAAMH,EAAEG,CAAC,EAAID,EAAEC,CAAC,EAAI,CAAE,OAAOH,CAAG,EAAGD,EAAS,MAAM,KAAM,SAAS,CAAG,CAgB5Q,IAAIK,EAAMC,GAAS,CACxB,GAAI,CACF,GAAAC,EACA,GAAAC,EACA,EAAAJ,EACA,UAAAK,CACJ,EAAMH,EACAI,EAAaC,EAAAA,KAAK,eAAgBF,CAAS,EAC/C,OAAIG,EAAAA,SAASL,CAAE,GAAKK,EAAAA,SAASJ,CAAE,GAAKI,EAAAA,SAASR,CAAC,EACxBS,EAAM,cAAc,SAAUb,EAAS,CAAA,EAAIc,EAAAA,sBAAsBR,CAAK,EAAGS,qBAAmBT,CAAK,EAAG,CACtH,UAAWI,EACX,GAAIH,EACJ,GAAIC,EACJ,EAAGJ,CACT,CAAK,CAAC,EAEG,IACT,ECjCIY,GAAY,CAAC,QAAQ,EACzB,SAASC,EAAQ,EAAGb,EAAG,CAAE,IAAID,EAAI,OAAO,KAAK,CAAC,EAAG,GAAI,OAAO,sBAAuB,CAAE,IAAIe,EAAI,OAAO,sBAAsB,CAAC,EAAGd,IAAMc,EAAIA,EAAE,OAAO,SAAUd,EAAG,CAAE,OAAO,OAAO,yBAAyB,EAAGA,CAAC,EAAE,UAAY,CAAC,GAAID,EAAE,KAAK,MAAMA,EAAGe,CAAC,CAA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AA,IAAClB,GAAA,CAAe,KAAK,WAAW,QAAS2B,EAAK,KAAMC,EAAAA,aAAaD,EAAKb,CAAO,EAAG,OAAQe,EAAAA,kBAAkBtQ,EAAIsQ,EAAAA,kBAAkB,MAAM,EAAG,YAAa,EACpJ,IAAK,CAAE,EAAG,EAAG,KAAMA,EAAAA,kBAAkBtQ,EAAIsQ,EAAAA,kBAAkB,MAAM,EAAG,YAAa,EAAG,OAAQ,MAAA,EAAU,UAAW,CAAE,EAAG,CAAA,CAAE,EAD/GF,CAAA,CAEZ,CAAA,EACH,CAAA,CACF,EACF,EACA,CAEJ","x_google_ignoreList":[0,1,2,3,4,5,6]}
|
|
@@ -2,9 +2,9 @@ import { jsx as E, jsxs as ke } from "react/jsx-runtime";
|
|
|
2
2
|
import * as s from "react";
|
|
3
3
|
import { isValidElement as le, cloneElement as se, Component as _e, useRef as L, useState as Te, useCallback as ee, useMemo as Ke, forwardRef as We } from "react";
|
|
4
4
|
import { W as Re } from "./WidgetDataGuard-vj0zxuqN.js";
|
|
5
|
-
import { c as V, L as k, r as Fe } from "./index-
|
|
6
|
-
import { u as $e, G as ze, S as Be, C as Ge, a as Ve, b as Me, X as Ue, Y as Xe } from "./useChartData-
|
|
7
|
-
import { i as F, a as ce, s as ue, D as M, b as de, c as Ye, Z as U, L as X, u as pe, d as He, e as Ze, f as B, g as ve, h as Y, j as fe, k as me, l as he, m as qe, n as Je, o as Qe, p as te, q as et, r as ye, t as ge, R as tt, S as rt, v as at, w as Pe, x as nt, y as it, z as ot, A as lt, B as xe, C as re, E as st, J as ct, F as S, G as ut, H as dt, I as pt, K as vt, M as ft, N as mt, T as ht, O as yt } from "./aggregateChartData-
|
|
5
|
+
import { c as V, L as k, r as Fe } from "./index-D_AyI9xa.js";
|
|
6
|
+
import { u as $e, G as ze, S as Be, C as Ge, a as Ve, b as Me, X as Ue, Y as Xe } from "./useChartData-CzMMMf58.js";
|
|
7
|
+
import { i as F, a as ce, s as ue, D as M, b as de, c as Ye, Z as U, L as X, u as pe, d as He, e as Ze, f as B, g as ve, h as Y, j as fe, k as me, l as he, m as qe, n as Je, o as Qe, p as te, q as et, r as ye, t as ge, R as tt, S as rt, v as at, w as Pe, x as nt, y as it, z as ot, A as lt, B as xe, C as re, E as st, J as ct, F as S, G as ut, H as dt, I as pt, K as vt, M as ft, N as mt, T as ht, O as yt } from "./aggregateChartData-DfMWQUiV.js";
|
|
8
8
|
function G() {
|
|
9
9
|
return G = Object.assign ? Object.assign.bind() : function(t) {
|
|
10
10
|
for (var e = 1; e < arguments.length; e++) {
|
|
@@ -860,4 +860,4 @@ const vr = ({ definition: t, period: e, preference: r }) => {
|
|
|
860
860
|
export {
|
|
861
861
|
vr as default
|
|
862
862
|
};
|
|
863
|
-
//# sourceMappingURL=ChartLine-
|
|
863
|
+
//# sourceMappingURL=ChartLine-D-vVWI3t.js.map
|