"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "CalendarGrid", {
    enumerable: true,
    get: function() {
        return CalendarGrid;
    }
});
var _react = /*#__PURE__*/ _interop_require_default(require("react"));
var _CalendarGridstyles = require("./CalendarGrid.styles");
function _define_property(obj, key, value) {
    if (key in obj) {
        Object.defineProperty(obj, key, {
            value: value,
            enumerable: true,
            configurable: true,
            writable: true
        });
    } else {
        obj[key] = value;
    }
    return obj;
}
function _interop_require_default(obj) {
    return obj && obj.__esModule ? obj : {
        default: obj
    };
}
function _object_spread(target) {
    for(var i = 1; i < arguments.length; i++){
        var source = arguments[i] != null ? arguments[i] : {};
        var ownKeys = Object.keys(source);
        if (typeof Object.getOwnPropertySymbols === "function") {
            ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
                return Object.getOwnPropertyDescriptor(source, sym).enumerable;
            }));
        }
        ownKeys.forEach(function(key) {
            _define_property(target, key, source[key]);
        });
    }
    return target;
}
function _object_without_properties(source, excluded) {
    if (source == null) return {};
    var target = {}, sourceKeys, key, i;
    if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
        sourceKeys = Reflect.ownKeys(source);
        for(i = 0; i < sourceKeys.length; i++){
            key = sourceKeys[i];
            if (excluded.indexOf(key) >= 0) continue;
            if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
            target[key] = source[key];
        }
        return target;
    }
    target = _object_without_properties_loose(source, excluded);
    if (Object.getOwnPropertySymbols) {
        sourceKeys = Object.getOwnPropertySymbols(source);
        for(i = 0; i < sourceKeys.length; i++){
            key = sourceKeys[i];
            if (excluded.indexOf(key) >= 0) continue;
            if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
            target[key] = source[key];
        }
    }
    return target;
}
function _object_without_properties_loose(source, excluded) {
    if (source == null) return {};
    var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
    for(i = 0; i < sourceKeys.length; i++){
        key = sourceKeys[i];
        if (excluded.indexOf(key) >= 0) continue;
        if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
        target[key] = source[key];
    }
    return target;
}
var CalendarGrid = function CalendarGrid(_0) {
    var isDouble = _0.isDouble, value = _0.value, lang = _0.lang, calendarContainerWidth = _0.calendarContainerWidth, calendarContainerHeight = _0.calendarContainerHeight, handleCalendarPick = _0.handleCalendarPick, rest = _object_without_properties(_0, [
        "isDouble",
        "value",
        "lang",
        "calendarContainerWidth",
        "calendarContainerHeight",
        "handleCalendarPick"
    ]);
    var commonProps = {
        value: value,
        locale: lang,
        innerHeight: calendarContainerHeight,
        innerWidth: calendarContainerWidth,
        onChangeValue: handleCalendarPick
    };
    if (isDouble) {
        return /*#__PURE__*/ _react.default.createElement(_CalendarGridstyles.StyledCalendarDouble, _object_spread({}, commonProps, rest));
    }
    return /*#__PURE__*/ _react.default.createElement(_CalendarGridstyles.StyledCalendar, _object_spread({}, commonProps, rest));
};
