define(["require", "exports", "tslib", "react", "@uifabric/date-time", "@fluentui/date-time-utilities", "./DatePicker.Examples.scss"], function (require, exports, tslib_1, React, date_time_1, date_time_utilities_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var today = new Date(Date.now());
    var minDate = date_time_utilities_1.addMonths(today, -1);
    var maxDate = date_time_utilities_1.addYears(today, 1);
    var description = "When date boundaries are set (via minDate and maxDate props) the DatePicker will not allow\nout-of-bounds dates to be picked or entered. In this example, the allowed dates are\n" + minDate.toLocaleDateString() + "-" + maxDate.toLocaleDateString();
    var DayPickerStrings = tslib_1.__assign(tslib_1.__assign({}, date_time_1.defaultDayPickerStrings), { isOutOfBoundsErrorMessage: "Date must be between " + minDate.toLocaleDateString() + "-" + maxDate.toLocaleDateString() });
    var DatePickerBoundedExample = /** @class */ (function (_super) {
        tslib_1.__extends(DatePickerBoundedExample, _super);
        function DatePickerBoundedExample(props) {
            var _this = _super.call(this, props) || this;
            _this.state = {
                firstDayOfWeek: date_time_1.DayOfWeek.Sunday,
            };
            return _this;
        }
        DatePickerBoundedExample.prototype.render = function () {
            var firstDayOfWeek = this.state.firstDayOfWeek;
            return (React.createElement("div", { className: "docs-DatePickerExample" },
                React.createElement("p", null, description),
                React.createElement(date_time_1.DatePicker, { isRequired: false, firstDayOfWeek: firstDayOfWeek, strings: DayPickerStrings, placeholder: "Select a date...", ariaLabel: "Select a date", minDate: minDate, maxDate: maxDate, allowTextInput: true })));
        };
        return DatePickerBoundedExample;
    }(React.Component));
    exports.DatePickerBoundedExample = DatePickerBoundedExample;
});
//# sourceMappingURL=DatePicker.Bounded.Example.js.map