/**
 * amis-ui v6.12.0-beta.0
 * Copyright 2018-2025 fex
 */

'use strict';

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

var tslib = require('tslib');
var React = require('react');
var DaysView = require('./DaysView.js');
var YearsView = require('./YearsView.js');
var MonthsView = require('./MonthsView.js');
var TimeView = require('./TimeView.js');
var QuartersView = require('./QuartersView.js');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

var __react_jsx__ = require('react');
var _J$X_ = (__react_jsx__["default"] || __react_jsx__).createElement;
(__react_jsx__["default"] || __react_jsx__).Fragment;
var CustomCalendarContainer = /** @class */ (function (_super) {
    tslib.__extends(CustomCalendarContainer, _super);
    function CustomCalendarContainer() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.viewComponents = tslib.__assign(tslib.__assign({}, _this.viewComponents), { days: DaysView["default"], years: YearsView["default"], months: MonthsView["default"], time: TimeView["default"], quarters: QuartersView["default"] });
        return _this;
    }
    CustomCalendarContainer.prototype.render = function () {
        return _J$X_(this.viewComponents[this.props.view], this.props.viewProps);
    };
    return CustomCalendarContainer;
}(React__default["default"].Component));

exports["default"] = CustomCalendarContainer;
