"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var _ = require("lodash");
var VRow_1 = require("./VRow");
var VCol_1 = require("./VCol");
var default_1 = /** @class */ (function (_super) {
    __extends(default_1, _super);
    function default_1() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    default_1.prototype.render = function () {
        var rowParam = {};
        var colParam = {};
        if (_.has(this.props, 'height')) {
            rowParam.height = this.props.height;
        }
        if (_.has(this.props, 'style')) {
            rowParam.style = this.props.style;
        }
        if (_.has(this.props, 'className')) {
            rowParam.className = this.props.className;
        }
        if (_.has(this.props, 'title')) {
            colParam.title = this.props.title;
        }
        if (_.has(this.props, 'icon')) {
            colParam.icon = this.props.icon;
        }
        if (_.has(this.props, 'loading_effect')) {
            colParam.loading_effect = this.props.loading_effect;
        }
        if (_.has(this.props, 'loading_top')) {
            colParam.loading_top = this.props.loading_top;
        }
        if (_.has(this.props, 'headStyle')) {
            colParam.headStyle = this.props.headStyle;
        }
        if (_.has(this.props, 'bodyStyle')) {
            colParam.bodyStyle = this.props.bodyStyle;
        }
        if (_.has(this.props, 'colStyle')) {
            colParam.colStyle = this.props.colStyle;
        }
        if (_.has(this.props, 'cardStyle')) {
            colParam.style = this.props.cardStyle;
        }
        return React.createElement(VRow_1.default, __assign({}, rowParam),
            React.createElement(VCol_1.default, __assign({ xs: 24, sm: 24, md: 24, lg: 24, xl: 24 }, colParam), this.props.children));
    };
    return default_1;
}(React.PureComponent));
exports.default = default_1;
