'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var charts = require('echarts/charts');
var echarts = require('echarts/core');
var compFactory = require('../utils/comp-factory.js');

function _interopNamespaceDefault(e) {
  var n = Object.create(null);
  if (e) {
    Object.keys(e).forEach(function (k) {
      if (k !== 'default') {
        var d = Object.getOwnPropertyDescriptor(e, k);
        Object.defineProperty(n, k, d.get ? d : {
          enumerable: true,
          get: function () { return e[k]; }
        });
      }
    });
  }
  n.default = e;
  return Object.freeze(n);
}

var echarts__namespace = /*#__PURE__*/_interopNamespaceDefault(echarts);

echarts__namespace.use([...compFactory.commonEchartsComponents, charts.FunnelChart]);
const funnelOption = (props) => {
    const { data } = props;
    return {
        series: data ? [{ type: 'funnel', data }] : undefined,
    };
};
var funnel = compFactory.defineComponent(echarts__namespace, 'funnel', funnelOption);

exports.default = funnel;
//# sourceMappingURL=funnel.js.map
