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 CalendarInlineContiguousWorkWeekDaysExample = /** @class */ (function (_super) {
        tslib_1.__extends(CalendarInlineContiguousWorkWeekDaysExample, _super);
        function CalendarInlineContiguousWorkWeekDaysExample(props) {
            var _this = _super.call(this, props) || this;
            _this._onSelectDate = function (date, dateRangeArray) {
                _this.setState(function (prevState) {
                    return {
                        selectedDate: date,
                        selectedDateRange: dateRangeArray,
                    };
                });
            };
            _this.state = {
                selectedDate: new Date(),
                selectedDateRange: undefined,
            };
            return _this;
        }
        CalendarInlineContiguousWorkWeekDaysExample.prototype.render = function () {
            var dateRangeString = null;
            if (this.state.selectedDateRange) {
                var rangeStart = this.state.selectedDateRange[0];
                var rangeEnd = this.state.selectedDateRange[this.state.selectedDateRange.length - 1];
                dateRangeString = rangeStart.toLocaleDateString() + '-' + rangeEnd.toLocaleDateString();
            }
            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("div", null,
                    "Selected dates:",
                    React.createElement("span", null,
                        " ",
                        !dateRangeString ? 'Not set' : dateRangeString)),
                React.createElement(date_time_1.Calendar, { dateRangeType: date_time_1.DateRangeType.WorkWeek, highlightCurrentMonth: false, highlightSelectedMonth: true, showGoToToday: true, workWeekDays: [
                        date_time_1.DayOfWeek.Monday,
                        date_time_1.DayOfWeek.Tuesday,
                        date_time_1.DayOfWeek.Wednesday,
                        date_time_1.DayOfWeek.Thursday,
                        date_time_1.DayOfWeek.Friday,
                    ], onSelectDate: this._onSelectDate, value: this.state.selectedDate, firstDayOfWeek: date_time_1.DayOfWeek.Sunday, strings: date_time_1.defaultDayPickerStrings })));
        };
        return CalendarInlineContiguousWorkWeekDaysExample;
    }(React.Component));
    exports.CalendarInlineContiguousWorkWeekDaysExample = CalendarInlineContiguousWorkWeekDaysExample;
});
//# sourceMappingURL=Calendar.Inline.ContiguousWorkWeekDays.Example.js.map