define(["require", "exports", "react", "@fluentui/date-time-utilities", "@fluentui/react", "@fluentui/react-hooks"], function (require, exports, React, date_time_utilities_1, react_1, react_hooks_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.CalendarInlineDateBoundariesExample = void 0;
    var CalendarInlineDateBoundariesExample = function () {
        var today = react_hooks_1.useConst(new Date());
        var minDate = react_hooks_1.useConst(date_time_utilities_1.addMonths(today, -1));
        var maxDate = react_hooks_1.useConst(date_time_utilities_1.addYears(today, 1));
        var restrictedDates = react_hooks_1.useConst([date_time_utilities_1.addDays(today, -2), date_time_utilities_1.addDays(today, -8), date_time_utilities_1.addDays(today, 2), date_time_utilities_1.addDays(today, 8)]);
        var _a = React.useState(), selectedDate = _a[0], setSelectedDate = _a[1];
        var onSelectDate = React.useCallback(function (date, dateRangeArray) {
            setSelectedDate(date);
        }, []);
        return (React.createElement("div", { style: { height: 'auto' } },
            React.createElement("div", null,
                "Selected date: ",
                (selectedDate === null || selectedDate === void 0 ? void 0 : selectedDate.toLocaleString()) || 'Not set'),
            React.createElement("div", null,
                "Date boundary: ",
                minDate.toLocaleDateString(),
                "-",
                maxDate.toLocaleDateString()),
            React.createElement("div", null,
                "Disabled dates: ",
                restrictedDates.map(function (d) { return d.toLocaleDateString(); }).join(', ')),
            React.createElement(react_1.Calendar, { highlightSelectedMonth: true, showGoToToday: false, minDate: minDate, maxDate: maxDate, restrictedDates: restrictedDates, onSelectDate: onSelectDate, value: selectedDate })));
    };
    exports.CalendarInlineDateBoundariesExample = CalendarInlineDateBoundariesExample;
});
//# sourceMappingURL=Calendar.Inline.DateBoundaries.Example.js.map