define(["require", "exports", "tslib", "react", "@uifabric/date-time", "./Calendar.Example.scss"], function (require, exports, tslib_1, React, date_time_1, styles) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var CalendarInlineOverlayedMonthExample = /** @class */ (function (_super) {
        tslib_1.__extends(CalendarInlineOverlayedMonthExample, _super);
        function CalendarInlineOverlayedMonthExample(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;
        }
        CalendarInlineOverlayedMonthExample.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, { showMonthPickerAsOverlay: true, highlightCurrentMonth: false, highlightSelectedMonth: true, dateRangeType: date_time_1.DateRangeType.Day, showGoToToday: false, onSelectDate: this._onSelectDate, value: this.state.selectedDate, firstDayOfWeek: date_time_1.DayOfWeek.Sunday, strings: date_time_1.defaultDayPickerStrings })));
        };
        return CalendarInlineOverlayedMonthExample;
    }(React.Component));
    exports.CalendarInlineOverlayedMonthExample = CalendarInlineOverlayedMonthExample;
});
//# sourceMappingURL=Calendar.Inline.OverlayedMonthPicker.Example.js.map