{"size": 12116, "ext": "js", "max_stars_repo_path": "app/components/Graficos/Graficos.js", "max_stars_repo_name": "dariovillalta/ClasCartera", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "app/components/Graficos/Graficos.js", "max_issues_repo_name": "dariovillalta/ClasCartera", "max_issues_repo_issues_event_min_datetime": "2020-07-17T21:55:10.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-25T18:50:51.000Z", "max_forks_repo_path": "app/components/Graficos/Graficos.js", "max_forks_repo_name": "dariovillalta/ClasCartera", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 6, "max_forks_count": null, "avg_line_length": 45.5488721805, "max_line_length": 385, "alphanum_fraction": 0.635853417}
"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

var _react = _interopRequireDefault(require("react"));

var _ElegirGraficos = _interopRequireDefault(require("./ElegirGraficos.js"));

var _ConfigGrafico = _interopRequireDefault(require("./ConfigGrafico.js"));

var _CrearFiltro = _interopRequireDefault(require("../Filtros/CrearFiltro.js"));

var _VerGrafico = _interopRequireDefault(require("./VerGrafico.js"));

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

function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

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

function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }

function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }

function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }

function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }

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

function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }

var Graficos =
/*#__PURE__*/
function (_React$Component) {
  _inherits(Graficos, _React$Component);

  function Graficos(props) {
    var _this;

    _classCallCheck(this, Graficos);

    _this = _possibleConstructorReturn(this, _getPrototypeOf(Graficos).call(this, props));
    _this.state = {
      procesoAtual: "selGrafico",
      tipoGraficoSeleccionado: "",
      nombreEtiqueta: "",
      tablaEtiqueta: "",
      nombreNumerico: "",
      tablaNumerico: "",
      fechaInicio: "",
      fechaFinal: ""
    };
    _this.terminoSeleccionGrafico = _this.terminoSeleccionGrafico.bind(_assertThisInitialized(_this));
    _this.retornoSeleccionGrafico = _this.retornoSeleccionGrafico.bind(_assertThisInitialized(_this));
    _this.terminoConfigGrafico = _this.terminoConfigGrafico.bind(_assertThisInitialized(_this));
    _this.retornoConfigGrafico = _this.retornoConfigGrafico.bind(_assertThisInitialized(_this));
    _this.terminoSeleccionFiltro = _this.terminoSeleccionFiltro.bind(_assertThisInitialized(_this));
    _this.retornoSeleccionFiltro = _this.retornoSeleccionFiltro.bind(_assertThisInitialized(_this));
    return _this;
  }

  _createClass(Graficos, [{
    key: "terminoSeleccionGrafico",
    value: function terminoSeleccionGrafico(tipo) {
      this.setState({
        procesoAtual: "configGrafico",
        tipoGraficoSeleccionado: tipo
      });
    }
  }, {
    key: "retornoSeleccionGrafico",
    value: function retornoSeleccionGrafico() {
      this.setState({
        procesoAtual: "selGrafico",
        tipoGraficoSeleccionado: ""
      });
    }
  }, {
    key: "terminoConfigGrafico",
    value: function terminoConfigGrafico(etiquetaNombre, etiquetaTabla, numericoNombre, numericoTabla, fechaInicio, fechaFinal) {
      this.setState({
        procesoAtual: "crearFiltro",
        nombreEtiqueta: etiquetaNombre,
        tablaEtiqueta: etiquetaTabla,
        nombreNumerico: numericoNombre,
        tablaNumerico: numericoTabla,
        fechaInicio: fechaInicio,
        fechaFinal: fechaFinal
      });
    }
  }, {
    key: "retornoConfigGrafico",
    value: function retornoConfigGrafico() {
      this.setState({
        procesoAtual: "configGrafico"
      });
    }
  }, {
    key: "terminoSeleccionFiltro",
    value: function terminoSeleccionFiltro() {
      this.setState({
        procesoAtual: "verGrafico"
      });
    }
  }, {
    key: "retornoSeleccionFiltro",
    value: function retornoSeleccionFiltro() {
      this.setState({
        procesoAtual: "crearFiltro"
      });
    }
  }, {
    key: "render",
    value: function render() {
      if (this.state.procesoAtual.localeCompare("selGrafico") == 0) {
        return _react["default"].createElement("div", null, _react["default"].createElement("div", {
          className: "row"
        }, _react["default"].createElement("div", {
          className: "col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12"
        }, _react["default"].createElement("div", {
          className: "page-header"
        }, _react["default"].createElement("h2", {
          className: "pageheader-title"
        }, "Gr\xE1ficos"), _react["default"].createElement("div", {
          className: "page-breadcrumb"
        }, _react["default"].createElement("nav", {
          "aria-label": "breadcrumb"
        }, _react["default"].createElement("ol", {
          className: "breadcrumb"
        }, _react["default"].createElement("li", {
          className: "breadcrumb-item active",
          "aria-current": "page"
        }, "Selecci\xF3n de Gr\xE1fico"))))))), _react["default"].createElement(_ElegirGraficos["default"], {
          pool: this.props.pool,
          terminoSeleccionGrafico: this.terminoSeleccionGrafico
        }, " "));
      } else if (this.state.procesoAtual.localeCompare("configGrafico") == 0) {
        return _react["default"].createElement("div", null, _react["default"].createElement("div", {
          className: "row"
        }, _react["default"].createElement("div", {
          className: "col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12"
        }, _react["default"].createElement("div", {
          className: "page-header"
        }, _react["default"].createElement("h2", {
          className: "pageheader-title"
        }, "Gr\xE1ficos"), _react["default"].createElement("div", {
          className: "page-breadcrumb"
        }, _react["default"].createElement("nav", {
          "aria-label": "breadcrumb"
        }, _react["default"].createElement("ol", {
          className: "breadcrumb"
        }, _react["default"].createElement("li", {
          className: "breadcrumb-item",
          "aria-current": "page",
          onClick: this.retornoSeleccionGrafico
        }, _react["default"].createElement("a", {
          href: "#",
          className: "breadcrumb-link"
        }, "Selecci\xF3n de Gr\xE1fico")), _react["default"].createElement("li", {
          className: "breadcrumb-item active",
          "aria-current": "page"
        }, "Configuraci\xF3n de Gr\xE1fico"))))))), _react["default"].createElement(_ConfigGrafico["default"], {
          pool: this.props.pool,
          terminoConfigGrafico: this.terminoConfigGrafico
        }, " "));
      } else if (this.state.procesoAtual.localeCompare("crearFiltro") == 0) {
        return _react["default"].createElement("div", null, _react["default"].createElement("div", {
          className: "row"
        }, _react["default"].createElement("div", {
          className: "col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12"
        }, _react["default"].createElement("div", {
          className: "page-header"
        }, _react["default"].createElement("h2", {
          className: "pageheader-title"
        }, "Gr\xE1ficos"), _react["default"].createElement("div", {
          className: "page-breadcrumb"
        }, _react["default"].createElement("nav", {
          "aria-label": "breadcrumb"
        }, _react["default"].createElement("ol", {
          className: "breadcrumb"
        }, _react["default"].createElement("li", {
          className: "breadcrumb-item",
          "aria-current": "page",
          onClick: this.retornoSeleccionGrafico
        }, _react["default"].createElement("a", {
          href: "#",
          className: "breadcrumb-link"
        }, "Selecci\xF3n de Gr\xE1fico")), _react["default"].createElement("li", {
          className: "breadcrumb-item",
          "aria-current": "page",
          onClick: this.retornoConfigGrafico
        }, _react["default"].createElement("a", {
          href: "#",
          className: "breadcrumb-link"
        }, "Configuraci\xF3n de Gr\xE1fico")), _react["default"].createElement("li", {
          className: "breadcrumb-item active",
          "aria-current": "page"
        }, "Selecci\xF3n de Filtro"))))))), _react["default"].createElement(_CrearFiltro["default"], {
          pool: this.props.pool,
          callbackComponent: this.terminoSeleccionFiltro
        }, " "));
      } else {
        return _react["default"].createElement("div", null, _react["default"].createElement("div", {
          className: "row"
        }, _react["default"].createElement("div", {
          className: "col-xl-12 col-lg-12 col-md-12 col-sm-12 col-12"
        }, _react["default"].createElement("div", {
          className: "page-header"
        }, _react["default"].createElement("h2", {
          className: "pageheader-title"
        }, "Gr\xE1ficos"), _react["default"].createElement("div", {
          className: "page-breadcrumb"
        }, _react["default"].createElement("nav", {
          "aria-label": "breadcrumb"
        }, _react["default"].createElement("ol", {
          className: "breadcrumb"
        }, _react["default"].createElement("li", {
          className: "breadcrumb-item",
          "aria-current": "page",
          onClick: this.retornoSeleccionGrafico
        }, _react["default"].createElement("a", {
          href: "#",
          className: "breadcrumb-link"
        }, "Selecci\xF3n de Gr\xE1fico")), _react["default"].createElement("li", {
          className: "breadcrumb-item",
          "aria-current": "page",
          onClick: this.retornoConfigGrafico
        }, _react["default"].createElement("a", {
          href: "#",
          className: "breadcrumb-link"
        }, "Configuraci\xF3n de Gr\xE1fico")), _react["default"].createElement("li", {
          className: "breadcrumb-item",
          "aria-current": "page",
          onClick: this.retornoSeleccionFiltro
        }, _react["default"].createElement("a", {
          href: "#",
          className: "breadcrumb-link"
        }, "Selecci\xF3n de Filtro")), _react["default"].createElement("li", {
          className: "breadcrumb-item active",
          "aria-current": "page"
        }, "Gr\xE1fico"))))))), _react["default"].createElement(_VerGrafico["default"], {
          fechaInicio: this.props.fechaInicio,
          fechaFinal: this.props.fechaInicio,
          pool: this.props.pool,
          nombreEtiqueta: this.state.nombreEtiqueta,
          tablaEtiqueta: this.state.tablaEtiqueta,
          nombreNumerico: this.state.nombreNumerico,
          tablaNumerico: this.state.tablaNumerico,
          tipoGraficoSeleccionado: this.state.tipoGraficoSeleccionado
        }, " "));
      }
    }
  }]);

  return Graficos;
}(_react["default"].Component);

exports["default"] = Graficos;
//# sourceMappingURL=Graficos.js.map
