{"version":3,"file":"dx-react-chart-bootstrap4.umd.cjs","sources":["../src/templates/utils.js","../src/templates/layout.jsx","../src/templates/label.jsx","../src/chart.jsx","../src/templates/legend/root.jsx","../src/templates/legend/label.jsx","../src/templates/legend/item.jsx","../src/plugins/legend.jsx","../src/templates/title/text.jsx","../src/plugins/title.jsx","../src/templates/series/point.jsx","../src/plugins/scatter-series.jsx","../src/templates/axis/root.jsx","../src/templates/axis/tick.jsx","../src/templates/axis/label.jsx","../src/templates/axis/line.jsx","../src/templates/axis/grid.jsx","../src/plugins/value-axis.jsx","../src/plugins/argument-axis.jsx","../../dx-react-bootstrap4/components/popover.jsx","../src/templates/tooltip/overlay.jsx","../src/templates/tooltip/content.jsx","../src/templates/tooltip/arrow.jsx","../src/templates/tooltip/sheet.jsx","../src/plugins/tooltip.jsx","../src/templates/zoom-and-pan/drag-box.jsx","../src/plugins/zoom-and-pan.jsx"],"sourcesContent":["import { withPatchedProps } from '@devexpress/dx-react-chart';\nimport classNames from 'clsx';\n\nexport const withClassName = (...args) => {\n  const setClassName = ({ className, ...restProps }) => ({\n    className: classNames(...args, className),\n    ...restProps,\n  });\n  return withPatchedProps(setClassName);\n};\n","import { Chart } from '@devexpress/dx-react-chart';\nimport { withClassName } from './utils';\n\nexport const Root = withClassName('dx-c-bs4-container')(Chart.Root);\n","import { Chart } from '@devexpress/dx-react-chart';\nimport { withClassName } from './utils';\n\nexport const Label = withClassName(\n  'dx-c-bs4-fill-current-color', 'dx-c-bs4-label', 'text-muted',\n)(Chart.Label);\n","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { withComponents } from '@devexpress/dx-react-core';\nimport { Chart as ChartBase, Palette } from '@devexpress/dx-react-chart';\nimport { Root } from './templates/layout';\nimport { Label } from './templates/label';\n\nconst palette = ['#0070ff', '#d72e3d', '#249d3d', '#ffb90c', '#1698af', '#616a72'];\n\nconst ChartWithPalette = ({ children, ...props }) => (\n  <ChartBase\n    {...props}\n  >\n    <Palette scheme={palette} />\n    {children}\n  </ChartBase>\n);\n\nChartWithPalette.components = ChartBase.components;\n\nChartWithPalette.propTypes = {\n  children: PropTypes.node.isRequired,\n};\n\nexport const Chart = withComponents({ Root })(ChartWithPalette);\nChart.Label = Label;\n","import * as React from 'react';\nimport { withClassName } from '../utils';\n\nexport const Root = withClassName('list-group', 'py-3')(\n  props => <ul {...props} />,\n);\n","import * as React from 'react';\nimport { withClassName } from '../utils';\n\nexport const Label = withClassName('text-body', 'pl-2', 'pr-2')(\n  ({ text, ...restProps }) => (<span {...restProps}>{text}</span>),\n);\n","import * as React from 'react';\nimport { withClassName } from '../utils';\n\nexport const Item = withClassName(\n  'd-flex', 'list-group-item', 'border-0', 'py-1', 'px-4', 'align-items-center',\n)(props => <li {...props} />);\n","import { withComponents } from '@devexpress/dx-react-core';\nimport { Legend as LegendBase } from '@devexpress/dx-react-chart';\nimport { Root } from '../templates/legend/root';\nimport { Label } from '../templates/legend/label';\nimport { Item } from '../templates/legend/item';\n\nexport const Legend = withComponents({\n  Root, Item, Label,\n})(LegendBase);\n","import * as React from 'react';\nimport { withClassName } from '../utils';\n\nexport const Text = withClassName(\n  'w-100', 'text-center', 'mb-3',\n)(({ text, ...restProps }) => <h3 {...restProps}>{text}</h3>);\n","import { withComponents } from '@devexpress/dx-react-core';\nimport { Title as TitleBase } from '@devexpress/dx-react-chart';\nimport { Text } from '../templates/title/text';\n\nexport const Title = withComponents({ Text })(TitleBase);\n","import { ScatterSeries, withPatchedProps } from '@devexpress/dx-react-chart';\nimport classNames from 'clsx';\n\nconst setClassName = ({ classes, ...restProps }) => {\n  if (restProps.state) {\n    const { className, ...rest } = restProps;\n    return {\n      className: classNames('dx-c-bs4-fill-background-color', className),\n      ...rest,\n    };\n  }\n  return restProps;\n};\n\nexport const Point = withPatchedProps(setClassName)(ScatterSeries.Point);\n","import { withComponents } from '@devexpress/dx-react-core';\nimport { ScatterSeries as ScatterSeriesBase } from '@devexpress/dx-react-chart';\nimport { Point } from '../templates/series/point';\n\nexport const ScatterSeries = withComponents({ Point })(ScatterSeriesBase);\n","import { Axis } from '@devexpress/dx-react-chart';\nimport { withClassName } from '../utils';\n\nexport const Root = withClassName('dx-c-bs4-crisp-edges')(Axis.Root);\n","import { Axis } from '@devexpress/dx-react-chart';\nimport { withClassName } from '../utils';\n\nexport const Tick = withClassName(\n  'dx-c-bs4-stroke-current-color', 'dx-c-bs4-crisp-edges', 'dx-c-bs4-axis-opacity',\n)(Axis.Tick);\n","import { Axis } from '@devexpress/dx-react-chart';\nimport { withClassName } from '../utils';\n\nexport const Label = withClassName(\n  'dx-c-bs4-fill-current-color', 'dx-c-bs4-label', 'text-muted',\n)(Axis.Label);\n","import { Axis } from '@devexpress/dx-react-chart';\nimport { withClassName } from '../utils';\n\nexport const Line = withClassName(\n  'dx-c-bs4-stroke-current-color', 'dx-c-bs4-axis-opacity',\n)(Axis.Line);\n","import { Axis } from '@devexpress/dx-react-chart';\nimport { withClassName } from '../utils';\n\nexport const Grid = withClassName(\n  'dx-c-bs4-stroke-current-color', 'dx-c-bs4-crisp-edges', 'dx-c-bs4-axis-opacity',\n)(Axis.Grid);\n","import { withComponents } from '@devexpress/dx-react-core';\nimport { ValueAxis as ValueAxisBase } from '@devexpress/dx-react-chart';\nimport { Root } from '../templates/axis/root';\nimport { Tick } from '../templates/axis/tick';\nimport { Label } from '../templates/axis/label';\nimport { Line } from '../templates/axis/line';\nimport { Grid } from '../templates/axis/grid';\n\nexport const ValueAxis = withComponents({\n  Root, Tick, Label, Line, Grid,\n})(ValueAxisBase);\n","import { withComponents } from '@devexpress/dx-react-core';\nimport { ArgumentAxis as ArgumentAxisBase } from '@devexpress/dx-react-chart';\nimport { Root } from '../templates/axis/root';\nimport { Tick } from '../templates/axis/tick';\nimport { Label } from '../templates/axis/label';\nimport { Line } from '../templates/axis/line';\nimport { Grid } from '../templates/axis/grid';\n\nexport const ArgumentAxis = withComponents({\n  Root, Tick, Label, Line, Grid,\n})(ArgumentAxisBase);\n","/* globals document:true Element:true */\n/* eslint-disable import/no-extraneous-dependencies */\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport PropTypes from 'prop-types';\nimport { Popper } from 'react-popper';\n\nconst DefaultArrowComponent = React.forwardRef(({ placement, ...restProps }, ref) => (\n  <div className=\"arrow\" ref={ref} {...restProps} />\n));\n\nDefaultArrowComponent.propTypes = {\n  placement: PropTypes.string.isRequired,\n};\nexport class Popover extends React.PureComponent {\n  constructor(props) {\n    super(props);\n\n    // These two fields should be created only if `isOpen && toggle` condition is true\n    // and destroyed when condition turns false.\n    // But it would require usage of `this.state` and other code complications.\n    // So let's not change it for now. Maybe a better solution would be found.\n    this.contentRef = React.createRef();\n    this.handleClick = this.handleClick.bind(this);\n  }\n\n  componentDidMount() {\n    const { isOpen, toggle } = this.props;\n    if (isOpen && toggle) {\n      this.attachDocumentEvents();\n    }\n  }\n\n  componentDidUpdate() {\n    const { isOpen, toggle } = this.props;\n    if (isOpen && toggle) {\n      this.attachDocumentEvents();\n    } else {\n      this.detachDocumentEvents();\n    }\n  }\n\n  componentWillUnmount() {\n    this.detachDocumentEvents();\n  }\n\n  handleClick(e) {\n    const { target: eventTarget } = e;\n    const { current: contentNode } = this.contentRef;\n    const { toggle, target } = this.props;\n\n    if (contentNode && !contentNode.contains(eventTarget) && !target.contains(eventTarget)) {\n      toggle();\n    }\n  }\n\n  attachDocumentEvents() {\n    if (!this.listenersAttached) {\n      this.toggleDocumentEvents('addEventListener');\n      this.listenersAttached = true;\n    }\n  }\n\n  detachDocumentEvents() {\n    if (this.listenersAttached) {\n      this.toggleDocumentEvents('removeEventListener');\n      this.listenersAttached = false;\n    }\n  }\n\n  toggleDocumentEvents(method) {\n    ['click', 'touchstart'].forEach((eventType) => {\n      document[method](eventType, this.handleClick, true);\n    });\n  }\n\n  renderPopper() {\n    const {\n      children, target, renderInBody,\n      arrowComponent: ArrowComponent, modifiers = [],\n      ...restProps\n    } = this.props;\n\n    const popperModifiers = [\n      {\n        name: 'offset',\n        options: {\n          offset: [0, 8],\n        },\n      },\n      ...modifiers,\n    ];\n\n    return (\n      <Popper\n        referenceElement={target}\n        modifiers={popperModifiers}\n        {...restProps}\n      >\n        {({\n          ref, style, arrowProps, placement,\n        }) => (\n          <div className={`popover show bs-popover-${placement}`} ref={ref} style={style}>\n            <div className=\"popover-inner\" ref={this.contentRef}>\n              {children}\n            </div>\n            <ArrowComponent\n              {...arrowProps}\n              placement={restProps.placement}\n            />\n          </div>\n        )}\n      </Popper>\n    );\n  }\n\n  render() {\n    const {\n      isOpen, renderInBody,\n    } = this.props;\n\n    if (!isOpen) return null;\n\n    return renderInBody\n      ? (\n        ReactDOM.createPortal(\n          this.renderPopper(),\n          document.body,\n        )\n      )\n      : this.renderPopper();\n  }\n}\n\nPopover.propTypes = {\n  renderInBody: PropTypes.bool,\n  placement: PropTypes.string,\n  isOpen: PropTypes.bool,\n  children: PropTypes.node.isRequired,\n  target: PropTypes.oneOfType([\n    PropTypes.instanceOf((typeof Element !== 'undefined') ? Element : Object),\n    PropTypes.object,\n  ]),\n  toggle: PropTypes.func,\n  arrowComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n};\n\nPopover.defaultProps = {\n  target: null,\n  renderInBody: true,\n  isOpen: false,\n  placement: 'auto',\n  toggle: undefined,\n  arrowComponent: DefaultArrowComponent,\n};\n","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { RIGHT, TOP } from '@devexpress/dx-chart-core';\nimport { Popover } from '../../../../dx-react-bootstrap4/components';\n\nconst popperModifiers = [\n  {\n    name: 'flip',\n    enabled: false,\n  },\n  {\n    name: 'preventOverflow',\n    options: {\n      altAxis: true,\n    },\n  },\n];\n\nexport class Overlay extends React.PureComponent {\n  render() {\n    const {\n      children, target, rotated, ...restProps\n    } = this.props;\n    return (\n      <Popover\n        placement={rotated ? RIGHT : TOP}\n        isOpen\n        target={target}\n        modifiers={popperModifiers}\n        {...restProps}\n      >\n        {children}\n      </Popover>\n    );\n  }\n}\n\nOverlay.propTypes = {\n  children: PropTypes.node.isRequired,\n  target: PropTypes.any.isRequired,\n  rotated: PropTypes.bool.isRequired,\n  arrowComponent: PropTypes.oneOfType([PropTypes.func, PropTypes.object]).isRequired,\n};\n","import * as React from 'react';\nimport PropTypes from 'prop-types';\n\nexport const Content = ({ text, targetItem, ...restProps }) => (<span {...restProps}>{text}</span>);\n\nContent.propTypes = {\n  text: PropTypes.string.isRequired,\n  targetItem: PropTypes.shape({\n    series: PropTypes.string.isRequired,\n    point: PropTypes.number.isRequired,\n  }),\n};\n\nContent.defaultProps = {\n  targetItem: undefined,\n};\n","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'clsx';\n\nexport const Arrow = React.forwardRef(({\n  className, placement, ...restProps\n}, ref) => (\n  <div className={classNames('arrow', className)} ref={ref} {...restProps} />\n));\n\nArrow.propTypes = {\n  placement: PropTypes.string.isRequired,\n  className: PropTypes.string,\n};\n\nArrow.defaultProps = {\n  className: undefined,\n};\n","import * as React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'clsx';\n\nexport const Sheet = ({ className, ...restProps }) => (\n  <div className={classNames('popover-body', className)} {...restProps} />\n);\n\nSheet.propTypes = {\n  className: PropTypes.string,\n};\n\nSheet.defaultProps = {\n  className: undefined,\n};\n","import { Tooltip as TooltipBase } from '@devexpress/dx-react-chart';\nimport { withComponents } from '@devexpress/dx-react-core';\nimport { Overlay } from '../templates/tooltip/overlay';\nimport { Content } from '../templates/tooltip/content';\nimport { Arrow } from '../templates/tooltip/arrow';\nimport { Sheet } from '../templates/tooltip/sheet';\n\nexport const Tooltip = withComponents({\n  Overlay, Content, Arrow, Sheet,\n})(TooltipBase);\n","import { ZoomAndPan } from '@devexpress/dx-react-chart';\nimport { withClassName } from '../utils';\n\nexport const DragBox = withClassName(\n  'bg-secondary', 'dx-c-bs4-rect-opacity',\n)(ZoomAndPan.DragBox);\n","import { ZoomAndPan as ZoomAndPanBase } from '@devexpress/dx-react-chart';\nimport { withComponents } from '@devexpress/dx-react-core';\nimport { DragBox } from '../templates/zoom-and-pan/drag-box';\n\nexport const ZoomAndPan = withComponents({ DragBox })(ZoomAndPanBase);\n"],"names":["withClassName","args","setClassName","className","restProps","classNames","withPatchedProps","Root","Chart","Label","palette","ChartWithPalette","children","props","React.createElement","ChartBase","Palette","components","propTypes","PropTypes","node","isRequired","withComponents","text","Item","Legend","LegendBase","Text","Title","TitleBase","classes","state","rest","Point","ScatterSeries","ScatterSeriesBase","Axis","Tick","Line","Grid","ValueAxis","ValueAxisBase","ArgumentAxis","ArgumentAxisBase","DefaultArrowComponent","React","placement","ref","string","Popover","constructor","contentRef","handleClick","bind","componentDidMount","isOpen","toggle","attachDocumentEvents","componentDidUpdate","detachDocumentEvents","componentWillUnmount","e","target","eventTarget","current","contentNode","contains","listenersAttached","toggleDocumentEvents","method","forEach","eventType","document","renderPopper","renderInBody","arrowComponent","ArrowComponent","modifiers","popperModifiers","name","options","offset","Popper","style","arrowProps","render","ReactDOM","body","bool","oneOfType","instanceOf","Element","Object","object","func","defaultProps","undefined","enabled","altAxis","Overlay","rotated","RIGHT","TOP","any","Content","targetItem","shape","series","point","number","Arrow","Sheet","Tooltip","TooltipBase","DragBox","ZoomAndPan","ZoomAndPanBase"],"mappings":";;;;;;;;;;;;;;;;;;EAGO,MAAMA,aAAa,GAAG,CAAC,GAAGC,IAAJ,KAAa;EACxC,QAAMC,YAAY,GAAG,CAAC;EAAEC,IAAAA,SAAF;EAAa,OAAGC;EAAhB,GAAD,MAAkC;EACrDD,IAAAA,SAAS,EAAEE,UAAU,CAAC,GAAGJ,IAAJ,EAAUE,SAAV,CADgC;EAErD,OAAGC;EAFkD,GAAlC,CAArB;;EAIA,SAAOE,6BAAgB,CAACJ,YAAD,CAAvB;EACD,CANM;;ECAA,MAAMK,IAAI,GAAGP,aAAa,CAAC,oBAAD,CAAb,CAAoCQ,kBAAK,CAACD,IAA1C,CAAb;;ECAA,MAAME,KAAK,GAAGT,aAAa,CAChC,6BADgC,E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