"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var date_time_1 = require("@uifabric/date-time");
var styles = require("./Calendar.Example.scss");
var CalendarInlineSixWeeksExample = /** @class */ (function (_super) {
    tslib_1.__extends(CalendarInlineSixWeeksExample, _super);
    function CalendarInlineSixWeeksExample(props) {
        var _this = _super.call(this, props) || this;
        _this._onSelectDate = function (date) {
            _this.setState(function (prevState) {
                return {
                    selectedDate: date,
                };
            });
        };
        _this.state = {
            selectedDate: new Date(),
        };
        return _this;
    }
    CalendarInlineSixWeeksExample.prototype.render = function () {
        return (React.createElement("div", { className: styles.wrapper },
            React.createElement("div", null,
                "Selected date(s):",
                ' ',
                React.createElement("span", null, !this.state.selectedDate ? 'Not set' : this.state.selectedDate.toLocaleString())),
            React.createElement(date_time_1.Calendar, { showSixWeeksByDefault: true, dateRangeType: date_time_1.DateRangeType.Day, showGoToToday: true, onSelectDate: this._onSelectDate, value: this.state.selectedDate, firstDayOfWeek: date_time_1.DayOfWeek.Sunday, strings: date_time_1.defaultDayPickerStrings })));
    };
    return CalendarInlineSixWeeksExample;
}(React.Component));
exports.CalendarInlineSixWeeksExample = CalendarInlineSixWeeksExample;
//# sourceMappingURL=Calendar.Inline.SixWeeks.js.map