'use strict';

Liferay.Loader.define('frontend-taglib-chart$clay-charts@2.24.1/lib/Chart', ['module', 'exports', 'require', './ChartBase', 'frontend-js-metal-web$metal-component', 'frontend-js-metal-web$metal-state', 'frontend-js-metal-web$metal-soy', './Chart.soy'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.Chart = undefined;

    var _ChartBase = require('./ChartBase');

    var _ChartBase2 = _interopRequireDefault(_ChartBase);

    var _metalComponent = require('frontend-js-metal-web$metal-component');

    var _metalComponent2 = _interopRequireDefault(_metalComponent);

    var _metalState = require('frontend-js-metal-web$metal-state');

    var _metalSoy = require('frontend-js-metal-web$metal-soy');

    var _metalSoy2 = _interopRequireDefault(_metalSoy);

    var _ChartSoy = require('./Chart.soy');

    var _ChartSoy2 = _interopRequireDefault(_ChartSoy);

    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : { default: obj };
    }

    function _classCallCheck(instance, Constructor) {
      if (!(instance instanceof Constructor)) {
        throw new TypeError("Cannot call a class as a function");
      }
    }

    function _possibleConstructorReturn(self, call) {
      if (!self) {
        throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
      }return call && (typeof call === "object" || typeof call === "function") ? call : self;
    }

    function _inherits(subClass, superClass) {
      if (typeof superClass !== "function" && superClass !== null) {
        throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
      }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
    }

    /**
     * Metal Chart component.
     * @extends ChartBase
     * @extends Component
     */
    var Chart = function (_Component) {
      _inherits(Chart, _Component);

      function Chart() {
        _classCallCheck(this, Chart);

        return _possibleConstructorReturn(this, (Chart.__proto__ || Object.getPrototypeOf(Chart)).apply(this, arguments));
      }

      return Chart;
    }(_metalComponent2.default);

    Object.assign(Chart.prototype, _ChartBase2.default);

    Chart.STATE = {
      /**
       * Object that wires events with default listeners
       * @default undefined
       * @instance
       * @memberof Chart
       * @review
       * @type {?(object|undefined)}
       */
      defaultEventHandler: _metalState.Config.object(),

      /**
       * Id to be applied to the element.
       * @default undefined
       * @instance
       * @memberof Chart
       * @type {?(string|undefined)}
       */
      id: _metalState.Config.string()
    };

    Chart.STATE = Object.assign(Chart.STATE, _ChartBase2.default.STATE);

    _metalSoy2.default.register(Chart, _ChartSoy2.default);

    exports.Chart = Chart;
    exports.default = Chart;
    //# sourceMappingURL=Chart.js.map
  }
});
//# sourceMappingURL=Chart.js.map