/******/ (function() { // webpackBootstrap /******/ var __webpack_modules__ = ({ /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateFormatting/dateFormatting.defaults.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateFormatting/dateFormatting.defaults.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DEFAULT_CALENDAR_STRINGS = exports.DEFAULT_DATE_FORMATTING = exports.DEFAULT_DATE_GRID_STRINGS = exports.formatYear = exports.formatMonth = exports.formatMonthYear = exports.formatMonthDayYear = exports.formatDay = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** * Format date to a day string representation * @param date - input date to format */ var formatDay = function (date) { return date.getDate().toString(); }; exports.formatDay = formatDay; /** * Format date to a month-day-year string * @param date - input date to format * @param strings - localized strings */ var formatMonthDayYear = function (date, strings) { return strings.months[date.getMonth()] + ' ' + date.getDate() + ', ' + date.getFullYear(); }; exports.formatMonthDayYear = formatMonthDayYear; /** * Format date to a month-year string * @param date - input date to format * @param strings - localized strings */ var formatMonthYear = function (date, strings) { return strings.months[date.getMonth()] + ' ' + date.getFullYear(); }; exports.formatMonthYear = formatMonthYear; /** * Format date to a month string * @param date - input date to format * @param strings - localized strings */ var formatMonth = function (date, strings) { return strings.months[date.getMonth()]; }; exports.formatMonth = formatMonth; /** * Format date to a year string representation * @param date - input date to format */ var formatYear = function (date) { return date.getFullYear().toString(); }; exports.formatYear = formatYear; exports.DEFAULT_DATE_GRID_STRINGS = { months: [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December', ], shortMonths: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], days: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], shortDays: ['S', 'M', 'T', 'W', 'T', 'F', 'S'], }; exports.DEFAULT_DATE_FORMATTING = { formatDay: exports.formatDay, formatMonth: exports.formatMonth, formatYear: exports.formatYear, formatMonthDayYear: exports.formatMonthDayYear, formatMonthYear: exports.formatMonthYear, }; exports.DEFAULT_CALENDAR_STRINGS = tslib_1.__assign(tslib_1.__assign({}, exports.DEFAULT_DATE_GRID_STRINGS), { goToToday: 'Go to today', weekNumberFormatString: 'Week number {0}', prevMonthAriaLabel: 'Previous month', nextMonthAriaLabel: 'Next month', prevYearAriaLabel: 'Previous year', nextYearAriaLabel: 'Next year', prevYearRangeAriaLabel: 'Previous year range', nextYearRangeAriaLabel: 'Next year range', closeButtonAriaLabel: 'Close', selectedDateFormatString: 'Selected date {0}', todayDateFormatString: "Today's date {0}", monthPickerHeaderAriaLabel: '{0}, change year', yearPickerHeaderAriaLabel: '{0}, change month', dayMarkedAriaLabel: 'marked' }); //# sourceMappingURL=dateFormatting.defaults.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateFormatting/dateFormatting.types.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateFormatting/dateFormatting.types.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=dateFormatting.types.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateFormatting/index.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateFormatting/index.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./dateFormatting.types */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateFormatting/dateFormatting.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./dateFormatting.defaults */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateFormatting/dateFormatting.defaults.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/dateGrid.types.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/dateGrid.types.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=dateGrid.types.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/findAvailableDate.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/findAvailableDate.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.findAvailableDate = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var isRestrictedDate_1 = __webpack_require__(/*! ./isRestrictedDate */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isRestrictedDate.js"); var isAfterMaxDate_1 = __webpack_require__(/*! ./isAfterMaxDate */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isAfterMaxDate.js"); var isBeforeMinDate_1 = __webpack_require__(/*! ./isBeforeMinDate */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isBeforeMinDate.js"); var dateMath_1 = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateMath/dateMath.js"); /** * Returns closest available date given the restriction `options`, or undefined otherwise * @param options - list of search options */ var findAvailableDate = function (options) { var targetDate = options.targetDate, initialDate = options.initialDate, direction = options.direction, restrictedDateOptions = tslib_1.__rest(options, ["targetDate", "initialDate", "direction"]); var availableDate = targetDate; // if the target date is available, return it immediately if (!(0, isRestrictedDate_1.isRestrictedDate)(targetDate, restrictedDateOptions)) { return targetDate; } while ((0, dateMath_1.compareDatePart)(initialDate, availableDate) !== 0 && (0, isRestrictedDate_1.isRestrictedDate)(availableDate, restrictedDateOptions) && !(0, isAfterMaxDate_1.isAfterMaxDate)(availableDate, restrictedDateOptions) && !(0, isBeforeMinDate_1.isBeforeMinDate)(availableDate, restrictedDateOptions)) { availableDate = (0, dateMath_1.addDays)(availableDate, direction); } if ((0, dateMath_1.compareDatePart)(initialDate, availableDate) !== 0 && !(0, isRestrictedDate_1.isRestrictedDate)(availableDate, restrictedDateOptions)) { return availableDate; } return undefined; }; exports.findAvailableDate = findAvailableDate; //# sourceMappingURL=findAvailableDate.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/getBoundedDateRange.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/getBoundedDateRange.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getBoundedDateRange = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var dateMath_1 = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateMath/dateMath.js"); /** * Generates a list of dates, bounded by min and max dates * @param dateRange - input date range * @param minDate - min date to limit the range * @param maxDate - max date to limit the range */ var getBoundedDateRange = function (dateRange, minDate, maxDate) { var boundedDateRange = tslib_1.__spreadArray([], dateRange, true); if (minDate) { boundedDateRange = boundedDateRange.filter(function (date) { return (0, dateMath_1.compareDatePart)(date, minDate) >= 0; }); } if (maxDate) { boundedDateRange = boundedDateRange.filter(function (date) { return (0, dateMath_1.compareDatePart)(date, maxDate) <= 0; }); } return boundedDateRange; }; exports.getBoundedDateRange = getBoundedDateRange; //# sourceMappingURL=getBoundedDateRange.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/getDateRangeTypeToUse.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/getDateRangeTypeToUse.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDateRangeTypeToUse = void 0; var dateValues_1 = __webpack_require__(/*! ../dateValues/dateValues */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateValues/dateValues.js"); var isContiguous_1 = __webpack_require__(/*! ./isContiguous */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isContiguous.js"); /** * Return corrected date range type, given `dateRangeType` and list of working days. * For non-contiguous working days and working week range type, returns general week range type. * For other cases returns input date range type. * @param dateRangeType - input type of range * @param workWeekDays - list of working days in a week */ var getDateRangeTypeToUse = function (dateRangeType, workWeekDays, firstDayOfWeek) { if (workWeekDays && dateRangeType === dateValues_1.DateRangeType.WorkWeek) { if (!(0, isContiguous_1.isContiguous)(workWeekDays, true, firstDayOfWeek) || workWeekDays.length === 0) { return dateValues_1.DateRangeType.Week; } } return dateRangeType; }; exports.getDateRangeTypeToUse = getDateRangeTypeToUse; //# sourceMappingURL=getDateRangeTypeToUse.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/getDayGrid.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/getDayGrid.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDayGrid = void 0; var dateMath_1 = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateMath/dateMath.js"); var dateValues_1 = __webpack_require__(/*! ../dateValues/dateValues */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateValues/dateValues.js"); var getDateRangeTypeToUse_1 = __webpack_require__(/*! ./getDateRangeTypeToUse */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/getDateRangeTypeToUse.js"); var getBoundedDateRange_1 = __webpack_require__(/*! ./getBoundedDateRange */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/getBoundedDateRange.js"); var isRestrictedDate_1 = __webpack_require__(/*! ./isRestrictedDate */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isRestrictedDate.js"); /** * Generates a grid of days, given the `options`. * Returns one additional week at the begining from the previous range * and one at the end from the future range * @param options - parameters to specify date related restrictions for the resulting grid */ var getDayGrid = function (options) { var selectedDate = options.selectedDate, dateRangeType = options.dateRangeType, firstDayOfWeek = options.firstDayOfWeek, today = options.today, minDate = options.minDate, maxDate = options.maxDate, weeksToShow = options.weeksToShow, workWeekDays = options.workWeekDays, daysToSelectInDayView = options.daysToSelectInDayView, restrictedDates = options.restrictedDates, markedDays = options.markedDays; var restrictedDateOptions = { minDate: minDate, maxDate: maxDate, restrictedDates: restrictedDates }; var todaysDate = today || new Date(); var navigatedDate = options.navigatedDate ? options.navigatedDate : todaysDate; var date; if (weeksToShow && weeksToShow <= 4) { // if showing less than a full month, just use date == navigatedDate date = new Date(navigatedDate.getFullYear(), navigatedDate.getMonth(), navigatedDate.getDate()); } else { date = new Date(navigatedDate.getFullYear(), navigatedDate.getMonth(), 1); } var weeks = []; // Cycle the date backwards to get to the first day of the week. while (date.getDay() !== firstDayOfWeek) { date.setDate(date.getDate() - 1); } // add the transition week as last week of previous range date = (0, dateMath_1.addDays)(date, -dateValues_1.DAYS_IN_WEEK); // a flag to indicate whether all days of the week are outside the month var isAllDaysOfWeekOutOfMonth = false; // in work week view if the days aren't contiguous we use week view instead var selectedDateRangeType = (0, getDateRangeTypeToUse_1.getDateRangeTypeToUse)(dateRangeType, workWeekDays, firstDayOfWeek); var selectedDates = []; if (selectedDate) { selectedDates = (0, dateMath_1.getDateRangeArray)(selectedDate, selectedDateRangeType, firstDayOfWeek, workWeekDays, daysToSelectInDayView); selectedDates = (0, getBoundedDateRange_1.getBoundedDateRange)(selectedDates, minDate, maxDate); } var shouldGetWeeks = true; for (var weekIndex = 0; shouldGetWeeks; weekIndex++) { var week = []; isAllDaysOfWeekOutOfMonth = true; var _loop_1 = function (dayIndex) { var originalDate = new Date(date.getTime()); var dayInfo = { key: date.toString(), date: date.getDate().toString(), originalDate: originalDate, isInMonth: date.getMonth() === navigatedDate.getMonth(), isToday: (0, dateMath_1.compareDates)(todaysDate, date), isSelected: (0, dateMath_1.isInDateRangeArray)(date, selectedDates), isInBounds: !(0, isRestrictedDate_1.isRestrictedDate)(date, restrictedDateOptions), isMarked: (markedDays === null || markedDays === void 0 ? void 0 : markedDays.some(function (markedDay) { return (0, dateMath_1.compareDates)(originalDate, markedDay); })) || false, }; week.push(dayInfo); if (dayInfo.isInMonth) { isAllDaysOfWeekOutOfMonth = false; } date.setDate(date.getDate() + 1); }; for (var dayIndex = 0; dayIndex < dateValues_1.DAYS_IN_WEEK; dayIndex++) { _loop_1(dayIndex); } // We append the condition of the loop depending upon the showSixWeeksByDefault prop. shouldGetWeeks = weeksToShow ? weekIndex < weeksToShow + 1 : !isAllDaysOfWeekOutOfMonth || weekIndex === 0; // we don't check shouldGetWeeks before pushing because we want to add one extra week for transition state weeks.push(week); } return weeks; }; exports.getDayGrid = getDayGrid; //# sourceMappingURL=getDayGrid.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/index.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./dateGrid.types */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/dateGrid.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./findAvailableDate */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/findAvailableDate.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getBoundedDateRange */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/getBoundedDateRange.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getDateRangeTypeToUse */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/getDateRangeTypeToUse.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./getDayGrid */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/getDayGrid.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./isAfterMaxDate */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isAfterMaxDate.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./isBeforeMinDate */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isBeforeMinDate.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./isRestrictedDate */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isRestrictedDate.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./isContiguous */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isContiguous.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isAfterMaxDate.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isAfterMaxDate.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isAfterMaxDate = void 0; var dateMath_1 = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateMath/dateMath.js"); /** * Checks if `date` happens later than max date * @param date - date to check * @param options - object with max date to check against */ var isAfterMaxDate = function (date, options) { var maxDate = options.maxDate; return maxDate ? (0, dateMath_1.compareDatePart)(date, maxDate) >= 1 : false; }; exports.isAfterMaxDate = isAfterMaxDate; //# sourceMappingURL=isAfterMaxDate.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isBeforeMinDate.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isBeforeMinDate.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isBeforeMinDate = void 0; var dateMath_1 = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateMath/dateMath.js"); /** * Checks if `date` happens earlier than min date * @param date - date to check * @param options - object with min date to check against */ var isBeforeMinDate = function (date, options) { var minDate = options.minDate; return minDate ? (0, dateMath_1.compareDatePart)(minDate, date) >= 1 : false; }; exports.isBeforeMinDate = isBeforeMinDate; //# sourceMappingURL=isBeforeMinDate.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isContiguous.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isContiguous.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isContiguous = void 0; /** * Returns whether provided week days are contiguous. * @param days - list of days in a week * @param isSingleWeek - decides whether the contiguous logic applies across week boundaries or not * @param firstDayOfWeek - decides which day of week is the first one in the order. */ var isContiguous = function (days, isSingleWeek, firstDayOfWeek) { var daySet = new Set(days); var amountOfNoNeighbors = 0; for (var _i = 0, days_1 = days; _i < days_1.length; _i++) { var day = days_1[_i]; var nextDay = (day + 1) % 7; if (!(daySet.has(nextDay) && (!isSingleWeek || firstDayOfWeek !== nextDay))) { amountOfNoNeighbors++; } } // In case the full week is provided, then each day has a neighbor //, otherwise the last day does not have a neighbor. return amountOfNoNeighbors < 2; }; exports.isContiguous = isContiguous; //# sourceMappingURL=isContiguous.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isRestrictedDate.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isRestrictedDate.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isRestrictedDate = void 0; var dateMath_1 = __webpack_require__(/*! ../dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateMath/dateMath.js"); var isBeforeMinDate_1 = __webpack_require__(/*! ./isBeforeMinDate */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isBeforeMinDate.js"); var isAfterMaxDate_1 = __webpack_require__(/*! ./isAfterMaxDate */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/isAfterMaxDate.js"); /** * Checks if `date` falls into the restricted `options` * @param date - date to check * @param options - restriction options (min date, max date and list of restricted dates) */ var isRestrictedDate = function (date, options) { var restrictedDates = options.restrictedDates, minDate = options.minDate, maxDate = options.maxDate; if (!restrictedDates && !minDate && !maxDate) { return false; } var inRestrictedDates = restrictedDates && restrictedDates.some(function (rd) { return (0, dateMath_1.compareDates)(rd, date); }); return inRestrictedDates || (0, isBeforeMinDate_1.isBeforeMinDate)(date, options) || (0, isAfterMaxDate_1.isAfterMaxDate)(date, options); }; exports.isRestrictedDate = isRestrictedDate; //# sourceMappingURL=isRestrictedDate.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateMath/dateMath.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateMath/dateMath.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDatePartHashValue = exports.getEndDateOfWeek = exports.getStartDateOfWeek = exports.getWeekNumber = exports.getWeekNumbersInMonth = exports.isInDateRangeArray = exports.getDateRangeArray = exports.compareDatePart = exports.compareDates = exports.setMonth = exports.getYearEnd = exports.getYearStart = exports.getMonthEnd = exports.getMonthStart = exports.addYears = exports.addMonths = exports.addWeeks = exports.addDays = void 0; var dateValues_1 = __webpack_require__(/*! ../dateValues/dateValues */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateValues/dateValues.js"); var timeConstants_1 = __webpack_require__(/*! ../dateValues/timeConstants */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateValues/timeConstants.js"); /** * Returns a date offset from the given date by the specified number of days. * @param date - The origin date * @param days - The number of days to offset. 'days' can be negative. * @returns A new Date object offset from the origin date by the given number of days */ function addDays(date, days) { var result = new Date(date.getTime()); result.setDate(result.getDate() + days); return result; } exports.addDays = addDays; /** * Returns a date offset from the given date by the specified number of weeks. * @param date - The origin date * @param weeks - The number of weeks to offset. 'weeks' can be negative. * @returns A new Date object offset from the origin date by the given number of weeks */ function addWeeks(date, weeks) { return addDays(date, weeks * timeConstants_1.TimeConstants.DaysInOneWeek); } exports.addWeeks = addWeeks; /** * Returns a date offset from the given date by the specified number of months. * The method tries to preserve the day-of-month; however, if the new month does not have enough days * to contain the original day-of-month, we'll use the last day of the new month. * @param date - The origin date * @param months - The number of months to offset. 'months' can be negative. * @returns A new Date object offset from the origin date by the given number of months */ function addMonths(date, months) { var result = new Date(date.getTime()); var newMonth = result.getMonth() + months; result.setMonth(newMonth); // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days. // Loop until we back up to a day the new month has. // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo) if (result.getMonth() !== ((newMonth % timeConstants_1.TimeConstants.MonthInOneYear) + timeConstants_1.TimeConstants.MonthInOneYear) % timeConstants_1.TimeConstants.MonthInOneYear) { result = addDays(result, -result.getDate()); } return result; } exports.addMonths = addMonths; /** * Returns a date offset from the given date by the specified number of years. * The method tries to preserve the day-of-month; however, if the new month does not have enough days * to contain the original day-of-month, we'll use the last day of the new month. * @param date - The origin date * @param years - The number of years to offset. 'years' can be negative. * @returns A new Date object offset from the origin date by the given number of years */ function addYears(date, years) { var result = new Date(date.getTime()); result.setFullYear(date.getFullYear() + years); // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days. // Loop until we back up to a day the new month has. // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo) if (result.getMonth() !== ((date.getMonth() % timeConstants_1.TimeConstants.MonthInOneYear) + timeConstants_1.TimeConstants.MonthInOneYear) % timeConstants_1.TimeConstants.MonthInOneYear) { result = addDays(result, -result.getDate()); } return result; } exports.addYears = addYears; /** * Returns a date that is the first day of the month of the provided date. * @param date - The origin date * @returns A new Date object with the day set to the first day of the month. */ function getMonthStart(date) { return new Date(date.getFullYear(), date.getMonth(), 1, 0, 0, 0, 0); } exports.getMonthStart = getMonthStart; /** * Returns a date that is the last day of the month of the provided date. * @param date - The origin date * @returns A new Date object with the day set to the last day of the month. */ function getMonthEnd(date) { return new Date(date.getFullYear(), date.getMonth() + 1, 0, 0, 0, 0, 0); } exports.getMonthEnd = getMonthEnd; /** * Returns a date that is the first day of the year of the provided date. * @param date - The origin date * @returns A new Date object with the day set to the first day of the year. */ function getYearStart(date) { return new Date(date.getFullYear(), 0, 1, 0, 0, 0, 0); } exports.getYearStart = getYearStart; /** * Returns a date that is the last day of the year of the provided date. * @param date - The origin date * @returns A new Date object with the day set to the last day of the year. */ function getYearEnd(date) { return new Date(date.getFullYear() + 1, 0, 0, 0, 0, 0, 0); } exports.getYearEnd = getYearEnd; /** * Returns a date that is a copy of the given date, aside from the month changing to the given month. * The method tries to preserve the day-of-month; however, if the new month does not have enough days * to contain the original day-of-month, we'll use the last day of the new month. * @param date - The origin date * @param month - The 0-based index of the month to set on the date. * @returns A new Date object with the given month set. */ function setMonth(date, month) { return addMonths(date, month - date.getMonth()); } exports.setMonth = setMonth; /** * Compares two dates, and returns true if the two dates (not accounting for time-of-day) are equal. * @returns True if the two dates represent the same date (regardless of time-of-day), false otherwise. */ function compareDates(date1, date2) { if (!date1 && !date2) { return true; } else if (!date1 || !date2) { return false; } else { return (date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate()); } } exports.compareDates = compareDates; /** * Compare the date parts of two dates * @param date1 - The first date to compare * @param date2 - The second date to compare * @returns A negative value if date1 is earlier than date2, 0 if the dates are equal, or a positive value * if date1 is later than date2. */ function compareDatePart(date1, date2) { return getDatePartHashValue(date1) - getDatePartHashValue(date2); } exports.compareDatePart = compareDatePart; /** * Gets the date range array including the specified date. The date range array is calculated as the list * of dates accounting for the specified first day of the week and date range type. * @param date - The input date * @param dateRangeType - The desired date range type, i.e., day, week, month, etc. * @param firstDayOfWeek - The first day of the week. * @param workWeekDays - The allowed days in work week. If not provided, assumes all days are allowed. * @param daysToSelectInDayView - The number of days to include when using dateRangeType === DateRangeType.Day * for multiday view. Defaults to 1 * @returns An array of dates representing the date range containing the specified date. */ function getDateRangeArray(date, dateRangeType, firstDayOfWeek, workWeekDays, daysToSelectInDayView) { if (daysToSelectInDayView === void 0) { daysToSelectInDayView = 1; } var datesArray = []; var startDate; var endDate = null; if (!workWeekDays) { workWeekDays = [dateValues_1.DayOfWeek.Monday, dateValues_1.DayOfWeek.Tuesday, dateValues_1.DayOfWeek.Wednesday, dateValues_1.DayOfWeek.Thursday, dateValues_1.DayOfWeek.Friday]; } daysToSelectInDayView = Math.max(daysToSelectInDayView, 1); switch (dateRangeType) { case dateValues_1.DateRangeType.Day: startDate = getDatePart(date); endDate = addDays(startDate, daysToSelectInDayView); break; case dateValues_1.DateRangeType.Week: case dateValues_1.DateRangeType.WorkWeek: startDate = getStartDateOfWeek(getDatePart(date), firstDayOfWeek); endDate = addDays(startDate, timeConstants_1.TimeConstants.DaysInOneWeek); break; case dateValues_1.DateRangeType.Month: startDate = new Date(date.getFullYear(), date.getMonth(), 1); endDate = addMonths(startDate, 1); break; default: throw new Error('Unexpected object: ' + dateRangeType); } // Populate the dates array with the dates in range var nextDate = startDate; do { if (dateRangeType !== dateValues_1.DateRangeType.WorkWeek) { // push all days not in work week view datesArray.push(nextDate); } else if (workWeekDays.indexOf(nextDate.getDay()) !== -1) { datesArray.push(nextDate); } nextDate = addDays(nextDate, 1); } while (!compareDates(nextDate, endDate)); return datesArray; } exports.getDateRangeArray = getDateRangeArray; /** * Checks whether the specified date is in the given date range. * @param date - The origin date * @param dateRange - An array of dates to do the lookup on * @returns True if the date matches one of the dates in the specified array, false otherwise. */ function isInDateRangeArray(date, dateRange) { for (var _i = 0, dateRange_1 = dateRange; _i < dateRange_1.length; _i++) { var dateInRange = dateRange_1[_i]; if (compareDates(date, dateInRange)) { return true; } } return false; } exports.isInDateRangeArray = isInDateRangeArray; /** * Returns the week number for a date. * Week numbers are 1 - 52 (53) in a year * @param navigatedDate - A date to find the week number for. * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0) * @param firstWeekOfYear - The first week of the year (1-2) * @returns The weeks number array for the current month. */ function getWeekNumbersInMonth(weeksInMonth, firstDayOfWeek, firstWeekOfYear, navigatedDate) { var selectedYear = navigatedDate.getFullYear(); var selectedMonth = navigatedDate.getMonth(); var dayOfMonth = 1; var fistDayOfMonth = new Date(selectedYear, selectedMonth, dayOfMonth); var endOfFirstWeek = dayOfMonth + (firstDayOfWeek + timeConstants_1.TimeConstants.DaysInOneWeek - 1) - adjustWeekDay(firstDayOfWeek, fistDayOfMonth.getDay()); var endOfWeekRange = new Date(selectedYear, selectedMonth, endOfFirstWeek); dayOfMonth = endOfWeekRange.getDate(); var weeksArray = []; for (var i = 0; i < weeksInMonth; i++) { // Get week number for end of week weeksArray.push(getWeekNumber(endOfWeekRange, firstDayOfWeek, firstWeekOfYear)); dayOfMonth += timeConstants_1.TimeConstants.DaysInOneWeek; endOfWeekRange = new Date(selectedYear, selectedMonth, dayOfMonth); } return weeksArray; } exports.getWeekNumbersInMonth = getWeekNumbersInMonth; /** * Returns the week number for a date. * Week numbers are 1 - 52 (53) in a year * @param date - A date to find the week number for. * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0) * @param firstWeekOfYear - The first week of the year (1-2) * @returns The week's number in the year. */ function getWeekNumber(date, firstDayOfWeek, firstWeekOfYear) { // First four-day week of the year - minumum days count var fourDayWeek = 4; switch (firstWeekOfYear) { case dateValues_1.FirstWeekOfYear.FirstFullWeek: return getWeekOfYearFullDays(date, firstDayOfWeek, timeConstants_1.TimeConstants.DaysInOneWeek); case dateValues_1.FirstWeekOfYear.FirstFourDayWeek: return getWeekOfYearFullDays(date, firstDayOfWeek, fourDayWeek); default: return getFirstDayWeekOfYear(date, firstDayOfWeek); } } exports.getWeekNumber = getWeekNumber; /** * Gets the date for the first day of the week based on the given date assuming * the specified first day of the week. * @param date - The date to find the beginning of the week date for. * @returns A new date object representing the first day of the week containing the input date. */ function getStartDateOfWeek(date, firstDayOfWeek) { var daysOffset = firstDayOfWeek - date.getDay(); if (daysOffset > 0) { // If first day of week is > date, go 1 week back, to ensure resulting date is in the past. daysOffset -= timeConstants_1.TimeConstants.DaysInOneWeek; } return addDays(date, daysOffset); } exports.getStartDateOfWeek = getStartDateOfWeek; /** * Gets the date for the last day of the week based on the given date assuming * the specified first day of the week. * @param date - The date to find the beginning of the week date for. * @returns A new date object representing the first day of the week containing the input date. */ function getEndDateOfWeek(date, firstDayOfWeek) { var lastDayOfWeek = firstDayOfWeek - 1 >= 0 ? firstDayOfWeek - 1 : timeConstants_1.TimeConstants.DaysInOneWeek - 1; var daysOffset = lastDayOfWeek - date.getDay(); if (daysOffset < 0) { // If last day of week is < date, go 1 week forward, to ensure resulting date is in the future. daysOffset += timeConstants_1.TimeConstants.DaysInOneWeek; } return addDays(date, daysOffset); } exports.getEndDateOfWeek = getEndDateOfWeek; /** * Gets a new date with the time portion zeroed out, i.e., set to midnight * @param date - The origin date * @returns A new date with the time set to midnight */ function getDatePart(date) { return new Date(date.getFullYear(), date.getMonth(), date.getDate()); } /** * Helper function to assist in date comparisons */ function getDatePartHashValue(date) { // Generate date hash value created as sum of Date (up to 31 = 5 bits), Month (up to 11 = 4 bits) and Year. // eslint-disable-next-line no-bitwise return date.getDate() + (date.getMonth() << 5) + (date.getFullYear() << 9); } exports.getDatePartHashValue = getDatePartHashValue; /** * Helper function for `getWeekNumber`. * Returns week number for a date. * @param date - current selected date. * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0) * @param numberOfFullDays - week settings. * @returns The week's number in the year. */ function getWeekOfYearFullDays(date, firstDayOfWeek, numberOfFullDays) { var dayOfYear = getDayOfYear(date) - 1; var num = date.getDay() - (dayOfYear % timeConstants_1.TimeConstants.DaysInOneWeek); var lastDayOfPrevYear = new Date(date.getFullYear() - 1, dateValues_1.MonthOfYear.December, 31); var daysInYear = getDayOfYear(lastDayOfPrevYear) - 1; var num2 = (firstDayOfWeek - num + 2 * timeConstants_1.TimeConstants.DaysInOneWeek) % timeConstants_1.TimeConstants.DaysInOneWeek; if (num2 !== 0 && num2 >= numberOfFullDays) { num2 -= timeConstants_1.TimeConstants.DaysInOneWeek; } var num3 = dayOfYear - num2; if (num3 < 0) { num -= daysInYear % timeConstants_1.TimeConstants.DaysInOneWeek; num2 = (firstDayOfWeek - num + 2 * timeConstants_1.TimeConstants.DaysInOneWeek) % timeConstants_1.TimeConstants.DaysInOneWeek; if (num2 !== 0 && num2 + 1 >= numberOfFullDays) { num2 -= timeConstants_1.TimeConstants.DaysInOneWeek; } num3 = daysInYear - num2; } return Math.floor(num3 / timeConstants_1.TimeConstants.DaysInOneWeek + 1); } /** * Helper function for `getWeekNumber`. * Returns week number for a date. * @param date - current selected date. * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0) * @returns The week's number in the year. */ function getFirstDayWeekOfYear(date, firstDayOfWeek) { var num = getDayOfYear(date) - 1; var num2 = date.getDay() - (num % timeConstants_1.TimeConstants.DaysInOneWeek); var num3 = (num2 - firstDayOfWeek + 2 * timeConstants_1.TimeConstants.DaysInOneWeek) % timeConstants_1.TimeConstants.DaysInOneWeek; return Math.floor((num + num3) / timeConstants_1.TimeConstants.DaysInOneWeek + 1); } /** * Helper function for `getWeekNumber`. * Returns adjusted week day number when `firstDayOfWeek` is other than Sunday. * For Week Day Number comparison checks * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0) * @param dateWeekDay - shifts number forward to 1 week in case passed as true * @returns The day of week adjusted to `firstDayOfWeek`; e.g. when `firstDayOfWeek` is Monday (1), * Sunday becomes 7. */ function adjustWeekDay(firstDayOfWeek, dateWeekDay) { return firstDayOfWeek !== dateValues_1.DayOfWeek.Sunday && dateWeekDay < firstDayOfWeek ? dateWeekDay + timeConstants_1.TimeConstants.DaysInOneWeek : dateWeekDay; } /** * Returns the day number for a date in a year: * the number of days since January 1st in the particular year. * @param date - A date to find the day number for. * @returns The day's number in the year. */ function getDayOfYear(date) { var month = date.getMonth(); var year = date.getFullYear(); var daysUntilDate = 0; for (var i = 0; i < month; i++) { daysUntilDate += daysInMonth(i + 1, year); } daysUntilDate += date.getDate(); return daysUntilDate; } /** * Returns the number of days in the month * @param month - The month number to target (months 1-12). * @param year - The year to target. * @returns The number of days in the month. */ function daysInMonth(month, year) { return new Date(year, month, 0).getDate(); } //# sourceMappingURL=dateMath.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateValues/dateValues.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateValues/dateValues.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DAYS_IN_WEEK = exports.DateRangeType = exports.FirstWeekOfYear = exports.MonthOfYear = exports.DayOfWeek = void 0; /** * The days of the week * {@docCategory DateTimeUtilities} */ var DayOfWeek; (function (DayOfWeek) { DayOfWeek[DayOfWeek["Sunday"] = 0] = "Sunday"; DayOfWeek[DayOfWeek["Monday"] = 1] = "Monday"; DayOfWeek[DayOfWeek["Tuesday"] = 2] = "Tuesday"; DayOfWeek[DayOfWeek["Wednesday"] = 3] = "Wednesday"; DayOfWeek[DayOfWeek["Thursday"] = 4] = "Thursday"; DayOfWeek[DayOfWeek["Friday"] = 5] = "Friday"; DayOfWeek[DayOfWeek["Saturday"] = 6] = "Saturday"; })(DayOfWeek = exports.DayOfWeek || (exports.DayOfWeek = {})); /** * The months * {@docCategory DateTimeUtilities} */ var MonthOfYear; (function (MonthOfYear) { MonthOfYear[MonthOfYear["January"] = 0] = "January"; MonthOfYear[MonthOfYear["February"] = 1] = "February"; MonthOfYear[MonthOfYear["March"] = 2] = "March"; MonthOfYear[MonthOfYear["April"] = 3] = "April"; MonthOfYear[MonthOfYear["May"] = 4] = "May"; MonthOfYear[MonthOfYear["June"] = 5] = "June"; MonthOfYear[MonthOfYear["July"] = 6] = "July"; MonthOfYear[MonthOfYear["August"] = 7] = "August"; MonthOfYear[MonthOfYear["September"] = 8] = "September"; MonthOfYear[MonthOfYear["October"] = 9] = "October"; MonthOfYear[MonthOfYear["November"] = 10] = "November"; MonthOfYear[MonthOfYear["December"] = 11] = "December"; })(MonthOfYear = exports.MonthOfYear || (exports.MonthOfYear = {})); /** * First week of the year settings types * {@docCategory DateTimeUtilities} */ var FirstWeekOfYear; (function (FirstWeekOfYear) { FirstWeekOfYear[FirstWeekOfYear["FirstDay"] = 0] = "FirstDay"; FirstWeekOfYear[FirstWeekOfYear["FirstFullWeek"] = 1] = "FirstFullWeek"; FirstWeekOfYear[FirstWeekOfYear["FirstFourDayWeek"] = 2] = "FirstFourDayWeek"; })(FirstWeekOfYear = exports.FirstWeekOfYear || (exports.FirstWeekOfYear = {})); /** * The supported date range types * {@docCategory DateTimeUtilities} */ var DateRangeType; (function (DateRangeType) { DateRangeType[DateRangeType["Day"] = 0] = "Day"; DateRangeType[DateRangeType["Week"] = 1] = "Week"; DateRangeType[DateRangeType["Month"] = 2] = "Month"; DateRangeType[DateRangeType["WorkWeek"] = 3] = "WorkWeek"; })(DateRangeType = exports.DateRangeType || (exports.DateRangeType = {})); exports.DAYS_IN_WEEK = 7; //# sourceMappingURL=dateValues.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateValues/timeConstants.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateValues/timeConstants.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TimeConstants = void 0; exports.TimeConstants = { MillisecondsInOneDay: 86400000, MillisecondsIn1Sec: 1000, MillisecondsIn1Min: 60000, MillisecondsIn30Mins: 1800000, MillisecondsIn1Hour: 3600000, MinutesInOneDay: 1440, MinutesInOneHour: 60, DaysInOneWeek: 7, MonthInOneYear: 12, HoursInOneDay: 24, SecondsInOneMinute: 60, OffsetTo24HourFormat: 12, /** * Matches a time string. Groups: * 1. hours (with or without leading 0) * 2. minutes * 3. seconds (optional) * 4. meridiem (am/pm, case-insensitive, optional) */ TimeFormatRegex: /^(\d\d?):(\d\d):?(\d\d)? ?([ap]m)?/i, }; //# sourceMappingURL=timeConstants.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./dateMath/dateMath */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateMath/dateMath.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./dateValues/dateValues */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateValues/dateValues.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./dateValues/timeConstants */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateValues/timeConstants.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./dateFormatting/index */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateFormatting/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./dateGrid/index */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateGrid/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./timeMath/timeMath */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/timeMath/timeMath.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./timeFormatting/index */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/timeFormatting/index.js"), exports); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/timeFormatting/index.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/timeFormatting/index.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.formatTimeString = void 0; /** * Format a date object to a localized time string using the browser's default locale * @param date - Input date to format * @param showSeconds - Whether to show seconds in the formatted string * @param useHour12 - Whether to use 12-hour time */ var formatTimeString = function (date, showSeconds, useHour12) { var localeTimeString = date.toLocaleTimeString([], { hour: 'numeric', minute: '2-digit', second: showSeconds ? '2-digit' : undefined, hour12: useHour12, }); if (!useHour12 && localeTimeString.slice(0, 2) === '24') { localeTimeString = '00' + localeTimeString.slice(2); } return localeTimeString; }; exports.formatTimeString = formatTimeString; //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/timeMath/timeMath.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/timeMath/timeMath.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDateFromTimeSelection = exports.ceilMinuteToIncrement = exports.addMinutes = void 0; var timeConstants_1 = __webpack_require__(/*! ../dateValues/timeConstants */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/dateValues/timeConstants.js"); /** * Returns a date offset from the given date by the specified number of minutes. * @param date - The origin date * @param minutes - The number of minutes to offset. 'minutes' can be negative. * @returns A new Date object offset from the origin date by the given number of minutes */ var addMinutes = function (date, minutes) { var result = new Date(date.getTime()); result.setTime(result.getTime() + minutes * timeConstants_1.TimeConstants.MinutesInOneHour * timeConstants_1.TimeConstants.MillisecondsIn1Sec); return result; }; exports.addMinutes = addMinutes; /** * Rounds the date's minute up to the next available increment. For example, if `date` has time 1:21 * and `increments` is 5, the resulting time will be 1:25. * @param date - Date to ceil minutes * @param increments - Time increments * @returns Date with ceiled minute */ var ceilMinuteToIncrement = function (date, increments) { var result = new Date(date.getTime()); var minute = result.getMinutes(); if (timeConstants_1.TimeConstants.MinutesInOneHour % increments) { result.setMinutes(0); } else { var times = timeConstants_1.TimeConstants.MinutesInOneHour / increments; for (var i = 1; i <= times; i++) { if (minute > increments * (i - 1) && minute <= increments * i) { minute = increments * i; break; } } result.setMinutes(minute); } return result; }; exports.ceilMinuteToIncrement = ceilMinuteToIncrement; /** * Returns a date object from the selected time. * @param useHour12 - If the time picker uses 12 or 24 hour formatting * @param dateStartAnchor - The baseline date to calculate the offset of the selected time * @param selectedTime - A string representing the user selected time * @returns A new date object offset from the baseDate using the selected time. */ var getDateFromTimeSelection = function (useHour12, dateStartAnchor, selectedTime) { var _a = timeConstants_1.TimeConstants.TimeFormatRegex.exec(selectedTime) || [], selectedHours = _a[1], selectedMinutes = _a[2], selectedSeconds = _a[3], selectedAp = _a[4]; var hours = +selectedHours; var minutes = +selectedMinutes; var seconds = selectedSeconds ? +selectedSeconds : 0; if (useHour12 && selectedAp) { if (selectedAp.toLowerCase() === 'pm' && hours !== timeConstants_1.TimeConstants.OffsetTo24HourFormat) { hours += timeConstants_1.TimeConstants.OffsetTo24HourFormat; } else if (selectedAp.toLowerCase() === 'am' && hours === timeConstants_1.TimeConstants.OffsetTo24HourFormat) { hours -= timeConstants_1.TimeConstants.OffsetTo24HourFormat; } } var hoursOffset; if (dateStartAnchor.getHours() > hours || (dateStartAnchor.getHours() === hours && dateStartAnchor.getMinutes() > minutes)) { hoursOffset = timeConstants_1.TimeConstants.HoursInOneDay - dateStartAnchor.getHours() + hours; } else { hoursOffset = Math.abs(dateStartAnchor.getHours() - hours); } var offset = timeConstants_1.TimeConstants.MillisecondsIn1Sec * timeConstants_1.TimeConstants.MinutesInOneHour * hoursOffset * timeConstants_1.TimeConstants.SecondsInOneMinute + seconds * timeConstants_1.TimeConstants.MillisecondsIn1Sec; var date = new Date(dateStartAnchor.getTime() + offset); date.setMinutes(minutes); date.setSeconds(seconds); return date; }; exports.getDateFromTimeSelection = getDateFromTimeSelection; //# sourceMappingURL=timeMath.js.map /***/ }), /***/ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/version.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/date-time-utilities/lib-commonjs/version.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. var set_version_1 = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib-commonjs/index.js"); (0, set_version_1.setVersion)('@fluentui/date-time-utilities', '8.5.13'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/IVirtualElement.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/IVirtualElement.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=IVirtualElement.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/elementContains.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/elementContains.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.elementContains = void 0; var getParent_1 = __webpack_require__(/*! ./getParent */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/getParent.js"); /** * Determines whether or not a parent element contains a given child element. * If `allowVirtualParents` is true, this method may return `true` if the child * has the parent in its virtual element hierarchy. * * @public */ function elementContains(parent, child, allowVirtualParents) { if (allowVirtualParents === void 0) { allowVirtualParents = true; } var isContained = false; if (parent && child) { if (allowVirtualParents) { if (parent === child) { isContained = true; } else { isContained = false; while (child) { var nextParent = (0, getParent_1.getParent)(child); if (nextParent === parent) { isContained = true; break; } child = nextParent; } } } else if (parent.contains) { isContained = parent.contains(child); } } return isContained; } exports.elementContains = elementContains; //# sourceMappingURL=elementContains.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/elementContainsAttribute.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/elementContainsAttribute.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.elementContainsAttribute = void 0; var findElementRecursive_1 = __webpack_require__(/*! ./findElementRecursive */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/findElementRecursive.js"); /** * Determines if an element, or any of its ancestors, contain the given attribute * @param element - element to start searching at * @param attribute - the attribute to search for * @returns the value of the first instance found */ function elementContainsAttribute(element, attribute) { var elementMatch = (0, findElementRecursive_1.findElementRecursive)(element, function (testElement) { return testElement.hasAttribute(attribute); }); return elementMatch && elementMatch.getAttribute(attribute); } exports.elementContainsAttribute = elementContainsAttribute; //# sourceMappingURL=elementContainsAttribute.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/findElementRecursive.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/findElementRecursive.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.findElementRecursive = void 0; var getParent_1 = __webpack_require__(/*! ./getParent */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/getParent.js"); /** * Finds the first parent element where the matchFunction returns true * @param element - element to start searching at * @param matchFunction - the function that determines if the element is a match * @returns the matched element or null no match was found */ function findElementRecursive(element, matchFunction) { if (!element || element === document.body) { return null; } return matchFunction(element) ? element : findElementRecursive((0, getParent_1.getParent)(element), matchFunction); } exports.findElementRecursive = findElementRecursive; //# sourceMappingURL=findElementRecursive.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/getChildren.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/getChildren.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getChildren = void 0; var isVirtualElement_1 = __webpack_require__(/*! ./isVirtualElement */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/isVirtualElement.js"); /** * Gets the elements which are child elements of the given element. * If `allowVirtualChildren` is `true`, this method enumerates virtual child elements * after the original children. * @param parent - The element to get the children of. * @param allowVirtualChildren - true if the method should enumerate virtual child elements. */ function getChildren(parent, allowVirtualChildren) { if (allowVirtualChildren === void 0) { allowVirtualChildren = true; } var children = []; if (parent) { for (var i = 0; i < parent.children.length; i++) { children.push(parent.children.item(i)); } if (allowVirtualChildren && (0, isVirtualElement_1.isVirtualElement)(parent)) { children.push.apply(children, parent._virtual.children); } } return children; } exports.getChildren = getChildren; //# sourceMappingURL=getChildren.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/getParent.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/getParent.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getParent = void 0; var getVirtualParent_1 = __webpack_require__(/*! ./getVirtualParent */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/getVirtualParent.js"); /** * Gets the element which is the parent of a given element. * If `allowVirtuaParents` is `true`, this method prefers the virtual parent over * real DOM parent when present. * * @public */ function getParent(child, allowVirtualParents) { if (allowVirtualParents === void 0) { allowVirtualParents = true; } return (child && ((allowVirtualParents && (0, getVirtualParent_1.getVirtualParent)(child)) || (child.parentNode && child.parentNode))); } exports.getParent = getParent; //# sourceMappingURL=getParent.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/getVirtualParent.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/getVirtualParent.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getVirtualParent = void 0; var isVirtualElement_1 = __webpack_require__(/*! ./isVirtualElement */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/isVirtualElement.js"); /** * Gets the virtual parent given the child element, if it exists. * * @public */ function getVirtualParent(child) { var parent; if (child && (0, isVirtualElement_1.isVirtualElement)(child)) { parent = child._virtual.parent; } return parent; } exports.getVirtualParent = getVirtualParent; //# sourceMappingURL=getVirtualParent.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/index.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./IVirtualElement */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/IVirtualElement.js"), exports); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./elementContains */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/elementContains.js"), exports); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./elementContainsAttribute */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/elementContainsAttribute.js"), exports); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./findElementRecursive */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/findElementRecursive.js"), exports); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./getChildren */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/getChildren.js"), exports); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./getParent */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/getParent.js"), exports); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./getVirtualParent */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/getVirtualParent.js"), exports); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./isVirtualElement */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/isVirtualElement.js"), exports); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./portalContainsElement */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/portalContainsElement.js"), exports); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./setPortalAttribute */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/setPortalAttribute.js"), exports); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./setVirtualParent */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/setVirtualParent.js"), exports); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/isVirtualElement.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/isVirtualElement.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.isVirtualElement = void 0; /** * Determines whether or not an element has the virtual hierarchy extension. * * @public */ function isVirtualElement(element) { return element && !!element._virtual; } exports.isVirtualElement = isVirtualElement; //# sourceMappingURL=isVirtualElement.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/portalContainsElement.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/portalContainsElement.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.portalContainsElement = void 0; var findElementRecursive_1 = __webpack_require__(/*! ./findElementRecursive */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/findElementRecursive.js"); var setPortalAttribute_1 = __webpack_require__(/*! ./setPortalAttribute */ "./node_modules/@fluentui/dom-utilities/lib-commonjs/setPortalAttribute.js"); /** * Determine whether a target is within a portal from perspective of root or optional parent. * This function only works against portal components that use the setPortalAttribute function. * If both parent and child are within the same portal this function will return false. * @param target - Element to query portal containment status of. * @param parent - Optional parent perspective. Search for containing portal stops at parent * (or root if parent is undefined or invalid.) */ function portalContainsElement(target, parent) { var elementMatch = (0, findElementRecursive_1.findElementRecursive)(target, function (testElement) { return parent === testElement || testElement.hasAttribute(setPortalAttribute_1.DATA_PORTAL_ATTRIBUTE); }); return elementMatch !== null && elementMatch.hasAttribute(setPortalAttribute_1.DATA_PORTAL_ATTRIBUTE); } exports.portalContainsElement = portalContainsElement; //# sourceMappingURL=portalContainsElement.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/setPortalAttribute.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/setPortalAttribute.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setPortalAttribute = exports.DATA_PORTAL_ATTRIBUTE = void 0; exports.DATA_PORTAL_ATTRIBUTE = 'data-portal-element'; /** * Identify element as a portal by setting an attribute. * @param element - Element to mark as a portal. */ function setPortalAttribute(element) { element.setAttribute(exports.DATA_PORTAL_ATTRIBUTE, 'true'); } exports.setPortalAttribute = setPortalAttribute; //# sourceMappingURL=setPortalAttribute.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/setVirtualParent.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/setVirtualParent.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setVirtualParent = void 0; /** * Sets the virtual parent of an element. * Pass `undefined` as the `parent` to clear the virtual parent. * * @public */ function setVirtualParent(child, parent) { var virtualChild = child; var virtualParent = parent; if (!virtualChild._virtual) { virtualChild._virtual = { children: [], }; } var oldParent = virtualChild._virtual.parent; if (oldParent && oldParent !== parent) { // Remove the child from its old parent. var index = oldParent._virtual.children.indexOf(virtualChild); if (index > -1) { oldParent._virtual.children.splice(index, 1); } } virtualChild._virtual.parent = virtualParent || undefined; if (virtualParent) { if (!virtualParent._virtual) { virtualParent._virtual = { children: [], }; } virtualParent._virtual.children.push(virtualChild); } } exports.setVirtualParent = setVirtualParent; //# sourceMappingURL=setVirtualParent.js.map /***/ }), /***/ "./node_modules/@fluentui/dom-utilities/lib-commonjs/version.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/dom-utilities/lib-commonjs/version.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. var set_version_1 = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib-commonjs/index.js"); (0, set_version_1.setVersion)('@fluentui/dom-utilities', '2.2.11'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-0.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-0.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-0\"", src: "url('".concat(baseUrl, "fabric-icons-0-467ee27f.woff') format('woff')") }, icons: { 'PageLink': '\uE302', 'CommentSolid': '\uE30E', 'ChangeEntitlements': '\uE310', 'Installation': '\uE311', 'WebAppBuilderModule': '\uE313', 'WebAppBuilderFragment': '\uE314', 'WebAppBuilderSlot': '\uE315', 'BullseyeTargetEdit': '\uE319', 'WebAppBuilderFragmentCreate': '\uE31B', 'PageData': '\uE31C', 'PageHeaderEdit': '\uE31D', 'ProductList': '\uE31E', 'UnpublishContent': '\uE31F', 'DependencyAdd': '\uE344', 'DependencyRemove': '\uE345', 'EntitlementPolicy': '\uE346', 'EntitlementRedemption': '\uE347', 'SchoolDataSyncLogo': '\uE34C', 'PinSolid12': '\uE352', 'PinSolidOff12': '\uE353', 'AddLink': '\uE35E', 'SharepointAppIcon16': '\uE365', 'DataflowsLink': '\uE366', 'TimePicker': '\uE367', 'UserWarning': '\uE368', 'ComplianceAudit': '\uE369', 'InternetSharing': '\uE704', 'Brightness': '\uE706', 'MapPin': '\uE707', 'Airplane': '\uE709', 'Tablet': '\uE70A', 'QuickNote': '\uE70B', 'Video': '\uE714', 'People': '\uE716', 'Phone': '\uE717', 'Pin': '\uE718', 'Shop': '\uE719', 'Stop': '\uE71A', 'Link': '\uE71B', 'AllApps': '\uE71D', 'Zoom': '\uE71E', 'ZoomOut': '\uE71F', 'Microphone': '\uE720', 'Camera': '\uE722', 'Attach': '\uE723', 'Send': '\uE724', 'FavoriteList': '\uE728', 'PageSolid': '\uE729', 'Forward': '\uE72A', 'Back': '\uE72B', 'Refresh': '\uE72C', 'Lock': '\uE72E', 'ReportHacked': '\uE730', 'EMI': '\uE731', 'MiniLink': '\uE732', 'Blocked': '\uE733', 'ReadingMode': '\uE736', 'Favicon': '\uE737', 'Remove': '\uE738', 'Checkbox': '\uE739', 'CheckboxComposite': '\uE73A', 'CheckboxFill': '\uE73B', 'CheckboxIndeterminate': '\uE73C', 'CheckboxCompositeReversed': '\uE73D', 'BackToWindow': '\uE73F', 'FullScreen': '\uE740', 'Print': '\uE749', 'Up': '\uE74A', 'Down': '\uE74B', 'OEM': '\uE74C', 'Save': '\uE74E', 'ReturnKey': '\uE751', 'Cloud': '\uE753', 'Flashlight': '\uE754', 'CommandPrompt': '\uE756', 'Sad': '\uE757', 'RealEstate': '\uE758', 'SIPMove': '\uE759', 'EraseTool': '\uE75C', 'GripperTool': '\uE75E', 'Dialpad': '\uE75F', 'PageLeft': '\uE760', 'PageRight': '\uE761', 'MultiSelect': '\uE762', 'KeyboardClassic': '\uE765', 'Play': '\uE768', 'Pause': '\uE769', 'InkingTool': '\uE76D', 'Emoji2': '\uE76E', 'GripperBarHorizontal': '\uE76F', 'System': '\uE770', 'Personalize': '\uE771', 'SearchAndApps': '\uE773', 'Globe': '\uE774', 'EaseOfAccess': '\uE776', 'ContactInfo': '\uE779', 'Unpin': '\uE77A', 'Contact': '\uE77B', 'Memo': '\uE77C', 'IncomingCall': '\uE77E' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-0.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-1.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-1.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-1\"", src: "url('".concat(baseUrl, "fabric-icons-1-4d521695.woff') format('woff')") }, icons: { 'Paste': '\uE77F', 'WindowsLogo': '\uE782', 'Error': '\uE783', 'GripperBarVertical': '\uE784', 'Unlock': '\uE785', 'Slideshow': '\uE786', 'Trim': '\uE78A', 'AutoEnhanceOn': '\uE78D', 'AutoEnhanceOff': '\uE78E', 'Color': '\uE790', 'SaveAs': '\uE792', 'Light': '\uE793', 'Filters': '\uE795', 'AspectRatio': '\uE799', 'Contrast': '\uE7A1', 'Redo': '\uE7A6', 'Crop': '\uE7A8', 'PhotoCollection': '\uE7AA', 'Album': '\uE7AB', 'Rotate': '\uE7AD', 'PanoIndicator': '\uE7B0', 'Translate': '\uE7B2', 'RedEye': '\uE7B3', 'ViewOriginal': '\uE7B4', 'ThumbnailView': '\uE7B6', 'Package': '\uE7B8', 'Telemarketer': '\uE7B9', 'Warning': '\uE7BA', 'Financial': '\uE7BB', 'Education': '\uE7BE', 'ShoppingCart': '\uE7BF', 'Train': '\uE7C0', 'Move': '\uE7C2', 'TouchPointer': '\uE7C9', 'Merge': '\uE7D5', 'TurnRight': '\uE7DB', 'Ferry': '\uE7E3', 'Highlight': '\uE7E6', 'PowerButton': '\uE7E8', 'Tab': '\uE7E9', 'Admin': '\uE7EF', 'TVMonitor': '\uE7F4', 'Speakers': '\uE7F5', 'Game': '\uE7FC', 'HorizontalTabKey': '\uE7FD', 'UnstackSelected': '\uE7FE', 'StackIndicator': '\uE7FF', 'Nav2DMapView': '\uE800', 'StreetsideSplitMinimize': '\uE802', 'Car': '\uE804', 'Bus': '\uE806', 'EatDrink': '\uE807', 'SeeDo': '\uE808', 'LocationCircle': '\uE80E', 'Home': '\uE80F', 'SwitcherStartEnd': '\uE810', 'ParkingLocation': '\uE811', 'IncidentTriangle': '\uE814', 'Touch': '\uE815', 'MapDirections': '\uE816', 'CaretHollow': '\uE817', 'CaretSolid': '\uE818', 'History': '\uE81C', 'Location': '\uE81D', 'MapLayers': '\uE81E', 'SearchNearby': '\uE820', 'Work': '\uE821', 'Recent': '\uE823', 'Hotel': '\uE824', 'Bank': '\uE825', 'LocationDot': '\uE827', 'Dictionary': '\uE82D', 'ChromeBack': '\uE830', 'FolderOpen': '\uE838', 'PinnedFill': '\uE842', 'RevToggleKey': '\uE845', 'USB': '\uE88E', 'Previous': '\uE892', 'Next': '\uE893', 'Sync': '\uE895', 'Help': '\uE897', 'Emoji': '\uE899', 'MailForward': '\uE89C', 'ClosePane': '\uE89F', 'OpenPane': '\uE8A0', 'PreviewLink': '\uE8A1', 'ZoomIn': '\uE8A3', 'Bookmarks': '\uE8A4', 'Document': '\uE8A5', 'ProtectedDocument': '\uE8A6', 'OpenInNewWindow': '\uE8A7', 'MailFill': '\uE8A8', 'ViewAll': '\uE8A9', 'Switch': '\uE8AB', 'Rename': '\uE8AC', 'Go': '\uE8AD', 'Remote': '\uE8AF', 'SelectAll': '\uE8B3', 'Orientation': '\uE8B4', 'Import': '\uE8B5' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-1.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-10.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-10.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-10\"", src: "url('".concat(baseUrl, "fabric-icons-10-c4ded8e4.woff') format('woff')") }, icons: { 'ViewListGroup': '\uF248', 'ViewListTree': '\uF249', 'TriggerAuto': '\uF24A', 'TriggerUser': '\uF24B', 'PivotChart': '\uF24C', 'StackedBarChart': '\uF24D', 'StackedLineChart': '\uF24E', 'BuildQueue': '\uF24F', 'BuildQueueNew': '\uF250', 'UserFollowed': '\uF25C', 'ContactLink': '\uF25F', 'Stack': '\uF26F', 'Bullseye': '\uF272', 'VennDiagram': '\uF273', 'FiveTileGrid': '\uF274', 'FocalPoint': '\uF277', 'Insert': '\uF278', 'RingerRemove': '\uF279', 'TeamsLogoInverse': '\uF27A', 'TeamsLogo': '\uF27B', 'TeamsLogoFill': '\uF27C', 'SkypeForBusinessLogoFill': '\uF27D', 'SharepointLogo': '\uF27E', 'SharepointLogoFill': '\uF27F', 'DelveLogo': '\uF280', 'DelveLogoFill': '\uF281', 'OfficeVideoLogo': '\uF282', 'OfficeVideoLogoFill': '\uF283', 'ExchangeLogo': '\uF284', 'ExchangeLogoFill': '\uF285', 'Signin': '\uF286', 'DocumentApproval': '\uF28B', 'CloneToDesktop': '\uF28C', 'InstallToDrive': '\uF28D', 'Blur': '\uF28E', 'Build': '\uF28F', 'ProcessMetaTask': '\uF290', 'BranchFork2': '\uF291', 'BranchLocked': '\uF292', 'BranchCommit': '\uF293', 'BranchCompare': '\uF294', 'BranchMerge': '\uF295', 'BranchPullRequest': '\uF296', 'BranchSearch': '\uF297', 'BranchShelveset': '\uF298', 'RawSource': '\uF299', 'MergeDuplicate': '\uF29A', 'RowsGroup': '\uF29B', 'RowsChild': '\uF29C', 'Deploy': '\uF29D', 'Redeploy': '\uF29E', 'ServerEnviroment': '\uF29F', 'VisioDiagram': '\uF2A0', 'HighlightMappedShapes': '\uF2A1', 'TextCallout': '\uF2A2', 'IconSetsFlag': '\uF2A4', 'VisioLogo': '\uF2A7', 'VisioLogoFill': '\uF2A8', 'VisioDocument': '\uF2A9', 'TimelineProgress': '\uF2AA', 'TimelineDelivery': '\uF2AB', 'Backlog': '\uF2AC', 'TeamFavorite': '\uF2AD', 'TaskGroup': '\uF2AE', 'TaskGroupMirrored': '\uF2AF', 'ScopeTemplate': '\uF2B0', 'AssessmentGroupTemplate': '\uF2B1', 'NewTeamProject': '\uF2B2', 'CommentAdd': '\uF2B3', 'CommentNext': '\uF2B4', 'CommentPrevious': '\uF2B5', 'ShopServer': '\uF2B6', 'LocaleLanguage': '\uF2B7', 'QueryList': '\uF2B8', 'UserSync': '\uF2B9', 'UserPause': '\uF2BA', 'StreamingOff': '\uF2BB', 'ArrowTallUpLeft': '\uF2BD', 'ArrowTallUpRight': '\uF2BE', 'ArrowTallDownLeft': '\uF2BF', 'ArrowTallDownRight': '\uF2C0', 'FieldEmpty': '\uF2C1', 'FieldFilled': '\uF2C2', 'FieldChanged': '\uF2C3', 'FieldNotChanged': '\uF2C4', 'RingerOff': '\uF2C5', 'PlayResume': '\uF2C6', 'BulletedList2': '\uF2C7', 'BulletedList2Mirrored': '\uF2C8', 'ImageCrosshair': '\uF2C9', 'GitGraph': '\uF2CA', 'Repo': '\uF2CB', 'RepoSolid': '\uF2CC', 'FolderQuery': '\uF2CD', 'FolderList': '\uF2CE', 'FolderListMirrored': '\uF2CF', 'LocationOutline': '\uF2D0', 'POISolid': '\uF2D1', 'CalculatorNotEqualTo': '\uF2D2', 'BoxSubtractSolid': '\uF2D3' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-10.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-11.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-11.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-11\"", src: "url('".concat(baseUrl, "fabric-icons-11-2a8393d6.woff') format('woff')") }, icons: { 'BoxAdditionSolid': '\uF2D4', 'BoxMultiplySolid': '\uF2D5', 'BoxPlaySolid': '\uF2D6', 'BoxCheckmarkSolid': '\uF2D7', 'CirclePauseSolid': '\uF2D8', 'CirclePause': '\uF2D9', 'MSNVideosSolid': '\uF2DA', 'CircleStopSolid': '\uF2DB', 'CircleStop': '\uF2DC', 'NavigateBack': '\uF2DD', 'NavigateBackMirrored': '\uF2DE', 'NavigateForward': '\uF2DF', 'NavigateForwardMirrored': '\uF2E0', 'UnknownSolid': '\uF2E1', 'UnknownMirroredSolid': '\uF2E2', 'CircleAddition': '\uF2E3', 'CircleAdditionSolid': '\uF2E4', 'FilePDB': '\uF2E5', 'FileTemplate': '\uF2E6', 'FileSQL': '\uF2E7', 'FileJAVA': '\uF2E8', 'FileASPX': '\uF2E9', 'FileCSS': '\uF2EA', 'FileSass': '\uF2EB', 'FileLess': '\uF2EC', 'FileHTML': '\uF2ED', 'JavaScriptLanguage': '\uF2EE', 'CSharpLanguage': '\uF2EF', 'CSharp': '\uF2F0', 'VisualBasicLanguage': '\uF2F1', 'VB': '\uF2F2', 'CPlusPlusLanguage': '\uF2F3', 'CPlusPlus': '\uF2F4', 'FSharpLanguage': '\uF2F5', 'FSharp': '\uF2F6', 'TypeScriptLanguage': '\uF2F7', 'PythonLanguage': '\uF2F8', 'PY': '\uF2F9', 'CoffeeScript': '\uF2FA', 'MarkDownLanguage': '\uF2FB', 'FullWidth': '\uF2FE', 'FullWidthEdit': '\uF2FF', 'Plug': '\uF300', 'PlugSolid': '\uF301', 'PlugConnected': '\uF302', 'PlugDisconnected': '\uF303', 'UnlockSolid': '\uF304', 'Variable': '\uF305', 'Parameter': '\uF306', 'CommentUrgent': '\uF307', 'Storyboard': '\uF308', 'DiffInline': '\uF309', 'DiffSideBySide': '\uF30A', 'ImageDiff': '\uF30B', 'ImagePixel': '\uF30C', 'FileBug': '\uF30D', 'FileCode': '\uF30E', 'FileComment': '\uF30F', 'BusinessHoursSign': '\uF310', 'FileImage': '\uF311', 'FileSymlink': '\uF312', 'AutoFillTemplate': '\uF313', 'WorkItem': '\uF314', 'WorkItemBug': '\uF315', 'LogRemove': '\uF316', 'ColumnOptions': '\uF317', 'Packages': '\uF318', 'BuildIssue': '\uF319', 'AssessmentGroup': '\uF31A', 'VariableGroup': '\uF31B', 'FullHistory': '\uF31C', 'Wheelchair': '\uF31F', 'SingleColumnEdit': '\uF321', 'DoubleColumnEdit': '\uF322', 'TripleColumnEdit': '\uF323', 'ColumnLeftTwoThirdsEdit': '\uF324', 'ColumnRightTwoThirdsEdit': '\uF325', 'StreamLogo': '\uF329', 'PassiveAuthentication': '\uF32A', 'AlertSolid': '\uF331', 'MegaphoneSolid': '\uF332', 'TaskSolid': '\uF333', 'ConfigurationSolid': '\uF334', 'BugSolid': '\uF335', 'CrownSolid': '\uF336', 'Trophy2Solid': '\uF337', 'QuickNoteSolid': '\uF338', 'ConstructionConeSolid': '\uF339', 'PageListSolid': '\uF33A', 'PageListMirroredSolid': '\uF33B', 'StarburstSolid': '\uF33C', 'ReadingModeSolid': '\uF33D', 'SadSolid': '\uF33E', 'HealthSolid': '\uF33F', 'ShieldSolid': '\uF340', 'GiftBoxSolid': '\uF341', 'ShoppingCartSolid': '\uF342', 'MailSolid': '\uF343', 'ChatSolid': '\uF344', 'RibbonSolid': '\uF345' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-11.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-12.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-12.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-12\"", src: "url('".concat(baseUrl, "fabric-icons-12-7e945a1e.woff') format('woff')") }, icons: { 'FinancialSolid': '\uF346', 'FinancialMirroredSolid': '\uF347', 'HeadsetSolid': '\uF348', 'PermissionsSolid': '\uF349', 'ParkingSolid': '\uF34A', 'ParkingMirroredSolid': '\uF34B', 'DiamondSolid': '\uF34C', 'AsteriskSolid': '\uF34D', 'OfflineStorageSolid': '\uF34E', 'BankSolid': '\uF34F', 'DecisionSolid': '\uF350', 'Parachute': '\uF351', 'ParachuteSolid': '\uF352', 'FiltersSolid': '\uF353', 'ColorSolid': '\uF354', 'ReviewSolid': '\uF355', 'ReviewRequestSolid': '\uF356', 'ReviewRequestMirroredSolid': '\uF357', 'ReviewResponseSolid': '\uF358', 'FeedbackRequestSolid': '\uF359', 'FeedbackRequestMirroredSolid': '\uF35A', 'FeedbackResponseSolid': '\uF35B', 'WorkItemBar': '\uF35C', 'WorkItemBarSolid': '\uF35D', 'Separator': '\uF35E', 'NavigateExternalInline': '\uF35F', 'PlanView': '\uF360', 'TimelineMatrixView': '\uF361', 'EngineeringGroup': '\uF362', 'ProjectCollection': '\uF363', 'CaretBottomRightCenter8': '\uF364', 'CaretBottomLeftCenter8': '\uF365', 'CaretTopRightCenter8': '\uF366', 'CaretTopLeftCenter8': '\uF367', 'DonutChart': '\uF368', 'ChevronUnfold10': '\uF369', 'ChevronFold10': '\uF36A', 'DoubleChevronDown8': '\uF36B', 'DoubleChevronUp8': '\uF36C', 'DoubleChevronLeft8': '\uF36D', 'DoubleChevronRight8': '\uF36E', 'ChevronDownEnd6': '\uF36F', 'ChevronUpEnd6': '\uF370', 'ChevronLeftEnd6': '\uF371', 'ChevronRightEnd6': '\uF372', 'ContextMenu': '\uF37C', 'AzureAPIManagement': '\uF37F', 'AzureServiceEndpoint': '\uF380', 'VSTSLogo': '\uF381', 'VSTSAltLogo1': '\uF382', 'VSTSAltLogo2': '\uF383', 'FileTypeSolution': '\uF387', 'WordLogoInverse16': '\uF390', 'WordLogo16': '\uF391', 'WordLogoFill16': '\uF392', 'PowerPointLogoInverse16': '\uF393', 'PowerPointLogo16': '\uF394', 'PowerPointLogoFill16': '\uF395', 'ExcelLogoInverse16': '\uF396', 'ExcelLogo16': '\uF397', 'ExcelLogoFill16': '\uF398', 'OneNoteLogoInverse16': '\uF399', 'OneNoteLogo16': '\uF39A', 'OneNoteLogoFill16': '\uF39B', 'OutlookLogoInverse16': '\uF39C', 'OutlookLogo16': '\uF39D', 'OutlookLogoFill16': '\uF39E', 'PublisherLogoInverse16': '\uF39F', 'PublisherLogo16': '\uF3A0', 'PublisherLogoFill16': '\uF3A1', 'VisioLogoInverse16': '\uF3A2', 'VisioLogo16': '\uF3A3', 'VisioLogoFill16': '\uF3A4', 'TestBeaker': '\uF3A5', 'TestBeakerSolid': '\uF3A6', 'TestExploreSolid': '\uF3A7', 'TestAutoSolid': '\uF3A8', 'TestUserSolid': '\uF3A9', 'TestImpactSolid': '\uF3AA', 'TestPlan': '\uF3AB', 'TestStep': '\uF3AC', 'TestParameter': '\uF3AD', 'TestSuite': '\uF3AE', 'TestCase': '\uF3AF', 'Sprint': '\uF3B0', 'SignOut': '\uF3B1', 'TriggerApproval': '\uF3B2', 'Rocket': '\uF3B3', 'AzureKeyVault': '\uF3B4', 'Onboarding': '\uF3BA', 'Transition': '\uF3BC', 'LikeSolid': '\uF3BF', 'DislikeSolid': '\uF3C0', 'CRMCustomerInsightsApp': '\uF3C8', 'EditCreate': '\uF3C9', 'PlayReverseResume': '\uF3E4', 'PlayReverse': '\uF3E5', 'SearchData': '\uF3F1', 'UnSetColor': '\uF3F9', 'DeclineCall': '\uF405' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-12.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-13.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-13.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-13\"", src: "url('".concat(baseUrl, "fabric-icons-13-c3989a02.woff') format('woff')") }, icons: { 'RectangularClipping': '\uF407', 'TeamsLogo16': '\uF40A', 'TeamsLogoFill16': '\uF40B', 'Spacer': '\uF40D', 'SkypeLogo16': '\uF40E', 'SkypeForBusinessLogo16': '\uF40F', 'SkypeForBusinessLogoFill16': '\uF410', 'FilterSolid': '\uF412', 'MailUndelivered': '\uF415', 'MailTentative': '\uF416', 'MailTentativeMirrored': '\uF417', 'MailReminder': '\uF418', 'ReceiptUndelivered': '\uF419', 'ReceiptTentative': '\uF41A', 'ReceiptTentativeMirrored': '\uF41B', 'Inbox': '\uF41C', 'IRMReply': '\uF41D', 'IRMReplyMirrored': '\uF41E', 'IRMForward': '\uF41F', 'IRMForwardMirrored': '\uF420', 'VoicemailIRM': '\uF421', 'EventAccepted': '\uF422', 'EventTentative': '\uF423', 'EventTentativeMirrored': '\uF424', 'EventDeclined': '\uF425', 'IDBadge': '\uF427', 'BackgroundColor': '\uF42B', 'OfficeFormsLogoInverse16': '\uF433', 'OfficeFormsLogo': '\uF434', 'OfficeFormsLogoFill': '\uF435', 'OfficeFormsLogo16': '\uF436', 'OfficeFormsLogoFill16': '\uF437', 'OfficeFormsLogoInverse24': '\uF43A', 'OfficeFormsLogo24': '\uF43B', 'OfficeFormsLogoFill24': '\uF43C', 'PageLock': '\uF43F', 'NotExecuted': '\uF440', 'NotImpactedSolid': '\uF441', 'FieldReadOnly': '\uF442', 'FieldRequired': '\uF443', 'BacklogBoard': '\uF444', 'ExternalBuild': '\uF445', 'ExternalTFVC': '\uF446', 'ExternalXAML': '\uF447', 'IssueSolid': '\uF448', 'DefectSolid': '\uF449', 'LadybugSolid': '\uF44A', 'NugetLogo': '\uF44C', 'TFVCLogo': '\uF44D', 'ProjectLogo32': '\uF47E', 'ProjectLogoFill32': '\uF47F', 'ProjectLogo16': '\uF480', 'ProjectLogoFill16': '\uF481', 'SwayLogo32': '\uF482', 'SwayLogoFill32': '\uF483', 'SwayLogo16': '\uF484', 'SwayLogoFill16': '\uF485', 'ClassNotebookLogo32': '\uF486', 'ClassNotebookLogoFill32': '\uF487', 'ClassNotebookLogo16': '\uF488', 'ClassNotebookLogoFill16': '\uF489', 'ClassNotebookLogoInverse32': '\uF48A', 'ClassNotebookLogoInverse16': '\uF48B', 'StaffNotebookLogo32': '\uF48C', 'StaffNotebookLogoFill32': '\uF48D', 'StaffNotebookLogo16': '\uF48E', 'StaffNotebookLogoFill16': '\uF48F', 'StaffNotebookLogoInverted32': '\uF490', 'StaffNotebookLogoInverted16': '\uF491', 'KaizalaLogo': '\uF492', 'TaskLogo': '\uF493', 'ProtectionCenterLogo32': '\uF494', 'GallatinLogo': '\uF496', 'Globe2': '\uF49A', 'Guitar': '\uF49B', 'Breakfast': '\uF49C', 'Brunch': '\uF49D', 'BeerMug': '\uF49E', 'Vacation': '\uF49F', 'Teeth': '\uF4A0', 'Taxi': '\uF4A1', 'Chopsticks': '\uF4A2', 'SyncOccurence': '\uF4A3', 'UnsyncOccurence': '\uF4A4', 'GIF': '\uF4A9', 'PrimaryCalendar': '\uF4AE', 'SearchCalendar': '\uF4AF', 'VideoOff': '\uF4B0', 'MicrosoftFlowLogo': '\uF4B1', 'BusinessCenterLogo': '\uF4B2', 'ToDoLogoBottom': '\uF4B3', 'ToDoLogoTop': '\uF4B4', 'EditSolid12': '\uF4B5', 'EditSolidMirrored12': '\uF4B6', 'UneditableSolid12': '\uF4B7', 'UneditableSolidMirrored12': '\uF4B8', 'UneditableMirrored': '\uF4B9', 'AdminALogo32': '\uF4BA', 'AdminALogoFill32': '\uF4BB', 'ToDoLogoInverse': '\uF4BC' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-13.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-14.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-14.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-14\"", src: "url('".concat(baseUrl, "fabric-icons-14-5cf58db8.woff') format('woff')") }, icons: { 'Snooze': '\uF4BD', 'WaffleOffice365': '\uF4E0', 'ImageSearch': '\uF4E8', 'NewsSearch': '\uF4E9', 'VideoSearch': '\uF4EA', 'R': '\uF4EB', 'FontColorA': '\uF4EC', 'FontColorSwatch': '\uF4ED', 'LightWeight': '\uF4EE', 'NormalWeight': '\uF4EF', 'SemiboldWeight': '\uF4F0', 'GroupObject': '\uF4F1', 'UngroupObject': '\uF4F2', 'AlignHorizontalLeft': '\uF4F3', 'AlignHorizontalCenter': '\uF4F4', 'AlignHorizontalRight': '\uF4F5', 'AlignVerticalTop': '\uF4F6', 'AlignVerticalCenter': '\uF4F7', 'AlignVerticalBottom': '\uF4F8', 'HorizontalDistributeCenter': '\uF4F9', 'VerticalDistributeCenter': '\uF4FA', 'Ellipse': '\uF4FB', 'Line': '\uF4FC', 'Octagon': '\uF4FD', 'Hexagon': '\uF4FE', 'Pentagon': '\uF4FF', 'RightTriangle': '\uF500', 'HalfCircle': '\uF501', 'QuarterCircle': '\uF502', 'ThreeQuarterCircle': '\uF503', '6PointStar': '\uF504', '12PointStar': '\uF505', 'ArrangeBringToFront': '\uF506', 'ArrangeSendToBack': '\uF507', 'ArrangeSendBackward': '\uF508', 'ArrangeBringForward': '\uF509', 'BorderDash': '\uF50A', 'BorderDot': '\uF50B', 'LineStyle': '\uF50C', 'LineThickness': '\uF50D', 'WindowEdit': '\uF50E', 'HintText': '\uF50F', 'MediaAdd': '\uF510', 'AnchorLock': '\uF511', 'AutoHeight': '\uF512', 'ChartSeries': '\uF513', 'ChartXAngle': '\uF514', 'ChartYAngle': '\uF515', 'Combobox': '\uF516', 'LineSpacing': '\uF517', 'Padding': '\uF518', 'PaddingTop': '\uF519', 'PaddingBottom': '\uF51A', 'PaddingLeft': '\uF51B', 'PaddingRight': '\uF51C', 'NavigationFlipper': '\uF51D', 'AlignJustify': '\uF51E', 'TextOverflow': '\uF51F', 'VisualsFolder': '\uF520', 'VisualsStore': '\uF521', 'PictureCenter': '\uF522', 'PictureFill': '\uF523', 'PicturePosition': '\uF524', 'PictureStretch': '\uF525', 'PictureTile': '\uF526', 'Slider': '\uF527', 'SliderHandleSize': '\uF528', 'DefaultRatio': '\uF529', 'NumberSequence': '\uF52A', 'GUID': '\uF52B', 'ReportAdd': '\uF52C', 'DashboardAdd': '\uF52D', 'MapPinSolid': '\uF52E', 'WebPublish': '\uF52F', 'PieSingleSolid': '\uF530', 'BlockedSolid': '\uF531', 'DrillDown': '\uF532', 'DrillDownSolid': '\uF533', 'DrillExpand': '\uF534', 'DrillShow': '\uF535', 'SpecialEvent': '\uF536', 'OneDriveFolder16': '\uF53B', 'FunctionalManagerDashboard': '\uF542', 'BIDashboard': '\uF543', 'CodeEdit': '\uF544', 'RenewalCurrent': '\uF545', 'RenewalFuture': '\uF546', 'SplitObject': '\uF547', 'BulkUpload': '\uF548', 'DownloadDocument': '\uF549', 'GreetingCard': '\uF54B', 'Flower': '\uF54E', 'WaitlistConfirm': '\uF550', 'WaitlistConfirmMirrored': '\uF551', 'LaptopSecure': '\uF552', 'DragObject': '\uF553', 'EntryView': '\uF554', 'EntryDecline': '\uF555', 'ContactCardSettings': '\uF556', 'ContactCardSettingsMirrored': '\uF557' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-14.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-15.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-15.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-15\"", src: "url('".concat(baseUrl, "fabric-icons-15-3807251b.woff') format('woff')") }, icons: { 'CalendarSettings': '\uF558', 'CalendarSettingsMirrored': '\uF559', 'HardDriveLock': '\uF55A', 'HardDriveUnlock': '\uF55B', 'AccountManagement': '\uF55C', 'ReportWarning': '\uF569', 'TransitionPop': '\uF5B2', 'TransitionPush': '\uF5B3', 'TransitionEffect': '\uF5B4', 'LookupEntities': '\uF5B5', 'ExploreData': '\uF5B6', 'AddBookmark': '\uF5B7', 'SearchBookmark': '\uF5B8', 'DrillThrough': '\uF5B9', 'MasterDatabase': '\uF5BA', 'CertifiedDatabase': '\uF5BB', 'MaximumValue': '\uF5BC', 'MinimumValue': '\uF5BD', 'VisualStudioIDELogo32': '\uF5D0', 'PasteAsText': '\uF5D5', 'PasteAsCode': '\uF5D6', 'BrowserTab': '\uF5D7', 'BrowserTabScreenshot': '\uF5D8', 'DesktopScreenshot': '\uF5D9', 'FileYML': '\uF5DA', 'ClipboardSolid': '\uF5DC', 'FabricUserFolder': '\uF5E5', 'FabricNetworkFolder': '\uF5E6', 'BullseyeTarget': '\uF5F0', 'AnalyticsView': '\uF5F1', 'Video360Generic': '\uF609', 'Untag': '\uF60B', 'Leave': '\uF627', 'Trending12': '\uF62D', 'Blocked12': '\uF62E', 'Warning12': '\uF62F', 'CheckedOutByOther12': '\uF630', 'CheckedOutByYou12': '\uF631', 'CircleShapeSolid': '\uF63C', 'SquareShapeSolid': '\uF63D', 'TriangleShapeSolid': '\uF63E', 'DropShapeSolid': '\uF63F', 'RectangleShapeSolid': '\uF640', 'ZoomToFit': '\uF649', 'InsertColumnsLeft': '\uF64A', 'InsertColumnsRight': '\uF64B', 'InsertRowsAbove': '\uF64C', 'InsertRowsBelow': '\uF64D', 'DeleteColumns': '\uF64E', 'DeleteRows': '\uF64F', 'DeleteRowsMirrored': '\uF650', 'DeleteTable': '\uF651', 'AccountBrowser': '\uF652', 'VersionControlPush': '\uF664', 'StackedColumnChart2': '\uF666', 'TripleColumnWide': '\uF66E', 'QuadColumn': '\uF66F', 'WhiteBoardApp16': '\uF673', 'WhiteBoardApp32': '\uF674', 'PinnedSolid': '\uF676', 'InsertSignatureLine': '\uF677', 'ArrangeByFrom': '\uF678', 'Phishing': '\uF679', 'CreateMailRule': '\uF67A', 'PublishCourse': '\uF699', 'DictionaryRemove': '\uF69A', 'UserRemove': '\uF69B', 'UserEvent': '\uF69C', 'Encryption': '\uF69D', 'PasswordField': '\uF6AA', 'OpenInNewTab': '\uF6AB', 'Hide3': '\uF6AC', 'VerifiedBrandSolid': '\uF6AD', 'MarkAsProtected': '\uF6AE', 'AuthenticatorApp': '\uF6B1', 'WebTemplate': '\uF6B2', 'DefenderTVM': '\uF6B3', 'MedalSolid': '\uF6B9', 'D365TalentLearn': '\uF6BB', 'D365TalentInsight': '\uF6BC', 'D365TalentHRCore': '\uF6BD', 'BacklogList': '\uF6BF', 'ButtonControl': '\uF6C0', 'TableGroup': '\uF6D9', 'MountainClimbing': '\uF6DB', 'TagUnknown': '\uF6DF', 'TagUnknownMirror': '\uF6E0', 'TagUnknown12': '\uF6E1', 'TagUnknown12Mirror': '\uF6E2', 'Link12': '\uF6E3', 'Presentation': '\uF6E4', 'Presentation12': '\uF6E5', 'Lock12': '\uF6E6', 'BuildDefinition': '\uF6E9', 'ReleaseDefinition': '\uF6EA', 'SaveTemplate': '\uF6EC', 'UserGauge': '\uF6ED', 'BlockedSiteSolid12': '\uF70A', 'TagSolid': '\uF70E', 'OfficeChat': '\uF70F' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-15.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-16.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-16.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-16\"", src: "url('".concat(baseUrl, "fabric-icons-16-9cf93f3b.woff') format('woff')") }, icons: { 'OfficeChatSolid': '\uF710', 'MailSchedule': '\uF72E', 'WarningSolid': '\uF736', 'Blocked2Solid': '\uF737', 'SkypeCircleArrow': '\uF747', 'SkypeArrow': '\uF748', 'SyncStatus': '\uF751', 'SyncStatusSolid': '\uF752', 'ProjectDocument': '\uF759', 'ToDoLogoOutline': '\uF75B', 'VisioOnlineLogoFill32': '\uF75F', 'VisioOnlineLogo32': '\uF760', 'VisioOnlineLogoCloud32': '\uF761', 'VisioDiagramSync': '\uF762', 'Event12': '\uF763', 'EventDateMissed12': '\uF764', 'UserOptional': '\uF767', 'ResponsesMenu': '\uF768', 'DoubleDownArrow': '\uF769', 'DistributeDown': '\uF76A', 'BookmarkReport': '\uF76B', 'FilterSettings': '\uF76C', 'GripperDotsVertical': '\uF772', 'MailAttached': '\uF774', 'AddIn': '\uF775', 'LinkedDatabase': '\uF779', 'TableLink': '\uF77A', 'PromotedDatabase': '\uF77D', 'BarChartVerticalFilter': '\uF77E', 'BarChartVerticalFilterSolid': '\uF77F', 'MicOff2': '\uF781', 'MicrosoftTranslatorLogo': '\uF782', 'ShowTimeAs': '\uF787', 'FileRequest': '\uF789', 'WorkItemAlert': '\uF78F', 'PowerBILogo16': '\uF790', 'PowerBILogoBackplate16': '\uF791', 'BulletedListText': '\uF792', 'BulletedListBullet': '\uF793', 'BulletedListTextMirrored': '\uF794', 'BulletedListBulletMirrored': '\uF795', 'NumberedListText': '\uF796', 'NumberedListNumber': '\uF797', 'NumberedListTextMirrored': '\uF798', 'NumberedListNumberMirrored': '\uF799', 'RemoveLinkChain': '\uF79A', 'RemoveLinkX': '\uF79B', 'FabricTextHighlight': '\uF79C', 'ClearFormattingA': '\uF79D', 'ClearFormattingEraser': '\uF79E', 'Photo2Fill': '\uF79F', 'IncreaseIndentText': '\uF7A0', 'IncreaseIndentArrow': '\uF7A1', 'DecreaseIndentText': '\uF7A2', 'DecreaseIndentArrow': '\uF7A3', 'IncreaseIndentTextMirrored': '\uF7A4', 'IncreaseIndentArrowMirrored': '\uF7A5', 'DecreaseIndentTextMirrored': '\uF7A6', 'DecreaseIndentArrowMirrored': '\uF7A7', 'CheckListText': '\uF7A8', 'CheckListCheck': '\uF7A9', 'CheckListTextMirrored': '\uF7AA', 'CheckListCheckMirrored': '\uF7AB', 'NumberSymbol': '\uF7AC', 'Coupon': '\uF7BC', 'VerifiedBrand': '\uF7BD', 'ReleaseGate': '\uF7BE', 'ReleaseGateCheck': '\uF7BF', 'ReleaseGateError': '\uF7C0', 'M365InvoicingLogo': '\uF7C1', 'RemoveFromShoppingList': '\uF7D5', 'ShieldAlert': '\uF7D7', 'FabricTextHighlightComposite': '\uF7DA', 'Dataflows': '\uF7DD', 'GenericScanFilled': '\uF7DE', 'DiagnosticDataBarTooltip': '\uF7DF', 'SaveToMobile': '\uF7E0', 'Orientation2': '\uF7E1', 'ScreenCast': '\uF7E2', 'ShowGrid': '\uF7E3', 'SnapToGrid': '\uF7E4', 'ContactList': '\uF7E5', 'NewMail': '\uF7EA', 'EyeShadow': '\uF7EB', 'FabricFolderConfirm': '\uF7FF', 'InformationBarriers': '\uF803', 'CommentActive': '\uF804', 'ColumnVerticalSectionEdit': '\uF806', 'WavingHand': '\uF807', 'ShakeDevice': '\uF80A', 'SmartGlassRemote': '\uF80B', 'Rotate90Clockwise': '\uF80D', 'Rotate90CounterClockwise': '\uF80E', 'CampaignTemplate': '\uF811', 'ChartTemplate': '\uF812', 'PageListFilter': '\uF813', 'SecondaryNav': '\uF814', 'ColumnVerticalSection': '\uF81E', 'SkypeCircleSlash': '\uF825', 'SkypeSlash': '\uF826' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-16.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-17.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-17.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-17\"", src: "url('".concat(baseUrl, "fabric-icons-17-0c4ed701.woff') format('woff')") }, icons: { 'CustomizeToolbar': '\uF828', 'DuplicateRow': '\uF82A', 'RemoveFromTrash': '\uF82B', 'MailOptions': '\uF82C', 'Childof': '\uF82D', 'Footer': '\uF82E', 'Header': '\uF82F', 'BarChartVerticalFill': '\uF830', 'StackedColumnChart2Fill': '\uF831', 'PlainText': '\uF834', 'AccessibiltyChecker': '\uF835', 'DatabaseSync': '\uF842', 'ReservationOrders': '\uF845', 'TabOneColumn': '\uF849', 'TabTwoColumn': '\uF84A', 'TabThreeColumn': '\uF84B', 'BulletedTreeList': '\uF84C', 'MicrosoftTranslatorLogoGreen': '\uF852', 'MicrosoftTranslatorLogoBlue': '\uF853', 'InternalInvestigation': '\uF854', 'AddReaction': '\uF85D', 'ContactHeart': '\uF862', 'VisuallyImpaired': '\uF866', 'EventToDoLogo': '\uF869', 'Variable2': '\uF86D', 'ModelingView': '\uF871', 'DisconnectVirtualMachine': '\uF873', 'ReportLock': '\uF875', 'Uneditable2': '\uF876', 'Uneditable2Mirrored': '\uF877', 'BarChartVerticalEdit': '\uF89D', 'GlobalNavButtonActive': '\uF89F', 'PollResults': '\uF8A0', 'Rerun': '\uF8A1', 'QandA': '\uF8A2', 'QandAMirror': '\uF8A3', 'BookAnswers': '\uF8A4', 'AlertSettings': '\uF8B6', 'TrimStart': '\uF8BB', 'TrimEnd': '\uF8BC', 'TableComputed': '\uF8F5', 'DecreaseIndentLegacy': '\uE290', 'IncreaseIndentLegacy': '\uE291', 'SizeLegacy': '\uE2B2' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-17.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-2.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-2.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-2\"", src: "url('".concat(baseUrl, "fabric-icons-2-63c99abf.woff') format('woff')") }, icons: { 'Picture': '\uE8B9', 'ChromeClose': '\uE8BB', 'ShowResults': '\uE8BC', 'Message': '\uE8BD', 'CalendarDay': '\uE8BF', 'CalendarWeek': '\uE8C0', 'MailReplyAll': '\uE8C2', 'Read': '\uE8C3', 'Cut': '\uE8C6', 'PaymentCard': '\uE8C7', 'Copy': '\uE8C8', 'Important': '\uE8C9', 'MailReply': '\uE8CA', 'GotoToday': '\uE8D1', 'Font': '\uE8D2', 'FontColor': '\uE8D3', 'FolderFill': '\uE8D5', 'Permissions': '\uE8D7', 'DisableUpdates': '\uE8D8', 'Unfavorite': '\uE8D9', 'Italic': '\uE8DB', 'Underline': '\uE8DC', 'Bold': '\uE8DD', 'MoveToFolder': '\uE8DE', 'Dislike': '\uE8E0', 'Like': '\uE8E1', 'AlignCenter': '\uE8E3', 'OpenFile': '\uE8E5', 'ClearSelection': '\uE8E6', 'FontDecrease': '\uE8E7', 'FontIncrease': '\uE8E8', 'FontSize': '\uE8E9', 'CellPhone': '\uE8EA', 'RepeatOne': '\uE8ED', 'RepeatAll': '\uE8EE', 'Calculator': '\uE8EF', 'Library': '\uE8F1', 'PostUpdate': '\uE8F3', 'NewFolder': '\uE8F4', 'CalendarReply': '\uE8F5', 'UnsyncFolder': '\uE8F6', 'SyncFolder': '\uE8F7', 'BlockContact': '\uE8F8', 'Accept': '\uE8FB', 'BulletedList': '\uE8FD', 'Preview': '\uE8FF', 'News': '\uE900', 'Chat': '\uE901', 'Group': '\uE902', 'World': '\uE909', 'Comment': '\uE90A', 'DockLeft': '\uE90C', 'DockRight': '\uE90D', 'Repair': '\uE90F', 'Accounts': '\uE910', 'Street': '\uE913', 'RadioBullet': '\uE915', 'Stopwatch': '\uE916', 'Clock': '\uE917', 'WorldClock': '\uE918', 'AlarmClock': '\uE919', 'Photo': '\uE91B', 'ActionCenter': '\uE91C', 'Hospital': '\uE91D', 'Timer': '\uE91E', 'FullCircleMask': '\uE91F', 'LocationFill': '\uE920', 'ChromeMinimize': '\uE921', 'ChromeRestore': '\uE923', 'Annotation': '\uE924', 'Fingerprint': '\uE928', 'Handwriting': '\uE929', 'ChromeFullScreen': '\uE92D', 'Completed': '\uE930', 'Label': '\uE932', 'FlickDown': '\uE935', 'FlickUp': '\uE936', 'FlickLeft': '\uE937', 'FlickRight': '\uE938', 'MiniExpand': '\uE93A', 'MiniContract': '\uE93B', 'Streaming': '\uE93E', 'MusicInCollection': '\uE940', 'OneDriveLogo': '\uE941', 'CompassNW': '\uE942', 'Code': '\uE943', 'LightningBolt': '\uE945', 'CalculatorMultiply': '\uE947', 'CalculatorAddition': '\uE948', 'CalculatorSubtract': '\uE949', 'CalculatorPercentage': '\uE94C', 'CalculatorEqualTo': '\uE94E', 'PrintfaxPrinterFile': '\uE956', 'StorageOptical': '\uE958', 'Communications': '\uE95A', 'Headset': '\uE95B', 'Health': '\uE95E', 'Webcam2': '\uE960', 'FrontCamera': '\uE96B', 'ChevronUpSmall': '\uE96D' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-2.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-3.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-3.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-3\"", src: "url('".concat(baseUrl, "fabric-icons-3-089e217a.woff') format('woff')") }, icons: { 'ChevronDownSmall': '\uE96E', 'ChevronLeftSmall': '\uE96F', 'ChevronRightSmall': '\uE970', 'ChevronUpMed': '\uE971', 'ChevronDownMed': '\uE972', 'ChevronLeftMed': '\uE973', 'ChevronRightMed': '\uE974', 'Devices2': '\uE975', 'PC1': '\uE977', 'PresenceChickletVideo': '\uE979', 'Reply': '\uE97A', 'HalfAlpha': '\uE97E', 'ConstructionCone': '\uE98F', 'DoubleChevronLeftMed': '\uE991', 'Volume0': '\uE992', 'Volume1': '\uE993', 'Volume2': '\uE994', 'Volume3': '\uE995', 'Chart': '\uE999', 'Robot': '\uE99A', 'Manufacturing': '\uE99C', 'LockSolid': '\uE9A2', 'FitPage': '\uE9A6', 'FitWidth': '\uE9A7', 'BidiLtr': '\uE9AA', 'BidiRtl': '\uE9AB', 'RightDoubleQuote': '\uE9B1', 'Sunny': '\uE9BD', 'CloudWeather': '\uE9BE', 'Cloudy': '\uE9BF', 'PartlyCloudyDay': '\uE9C0', 'PartlyCloudyNight': '\uE9C1', 'ClearNight': '\uE9C2', 'RainShowersDay': '\uE9C3', 'Rain': '\uE9C4', 'Thunderstorms': '\uE9C6', 'RainSnow': '\uE9C7', 'Snow': '\uE9C8', 'BlowingSnow': '\uE9C9', 'Frigid': '\uE9CA', 'Fog': '\uE9CB', 'Squalls': '\uE9CC', 'Duststorm': '\uE9CD', 'Unknown': '\uE9CE', 'Precipitation': '\uE9CF', 'Ribbon': '\uE9D1', 'AreaChart': '\uE9D2', 'Assign': '\uE9D3', 'FlowChart': '\uE9D4', 'CheckList': '\uE9D5', 'Diagnostic': '\uE9D9', 'Generate': '\uE9DA', 'LineChart': '\uE9E6', 'Equalizer': '\uE9E9', 'BarChartHorizontal': '\uE9EB', 'BarChartVertical': '\uE9EC', 'Freezing': '\uE9EF', 'FunnelChart': '\uE9F1', 'Processing': '\uE9F5', 'Quantity': '\uE9F8', 'ReportDocument': '\uE9F9', 'StackColumnChart': '\uE9FC', 'SnowShowerDay': '\uE9FD', 'HailDay': '\uEA00', 'WorkFlow': '\uEA01', 'HourGlass': '\uEA03', 'StoreLogoMed20': '\uEA04', 'TimeSheet': '\uEA05', 'TriangleSolid': '\uEA08', 'UpgradeAnalysis': '\uEA0B', 'VideoSolid': '\uEA0C', 'RainShowersNight': '\uEA0F', 'SnowShowerNight': '\uEA11', 'Teamwork': '\uEA12', 'HailNight': '\uEA13', 'PeopleAdd': '\uEA15', 'Glasses': '\uEA16', 'DateTime2': '\uEA17', 'Shield': '\uEA18', 'Header1': '\uEA19', 'PageAdd': '\uEA1A', 'NumberedList': '\uEA1C', 'PowerBILogo': '\uEA1E', 'Info2': '\uEA1F', 'MusicInCollectionFill': '\uEA36', 'Asterisk': '\uEA38', 'ErrorBadge': '\uEA39', 'CircleFill': '\uEA3B', 'Record2': '\uEA3F', 'AllAppsMirrored': '\uEA40', 'BookmarksMirrored': '\uEA41', 'BulletedListMirrored': '\uEA42', 'CaretHollowMirrored': '\uEA45', 'CaretSolidMirrored': '\uEA46', 'ChromeBackMirrored': '\uEA47', 'ClearSelectionMirrored': '\uEA48', 'ClosePaneMirrored': '\uEA49', 'DockLeftMirrored': '\uEA4C', 'DoubleChevronLeftMedMirrored': '\uEA4D', 'GoMirrored': '\uEA4F' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-3.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-4.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-4.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-4\"", src: "url('".concat(baseUrl, "fabric-icons-4-a656cc0a.woff') format('woff')") }, icons: { 'HelpMirrored': '\uEA51', 'ImportMirrored': '\uEA52', 'ImportAllMirrored': '\uEA53', 'ListMirrored': '\uEA55', 'MailForwardMirrored': '\uEA56', 'MailReplyMirrored': '\uEA57', 'MailReplyAllMirrored': '\uEA58', 'MiniContractMirrored': '\uEA59', 'MiniExpandMirrored': '\uEA5A', 'OpenPaneMirrored': '\uEA5B', 'ParkingLocationMirrored': '\uEA5E', 'SendMirrored': '\uEA63', 'ShowResultsMirrored': '\uEA65', 'ThumbnailViewMirrored': '\uEA67', 'Media': '\uEA69', 'Devices3': '\uEA6C', 'Focus': '\uEA6F', 'VideoLightOff': '\uEA74', 'Lightbulb': '\uEA80', 'StatusTriangle': '\uEA82', 'VolumeDisabled': '\uEA85', 'Puzzle': '\uEA86', 'EmojiNeutral': '\uEA87', 'EmojiDisappointed': '\uEA88', 'HomeSolid': '\uEA8A', 'Ringer': '\uEA8F', 'PDF': '\uEA90', 'HeartBroken': '\uEA92', 'StoreLogo16': '\uEA96', 'MultiSelectMirrored': '\uEA98', 'Broom': '\uEA99', 'AddToShoppingList': '\uEA9A', 'Cocktails': '\uEA9D', 'Wines': '\uEABF', 'Articles': '\uEAC1', 'Cycling': '\uEAC7', 'DietPlanNotebook': '\uEAC8', 'Pill': '\uEACB', 'ExerciseTracker': '\uEACC', 'HandsFree': '\uEAD0', 'Medical': '\uEAD4', 'Running': '\uEADA', 'Weights': '\uEADB', 'Trackers': '\uEADF', 'AddNotes': '\uEAE3', 'AllCurrency': '\uEAE4', 'BarChart4': '\uEAE7', 'CirclePlus': '\uEAEE', 'Coffee': '\uEAEF', 'Cotton': '\uEAF3', 'Market': '\uEAFC', 'Money': '\uEAFD', 'PieDouble': '\uEB04', 'PieSingle': '\uEB05', 'RemoveFilter': '\uEB08', 'Savings': '\uEB0B', 'Sell': '\uEB0C', 'StockDown': '\uEB0F', 'StockUp': '\uEB11', 'Lamp': '\uEB19', 'Source': '\uEB1B', 'MSNVideos': '\uEB1C', 'Cricket': '\uEB1E', 'Golf': '\uEB1F', 'Baseball': '\uEB20', 'Soccer': '\uEB21', 'MoreSports': '\uEB22', 'AutoRacing': '\uEB24', 'CollegeHoops': '\uEB25', 'CollegeFootball': '\uEB26', 'ProFootball': '\uEB27', 'ProHockey': '\uEB28', 'Rugby': '\uEB2D', 'SubstitutionsIn': '\uEB31', 'Tennis': '\uEB33', 'Arrivals': '\uEB34', 'Design': '\uEB3C', 'Website': '\uEB41', 'Drop': '\uEB42', 'HistoricalWeather': '\uEB43', 'SkiResorts': '\uEB45', 'Snowflake': '\uEB46', 'BusSolid': '\uEB47', 'FerrySolid': '\uEB48', 'AirplaneSolid': '\uEB4C', 'TrainSolid': '\uEB4D', 'Ticket': '\uEB54', 'WifiWarning4': '\uEB63', 'Devices4': '\uEB66', 'AzureLogo': '\uEB6A', 'BingLogo': '\uEB6B', 'MSNLogo': '\uEB6C', 'OutlookLogoInverse': '\uEB6D', 'OfficeLogo': '\uEB6E', 'SkypeLogo': '\uEB6F', 'Door': '\uEB75', 'EditMirrored': '\uEB7E', 'GiftCard': '\uEB8E', 'DoubleBookmark': '\uEB8F', 'StatusErrorFull': '\uEB90' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-4.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-5.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-5.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-5\"", src: "url('".concat(baseUrl, "fabric-icons-5-f95ba260.woff') format('woff')") }, icons: { 'Certificate': '\uEB95', 'FastForward': '\uEB9D', 'Rewind': '\uEB9E', 'Photo2': '\uEB9F', 'OpenSource': '\uEBC2', 'Movers': '\uEBCD', 'CloudDownload': '\uEBD3', 'Family': '\uEBDA', 'WindDirection': '\uEBE6', 'Bug': '\uEBE8', 'SiteScan': '\uEBEC', 'BrowserScreenShot': '\uEBED', 'F12DevTools': '\uEBEE', 'CSS': '\uEBEF', 'JS': '\uEBF0', 'DeliveryTruck': '\uEBF4', 'ReminderPerson': '\uEBF7', 'ReminderGroup': '\uEBF8', 'ReminderTime': '\uEBF9', 'TabletMode': '\uEBFC', 'Umbrella': '\uEC04', 'NetworkTower': '\uEC05', 'CityNext': '\uEC06', 'CityNext2': '\uEC07', 'Section': '\uEC0C', 'OneNoteLogoInverse': '\uEC0D', 'ToggleFilled': '\uEC11', 'ToggleBorder': '\uEC12', 'SliderThumb': '\uEC13', 'ToggleThumb': '\uEC14', 'Documentation': '\uEC17', 'Badge': '\uEC1B', 'Giftbox': '\uEC1F', 'VisualStudioLogo': '\uEC22', 'HomeGroup': '\uEC26', 'ExcelLogoInverse': '\uEC28', 'WordLogoInverse': '\uEC29', 'PowerPointLogoInverse': '\uEC2A', 'Cafe': '\uEC32', 'SpeedHigh': '\uEC4A', 'Commitments': '\uEC4D', 'ThisPC': '\uEC4E', 'MusicNote': '\uEC4F', 'MicOff': '\uEC54', 'PlaybackRate1x': '\uEC57', 'EdgeLogo': '\uEC60', 'CompletedSolid': '\uEC61', 'AlbumRemove': '\uEC62', 'MessageFill': '\uEC70', 'TabletSelected': '\uEC74', 'MobileSelected': '\uEC75', 'LaptopSelected': '\uEC76', 'TVMonitorSelected': '\uEC77', 'DeveloperTools': '\uEC7A', 'Shapes': '\uEC7C', 'InsertTextBox': '\uEC7D', 'LowerBrightness': '\uEC8A', 'WebComponents': '\uEC8B', 'OfflineStorage': '\uEC8C', 'DOM': '\uEC8D', 'CloudUpload': '\uEC8E', 'ScrollUpDown': '\uEC8F', 'DateTime': '\uEC92', 'Event': '\uECA3', 'Cake': '\uECA4', 'Org': '\uECA6', 'PartyLeader': '\uECA7', 'DRM': '\uECA8', 'CloudAdd': '\uECA9', 'AppIconDefault': '\uECAA', 'Photo2Add': '\uECAB', 'Photo2Remove': '\uECAC', 'Calories': '\uECAD', 'POI': '\uECAF', 'AddTo': '\uECC8', 'RadioBtnOff': '\uECCA', 'RadioBtnOn': '\uECCB', 'ExploreContent': '\uECCD', 'Product': '\uECDC', 'ProgressLoopInner': '\uECDE', 'ProgressLoopOuter': '\uECDF', 'Blocked2': '\uECE4', 'FangBody': '\uECEB', 'Toolbox': '\uECED', 'PageHeader': '\uECEE', 'ChatInviteFriend': '\uECFE', 'Brush': '\uECFF', 'Shirt': '\uED00', 'Crown': '\uED01', 'Diamond': '\uED02', 'ScaleUp': '\uED09', 'QRCode': '\uED14', 'Feedback': '\uED15', 'SharepointLogoInverse': '\uED18', 'YammerLogo': '\uED19', 'Hide': '\uED1A', 'Uneditable': '\uED1D', 'ReturnToSession': '\uED24', 'OpenFolderHorizontal': '\uED25', 'CalendarMirrored': '\uED28' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-5.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-6.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-6.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-6\"", src: "url('".concat(baseUrl, "fabric-icons-6-ef6fd590.woff') format('woff')") }, icons: { 'SwayLogoInverse': '\uED29', 'OutOfOffice': '\uED34', 'Trophy': '\uED3F', 'ReopenPages': '\uED50', 'EmojiTabSymbols': '\uED58', 'AADLogo': '\uED68', 'AccessLogo': '\uED69', 'AdminALogoInverse32': '\uED6A', 'AdminCLogoInverse32': '\uED6B', 'AdminDLogoInverse32': '\uED6C', 'AdminELogoInverse32': '\uED6D', 'AdminLLogoInverse32': '\uED6E', 'AdminMLogoInverse32': '\uED6F', 'AdminOLogoInverse32': '\uED70', 'AdminPLogoInverse32': '\uED71', 'AdminSLogoInverse32': '\uED72', 'AdminYLogoInverse32': '\uED73', 'DelveLogoInverse': '\uED76', 'ExchangeLogoInverse': '\uED78', 'LyncLogo': '\uED79', 'OfficeVideoLogoInverse': '\uED7A', 'SocialListeningLogo': '\uED7C', 'VisioLogoInverse': '\uED7D', 'Balloons': '\uED7E', 'Cat': '\uED7F', 'MailAlert': '\uED80', 'MailCheck': '\uED81', 'MailLowImportance': '\uED82', 'MailPause': '\uED83', 'MailRepeat': '\uED84', 'SecurityGroup': '\uED85', 'Table': '\uED86', 'VoicemailForward': '\uED87', 'VoicemailReply': '\uED88', 'Waffle': '\uED89', 'RemoveEvent': '\uED8A', 'EventInfo': '\uED8B', 'ForwardEvent': '\uED8C', 'WipePhone': '\uED8D', 'AddOnlineMeeting': '\uED8E', 'JoinOnlineMeeting': '\uED8F', 'RemoveLink': '\uED90', 'PeopleBlock': '\uED91', 'PeopleRepeat': '\uED92', 'PeopleAlert': '\uED93', 'PeoplePause': '\uED94', 'TransferCall': '\uED95', 'AddPhone': '\uED96', 'UnknownCall': '\uED97', 'NoteReply': '\uED98', 'NoteForward': '\uED99', 'NotePinned': '\uED9A', 'RemoveOccurrence': '\uED9B', 'Timeline': '\uED9C', 'EditNote': '\uED9D', 'CircleHalfFull': '\uED9E', 'Room': '\uED9F', 'Unsubscribe': '\uEDA0', 'Subscribe': '\uEDA1', 'HardDrive': '\uEDA2', 'RecurringTask': '\uEDB2', 'TaskManager': '\uEDB7', 'TaskManagerMirrored': '\uEDB8', 'Combine': '\uEDBB', 'Split': '\uEDBC', 'DoubleChevronUp': '\uEDBD', 'DoubleChevronLeft': '\uEDBE', 'DoubleChevronRight': '\uEDBF', 'TextBox': '\uEDC2', 'TextField': '\uEDC3', 'NumberField': '\uEDC4', 'Dropdown': '\uEDC5', 'PenWorkspace': '\uEDC6', 'BookingsLogo': '\uEDC7', 'ClassNotebookLogoInverse': '\uEDC8', 'DelveAnalyticsLogo': '\uEDCA', 'DocsLogoInverse': '\uEDCB', 'Dynamics365Logo': '\uEDCC', 'DynamicSMBLogo': '\uEDCD', 'OfficeAssistantLogo': '\uEDCE', 'OfficeStoreLogo': '\uEDCF', 'OneNoteEduLogoInverse': '\uEDD0', 'PlannerLogo': '\uEDD1', 'PowerApps': '\uEDD2', 'Suitcase': '\uEDD3', 'ProjectLogoInverse': '\uEDD4', 'CaretLeft8': '\uEDD5', 'CaretRight8': '\uEDD6', 'CaretUp8': '\uEDD7', 'CaretDown8': '\uEDD8', 'CaretLeftSolid8': '\uEDD9', 'CaretRightSolid8': '\uEDDA', 'CaretUpSolid8': '\uEDDB', 'CaretDownSolid8': '\uEDDC', 'ClearFormatting': '\uEDDD', 'Superscript': '\uEDDE', 'Subscript': '\uEDDF', 'Strikethrough': '\uEDE0', 'Export': '\uEDE1', 'ExportMirrored': '\uEDE2' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-6.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-7.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-7.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-7\"", src: "url('".concat(baseUrl, "fabric-icons-7-2b97bb99.woff') format('woff')") }, icons: { 'SingleBookmark': '\uEDFF', 'SingleBookmarkSolid': '\uEE00', 'DoubleChevronDown': '\uEE04', 'FollowUser': '\uEE05', 'ReplyAll': '\uEE0A', 'WorkforceManagement': '\uEE0F', 'RecruitmentManagement': '\uEE12', 'Questionnaire': '\uEE19', 'ManagerSelfService': '\uEE23', 'ProductionFloorManagement': '\uEE29', 'ProductRelease': '\uEE2E', 'ProductVariant': '\uEE30', 'ReplyMirrored': '\uEE35', 'ReplyAllMirrored': '\uEE36', 'Medal': '\uEE38', 'AddGroup': '\uEE3D', 'QuestionnaireMirrored': '\uEE4B', 'CloudImportExport': '\uEE55', 'TemporaryUser': '\uEE58', 'CaretSolid16': '\uEE62', 'GroupedDescending': '\uEE66', 'GroupedAscending': '\uEE67', 'AwayStatus': '\uEE6A', 'MyMoviesTV': '\uEE6C', 'GenericScan': '\uEE6F', 'AustralianRules': '\uEE70', 'WifiEthernet': '\uEE77', 'TrackersMirrored': '\uEE92', 'DateTimeMirrored': '\uEE93', 'StopSolid': '\uEE95', 'DoubleChevronUp12': '\uEE96', 'DoubleChevronDown12': '\uEE97', 'DoubleChevronLeft12': '\uEE98', 'DoubleChevronRight12': '\uEE99', 'CalendarAgenda': '\uEE9A', 'ConnectVirtualMachine': '\uEE9D', 'AddEvent': '\uEEB5', 'AssetLibrary': '\uEEB6', 'DataConnectionLibrary': '\uEEB7', 'DocLibrary': '\uEEB8', 'FormLibrary': '\uEEB9', 'FormLibraryMirrored': '\uEEBA', 'ReportLibrary': '\uEEBB', 'ReportLibraryMirrored': '\uEEBC', 'ContactCard': '\uEEBD', 'CustomList': '\uEEBE', 'CustomListMirrored': '\uEEBF', 'IssueTracking': '\uEEC0', 'IssueTrackingMirrored': '\uEEC1', 'PictureLibrary': '\uEEC2', 'OfficeAddinsLogo': '\uEEC7', 'OfflineOneDriveParachute': '\uEEC8', 'OfflineOneDriveParachuteDisabled': '\uEEC9', 'TriangleSolidUp12': '\uEECC', 'TriangleSolidDown12': '\uEECD', 'TriangleSolidLeft12': '\uEECE', 'TriangleSolidRight12': '\uEECF', 'TriangleUp12': '\uEED0', 'TriangleDown12': '\uEED1', 'TriangleLeft12': '\uEED2', 'TriangleRight12': '\uEED3', 'ArrowUpRight8': '\uEED4', 'ArrowDownRight8': '\uEED5', 'DocumentSet': '\uEED6', 'GoToDashboard': '\uEEED', 'DelveAnalytics': '\uEEEE', 'ArrowUpRightMirrored8': '\uEEEF', 'ArrowDownRightMirrored8': '\uEEF0', 'CompanyDirectory': '\uEF0D', 'OpenEnrollment': '\uEF1C', 'CompanyDirectoryMirrored': '\uEF2B', 'OneDriveAdd': '\uEF32', 'ProfileSearch': '\uEF35', 'Header2': '\uEF36', 'Header3': '\uEF37', 'Header4': '\uEF38', 'RingerSolid': '\uEF3A', 'Eyedropper': '\uEF3C', 'MarketDown': '\uEF42', 'CalendarWorkWeek': '\uEF51', 'SidePanel': '\uEF52', 'GlobeFavorite': '\uEF53', 'CaretTopLeftSolid8': '\uEF54', 'CaretTopRightSolid8': '\uEF55', 'ViewAll2': '\uEF56', 'DocumentReply': '\uEF57', 'PlayerSettings': '\uEF58', 'ReceiptForward': '\uEF59', 'ReceiptReply': '\uEF5A', 'ReceiptCheck': '\uEF5B', 'Fax': '\uEF5C', 'RecurringEvent': '\uEF5D', 'ReplyAlt': '\uEF5E', 'ReplyAllAlt': '\uEF5F', 'EditStyle': '\uEF60', 'EditMail': '\uEF61', 'Lifesaver': '\uEF62', 'LifesaverLock': '\uEF63', 'InboxCheck': '\uEF64', 'FolderSearch': '\uEF65' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-7.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-8.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-8.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-8\"", src: "url('".concat(baseUrl, "fabric-icons-8-6fdf1528.woff') format('woff')") }, icons: { 'CollapseMenu': '\uEF66', 'ExpandMenu': '\uEF67', 'Boards': '\uEF68', 'SunAdd': '\uEF69', 'SunQuestionMark': '\uEF6A', 'LandscapeOrientation': '\uEF6B', 'DocumentSearch': '\uEF6C', 'PublicCalendar': '\uEF6D', 'PublicContactCard': '\uEF6E', 'PublicEmail': '\uEF6F', 'PublicFolder': '\uEF70', 'WordDocument': '\uEF71', 'PowerPointDocument': '\uEF72', 'ExcelDocument': '\uEF73', 'GroupedList': '\uEF74', 'ClassroomLogo': '\uEF75', 'Sections': '\uEF76', 'EditPhoto': '\uEF77', 'Starburst': '\uEF78', 'ShareiOS': '\uEF79', 'AirTickets': '\uEF7A', 'PencilReply': '\uEF7B', 'Tiles2': '\uEF7C', 'SkypeCircleCheck': '\uEF7D', 'SkypeCircleClock': '\uEF7E', 'SkypeCircleMinus': '\uEF7F', 'SkypeMessage': '\uEF83', 'ClosedCaption': '\uEF84', 'ATPLogo': '\uEF85', 'OfficeFormsLogoInverse': '\uEF86', 'RecycleBin': '\uEF87', 'EmptyRecycleBin': '\uEF88', 'Hide2': '\uEF89', 'Breadcrumb': '\uEF8C', 'BirthdayCake': '\uEF8D', 'TimeEntry': '\uEF95', 'CRMProcesses': '\uEFB1', 'PageEdit': '\uEFB6', 'PageArrowRight': '\uEFB8', 'PageRemove': '\uEFBA', 'Database': '\uEFC7', 'DataManagementSettings': '\uEFC8', 'CRMServices': '\uEFD2', 'EditContact': '\uEFD3', 'ConnectContacts': '\uEFD4', 'AppIconDefaultAdd': '\uEFDA', 'AppIconDefaultList': '\uEFDE', 'ActivateOrders': '\uEFE0', 'DeactivateOrders': '\uEFE1', 'ProductCatalog': '\uEFE8', 'ScatterChart': '\uEFEB', 'AccountActivity': '\uEFF4', 'DocumentManagement': '\uEFFC', 'CRMReport': '\uEFFE', 'KnowledgeArticle': '\uF000', 'Relationship': '\uF003', 'HomeVerify': '\uF00E', 'ZipFolder': '\uF012', 'SurveyQuestions': '\uF01B', 'TextDocument': '\uF029', 'TextDocumentShared': '\uF02B', 'PageCheckedOut': '\uF02C', 'PageShared': '\uF02D', 'SaveAndClose': '\uF038', 'Script': '\uF03A', 'Archive': '\uF03F', 'ActivityFeed': '\uF056', 'Compare': '\uF057', 'EventDate': '\uF059', 'ArrowUpRight': '\uF069', 'CaretRight': '\uF06B', 'SetAction': '\uF071', 'ChatBot': '\uF08B', 'CaretSolidLeft': '\uF08D', 'CaretSolidDown': '\uF08E', 'CaretSolidRight': '\uF08F', 'CaretSolidUp': '\uF090', 'PowerAppsLogo': '\uF091', 'PowerApps2Logo': '\uF092', 'SearchIssue': '\uF09A', 'SearchIssueMirrored': '\uF09B', 'FabricAssetLibrary': '\uF09C', 'FabricDataConnectionLibrary': '\uF09D', 'FabricDocLibrary': '\uF09E', 'FabricFormLibrary': '\uF09F', 'FabricFormLibraryMirrored': '\uF0A0', 'FabricReportLibrary': '\uF0A1', 'FabricReportLibraryMirrored': '\uF0A2', 'FabricPublicFolder': '\uF0A3', 'FabricFolderSearch': '\uF0A4', 'FabricMovetoFolder': '\uF0A5', 'FabricUnsyncFolder': '\uF0A6', 'FabricSyncFolder': '\uF0A7', 'FabricOpenFolderHorizontal': '\uF0A8', 'FabricFolder': '\uF0A9', 'FabricFolderFill': '\uF0AA', 'FabricNewFolder': '\uF0AB', 'FabricPictureLibrary': '\uF0AC', 'PhotoVideoMedia': '\uF0B1', 'AddFavorite': '\uF0C8' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-8.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-9.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-9.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none' }, fontFace: { fontFamily: "\"FabricMDL2Icons-9\"", src: "url('".concat(baseUrl, "fabric-icons-9-c6162b42.woff') format('woff')") }, icons: { 'AddFavoriteFill': '\uF0C9', 'BufferTimeBefore': '\uF0CF', 'BufferTimeAfter': '\uF0D0', 'BufferTimeBoth': '\uF0D1', 'PublishContent': '\uF0D4', 'ClipboardList': '\uF0E3', 'ClipboardListMirrored': '\uF0E4', 'CannedChat': '\uF0F2', 'SkypeForBusinessLogo': '\uF0FC', 'TabCenter': '\uF100', 'PageCheckedin': '\uF104', 'PageList': '\uF106', 'ReadOutLoud': '\uF112', 'CaretBottomLeftSolid8': '\uF121', 'CaretBottomRightSolid8': '\uF122', 'FolderHorizontal': '\uF12B', 'MicrosoftStaffhubLogo': '\uF130', 'GiftboxOpen': '\uF133', 'StatusCircleOuter': '\uF136', 'StatusCircleInner': '\uF137', 'StatusCircleRing': '\uF138', 'StatusTriangleOuter': '\uF139', 'StatusTriangleInner': '\uF13A', 'StatusTriangleExclamation': '\uF13B', 'StatusCircleExclamation': '\uF13C', 'StatusCircleErrorX': '\uF13D', 'StatusCircleInfo': '\uF13F', 'StatusCircleBlock': '\uF140', 'StatusCircleBlock2': '\uF141', 'StatusCircleQuestionMark': '\uF142', 'StatusCircleSync': '\uF143', 'Toll': '\uF160', 'ExploreContentSingle': '\uF164', 'CollapseContent': '\uF165', 'CollapseContentSingle': '\uF166', 'InfoSolid': '\uF167', 'GroupList': '\uF168', 'ProgressRingDots': '\uF16A', 'CaloriesAdd': '\uF172', 'BranchFork': '\uF173', 'MuteChat': '\uF17A', 'AddHome': '\uF17B', 'AddWork': '\uF17C', 'MobileReport': '\uF18A', 'ScaleVolume': '\uF18C', 'HardDriveGroup': '\uF18F', 'FastMode': '\uF19A', 'ToggleLeft': '\uF19E', 'ToggleRight': '\uF19F', 'TriangleShape': '\uF1A7', 'RectangleShape': '\uF1A9', 'CubeShape': '\uF1AA', 'Trophy2': '\uF1AE', 'BucketColor': '\uF1B6', 'BucketColorFill': '\uF1B7', 'Taskboard': '\uF1C2', 'SingleColumn': '\uF1D3', 'DoubleColumn': '\uF1D4', 'TripleColumn': '\uF1D5', 'ColumnLeftTwoThirds': '\uF1D6', 'ColumnRightTwoThirds': '\uF1D7', 'AccessLogoFill': '\uF1DB', 'AnalyticsLogo': '\uF1DE', 'AnalyticsQuery': '\uF1DF', 'NewAnalyticsQuery': '\uF1E0', 'AnalyticsReport': '\uF1E1', 'WordLogo': '\uF1E3', 'WordLogoFill': '\uF1E4', 'ExcelLogo': '\uF1E5', 'ExcelLogoFill': '\uF1E6', 'OneNoteLogo': '\uF1E7', 'OneNoteLogoFill': '\uF1E8', 'OutlookLogo': '\uF1E9', 'OutlookLogoFill': '\uF1EA', 'PowerPointLogo': '\uF1EB', 'PowerPointLogoFill': '\uF1EC', 'PublisherLogo': '\uF1ED', 'PublisherLogoFill': '\uF1EE', 'ScheduleEventAction': '\uF1EF', 'FlameSolid': '\uF1F3', 'ServerProcesses': '\uF1FE', 'Server': '\uF201', 'SaveAll': '\uF203', 'LinkedInLogo': '\uF20A', 'Decimals': '\uF218', 'SidePanelMirrored': '\uF221', 'ProtectRestrict': '\uF22A', 'Blog': '\uF22B', 'UnknownMirrored': '\uF22E', 'PublicContactCardMirrored': '\uF230', 'GridViewSmall': '\uF232', 'GridViewMedium': '\uF233', 'GridViewLarge': '\uF234', 'Step': '\uF241', 'StepInsert': '\uF242', 'StepShared': '\uF243', 'StepSharedAdd': '\uF244', 'StepSharedInsert': '\uF245', 'ViewDashboard': '\uF246', 'ViewList': '\uF247' } }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons-9.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; // Your use of the content in the files referenced here is subject to the terms of the license at https://aka.ms/fluentui-assets-license Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); function initializeIcons(baseUrl, options) { if (baseUrl === void 0) { baseUrl = ''; } var subset = { style: { MozOsxFontSmoothing: 'grayscale', WebkitFontSmoothing: 'antialiased', fontStyle: 'normal', fontWeight: 'normal', speak: 'none', }, fontFace: { fontFamily: "\"FabricMDL2Icons\"", src: "url('".concat(baseUrl, "fabric-icons-a13498cf.woff') format('woff')"), }, icons: { GlobalNavButton: '\uE700', ChevronDown: '\uE70D', ChevronUp: '\uE70E', Edit: '\uE70F', Add: '\uE710', Cancel: '\uE711', More: '\uE712', Settings: '\uE713', Mail: '\uE715', Filter: '\uE71C', Search: '\uE721', Share: '\uE72D', BlockedSite: '\uE72F', FavoriteStar: '\uE734', FavoriteStarFill: '\uE735', CheckMark: '\uE73E', Delete: '\uE74D', ChevronLeft: '\uE76B', ChevronRight: '\uE76C', Calendar: '\uE787', Megaphone: '\uE789', Undo: '\uE7A7', Flag: '\uE7C1', Page: '\uE7C3', Pinned: '\uE840', View: '\uE890', Clear: '\uE894', Download: '\uE896', Upload: '\uE898', Folder: '\uE8B7', Sort: '\uE8CB', AlignRight: '\uE8E2', AlignLeft: '\uE8E4', Tag: '\uE8EC', AddFriend: '\uE8FA', Info: '\uE946', SortLines: '\uE9D0', List: '\uEA37', CircleRing: '\uEA3A', Heart: '\uEB51', HeartFill: '\uEB52', Tiles: '\uECA5', Embed: '\uECCE', Glimmer: '\uECF4', Ascending: '\uEDC0', Descending: '\uEDC1', SortUp: '\uEE68', SortDown: '\uEE69', SyncToPC: '\uEE6E', LargeGrid: '\uEECB', SkypeCheck: '\uEF80', SkypeClock: '\uEF81', SkypeMinus: '\uEF82', ClearFilter: '\uEF8F', Flow: '\uEF90', StatusCircleCheckmark: '\uF13E', MoreVertical: '\uF2BC', }, }; (0, style_utilities_1.registerIcons)(subset, options); } exports.initializeIcons = initializeIcons; //# sourceMappingURL=fabric-icons.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/iconAliases.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/iconAliases.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.registerIconAliases = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var registerIconAliases = function () { (0, style_utilities_1.registerIconAlias)('trash', 'delete'); (0, style_utilities_1.registerIconAlias)('onedrive', 'onedrivelogo'); (0, style_utilities_1.registerIconAlias)('alertsolid12', 'eventdatemissed12'); (0, style_utilities_1.registerIconAlias)('sixpointstar', '6pointstar'); (0, style_utilities_1.registerIconAlias)('twelvepointstar', '12pointstar'); (0, style_utilities_1.registerIconAlias)('toggleon', 'toggleleft'); (0, style_utilities_1.registerIconAlias)('toggleoff', 'toggleright'); }; exports.registerIconAliases = registerIconAliases; exports["default"] = exports.registerIconAliases; //# sourceMappingURL=iconAliases.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/index.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/index.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var fabric_icons_1 = __webpack_require__(/*! ./fabric-icons */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons.js"); var fabric_icons_0_1 = __webpack_require__(/*! ./fabric-icons-0 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-0.js"); var fabric_icons_1_1 = __webpack_require__(/*! ./fabric-icons-1 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-1.js"); var fabric_icons_2_1 = __webpack_require__(/*! ./fabric-icons-2 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-2.js"); var fabric_icons_3_1 = __webpack_require__(/*! ./fabric-icons-3 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-3.js"); var fabric_icons_4_1 = __webpack_require__(/*! ./fabric-icons-4 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-4.js"); var fabric_icons_5_1 = __webpack_require__(/*! ./fabric-icons-5 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-5.js"); var fabric_icons_6_1 = __webpack_require__(/*! ./fabric-icons-6 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-6.js"); var fabric_icons_7_1 = __webpack_require__(/*! ./fabric-icons-7 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-7.js"); var fabric_icons_8_1 = __webpack_require__(/*! ./fabric-icons-8 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-8.js"); var fabric_icons_9_1 = __webpack_require__(/*! ./fabric-icons-9 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-9.js"); var fabric_icons_10_1 = __webpack_require__(/*! ./fabric-icons-10 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-10.js"); var fabric_icons_11_1 = __webpack_require__(/*! ./fabric-icons-11 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-11.js"); var fabric_icons_12_1 = __webpack_require__(/*! ./fabric-icons-12 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-12.js"); var fabric_icons_13_1 = __webpack_require__(/*! ./fabric-icons-13 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-13.js"); var fabric_icons_14_1 = __webpack_require__(/*! ./fabric-icons-14 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-14.js"); var fabric_icons_15_1 = __webpack_require__(/*! ./fabric-icons-15 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-15.js"); var fabric_icons_16_1 = __webpack_require__(/*! ./fabric-icons-16 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-16.js"); var fabric_icons_17_1 = __webpack_require__(/*! ./fabric-icons-17 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/fabric-icons-17.js"); var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var iconAliases_1 = __webpack_require__(/*! ./iconAliases */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/iconAliases.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var DEFAULT_BASE_URL = "".concat(style_utilities_1.FLUENT_CDN_BASE_URL, "/assets/icons/"); var win = (0, utilities_1.getWindow)(); function initializeIcons(baseUrl, options) { var _a, _b; if (baseUrl === void 0) { baseUrl = ((_a = win === null || win === void 0 ? void 0 : win.FabricConfig) === null || _a === void 0 ? void 0 : _a.iconBaseUrl) || ((_b = win === null || win === void 0 ? void 0 : win.FabricConfig) === null || _b === void 0 ? void 0 : _b.fontBaseUrl) || DEFAULT_BASE_URL; } [fabric_icons_1.initializeIcons, fabric_icons_0_1.initializeIcons, fabric_icons_1_1.initializeIcons, fabric_icons_2_1.initializeIcons, fabric_icons_3_1.initializeIcons, fabric_icons_4_1.initializeIcons, fabric_icons_5_1.initializeIcons, fabric_icons_6_1.initializeIcons, fabric_icons_7_1.initializeIcons, fabric_icons_8_1.initializeIcons, fabric_icons_9_1.initializeIcons, fabric_icons_10_1.initializeIcons, fabric_icons_11_1.initializeIcons, fabric_icons_12_1.initializeIcons, fabric_icons_13_1.initializeIcons, fabric_icons_14_1.initializeIcons, fabric_icons_15_1.initializeIcons, fabric_icons_16_1.initializeIcons, fabric_icons_17_1.initializeIcons].forEach(function (initialize) { return initialize(baseUrl, options); }); (0, iconAliases_1.registerIconAliases)(); } exports.initializeIcons = initializeIcons; /* eslint-enable deprecation/deprecation */ __webpack_require__(/*! ./version */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/version.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/version.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. var set_version_1 = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib-commonjs/index.js"); (0, set_version_1.setVersion)('@fluentui/font-icons-mdl2', '8.5.24'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/IComponent.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib-commonjs/IComponent.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=IComponent.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/IHTMLSlots.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib-commonjs/IHTMLSlots.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=IHTMLSlots.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/ISlots.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib-commonjs/ISlots.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ISlots.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/ThemeProvider.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib-commonjs/ThemeProvider.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ThemeProvider = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); /** * Theme provider is a simplified version of Customizer that activates the appropriate theme data * for a given scheme name. * * @param providers - Injected providers for accessing theme data and providing it via a Customizer component. * @deprecated This is an old ThemeProvider implementation. New code should use the ThemeProvider exported from * `@fluentui/react` (or `@fluentui/react/lib/Theme`) instead. */ var ThemeProvider = function (props) { var scheme = props.scheme, theme = props.theme, rest = tslib_1.__rest(props, ["scheme", "theme"]); // TODO: consider merging implementation with theme-proto, which only stores a reference / scheme name to theme // in context and uses quick global store accessor to trigger change by passing in theme object as child and // triggering re-render. (perf benefits need verification) var contextTransform = function (context) { return (0, style_utilities_1.getThemedContext)(context, scheme, theme); }; // eslint-disable-next-line react/jsx-no-bind, deprecation/deprecation return React.createElement(utilities_1.Customizer, tslib_1.__assign({}, rest, { contextTransform: contextTransform })); }; exports.ThemeProvider = ThemeProvider; //# sourceMappingURL=ThemeProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/createComponent.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib-commonjs/createComponent.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createComponent = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var slots_1 = __webpack_require__(/*! ./slots */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/slots.js"); var utilities_2 = __webpack_require__(/*! ./utilities */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/utilities.js"); /** * Assembles a higher order component based on the following: styles, theme, view, and state. * Imposes a separation of concern and centralizes styling processing to increase ease of use and robustness * in how components use and apply styling and theming. * * Automatically merges and applies themes and styles with theme / styleprops having the highest priority. * State component, if provided, is passed in props for processing. Props from state / user are automatically processed * and styled before finally being passed to view. * * State components should contain all stateful behavior and should not generate any JSX, but rather simply call * the view prop. * * Views should simply be stateless pure functions that receive all props needed for rendering their output. * * State component is optional. If state is not provided, created component is essentially a functional * stateless component. * * @param options - component Component options. See IComponentOptions for more detail. */ function createComponent(view, options) { if (options === void 0) { options = {}; } var _a = options.factoryOptions, factoryOptions = _a === void 0 ? {} : _a; var defaultProp = factoryOptions.defaultProp; var ResultComponent = function (componentProps) { var settings = _getCustomizations(options.displayName, React.useContext(utilities_1.CustomizerContext), options.fields); var stateReducer = options.state; if (stateReducer) { // Don't assume state will return all props, so spread useState result over component props. componentProps = tslib_1.__assign(tslib_1.__assign({}, componentProps), stateReducer(componentProps)); } var theme = componentProps.theme || settings.theme; var tokens = _resolveTokens(componentProps, theme, options.tokens, settings.tokens, componentProps.tokens); var styles = _resolveStyles(componentProps, theme, tokens, options.styles, settings.styles, componentProps.styles); var viewProps = tslib_1.__assign(tslib_1.__assign({}, componentProps), { styles: styles, tokens: tokens, _defaultStyles: styles, theme: theme }); return view(viewProps); }; ResultComponent.displayName = options.displayName || view.name; // If a shorthand prop is defined, create a factory for the component. // TODO: This shouldn't be a concern of createComponent.. factoryOptions should just be forwarded. // Need to weigh creating default factories on component creation vs. memoizing them on use in slots.tsx. if (defaultProp) { ResultComponent.create = (0, slots_1.createFactory)(ResultComponent, { defaultProp: defaultProp }); } (0, utilities_2.assign)(ResultComponent, options.statics); // Later versions of TypeSript should allow us to merge objects in a type safe way and avoid this cast. return ResultComponent; } exports.createComponent = createComponent; /** * Resolve all styles functions with both props and tokens and flatten results along with all styles objects. */ function _resolveStyles(props, theme, tokens) { var allStyles = []; for (var _i = 3; _i < arguments.length; _i++) { allStyles[_i - 3] = arguments[_i]; } return style_utilities_1.concatStyleSets.apply(void 0, allStyles.map(function (styles) { return typeof styles === 'function' ? styles(props, theme, tokens) : styles; })); } /** * Resolve all tokens functions with props flatten results along with all tokens objects. */ function _resolveTokens(props, theme) { var allTokens = []; for (var _i = 2; _i < arguments.length; _i++) { allTokens[_i - 2] = arguments[_i]; } var tokens = {}; for (var _a = 0, allTokens_1 = allTokens; _a < allTokens_1.length; _a++) { var currentTokens = allTokens_1[_a]; if (currentTokens) { // TODO: why is this cast needed? TS seems to think there is a (TToken | Function) union from somewhere. currentTokens = typeof currentTokens === 'function' ? currentTokens(props, theme) : currentTokens; if (Array.isArray(currentTokens)) { currentTokens = _resolveTokens.apply(void 0, tslib_1.__spreadArray([props, theme], currentTokens, false)); } (0, utilities_2.assign)(tokens, currentTokens); } } return tokens; } /** * Helper function for calling Customizations.getSettings falling back to default fields. * * @param displayName Displayable name for component. * @param context React context passed to component containing contextual settings. * @param fields Optional list of properties to grab from global store and context. */ function _getCustomizations(displayName, context, fields) { // TODO: do we want field props? should fields be part of IComponent and used here? // TODO: should we centrally define DefaultFields? (not exported from styling) // TODO: tie this array to ICustomizationProps, such that each array element is keyof ICustomizationProps var DefaultFields = ['theme', 'styles', 'tokens']; return utilities_1.Customizations.getSettings(fields || DefaultFields, displayName, context.customizations); } //# sourceMappingURL=createComponent.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/hooks/controlled.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib-commonjs/hooks/controlled.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getControlledDerivedProps = exports.useControlledState = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * Controlled state helper that gives priority to props value. Useful for components that have props with both * controlled and uncontrolled modes. Any props values will override state, but will not update internal state. * If prop is defined and then later undefined, state will revert to its previous value. * * @param props - The props object containing controlled prop values. * @param propName - The controlled prop name. * @param options - Options. defaultPropValue is only used if defaultPropName (or its value) is undefined. */ function useControlledState(props, propName, options) { var defaultValue; if (options) { if (options.defaultPropName && props[options.defaultPropName] !== undefined) { // No easy way to coerce TProps[TDefaultProp] to match TProps[TProp] in generic typings, so cast it here. defaultValue = props[options.defaultPropName]; } else { defaultValue = options && options.defaultPropValue; } } var _a = React.useState(defaultValue), state = _a[0], setState = _a[1]; if (props[propName] !== undefined) { return [props[propName], setState]; } else { return [state, setState]; } } exports.useControlledState = useControlledState; /** * Simple controlled helper that gives priority to props value and falls back to derived value. * * @param props - The props object containing controlled prop values. * @param propName - The controlled prop name. * @param derivedValue - Derived value. Returned when controlled value is not present. */ function getControlledDerivedProps(props, propName, derivedValue) { if (props[propName] !== undefined) { return props[propName]; } else { return derivedValue; } } exports.getControlledDerivedProps = getControlledDerivedProps; //# sourceMappingURL=controlled.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/hooks/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib-commonjs/hooks/index.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./controlled */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/hooks/controlled.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/index.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib-commonjs/index.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.legacyStyled = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./createComponent */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/createComponent.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./IComponent */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/IComponent.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./IHTMLSlots */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/IHTMLSlots.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ISlots */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/ISlots.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./slots */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/slots.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ThemeProvider */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/ThemeProvider.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./hooks/index */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/hooks/index.js"), exports); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "legacyStyled", ({ enumerable: true, get: function () { return utilities_1.styled; } })); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/slots.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib-commonjs/slots.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getSlots = exports.createFactory = exports.withSlots = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var utilities_2 = __webpack_require__(/*! ./utilities */ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/utilities.js"); /** * This function is required for any module that uses slots. * * This function is a slot resolver that automatically evaluates slot functions to generate React elements. * A byproduct of this resolver is that it removes slots from the React hierarchy by bypassing React.createElement. * * To use this function on a per-file basis, use the jsx directive targeting withSlots. * This directive must be the FIRST LINE in the file to work correctly. * Usage of this pragma also requires withSlots import statement. * * See React.createElement */ // Can't use typeof on React.createElement since it's overloaded. Approximate createElement's signature for now // and widen as needed. function withSlots(type, props) { var children = []; for (var _i = 2; _i < arguments.length; _i++) { children[_i - 2] = arguments[_i]; } var slotType = type; if (slotType.isSlot) { // Since we are bypassing createElement, use React.Children.toArray to make sure children are // properly assigned keys. // TODO: should this be mutating? does React mutate children subprop with createElement? // TODO: will toArray clobber existing keys? // TODO: React generates warnings because it doesn't detect hidden member _store that is set in createElement. // Even children passed to createElement without keys don't generate this warning. // Is there a better way to prevent slots from appearing in hierarchy? toArray doesn't address root issue. children = React.Children.toArray(children); // TODO: There is something weird going on here with children embedded in props vs. rest args. // Comment out these lines to see. Make sure this function is doing the right things. if (children.length === 0) { return slotType(props); } return slotType(tslib_1.__assign(tslib_1.__assign({}, props), { children: children })); } else { // TODO: Are there some cases where children should NOT be spread? Also, spreading reraises perf question. // Children had to be spread to avoid breaking KeytipData in Toggle.view: // react-dom.development.js:18931 Uncaught TypeError: children is not a function // Without spread, function child is a child array of one element // TODO: is there a reason this can't be: // return React.createElement.apply(this, arguments); return React.createElement.apply(React, tslib_1.__spreadArray([type, props], children, false)); } } exports.withSlots = withSlots; /** * This function creates factories that render ouput depending on the user ISlotProp props passed in. * @param DefaultComponent - Base component to render when not overridden by user props. * @param options - Factory options, including defaultProp value for shorthand prop mapping. * @returns ISlotFactory function used for rendering slots. */ function createFactory(DefaultComponent, options) { if (options === void 0) { options = {}; } var _a = options.defaultProp, defaultProp = _a === void 0 ? 'children' : _a; var result = function (componentProps, userProps, userSlotOptions, defaultStyles, theme) { // If they passed in raw JSX, just return that. if (React.isValidElement(userProps)) { return userProps; } var flattenedUserProps = _translateShorthand(defaultProp, userProps); var finalProps = _constructFinalProps(defaultStyles, theme, componentProps, flattenedUserProps); if (userSlotOptions) { if (userSlotOptions.component) { // TODO: Remove cast if possible. This cast is needed because TS errors on the intrinsic portion of ReactType. // return ; var UserComponent = userSlotOptions.component; return React.createElement(UserComponent, tslib_1.__assign({}, finalProps)); } if (userSlotOptions.render) { return userSlotOptions.render(finalProps, DefaultComponent); } } return React.createElement(DefaultComponent, tslib_1.__assign({}, finalProps)); }; return result; } exports.createFactory = createFactory; /** * Default factory for components without explicit factories. */ var defaultFactory = (0, utilities_1.memoizeFunction)(function (type) { return createFactory(type); }); /** * This function generates slots that can be used in JSX given a definition of slots and their corresponding types. * @param userProps - Props as pass to component. * @param slots - Slot definition object defining the default slot component for each slot. * @returns A set of created slots that components can render in JSX. */ function getSlots(userProps, slots) { var result = {}; // userProps already has default props mixed in by createComponent. Recast here to gain typing for this function. var mixedProps = userProps; var _loop_1 = function (name_1) { if (slots.hasOwnProperty(name_1)) { // This closure method requires the use of withSlots to prevent unnecessary rerenders. This is because React // detects each closure as a different component (since it is a new instance) from the previous one and then // forces a rerender of the entire slot subtree. For now, the only way to avoid this is to use withSlots, which // bypasses the call to React.createElement. var slot = function (componentProps) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } if (args.length > 0) { // If React.createElement is being incorrectly used with slots, there will be additional arguments. // We can detect these additional arguments and error on their presence. throw new Error('Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.'); } // TODO: having TS infer types here seems to cause infinite loop. // use explicit types or casting to preserve typing if possible. // TODO: this should be a lookup on TProps property instead of being TProps directly, which is probably // causing the infinite loop return _renderSlot(slots[name_1], // TODO: this cast to any is hiding a relationship issue between the first two args componentProps, mixedProps[name_1], mixedProps.slots && mixedProps.slots[name_1], // _defaultStyles should always be present, but a check for existence is added to make view tests // easier to use. mixedProps._defaultStyles && mixedProps._defaultStyles[name_1], mixedProps.theme); }; slot.isSlot = true; result[name_1] = slot; } }; for (var name_1 in slots) { _loop_1(name_1); } return result; } exports.getSlots = getSlots; /** * Helper function that translates shorthand as needed. * @param defaultProp * @param slotProps */ function _translateShorthand(defaultProp, slotProps) { var _a; var transformedProps; if (typeof slotProps === 'string' || typeof slotProps === 'number' || typeof slotProps === 'boolean') { transformedProps = (_a = {}, _a[defaultProp] = slotProps, _a); } else { transformedProps = slotProps; } return transformedProps; } /** * Helper function that constructs final styles and props given a series of props ordered by increasing priority. */ function _constructFinalProps(defaultStyles, theme) { var allProps = []; for (var _i = 2; _i < arguments.length; _i++) { allProps[_i - 2] = arguments[_i]; } var finalProps = {}; var classNames = []; for (var _a = 0, allProps_1 = allProps; _a < allProps_1.length; _a++) { var props = allProps_1[_a]; classNames.push(props && props.className); (0, utilities_2.assign)(finalProps, props); } finalProps.className = (0, merge_styles_1.mergeCss)([defaultStyles, classNames], { rtl: (0, utilities_1.getRTL)(theme) }); return finalProps; } /** * Render a slot given component and user props. Uses component factory if available, otherwise falls back * to default factory. * @param ComponentType Factory component type. * @param componentProps The properties passed into slot from within the component. * @param userProps The user properties passed in from outside of the component. */ function _renderSlot(ComponentType, componentProps, userProps, slotOptions, defaultStyles, theme) { if (ComponentType.create !== undefined) { return ComponentType.create(componentProps, userProps, slotOptions, defaultStyles); } else { // TODO: need to resolve typing / generic issues passing through memoizeFunction. for now, cast to 'unknown' return defaultFactory(ComponentType)(componentProps, userProps, slotOptions, defaultStyles, theme); } } //# sourceMappingURL=slots.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/utilities.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib-commonjs/utilities.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.assign = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); exports.assign = tslib_1.__assign; //# sourceMappingURL=utilities.js.map /***/ }), /***/ "./node_modules/@fluentui/foundation-legacy/lib-commonjs/version.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/foundation-legacy/lib-commonjs/version.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. var set_version_1 = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib-commonjs/index.js"); (0, set_version_1.setVersion)('@fluentui/foundation-legacy', '8.2.44'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/StyleOptionsState.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/StyleOptionsState.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyleOptions = exports.getRTL = exports.setRTL = void 0; /** * Sets the current RTL value. */ function setRTL(isRTL) { if (_rtl !== isRTL) { _rtl = isRTL; } } exports.setRTL = setRTL; /** * Gets the current RTL value. */ function getRTL() { if (_rtl === undefined) { _rtl = typeof document !== 'undefined' && !!document.documentElement && document.documentElement.getAttribute('dir') === 'rtl'; } return _rtl; } exports.getRTL = getRTL; // This has been split into 2 lines because it was working in Fabric due to the code being transpiled to es5, so this // was converted to var while not working in Fluent that uses babel to transpile the code to be es6-like. Splitting the // logic into two lines, however, allows it to work in both scenarios. var _rtl; _rtl = getRTL(); function getStyleOptions() { return { rtl: getRTL(), }; } exports.getStyleOptions = getStyleOptions; //# sourceMappingURL=StyleOptionsState.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/Stylesheet.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/Stylesheet.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Stylesheet = exports.InjectionMode = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); exports.InjectionMode = { /** * Avoids style injection, use getRules() to read the styles. */ none: 0, /** * Inserts rules using the insertRule api. */ insertNode: 1, /** * Appends rules using appendChild. */ appendChild: 2, }; var STYLESHEET_SETTING = '__stylesheet__'; /** * MSIE 11 doesn't cascade styles based on DOM ordering, but rather on the order that each style node * is created. As such, to maintain consistent priority, IE11 should reuse a single style node. */ var REUSE_STYLE_NODE = typeof navigator !== 'undefined' && /rv:11.0/.test(navigator.userAgent); var _global = {}; // Grab window. try { // Why the cast? // if compiled/type checked in same program with `@fluentui/font-icons-mdl2` which extends `Window` on global // ( check packages/font-icons-mdl2/src/index.ts ) the definitions don't match! Thus the need of this extra assertion _global = (window || {}); } catch (_a) { /* leave as blank object */ } var _stylesheet; /** * Represents the state of styles registered in the page. Abstracts * the surface for adding styles to the stylesheet, exposes helpers * for reading the styles registered in server rendered scenarios. * * @public */ var Stylesheet = /** @class */ (function () { function Stylesheet(config, serializedStylesheet) { var _a, _b, _c, _d, _e, _f; this._rules = []; this._preservedRules = []; this._counter = 0; this._keyToClassName = {}; this._onInsertRuleCallbacks = []; this._onResetCallbacks = []; this._classNameToArgs = {}; this._config = (0, tslib_1.__assign)({ // If there is no document we won't have an element to inject into. injectionMode: typeof document === 'undefined' ? exports.InjectionMode.none : exports.InjectionMode.insertNode, defaultPrefix: 'css', namespace: undefined, cspSettings: undefined }, config); this._classNameToArgs = (_a = serializedStylesheet === null || serializedStylesheet === void 0 ? void 0 : serializedStylesheet.classNameToArgs) !== null && _a !== void 0 ? _a : this._classNameToArgs; this._counter = (_b = serializedStylesheet === null || serializedStylesheet === void 0 ? void 0 : serializedStylesheet.counter) !== null && _b !== void 0 ? _b : this._counter; this._keyToClassName = (_d = (_c = this._config.classNameCache) !== null && _c !== void 0 ? _c : serializedStylesheet === null || serializedStylesheet === void 0 ? void 0 : serializedStylesheet.keyToClassName) !== null && _d !== void 0 ? _d : this._keyToClassName; this._preservedRules = (_e = serializedStylesheet === null || serializedStylesheet === void 0 ? void 0 : serializedStylesheet.preservedRules) !== null && _e !== void 0 ? _e : this._preservedRules; this._rules = (_f = serializedStylesheet === null || serializedStylesheet === void 0 ? void 0 : serializedStylesheet.rules) !== null && _f !== void 0 ? _f : this._rules; } /** * Gets the singleton instance. */ Stylesheet.getInstance = function () { _stylesheet = _global[STYLESHEET_SETTING]; if (!_stylesheet || (_stylesheet._lastStyleElement && _stylesheet._lastStyleElement.ownerDocument !== document)) { var fabricConfig = (_global === null || _global === void 0 ? void 0 : _global.FabricConfig) || {}; var stylesheet = new Stylesheet(fabricConfig.mergeStyles, fabricConfig.serializedStylesheet); _stylesheet = stylesheet; _global[STYLESHEET_SETTING] = stylesheet; } return _stylesheet; }; /** * Serializes the Stylesheet instance into a format which allows rehydration on creation. * @returns string representation of `ISerializedStylesheet` interface. */ Stylesheet.prototype.serialize = function () { return JSON.stringify({ classNameToArgs: this._classNameToArgs, counter: this._counter, keyToClassName: this._keyToClassName, preservedRules: this._preservedRules, rules: this._rules, }); }; /** * Configures the stylesheet. */ Stylesheet.prototype.setConfig = function (config) { this._config = (0, tslib_1.__assign)((0, tslib_1.__assign)({}, this._config), config); }; /** * Configures a reset callback. * * @param callback - A callback which will be called when the Stylesheet is reset. * @returns function which when called un-registers provided callback. */ Stylesheet.prototype.onReset = function (callback) { var _this = this; this._onResetCallbacks.push(callback); return function () { _this._onResetCallbacks = _this._onResetCallbacks.filter(function (cb) { return cb !== callback; }); }; }; /** * Configures an insert rule callback. * * @param callback - A callback which will be called when a rule is inserted. * @returns function which when called un-registers provided callback. */ Stylesheet.prototype.onInsertRule = function (callback) { var _this = this; this._onInsertRuleCallbacks.push(callback); return function () { _this._onInsertRuleCallbacks = _this._onInsertRuleCallbacks.filter(function (cb) { return cb !== callback; }); }; }; /** * Generates a unique classname. * * @param displayName - Optional value to use as a prefix. */ Stylesheet.prototype.getClassName = function (displayName) { var namespace = this._config.namespace; var prefix = displayName || this._config.defaultPrefix; return "".concat(namespace ? namespace + '-' : '').concat(prefix, "-").concat(this._counter++); }; /** * Used internally to cache information about a class which was * registered with the stylesheet. */ Stylesheet.prototype.cacheClassName = function (className, key, args, rules) { this._keyToClassName[key] = className; this._classNameToArgs[className] = { args: args, rules: rules, }; }; /** * Gets the appropriate classname given a key which was previously * registered using cacheClassName. */ Stylesheet.prototype.classNameFromKey = function (key) { return this._keyToClassName[key]; }; /** * Gets all classnames cache with the stylesheet. */ Stylesheet.prototype.getClassNameCache = function () { return this._keyToClassName; }; /** * Gets the arguments associated with a given classname which was * previously registered using cacheClassName. */ Stylesheet.prototype.argsFromClassName = function (className) { var entry = this._classNameToArgs[className]; return entry && entry.args; }; /** * Gets the rules associated with a given classname which was * previously registered using cacheClassName. */ Stylesheet.prototype.insertedRulesFromClassName = function (className) { var entry = this._classNameToArgs[className]; return entry && entry.rules; }; /** * Inserts a css rule into the stylesheet. * @param preserve - Preserves the rule beyond a reset boundary. */ Stylesheet.prototype.insertRule = function (rule, preserve) { var injectionMode = this._config.injectionMode; var element = injectionMode !== exports.InjectionMode.none ? this._getStyleElement() : undefined; if (preserve) { this._preservedRules.push(rule); } if (element) { switch (injectionMode) { case exports.InjectionMode.insertNode: var sheet = element.sheet; try { sheet.insertRule(rule, sheet.cssRules.length); } catch (e) { // The browser will throw exceptions on unsupported rules (such as a moz prefix in webkit.) // We need to swallow the exceptions for this scenario, otherwise we'd need to filter // which could be slower and bulkier. } break; case exports.InjectionMode.appendChild: element.appendChild(document.createTextNode(rule)); break; } } else { this._rules.push(rule); } // eslint-disable-next-line deprecation/deprecation if (this._config.onInsertRule) { // eslint-disable-next-line deprecation/deprecation this._config.onInsertRule(rule); } this._onInsertRuleCallbacks.forEach(function (callback) { return callback(); }); }; /** * Gets all rules registered with the stylesheet; only valid when * using InsertionMode.none. */ Stylesheet.prototype.getRules = function (includePreservedRules) { return (includePreservedRules ? this._preservedRules.join('') : '') + this._rules.join(''); }; /** * Resets the internal state of the stylesheet. Only used in server * rendered scenarios where we're using InsertionMode.none. */ Stylesheet.prototype.reset = function () { this._rules = []; this._counter = 0; this._classNameToArgs = {}; this._keyToClassName = {}; this._onResetCallbacks.forEach(function (callback) { return callback(); }); }; // Forces the regeneration of incoming styles without totally resetting the stylesheet. Stylesheet.prototype.resetKeys = function () { this._keyToClassName = {}; }; Stylesheet.prototype._getStyleElement = function () { var _this = this; if (!this._styleElement && typeof document !== 'undefined') { this._styleElement = this._createStyleElement(); if (!REUSE_STYLE_NODE) { // Reset the style element on the next frame. window.requestAnimationFrame(function () { _this._styleElement = undefined; }); } } return this._styleElement; }; Stylesheet.prototype._createStyleElement = function () { var head = document.head; var styleElement = document.createElement('style'); var nodeToInsertBefore = null; styleElement.setAttribute('data-merge-styles', 'true'); var cspSettings = this._config.cspSettings; if (cspSettings) { if (cspSettings.nonce) { styleElement.setAttribute('nonce', cspSettings.nonce); } } if (this._lastStyleElement) { // If the `nextElementSibling` is null, then the insertBefore will act as a regular append. // https://developer.mozilla.org/en-US/docs/Web/API/Node/insertBefore#Syntax nodeToInsertBefore = this._lastStyleElement.nextElementSibling; } else { var placeholderStyleTag = this._findPlaceholderStyleTag(); if (placeholderStyleTag) { nodeToInsertBefore = placeholderStyleTag.nextElementSibling; } else { nodeToInsertBefore = head.childNodes[0]; } } head.insertBefore(styleElement, head.contains(nodeToInsertBefore) ? nodeToInsertBefore : null); this._lastStyleElement = styleElement; return styleElement; }; Stylesheet.prototype._findPlaceholderStyleTag = function () { var head = document.head; if (head) { return head.querySelector('style[data-merge-styles]'); } return null; }; return Stylesheet; }()); exports.Stylesheet = Stylesheet; //# sourceMappingURL=Stylesheet.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/concatStyleSets.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/concatStyleSets.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.concatStyleSets = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); /** * Combine a set of styles together (but does not register css classes). * @param styleSets - One or more stylesets to be merged (each param can also be falsy). */ function concatStyleSets() { var styleSets = []; for (var _i = 0; _i < arguments.length; _i++) { styleSets[_i] = arguments[_i]; } if (styleSets && styleSets.length === 1 && styleSets[0] && !styleSets[0].subComponentStyles) { return styleSets[0]; } var mergedSet = {}; // We process sub component styles in two phases. First we collect them, then we combine them into 1 style function. var workingSubcomponentStyles = {}; for (var _a = 0, styleSets_1 = styleSets; _a < styleSets_1.length; _a++) { var currentSet = styleSets_1[_a]; if (currentSet) { for (var prop in currentSet) { if (currentSet.hasOwnProperty(prop)) { if (prop === 'subComponentStyles' && currentSet.subComponentStyles !== undefined) { // subcomponent styles - style functions or objects var currentComponentStyles = currentSet.subComponentStyles; for (var subCompProp in currentComponentStyles) { if (currentComponentStyles.hasOwnProperty(subCompProp)) { if (workingSubcomponentStyles.hasOwnProperty(subCompProp)) { workingSubcomponentStyles[subCompProp].push(currentComponentStyles[subCompProp]); } else { workingSubcomponentStyles[subCompProp] = [currentComponentStyles[subCompProp]]; } } } continue; } // the as any casts below is a workaround for ts 2.8. // todo: remove cast to any in ts 2.9. var mergedValue = mergedSet[prop]; var currentValue = currentSet[prop]; if (mergedValue === undefined) { mergedSet[prop] = currentValue; } else { mergedSet[prop] = (0, tslib_1.__spreadArray)((0, tslib_1.__spreadArray)([], (Array.isArray(mergedValue) ? mergedValue : [mergedValue]), true), (Array.isArray(currentValue) ? currentValue : [currentValue]), true); } } } } } if (Object.keys(workingSubcomponentStyles).length > 0) { mergedSet.subComponentStyles = {}; var mergedSubStyles = mergedSet.subComponentStyles; var _loop_1 = function (subCompProp) { if (workingSubcomponentStyles.hasOwnProperty(subCompProp)) { var workingSet_1 = workingSubcomponentStyles[subCompProp]; mergedSubStyles[subCompProp] = function (styleProps) { return concatStyleSets.apply(void 0, workingSet_1.map(function (styleFunctionOrObject) { return typeof styleFunctionOrObject === 'function' ? styleFunctionOrObject(styleProps) : styleFunctionOrObject; })); }; } }; // now we process the subcomponent styles if there are any for (var subCompProp in workingSubcomponentStyles) { _loop_1(subCompProp); } } return mergedSet; } exports.concatStyleSets = concatStyleSets; //# sourceMappingURL=concatStyleSets.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/concatStyleSetsWithProps.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/concatStyleSetsWithProps.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.concatStyleSetsWithProps = void 0; var concatStyleSets_1 = __webpack_require__(/*! ./concatStyleSets */ "./node_modules/@fluentui/merge-styles/lib-commonjs/concatStyleSets.js"); /** * Concatenates style sets into one, but resolves functional sets using the given props. * @param styleProps - Props used to resolve functional sets. * @param allStyles - Style sets, which can be functions or objects. */ function concatStyleSetsWithProps(styleProps) { var allStyles = []; for (var _i = 1; _i < arguments.length; _i++) { allStyles[_i - 1] = arguments[_i]; } var result = []; for (var _a = 0, allStyles_1 = allStyles; _a < allStyles_1.length; _a++) { var styles = allStyles_1[_a]; if (styles) { result.push(typeof styles === 'function' ? styles(styleProps) : styles); } } if (result.length === 1) { return result[0]; } else if (result.length) { // cliffkoh: I cannot figure out how to avoid the cast to any here. // It is something to do with the use of Omit in IStyleSet. // It might not be necessary once Omit becomes part of lib.d.ts (when we remove our own Omit and rely on // the official version). return concatStyleSets_1.concatStyleSets.apply(void 0, result); } return {}; } exports.concatStyleSetsWithProps = concatStyleSetsWithProps; //# sourceMappingURL=concatStyleSetsWithProps.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/extractStyleParts.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/extractStyleParts.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.extractStyleParts = void 0; var Stylesheet_1 = __webpack_require__(/*! ./Stylesheet */ "./node_modules/@fluentui/merge-styles/lib-commonjs/Stylesheet.js"); /** * Separates the classes and style objects. Any classes that are pre-registered * args are auto expanded into objects. */ function extractStyleParts() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var classes = []; var objects = []; var stylesheet = Stylesheet_1.Stylesheet.getInstance(); function _processArgs(argsList) { for (var _i = 0, argsList_1 = argsList; _i < argsList_1.length; _i++) { var arg = argsList_1[_i]; if (arg) { if (typeof arg === 'string') { if (arg.indexOf(' ') >= 0) { _processArgs(arg.split(' ')); } else { var translatedArgs = stylesheet.argsFromClassName(arg); if (translatedArgs) { _processArgs(translatedArgs); } else { // Avoid adding the same class twice. if (classes.indexOf(arg) === -1) { classes.push(arg); } } } } else if (Array.isArray(arg)) { _processArgs(arg); } else if (typeof arg === 'object') { objects.push(arg); } } } } _processArgs(args); return { classes: classes, objects: objects, }; } exports.extractStyleParts = extractStyleParts; //# sourceMappingURL=extractStyleParts.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/fontFace.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/fontFace.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.fontFace = void 0; var StyleOptionsState_1 = __webpack_require__(/*! ./StyleOptionsState */ "./node_modules/@fluentui/merge-styles/lib-commonjs/StyleOptionsState.js"); var Stylesheet_1 = __webpack_require__(/*! ./Stylesheet */ "./node_modules/@fluentui/merge-styles/lib-commonjs/Stylesheet.js"); var styleToClassName_1 = __webpack_require__(/*! ./styleToClassName */ "./node_modules/@fluentui/merge-styles/lib-commonjs/styleToClassName.js"); /** * Registers a font face. * @public */ function fontFace(font) { var stylesheet = Stylesheet_1.Stylesheet.getInstance(); var rule = (0, styleToClassName_1.serializeRuleEntries)((0, StyleOptionsState_1.getStyleOptions)(), font); var className = stylesheet.classNameFromKey(rule); if (className) { return; } var name = stylesheet.getClassName(); stylesheet.insertRule("@font-face{".concat(rule, "}"), true); stylesheet.cacheClassName(name, rule, [], ['font-face', rule]); } exports.fontFace = fontFace; //# sourceMappingURL=fontFace.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/getVendorSettings.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/getVendorSettings.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setVendorSettings = exports.getVendorSettings = void 0; var _vendorSettings; function getVendorSettings() { var _a; if (!_vendorSettings) { var doc = typeof document !== 'undefined' ? document : undefined; var nav = typeof navigator !== 'undefined' ? navigator : undefined; var userAgent = (_a = nav === null || nav === void 0 ? void 0 : nav.userAgent) === null || _a === void 0 ? void 0 : _a.toLowerCase(); if (!doc) { _vendorSettings = { isWebkit: true, isMoz: true, isOpera: true, isMs: true, }; } else { _vendorSettings = { isWebkit: !!(doc && 'WebkitAppearance' in doc.documentElement.style), isMoz: !!(userAgent && userAgent.indexOf('firefox') > -1), isOpera: !!(userAgent && userAgent.indexOf('opera') > -1), isMs: !!(nav && (/rv:11.0/i.test(nav.userAgent) || /Edge\/\d./i.test(navigator.userAgent))), }; } } return _vendorSettings; } exports.getVendorSettings = getVendorSettings; /** * Sets the vendor settings for prefixing and vendor specific operations. */ function setVendorSettings(vendorSettings) { _vendorSettings = vendorSettings; } exports.setVendorSettings = setVendorSettings; //# sourceMappingURL=getVendorSettings.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/index.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.setRTL = exports.Stylesheet = exports.InjectionMode = exports.keyframes = exports.fontFace = exports.concatStyleSetsWithProps = exports.concatStyleSets = exports.mergeCssSets = exports.mergeStyleSets = exports.mergeCss = exports.mergeStyles = void 0; var mergeStyles_1 = __webpack_require__(/*! ./mergeStyles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/mergeStyles.js"); Object.defineProperty(exports, "mergeStyles", ({ enumerable: true, get: function () { return mergeStyles_1.mergeStyles; } })); Object.defineProperty(exports, "mergeCss", ({ enumerable: true, get: function () { return mergeStyles_1.mergeCss; } })); var mergeStyleSets_1 = __webpack_require__(/*! ./mergeStyleSets */ "./node_modules/@fluentui/merge-styles/lib-commonjs/mergeStyleSets.js"); Object.defineProperty(exports, "mergeStyleSets", ({ enumerable: true, get: function () { return mergeStyleSets_1.mergeStyleSets; } })); Object.defineProperty(exports, "mergeCssSets", ({ enumerable: true, get: function () { return mergeStyleSets_1.mergeCssSets; } })); var concatStyleSets_1 = __webpack_require__(/*! ./concatStyleSets */ "./node_modules/@fluentui/merge-styles/lib-commonjs/concatStyleSets.js"); Object.defineProperty(exports, "concatStyleSets", ({ enumerable: true, get: function () { return concatStyleSets_1.concatStyleSets; } })); var concatStyleSetsWithProps_1 = __webpack_require__(/*! ./concatStyleSetsWithProps */ "./node_modules/@fluentui/merge-styles/lib-commonjs/concatStyleSetsWithProps.js"); Object.defineProperty(exports, "concatStyleSetsWithProps", ({ enumerable: true, get: function () { return concatStyleSetsWithProps_1.concatStyleSetsWithProps; } })); var fontFace_1 = __webpack_require__(/*! ./fontFace */ "./node_modules/@fluentui/merge-styles/lib-commonjs/fontFace.js"); Object.defineProperty(exports, "fontFace", ({ enumerable: true, get: function () { return fontFace_1.fontFace; } })); var keyframes_1 = __webpack_require__(/*! ./keyframes */ "./node_modules/@fluentui/merge-styles/lib-commonjs/keyframes.js"); Object.defineProperty(exports, "keyframes", ({ enumerable: true, get: function () { return keyframes_1.keyframes; } })); var Stylesheet_1 = __webpack_require__(/*! ./Stylesheet */ "./node_modules/@fluentui/merge-styles/lib-commonjs/Stylesheet.js"); Object.defineProperty(exports, "InjectionMode", ({ enumerable: true, get: function () { return Stylesheet_1.InjectionMode; } })); Object.defineProperty(exports, "Stylesheet", ({ enumerable: true, get: function () { return Stylesheet_1.Stylesheet; } })); var StyleOptionsState_1 = __webpack_require__(/*! ./StyleOptionsState */ "./node_modules/@fluentui/merge-styles/lib-commonjs/StyleOptionsState.js"); Object.defineProperty(exports, "setRTL", ({ enumerable: true, get: function () { return StyleOptionsState_1.setRTL; } })); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/merge-styles/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/keyframes.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/keyframes.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.keyframes = void 0; var StyleOptionsState_1 = __webpack_require__(/*! ./StyleOptionsState */ "./node_modules/@fluentui/merge-styles/lib-commonjs/StyleOptionsState.js"); var Stylesheet_1 = __webpack_require__(/*! ./Stylesheet */ "./node_modules/@fluentui/merge-styles/lib-commonjs/Stylesheet.js"); var styleToClassName_1 = __webpack_require__(/*! ./styleToClassName */ "./node_modules/@fluentui/merge-styles/lib-commonjs/styleToClassName.js"); /** * Registers keyframe definitions. * * @public */ function keyframes(timeline) { var stylesheet = Stylesheet_1.Stylesheet.getInstance(); var rulesArray = []; for (var prop in timeline) { if (timeline.hasOwnProperty(prop)) { rulesArray.push(prop, '{', (0, styleToClassName_1.serializeRuleEntries)((0, StyleOptionsState_1.getStyleOptions)(), timeline[prop]), '}'); } } var rules = rulesArray.join(''); var className = stylesheet.classNameFromKey(rules); if (className) { return className; } var name = stylesheet.getClassName(); stylesheet.insertRule("@keyframes ".concat(name, "{").concat(rules, "}"), true); stylesheet.cacheClassName(name, rules, [], ['keyframes', rules]); return name; } exports.keyframes = keyframes; //# sourceMappingURL=keyframes.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/mergeStyleSets.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/mergeStyleSets.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeCssSets = exports.mergeStyleSets = void 0; var concatStyleSets_1 = __webpack_require__(/*! ./concatStyleSets */ "./node_modules/@fluentui/merge-styles/lib-commonjs/concatStyleSets.js"); var extractStyleParts_1 = __webpack_require__(/*! ./extractStyleParts */ "./node_modules/@fluentui/merge-styles/lib-commonjs/extractStyleParts.js"); var StyleOptionsState_1 = __webpack_require__(/*! ./StyleOptionsState */ "./node_modules/@fluentui/merge-styles/lib-commonjs/StyleOptionsState.js"); var styleToClassName_1 = __webpack_require__(/*! ./styleToClassName */ "./node_modules/@fluentui/merge-styles/lib-commonjs/styleToClassName.js"); /** * Takes in one or more style set objects, each consisting of a set of areas, * each which will produce a class name. Using this is analogous to calling * `mergeStyles` for each property in the object, but ensures we maintain the * set ordering when multiple style sets are merged. * * @param styleSets - One or more style sets to be merged. */ function mergeStyleSets() { var styleSets = []; for (var _i = 0; _i < arguments.length; _i++) { styleSets[_i] = arguments[_i]; } return mergeCssSets(styleSets, (0, StyleOptionsState_1.getStyleOptions)()); } exports.mergeStyleSets = mergeStyleSets; /** * Takes in one or more style set objects, each1consisting of a set of areas, * each which will produce a class name. Using this is analogous to calling * `mergeCss` for each property in the object, but ensures the * set ordering when multiple style sets are merged. * * @param styleSets - One or more style sets to be merged. * @param options - (optional) Options to use when creating rules. */ function mergeCssSets(styleSets, options) { var classNameSet = { subComponentStyles: {} }; var styleSet = styleSets[0]; if (!styleSet && styleSets.length <= 1) { return { subComponentStyles: {} }; } var concatenatedStyleSet = concatStyleSets_1.concatStyleSets.apply(void 0, styleSets); var registrations = []; for (var styleSetArea in concatenatedStyleSet) { if (concatenatedStyleSet.hasOwnProperty(styleSetArea)) { if (styleSetArea === 'subComponentStyles') { classNameSet.subComponentStyles = concatenatedStyleSet.subComponentStyles || {}; continue; } var styles = concatenatedStyleSet[styleSetArea]; var _a = (0, extractStyleParts_1.extractStyleParts)(styles), classes = _a.classes, objects = _a.objects; if (objects === null || objects === void 0 ? void 0 : objects.length) { var registration = (0, styleToClassName_1.styleToRegistration)(options || {}, { displayName: styleSetArea }, objects); if (registration) { registrations.push(registration); // FIXME: classNameSet invalid types - exposed in TS 4.5 - cast needed classNameSet[styleSetArea] = classes.concat([registration.className]).join(' '); } } else { // FIXME: classNameSet invalid types - exposed in TS 4.5 - cast needed classNameSet[styleSetArea] = classes.join(' '); } } } for (var _i = 0, registrations_1 = registrations; _i < registrations_1.length; _i++) { var registration = registrations_1[_i]; if (registration) { (0, styleToClassName_1.applyRegistration)(registration, options === null || options === void 0 ? void 0 : options.specificityMultiplier); } } return classNameSet; } exports.mergeCssSets = mergeCssSets; //# sourceMappingURL=mergeStyleSets.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/mergeStyles.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/mergeStyles.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.mergeCss = exports.mergeStyles = void 0; var extractStyleParts_1 = __webpack_require__(/*! ./extractStyleParts */ "./node_modules/@fluentui/merge-styles/lib-commonjs/extractStyleParts.js"); var StyleOptionsState_1 = __webpack_require__(/*! ./StyleOptionsState */ "./node_modules/@fluentui/merge-styles/lib-commonjs/StyleOptionsState.js"); var styleToClassName_1 = __webpack_require__(/*! ./styleToClassName */ "./node_modules/@fluentui/merge-styles/lib-commonjs/styleToClassName.js"); /** * Concatenation helper, which can merge class names together. Skips over falsey values. * * @public */ function mergeStyles() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } return mergeCss(args, (0, StyleOptionsState_1.getStyleOptions)()); } exports.mergeStyles = mergeStyles; /** * Concatenation helper, which can merge class names together. Skips over falsey values. * Accepts a set of options that will be used when calculating styles. * * @public */ function mergeCss(args, options) { var styleArgs = args instanceof Array ? args : [args]; var _a = (0, extractStyleParts_1.extractStyleParts)(styleArgs), classes = _a.classes, objects = _a.objects; if (objects.length) { classes.push((0, styleToClassName_1.styleToClassName)(options || {}, objects)); } return classes.join(' '); } exports.mergeCss = mergeCss; //# sourceMappingURL=mergeStyles.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/styleToClassName.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/styleToClassName.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.styleToClassName = exports.applyRegistration = exports.styleToRegistration = exports.serializeRuleEntries = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Stylesheet_1 = __webpack_require__(/*! ./Stylesheet */ "./node_modules/@fluentui/merge-styles/lib-commonjs/Stylesheet.js"); var kebabRules_1 = __webpack_require__(/*! ./transforms/kebabRules */ "./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/kebabRules.js"); var prefixRules_1 = __webpack_require__(/*! ./transforms/prefixRules */ "./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/prefixRules.js"); var provideUnits_1 = __webpack_require__(/*! ./transforms/provideUnits */ "./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/provideUnits.js"); var rtlifyRules_1 = __webpack_require__(/*! ./transforms/rtlifyRules */ "./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/rtlifyRules.js"); var tokenizeWithParentheses_1 = __webpack_require__(/*! ./tokenizeWithParentheses */ "./node_modules/@fluentui/merge-styles/lib-commonjs/tokenizeWithParentheses.js"); var DISPLAY_NAME = 'displayName'; function getDisplayName(rules) { var rootStyle = rules && rules['&']; return rootStyle ? rootStyle.displayName : undefined; } var globalSelectorRegExp = /\:global\((.+?)\)/g; /** * Finds comma separated selectors in a :global() e.g. ":global(.class1, .class2, .class3)" * and wraps them each in their own global ":global(.class1), :global(.class2), :global(.class3)" * * @param selectorWithGlobals The selector to process * @returns The updated selector */ function expandCommaSeparatedGlobals(selectorWithGlobals) { // We the selector does not have a :global() we can shortcut if (!globalSelectorRegExp.test(selectorWithGlobals)) { return selectorWithGlobals; } var replacementInfo = []; var findGlobal = /\:global\((.+?)\)/g; var match = null; // Create a result list for global selectors so we can replace them. while ((match = findGlobal.exec(selectorWithGlobals))) { // Only if the found selector is a comma separated list we'll process it. if (match[1].indexOf(',') > -1) { replacementInfo.push([ match.index, match.index + match[0].length, // Wrap each of the found selectors in :global() match[1] .split(',') .map(function (v) { return ":global(".concat(v.trim(), ")"); }) .join(', '), ]); } } // Replace the found selectors with their wrapped variants in reverse order return replacementInfo .reverse() .reduce(function (selector, _a) { var matchIndex = _a[0], matchEndIndex = _a[1], replacement = _a[2]; var prefix = selector.slice(0, matchIndex); var suffix = selector.slice(matchEndIndex); return prefix + replacement + suffix; }, selectorWithGlobals); } function expandSelector(newSelector, currentSelector) { if (newSelector.indexOf(':global(') >= 0) { return newSelector.replace(globalSelectorRegExp, '$1'); } else if (newSelector.indexOf(':') === 0) { return currentSelector + newSelector; } else if (newSelector.indexOf('&') < 0) { return currentSelector + ' ' + newSelector; } return newSelector; } function extractSelector(currentSelector, rules, selector, value) { if (rules === void 0) { rules = { __order: [] }; } if (selector.indexOf('@') === 0) { selector = selector + '{' + currentSelector; extractRules([value], rules, selector); } else if (selector.indexOf(',') > -1) { expandCommaSeparatedGlobals(selector) .split(',') .map(function (s) { return s.trim(); }) .forEach(function (separatedSelector) { return extractRules([value], rules, expandSelector(separatedSelector, currentSelector)); }); } else { extractRules([value], rules, expandSelector(selector, currentSelector)); } } function extractRules(args, rules, currentSelector) { if (rules === void 0) { rules = { __order: [] }; } if (currentSelector === void 0) { currentSelector = '&'; } var stylesheet = Stylesheet_1.Stylesheet.getInstance(); var currentRules = rules[currentSelector]; if (!currentRules) { currentRules = {}; rules[currentSelector] = currentRules; rules.__order.push(currentSelector); } for (var _i = 0, args_1 = args; _i < args_1.length; _i++) { var arg = args_1[_i]; // If the arg is a string, we need to look up the class map and merge. if (typeof arg === 'string') { var expandedRules = stylesheet.argsFromClassName(arg); if (expandedRules) { extractRules(expandedRules, rules, currentSelector); } // Else if the arg is an array, we need to recurse in. } else if (Array.isArray(arg)) { extractRules(arg, rules, currentSelector); } else { for (var prop in arg) { if (arg.hasOwnProperty(prop)) { var propValue = arg[prop]; if (prop === 'selectors') { // every child is a selector. var selectors = arg.selectors; for (var newSelector in selectors) { if (selectors.hasOwnProperty(newSelector)) { extractSelector(currentSelector, rules, newSelector, selectors[newSelector]); } } } else if (typeof propValue === 'object') { // prop is a selector. if (propValue !== null) { extractSelector(currentSelector, rules, prop, propValue); } } else { if (propValue !== undefined) { // Else, add the rule to the currentSelector. if (prop === 'margin' || prop === 'padding') { expandQuads(currentRules, prop, propValue); } else { currentRules[prop] = propValue; } } } } } } } return rules; } function expandQuads(currentRules, name, value) { var parts = typeof value === 'string' ? (0, tokenizeWithParentheses_1.tokenizeWithParentheses)(value) : [value]; if (parts.length === 0) { parts.push(value); } if (parts[parts.length - 1] === '!important') { // Remove !important from parts, and append it to each part individually parts = parts.slice(0, -1).map(function (p) { return p + ' !important'; }); } currentRules[name + 'Top'] = parts[0]; currentRules[name + 'Right'] = parts[1] || parts[0]; currentRules[name + 'Bottom'] = parts[2] || parts[0]; currentRules[name + 'Left'] = parts[3] || parts[1] || parts[0]; } function getKeyForRules(options, rules) { var serialized = [options.rtl ? 'rtl' : 'ltr']; var hasProps = false; for (var _i = 0, _a = rules.__order; _i < _a.length; _i++) { var selector = _a[_i]; serialized.push(selector); var rulesForSelector = rules[selector]; for (var propName in rulesForSelector) { if (rulesForSelector.hasOwnProperty(propName) && rulesForSelector[propName] !== undefined) { hasProps = true; serialized.push(propName, rulesForSelector[propName]); } } } return hasProps ? serialized.join('') : undefined; } function repeatString(target, count) { if (count <= 0) { return ''; } if (count === 1) { return target; } return target + repeatString(target, count - 1); } function serializeRuleEntries(options, ruleEntries) { if (!ruleEntries) { return ''; } var allEntries = []; for (var entry in ruleEntries) { if (ruleEntries.hasOwnProperty(entry) && entry !== DISPLAY_NAME && ruleEntries[entry] !== undefined) { allEntries.push(entry, ruleEntries[entry]); } } // Apply transforms. for (var i = 0; i < allEntries.length; i += 2) { (0, kebabRules_1.kebabRules)(allEntries, i); (0, provideUnits_1.provideUnits)(allEntries, i); (0, rtlifyRules_1.rtlifyRules)(options, allEntries, i); (0, prefixRules_1.prefixRules)(allEntries, i); } // Apply punctuation. for (var i = 1; i < allEntries.length; i += 4) { allEntries.splice(i, 1, ':', allEntries[i], ';'); } return allEntries.join(''); } exports.serializeRuleEntries = serializeRuleEntries; function styleToRegistration(options) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var rules = extractRules(args); var key = getKeyForRules(options, rules); if (key) { var stylesheet = Stylesheet_1.Stylesheet.getInstance(); var registration = { className: stylesheet.classNameFromKey(key), key: key, args: args, }; if (!registration.className) { registration.className = stylesheet.getClassName(getDisplayName(rules)); var rulesToInsert = []; for (var _a = 0, _b = rules.__order; _a < _b.length; _a++) { var selector = _b[_a]; rulesToInsert.push(selector, serializeRuleEntries(options, rules[selector])); } registration.rulesToInsert = rulesToInsert; } return registration; } return undefined; } exports.styleToRegistration = styleToRegistration; /** * Insert style to stylesheet. * @param registration Style registration. * @param specificityMultiplier Number of times classname selector is repeated in the css rule. * This is to increase css specificity in case it's needed. Default to 1. */ function applyRegistration(registration, specificityMultiplier) { if (specificityMultiplier === void 0) { specificityMultiplier = 1; } var stylesheet = Stylesheet_1.Stylesheet.getInstance(); var className = registration.className, key = registration.key, args = registration.args, rulesToInsert = registration.rulesToInsert; if (rulesToInsert) { // rulesToInsert is an ordered array of selector/rule pairs. for (var i = 0; i < rulesToInsert.length; i += 2) { var rules = rulesToInsert[i + 1]; if (rules) { var selector = rulesToInsert[i]; selector = selector.replace(/&/g, repeatString(".".concat(registration.className), specificityMultiplier)); // Insert. Note if a media query, we must close the query with a final bracket. var processedRule = "".concat(selector, "{").concat(rules, "}").concat(selector.indexOf('@') === 0 ? '}' : ''); stylesheet.insertRule(processedRule); } } stylesheet.cacheClassName(className, key, args, rulesToInsert); } } exports.applyRegistration = applyRegistration; function styleToClassName(options) { var args = []; for (var _i = 1; _i < arguments.length; _i++) { args[_i - 1] = arguments[_i]; } var registration = styleToRegistration.apply(void 0, (0, tslib_1.__spreadArray)([options], args, false)); if (registration) { applyRegistration(registration, options.specificityMultiplier); return registration.className; } return ''; } exports.styleToClassName = styleToClassName; //# sourceMappingURL=styleToClassName.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/tokenizeWithParentheses.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/tokenizeWithParentheses.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.tokenizeWithParentheses = void 0; /** * Split a string into tokens separated by whitespace, except all text within parentheses * is treated as a single token (whitespace is ignored within parentheses). * * Unlike String.split(' '), multiple consecutive space characters are collapsed and * removed from the returned array (including leading and trailing spaces). * * For example: * `tokenizeWithParentheses("3px calc(var(--x) / 2) 9px 0 ")` * => `["3px", "calc(var(--x) / 2)", "9px", "0"]` * * @returns The array of tokens. Returns an empty array if the string was empty or contained only whitespace. */ function tokenizeWithParentheses(value) { var parts = []; var partStart = 0; var parens = 0; for (var i = 0; i < value.length; i++) { switch (value[i]) { case '(': parens++; break; case ')': if (parens) { parens--; } break; case '\t': case ' ': if (!parens) { // Add the new part if it's not an empty string if (i > partStart) { parts.push(value.substring(partStart, i)); } partStart = i + 1; } break; } } // Add the last part if (partStart < value.length) { parts.push(value.substring(partStart)); } return parts; } exports.tokenizeWithParentheses = tokenizeWithParentheses; //# sourceMappingURL=tokenizeWithParentheses.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/kebabRules.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/kebabRules.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.kebabRules = void 0; var rules = {}; function kebabRules(rulePairs, index) { var rule = rulePairs[index]; if (rule.charAt(0) !== '-') { rulePairs[index] = rules[rule] = rules[rule] || rule.replace(/([A-Z])/g, '-$1').toLowerCase(); } } exports.kebabRules = kebabRules; //# sourceMappingURL=kebabRules.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/prefixRules.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/prefixRules.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.prefixRules = void 0; var getVendorSettings_1 = __webpack_require__(/*! ../getVendorSettings */ "./node_modules/@fluentui/merge-styles/lib-commonjs/getVendorSettings.js"); var autoPrefixNames = { 'user-select': 1, }; function prefixRules(rulePairs, index) { var vendorSettings = (0, getVendorSettings_1.getVendorSettings)(); var name = rulePairs[index]; if (autoPrefixNames[name]) { var value = rulePairs[index + 1]; if (autoPrefixNames[name]) { if (vendorSettings.isWebkit) { rulePairs.push('-webkit-' + name, value); } if (vendorSettings.isMoz) { rulePairs.push('-moz-' + name, value); } if (vendorSettings.isMs) { rulePairs.push('-ms-' + name, value); } if (vendorSettings.isOpera) { rulePairs.push('-o-' + name, value); } } } } exports.prefixRules = prefixRules; //# sourceMappingURL=prefixRules.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/provideUnits.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/provideUnits.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.provideUnits = void 0; var NON_PIXEL_NUMBER_PROPS = [ 'column-count', 'font-weight', 'flex', 'flex-grow', 'flex-shrink', 'fill-opacity', 'opacity', 'order', 'z-index', 'zoom', ]; function provideUnits(rulePairs, index) { var name = rulePairs[index]; var value = rulePairs[index + 1]; if (typeof value === 'number') { var isNonPixelProp = NON_PIXEL_NUMBER_PROPS.indexOf(name) > -1; var isVariableOrPrefixed = name.indexOf('--') > -1; var unit = isNonPixelProp || isVariableOrPrefixed ? '' : 'px'; rulePairs[index + 1] = "".concat(value).concat(unit); } } exports.provideUnits = provideUnits; //# sourceMappingURL=provideUnits.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/rtlifyRules.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/transforms/rtlifyRules.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.rtlifyRules = void 0; var LEFT = 'left'; var RIGHT = 'right'; var NO_FLIP = '@noflip'; var NAME_REPLACEMENTS = (_a = {}, _a[LEFT] = RIGHT, _a[RIGHT] = LEFT, _a); var VALUE_REPLACEMENTS = { 'w-resize': 'e-resize', 'sw-resize': 'se-resize', 'nw-resize': 'ne-resize', }; /** * RTLifies the rulePair in the array at the current index. This mutates the array for performance * reasons. */ function rtlifyRules(options, rulePairs, index) { if (options.rtl) { var name_1 = rulePairs[index]; if (!name_1) { return; } var value = rulePairs[index + 1]; if (typeof value === 'string' && value.indexOf(NO_FLIP) >= 0) { rulePairs[index + 1] = value.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g, ''); } else if (name_1.indexOf(LEFT) >= 0) { rulePairs[index] = name_1.replace(LEFT, RIGHT); } else if (name_1.indexOf(RIGHT) >= 0) { rulePairs[index] = name_1.replace(RIGHT, LEFT); } else if (String(value).indexOf(LEFT) >= 0) { rulePairs[index + 1] = value.replace(LEFT, RIGHT); } else if (String(value).indexOf(RIGHT) >= 0) { rulePairs[index + 1] = value.replace(RIGHT, LEFT); } else if (NAME_REPLACEMENTS[name_1]) { rulePairs[index] = NAME_REPLACEMENTS[name_1]; } else if (VALUE_REPLACEMENTS[value]) { rulePairs[index + 1] = VALUE_REPLACEMENTS[value]; } else { switch (name_1) { case 'margin': case 'padding': rulePairs[index + 1] = flipQuad(value); break; case 'box-shadow': rulePairs[index + 1] = negateNum(value, 0); break; } } } } exports.rtlifyRules = rtlifyRules; /** * Given a string value in a space delimited format (e.g. "1 2 3 4"), negates a particular value. */ function negateNum(value, partIndex) { var parts = value.split(' '); var numberVal = parseInt(parts[partIndex], 10); parts[0] = parts[0].replace(String(numberVal), String(numberVal * -1)); return parts.join(' '); } /** * Given a string quad, flips the left and right values. */ function flipQuad(value) { if (typeof value === 'string') { var parts = value.split(' '); if (parts.length === 4) { return "".concat(parts[0], " ").concat(parts[3], " ").concat(parts[2], " ").concat(parts[1]); } } return value; } //# sourceMappingURL=rtlifyRules.js.map /***/ }), /***/ "./node_modules/@fluentui/merge-styles/lib-commonjs/version.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/merge-styles/lib-commonjs/version.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. var set_version_1 = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib-commonjs/index.js"); (0, set_version_1.setVersion)('@fluentui/merge-styles', '8.5.12'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/react-focus/lib-commonjs/components/FocusZone/FocusZone.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react-focus/lib-commonjs/components/FocusZone/FocusZone.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FocusZone = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var FocusZone_types_1 = __webpack_require__(/*! ./FocusZone.types */ "./node_modules/@fluentui/react-focus/lib-commonjs/components/FocusZone/FocusZone.types.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var merge_styles_1 = __webpack_require__(/*! @fluentui/merge-styles */ "./node_modules/@fluentui/merge-styles/lib-commonjs/index.js"); var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var IS_FOCUSABLE_ATTRIBUTE = 'data-is-focusable'; var IS_ENTER_DISABLED_ATTRIBUTE = 'data-disable-click-on-enter'; var FOCUSZONE_ID_ATTRIBUTE = 'data-focuszone-id'; var TABINDEX = 'tabindex'; var NO_VERTICAL_WRAP = 'data-no-vertical-wrap'; var NO_HORIZONTAL_WRAP = 'data-no-horizontal-wrap'; var LARGE_DISTANCE_FROM_CENTER = 999999999; var LARGE_NEGATIVE_DISTANCE_FROM_CENTER = -999999999; var focusZoneStyles; var focusZoneClass = 'ms-FocusZone'; /** * Raises a click on a target element based on a keyboard event. */ function raiseClickFromKeyboardEvent(target, ev) { var event; if (typeof MouseEvent === 'function') { event = new MouseEvent('click', { ctrlKey: ev === null || ev === void 0 ? void 0 : ev.ctrlKey, metaKey: ev === null || ev === void 0 ? void 0 : ev.metaKey, shiftKey: ev === null || ev === void 0 ? void 0 : ev.shiftKey, altKey: ev === null || ev === void 0 ? void 0 : ev.altKey, bubbles: ev === null || ev === void 0 ? void 0 : ev.bubbles, cancelable: ev === null || ev === void 0 ? void 0 : ev.cancelable, }); } else { event = document.createEvent('MouseEvents'); // eslint-disable-next-line deprecation/deprecation event.initMouseEvent('click', ev ? ev.bubbles : false, ev ? ev.cancelable : false, window, // not using getWindow() since this can only be run client side 0, // detail 0, // screen x 0, // screen y 0, // client x 0, // client y ev ? ev.ctrlKey : false, ev ? ev.altKey : false, ev ? ev.shiftKey : false, ev ? ev.metaKey : false, 0, // button null); } target.dispatchEvent(event); } // Helper function that will return a class for when the root is focused function getRootClass() { if (!focusZoneStyles) { focusZoneStyles = (0, merge_styles_1.mergeStyles)({ selectors: { ':focus': { outline: 'none', }, }, }, focusZoneClass); } return focusZoneStyles; } var _allInstances = {}; var _outerZones = new Set(); var ALLOWED_INPUT_TYPES = ['text', 'number', 'password', 'email', 'tel', 'url', 'search', 'textarea']; var ALLOW_VIRTUAL_ELEMENTS = false; var FocusZone = /** @class */ (function (_super) { tslib_1.__extends(FocusZone, _super); function FocusZone(props) { var _this = this; var _a, _b, _c, _d; _this = _super.call(this, props) || this; _this._root = React.createRef(); _this._mergedRef = (0, utilities_1.createMergedRef)(); _this._onFocus = function (ev) { if (_this._portalContainsElement(ev.target)) { // If the event target is inside a portal do not process the event. return; } var _a = _this.props, onActiveElementChanged = _a.onActiveElementChanged, // eslint-disable-next-line deprecation/deprecation doNotAllowFocusEventToPropagate = _a.doNotAllowFocusEventToPropagate, stopFocusPropagation = _a.stopFocusPropagation, // eslint-disable-next-line deprecation/deprecation onFocusNotification = _a.onFocusNotification, onFocus = _a.onFocus, shouldFocusInnerElementWhenReceivedFocus = _a.shouldFocusInnerElementWhenReceivedFocus, defaultTabbableElement = _a.defaultTabbableElement; var isImmediateDescendant = _this._isImmediateDescendantOfZone(ev.target); var newActiveElement; if (isImmediateDescendant) { newActiveElement = ev.target; } else { var parentElement = ev.target; while (parentElement && parentElement !== _this._root.current) { if ((0, utilities_1.isElementTabbable)(parentElement) && _this._isImmediateDescendantOfZone(parentElement)) { newActiveElement = parentElement; break; } parentElement = (0, utilities_1.getParent)(parentElement, ALLOW_VIRTUAL_ELEMENTS); } } // If an inner focusable element should be focused when FocusZone container receives focus if (shouldFocusInnerElementWhenReceivedFocus && ev.target === _this._root.current) { var maybeElementToFocus = defaultTabbableElement && typeof defaultTabbableElement === 'function' && _this._root.current && defaultTabbableElement(_this._root.current); // try to focus defaultTabbable element if (maybeElementToFocus && (0, utilities_1.isElementTabbable)(maybeElementToFocus)) { newActiveElement = maybeElementToFocus; maybeElementToFocus.focus(); } else { // force focus on first focusable element _this.focus(true); if (_this._activeElement) { // set to null as new active element was handled in method above newActiveElement = null; } } } var initialElementFocused = !_this._activeElement; // If the new active element is a child of this zone and received focus, // update alignment an immediate descendant if (newActiveElement && newActiveElement !== _this._activeElement) { if (isImmediateDescendant || initialElementFocused) { _this._setFocusAlignment(newActiveElement, true, true); } _this._activeElement = newActiveElement; if (initialElementFocused) { _this._updateTabIndexes(); } } if (onActiveElementChanged) { onActiveElementChanged(_this._activeElement, ev); } if (stopFocusPropagation || doNotAllowFocusEventToPropagate) { ev.stopPropagation(); } if (onFocus) { onFocus(ev); } else if (onFocusNotification) { onFocusNotification(); } }; _this._onBlur = function () { _this._setParkedFocus(false); }; _this._onMouseDown = function (ev) { if (_this._portalContainsElement(ev.target)) { // If the event target is inside a portal do not process the event. return; } var disabled = _this.props.disabled; if (disabled) { return; } var target = ev.target; var path = []; while (target && target !== _this._root.current) { path.push(target); target = (0, utilities_1.getParent)(target, ALLOW_VIRTUAL_ELEMENTS); } while (path.length) { target = path.pop(); if (target && (0, utilities_1.isElementTabbable)(target)) { _this._setActiveElement(target, true); } if ((0, utilities_1.isElementFocusZone)(target)) { // Stop here since the focus zone will take care of its own children. break; } } }; /** * Handle the keystrokes. */ _this._onKeyDown = function (ev, theme) { if (_this._portalContainsElement(ev.target)) { // If the event target is inside a portal do not process the event. return; } // eslint-disable-next-line deprecation/deprecation var _a = _this.props, direction = _a.direction, disabled = _a.disabled, isInnerZoneKeystroke = _a.isInnerZoneKeystroke, pagingSupportDisabled = _a.pagingSupportDisabled, shouldEnterInnerZone = _a.shouldEnterInnerZone; if (disabled) { return; } if (_this.props.onKeyDown) { _this.props.onKeyDown(ev); } // If the default has been prevented, do not process keyboard events. if (ev.isDefaultPrevented()) { return; } if (_this._getDocument().activeElement === _this._root.current && _this._isInnerZone) { // If this element has focus, it is being controlled by a parent. // Ignore the keystroke. return; } if (((shouldEnterInnerZone && shouldEnterInnerZone(ev)) || (isInnerZoneKeystroke && isInnerZoneKeystroke(ev))) && _this._isImmediateDescendantOfZone(ev.target)) { // Try to focus var innerZone = _this._getFirstInnerZone(); if (innerZone) { if (!innerZone.focus(true)) { return; } } else if ((0, utilities_1.isElementFocusSubZone)(ev.target)) { if (!_this.focusElement((0, utilities_1.getNextElement)(ev.target, ev.target.firstChild, true))) { return; } } else { return; } } else if (ev.altKey) { return; } else { // eslint-disable-next-line @fluentui/deprecated-keyboard-event-props, deprecation/deprecation switch (ev.which) { case utilities_1.KeyCodes.space: if (_this._shouldRaiseClicksOnSpace && _this._tryInvokeClickForFocusable(ev.target, ev)) { break; } return; case utilities_1.KeyCodes.left: if (direction !== FocusZone_types_1.FocusZoneDirection.vertical) { _this._preventDefaultWhenHandled(ev); if (_this._moveFocusLeft(theme)) { break; } } return; case utilities_1.KeyCodes.right: if (direction !== FocusZone_types_1.FocusZoneDirection.vertical) { _this._preventDefaultWhenHandled(ev); if (_this._moveFocusRight(theme)) { break; } } return; case utilities_1.KeyCodes.up: if (direction !== FocusZone_types_1.FocusZoneDirection.horizontal) { _this._preventDefaultWhenHandled(ev); if (_this._moveFocusUp()) { break; } } return; case utilities_1.KeyCodes.down: if (direction !== FocusZone_types_1.FocusZoneDirection.horizontal) { _this._preventDefaultWhenHandled(ev); if (_this._moveFocusDown()) { break; } } return; case utilities_1.KeyCodes.pageDown: if (!pagingSupportDisabled && _this._moveFocusPaging(true)) { break; } return; case utilities_1.KeyCodes.pageUp: if (!pagingSupportDisabled && _this._moveFocusPaging(false)) { break; } return; case utilities_1.KeyCodes.tab: if ( // eslint-disable-next-line deprecation/deprecation _this.props.allowTabKey || _this.props.handleTabKey === FocusZone_types_1.FocusZoneTabbableElements.all || (_this.props.handleTabKey === FocusZone_types_1.FocusZoneTabbableElements.inputOnly && _this._isElementInput(ev.target))) { var focusChanged = false; _this._processingTabKey = true; if (direction === FocusZone_types_1.FocusZoneDirection.vertical || !_this._shouldWrapFocus(_this._activeElement, NO_HORIZONTAL_WRAP)) { focusChanged = ev.shiftKey ? _this._moveFocusUp() : _this._moveFocusDown(); } else { var tabWithDirection = (0, utilities_1.getRTL)(theme) ? !ev.shiftKey : ev.shiftKey; focusChanged = tabWithDirection ? _this._moveFocusLeft(theme) : _this._moveFocusRight(theme); } _this._processingTabKey = false; if (focusChanged) { break; } else if (_this.props.shouldResetActiveElementWhenTabFromZone) { _this._activeElement = null; } } return; case utilities_1.KeyCodes.home: if (_this._isContentEditableElement(ev.target) || (_this._isElementInput(ev.target) && !_this._shouldInputLoseFocus(ev.target, false))) { return false; } var firstChild = _this._root.current && _this._root.current.firstChild; if (_this._root.current && firstChild && _this.focusElement((0, utilities_1.getNextElement)(_this._root.current, firstChild, true))) { break; } return; case utilities_1.KeyCodes.end: if (_this._isContentEditableElement(ev.target) || (_this._isElementInput(ev.target) && !_this._shouldInputLoseFocus(ev.target, true))) { return false; } var lastChild = _this._root.current && _this._root.current.lastChild; if (_this._root.current && _this.focusElement((0, utilities_1.getPreviousElement)(_this._root.current, lastChild, true, true, true))) { break; } return; case utilities_1.KeyCodes.enter: if (_this._shouldRaiseClicksOnEnter && _this._tryInvokeClickForFocusable(ev.target, ev)) { break; } return; default: return; } } ev.preventDefault(); ev.stopPropagation(); }; _this._getHorizontalDistanceFromCenter = function (isForward, // eslint-disable-next-line deprecation/deprecation activeRect, // eslint-disable-next-line deprecation/deprecation targetRect) { // eslint-disable-next-line deprecation/deprecation var leftAlignment = _this._focusAlignment.left || _this._focusAlignment.x || 0; // ClientRect values can be floats that differ by very small fractions of a decimal. // If the difference between top and bottom are within a pixel then we should treat // them as equivalent by using Math.floor. For instance 5.2222 and 5.222221 should be equivalent, // but without Math.Floor they will be handled incorrectly. var targetRectTop = Math.floor(targetRect.top); var activeRectBottom = Math.floor(activeRect.bottom); var targetRectBottom = Math.floor(targetRect.bottom); var activeRectTop = Math.floor(activeRect.top); var isValidCandidateOnpagingDown = isForward && targetRectTop > activeRectBottom; var isValidCandidateOnpagingUp = !isForward && targetRectBottom < activeRectTop; if (isValidCandidateOnpagingDown || isValidCandidateOnpagingUp) { if (leftAlignment >= targetRect.left && leftAlignment <= targetRect.left + targetRect.width) { return 0; } return Math.abs(targetRect.left + targetRect.width / 2 - leftAlignment); } if (!_this._shouldWrapFocus(_this._activeElement, NO_VERTICAL_WRAP)) { return LARGE_NEGATIVE_DISTANCE_FROM_CENTER; } return LARGE_DISTANCE_FROM_CENTER; }; // Manage componentRef resolution. (0, utilities_1.initializeComponentRef)(_this); if (true) { (0, utilities_1.warnDeprecations)('FocusZone', props, { rootProps: undefined, allowTabKey: 'handleTabKey', elementType: 'as', ariaDescribedBy: 'aria-describedby', ariaLabelledBy: 'aria-labelledby', }); } _this._id = (0, utilities_1.getId)('FocusZone'); _this._focusAlignment = { left: 0, top: 0, }; _this._processingTabKey = false; var shouldRaiseClicksFallback = (_b = (_a = props.shouldRaiseClicks) !== null && _a !== void 0 ? _a : FocusZone.defaultProps.shouldRaiseClicks) !== null && _b !== void 0 ? _b : true; _this._shouldRaiseClicksOnEnter = (_c = props.shouldRaiseClicksOnEnter) !== null && _c !== void 0 ? _c : shouldRaiseClicksFallback; _this._shouldRaiseClicksOnSpace = (_d = props.shouldRaiseClicksOnSpace) !== null && _d !== void 0 ? _d : shouldRaiseClicksFallback; return _this; } /** Used for testing purposes only. */ FocusZone.getOuterZones = function () { return _outerZones.size; }; /** * Handle global tab presses so that we can patch tabindexes on the fly. * HEADS UP: This must not be an arrow function in order to be referentially equal among instances * for ref counting to work correctly! */ FocusZone._onKeyDownCapture = function (ev) { // eslint-disable-next-line deprecation/deprecation, @fluentui/deprecated-keyboard-event-props if (ev.which === utilities_1.KeyCodes.tab) { _outerZones.forEach(function (zone) { return zone._updateTabIndexes(); }); } }; FocusZone.prototype.componentDidMount = function () { var root = this._root.current; _allInstances[this._id] = this; if (root) { var parentElement = (0, utilities_1.getParent)(root, ALLOW_VIRTUAL_ELEMENTS); while (parentElement && parentElement !== this._getDocument().body && parentElement.nodeType === 1) { if ((0, utilities_1.isElementFocusZone)(parentElement)) { this._isInnerZone = true; break; } parentElement = (0, utilities_1.getParent)(parentElement, ALLOW_VIRTUAL_ELEMENTS); } if (!this._isInnerZone) { _outerZones.add(this); this._root.current && this._root.current.addEventListener('keydown', FocusZone._onKeyDownCapture, true); } this._root.current && this._root.current.addEventListener('blur', this._onBlur, true); // Assign initial tab indexes so that we can set initial focus as appropriate. this._updateTabIndexes(); if (this.props.defaultTabbableElement && typeof this.props.defaultTabbableElement === 'string') { this._activeElement = this._getDocument().querySelector(this.props.defaultTabbableElement); // eslint-disable-next-line deprecation/deprecation } else if (this.props.defaultActiveElement) { // eslint-disable-next-line deprecation/deprecation this._activeElement = this._getDocument().querySelector(this.props.defaultActiveElement); } if (this.props.shouldFocusOnMount) { this.focus(); } } }; FocusZone.prototype.componentDidUpdate = function () { var root = this._root.current; var doc = this._getDocument(); // If either _activeElement or _defaultFocusElement are no longer contained by _root, // reset those variables (and update tab indexes) to avoid memory leaks if ((this._activeElement && !(0, utilities_1.elementContains)(this._root.current, this._activeElement, ALLOW_VIRTUAL_ELEMENTS)) || (this._defaultFocusElement && !(0, utilities_1.elementContains)(this._root.current, this._defaultFocusElement, ALLOW_VIRTUAL_ELEMENTS))) { this._activeElement = null; this._defaultFocusElement = null; this._updateTabIndexes(); } if (!this.props.preventFocusRestoration && doc && this._lastIndexPath && (doc.activeElement === doc.body || doc.activeElement === null || doc.activeElement === root)) { // The element has been removed after the render, attempt to restore focus. var elementToFocus = (0, utilities_1.getFocusableByIndexPath)(root, this._lastIndexPath); if (elementToFocus) { this._setActiveElement(elementToFocus, true); elementToFocus.focus(); this._setParkedFocus(false); } else { // We had a focus path to restore, but now that path is unresolvable. Park focus // on the container until we can try again. this._setParkedFocus(true); } } }; FocusZone.prototype.componentWillUnmount = function () { delete _allInstances[this._id]; if (!this._isInnerZone) { _outerZones.delete(this); this._root.current && this._root.current.removeEventListener('keydown', FocusZone._onKeyDownCapture, true); } if (this._root.current) { this._root.current.removeEventListener('blur', this._onBlur, true); } this._activeElement = null; this._defaultFocusElement = null; }; FocusZone.prototype.render = function () { var _this = this; // eslint-disable-next-line deprecation/deprecation var _a = this.props, tag = _a.as, elementType = _a.elementType, rootProps = _a.rootProps, ariaDescribedBy = _a.ariaDescribedBy, ariaLabelledBy = _a.ariaLabelledBy, className = _a.className; var divProps = (0, utilities_1.getNativeProps)(this.props, utilities_1.htmlElementProperties); var Tag = tag || elementType || 'div'; // Note, right before rendering/reconciling proceeds, we need to record if focus // was in the zone before the update. This helper will track this and, if focus // was actually in the zone, what the index path to the element is at this time. // Then, later in componentDidUpdate, we can evaluate if we need to restore it in // the case the element was removed. this._evaluateFocusBeforeRender(); // Only support RTL defined in global theme, not contextual theme/RTL. var theme = (0, style_utilities_1.getTheme)(); return (React.createElement(Tag, tslib_1.__assign({ "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy }, divProps, rootProps, { // Once the getClassName correctly memoizes inputs this should // be replaced so that className is passed to getRootClass and is included there so // the class names will always be in the same order. className: (0, utilities_1.css)(getRootClass(), className), // eslint-disable-next-line deprecation/deprecation ref: this._mergedRef(this.props.elementRef, this._root), "data-focuszone-id": this._id, // eslint-disable-next-line react/jsx-no-bind onKeyDown: function (ev) { return _this._onKeyDown(ev, theme); }, onFocus: this._onFocus, onMouseDownCapture: this._onMouseDown }), this.props.children)); }; /** * Sets focus to the first tabbable item in the zone. * @param forceIntoFirstElement - If true, focus will be forced into the first element, even * if focus is already in the focus zone. * @param bypassHiddenElements - If true, focus will be not be set on hidden elements. * @returns True if focus could be set to an active element, false if no operation was taken. */ FocusZone.prototype.focus = function (forceIntoFirstElement, bypassHiddenElements) { if (forceIntoFirstElement === void 0) { forceIntoFirstElement = false; } if (bypassHiddenElements === void 0) { bypassHiddenElements = false; } if (this._root.current) { if (!forceIntoFirstElement && this._root.current.getAttribute(IS_FOCUSABLE_ATTRIBUTE) === 'true' && this._isInnerZone) { var ownerZoneElement = this._getOwnerZone(this._root.current); if (ownerZoneElement !== this._root.current) { var ownerZone = _allInstances[ownerZoneElement.getAttribute(FOCUSZONE_ID_ATTRIBUTE)]; return !!ownerZone && ownerZone.focusElement(this._root.current); } return false; } else if (!forceIntoFirstElement && this._activeElement && (0, utilities_1.elementContains)(this._root.current, this._activeElement) && (0, utilities_1.isElementTabbable)(this._activeElement) && (!bypassHiddenElements || (0, utilities_1.isElementVisibleAndNotHidden)(this._activeElement))) { this._activeElement.focus(); return true; } else { var firstChild = this._root.current.firstChild; return this.focusElement((0, utilities_1.getNextElement)(this._root.current, firstChild, true, undefined, undefined, undefined, undefined, undefined, bypassHiddenElements)); } } return false; }; /** * Sets focus to the last tabbable item in the zone. * @returns True if focus could be set to an active element, false if no operation was taken. */ FocusZone.prototype.focusLast = function () { if (this._root.current) { var lastChild = this._root.current && this._root.current.lastChild; return this.focusElement((0, utilities_1.getPreviousElement)(this._root.current, lastChild, true, true, true)); } return false; }; /** * Sets focus to a specific child element within the zone. This can be used in conjunction with * shouldReceiveFocus to create delayed focus scenarios (like animate the scroll position to the correct * location and then focus.) * @param element - The child element within the zone to focus. * @param forceAlignment - If true, focus alignment will be set according to the element provided. * @returns True if focus could be set to an active element, false if no operation was taken. */ FocusZone.prototype.focusElement = function (element, forceAlignment) { // eslint-disable-next-line deprecation/deprecation var _a = this.props, onBeforeFocus = _a.onBeforeFocus, shouldReceiveFocus = _a.shouldReceiveFocus; if ((shouldReceiveFocus && !shouldReceiveFocus(element)) || (onBeforeFocus && !onBeforeFocus(element))) { return false; } if (element) { // when we set focus to a specific child, we should recalculate the alignment depending on its position. this._setActiveElement(element, forceAlignment); if (this._activeElement) { this._activeElement.focus(); } return true; } return false; }; /** * Forces horizontal alignment in the context of vertical arrowing to use specific point as the reference, * rather than a center based on the last horizontal motion. * @param point - the new reference point. */ FocusZone.prototype.setFocusAlignment = function (point) { this._focusAlignment = point; }; Object.defineProperty(FocusZone.prototype, "defaultFocusElement", { get: function () { return this._defaultFocusElement; }, enumerable: false, configurable: true }); Object.defineProperty(FocusZone.prototype, "activeElement", { get: function () { return this._activeElement; }, enumerable: false, configurable: true }); FocusZone.prototype._evaluateFocusBeforeRender = function () { var root = this._root.current; var doc = this._getDocument(); if (doc) { var focusedElement = doc.activeElement; // Only update the index path if we are not parked on the root. if (focusedElement !== root) { var shouldRestoreFocus = (0, utilities_1.elementContains)(root, focusedElement, false); this._lastIndexPath = shouldRestoreFocus ? (0, utilities_1.getElementIndexPath)(root, focusedElement) : undefined; } } }; /** * When focus is in the zone at render time but then all focusable elements are removed, * we "park" focus temporarily on the root. Once we update with focusable children, we restore * focus to the closest path from previous. If the user tabs away from the parked container, * we restore focusability to the pre-parked state. */ FocusZone.prototype._setParkedFocus = function (isParked) { var root = this._root.current; if (root && this._isParked !== isParked) { this._isParked = isParked; if (isParked) { if (!this.props.allowFocusRoot) { this._parkedTabIndex = root.getAttribute('tabindex'); root.setAttribute('tabindex', '-1'); } root.focus(); } else if (!this.props.allowFocusRoot) { if (this._parkedTabIndex) { root.setAttribute('tabindex', this._parkedTabIndex); this._parkedTabIndex = undefined; } else { root.removeAttribute('tabindex'); } } } }; FocusZone.prototype._setActiveElement = function (element, forceAlignment) { var previousActiveElement = this._activeElement; this._activeElement = element; if (previousActiveElement) { if ((0, utilities_1.isElementFocusZone)(previousActiveElement)) { this._updateTabIndexes(previousActiveElement); } previousActiveElement.tabIndex = -1; } if (this._activeElement) { if (!this._focusAlignment || forceAlignment) { this._setFocusAlignment(element, true, true); } this._activeElement.tabIndex = 0; } }; FocusZone.prototype._preventDefaultWhenHandled = function (ev) { this.props.preventDefaultWhenHandled && ev.preventDefault(); }; /** * Walk up the dom try to find a focusable element. */ FocusZone.prototype._tryInvokeClickForFocusable = function (targetElement, ev) { var target = targetElement; if (target === this._root.current) { return false; } do { if (target.tagName === 'BUTTON' || target.tagName === 'A' || target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.tagName === 'SUMMARY') { return false; } if (this._isImmediateDescendantOfZone(target) && target.getAttribute(IS_FOCUSABLE_ATTRIBUTE) === 'true' && target.getAttribute(IS_ENTER_DISABLED_ATTRIBUTE) !== 'true') { raiseClickFromKeyboardEvent(target, ev); return true; } target = (0, utilities_1.getParent)(target, ALLOW_VIRTUAL_ELEMENTS); } while (target !== this._root.current); return false; }; /** * Traverse to find first child zone. */ FocusZone.prototype._getFirstInnerZone = function (rootElement) { rootElement = rootElement || this._activeElement || this._root.current; if (!rootElement) { return null; } if ((0, utilities_1.isElementFocusZone)(rootElement)) { return _allInstances[rootElement.getAttribute(FOCUSZONE_ID_ATTRIBUTE)]; } var child = rootElement.firstElementChild; while (child) { if ((0, utilities_1.isElementFocusZone)(child)) { return _allInstances[child.getAttribute(FOCUSZONE_ID_ATTRIBUTE)]; } var match = this._getFirstInnerZone(child); if (match) { return match; } child = child.nextElementSibling; } return null; }; FocusZone.prototype._moveFocus = function (isForward, // eslint-disable-next-line deprecation/deprecation getDistanceFromCenter, ev, useDefaultWrap) { if (useDefaultWrap === void 0) { useDefaultWrap = true; } var element = this._activeElement; var candidateDistance = -1; var candidateElement = undefined; var changedFocus = false; var isBidirectional = this.props.direction === FocusZone_types_1.FocusZoneDirection.bidirectional; if (!element || !this._root.current) { return false; } if (this._isElementInput(element)) { if (!this._shouldInputLoseFocus(element, isForward)) { return false; } } var activeRect = isBidirectional ? element.getBoundingClientRect() : null; do { element = (isForward ? (0, utilities_1.getNextElement)(this._root.current, element) : (0, utilities_1.getPreviousElement)(this._root.current, element)); if (isBidirectional) { if (element) { var targetRect = element.getBoundingClientRect(); // eslint-disable-next-line deprecation/deprecation var elementDistance = getDistanceFromCenter(activeRect, targetRect); if (elementDistance === -1 && candidateDistance === -1) { candidateElement = element; break; } if (elementDistance > -1 && (candidateDistance === -1 || elementDistance < candidateDistance)) { candidateDistance = elementDistance; candidateElement = element; } if (candidateDistance >= 0 && elementDistance < 0) { break; } } } else { candidateElement = element; break; } } while (element); // Focus the closest candidate if (candidateElement && candidateElement !== this._activeElement) { changedFocus = true; this.focusElement(candidateElement); } else if (this.props.isCircularNavigation && useDefaultWrap) { if (isForward) { return this.focusElement((0, utilities_1.getNextElement)(this._root.current, this._root.current.firstElementChild, true)); } else { return this.focusElement((0, utilities_1.getPreviousElement)(this._root.current, this._root.current.lastElementChild, true, true, true)); } } return changedFocus; }; FocusZone.prototype._moveFocusDown = function () { var _this = this; var targetTop = -1; // eslint-disable-next-line deprecation/deprecation var leftAlignment = this._focusAlignment.left || this._focusAlignment.x || 0; if ( // eslint-disable-next-line deprecation/deprecation this._moveFocus(true, function (activeRect, targetRect) { var distance = -1; // ClientRect values can be floats that differ by very small fractions of a decimal. // If the difference between top and bottom are within a pixel then we should treat // them as equivalent by using Math.floor. For instance 5.2222 and 5.222221 should be equivalent, // but without Math.Floor they will be handled incorrectly. var targetRectTop = Math.floor(targetRect.top); var activeRectBottom = Math.floor(activeRect.bottom); if (targetRectTop < activeRectBottom) { if (!_this._shouldWrapFocus(_this._activeElement, NO_VERTICAL_WRAP)) { return LARGE_NEGATIVE_DISTANCE_FROM_CENTER; } return LARGE_DISTANCE_FROM_CENTER; } if ((targetTop === -1 && targetRectTop >= activeRectBottom) || targetRectTop === targetTop) { targetTop = targetRectTop; if (leftAlignment >= targetRect.left && leftAlignment <= targetRect.left + targetRect.width) { distance = 0; } else { distance = Math.abs(targetRect.left + targetRect.width / 2 - leftAlignment); } } return distance; })) { this._setFocusAlignment(this._activeElement, false, true); return true; } return false; }; FocusZone.prototype._moveFocusUp = function () { var _this = this; var targetTop = -1; // eslint-disable-next-line deprecation/deprecation var leftAlignment = this._focusAlignment.left || this._focusAlignment.x || 0; if ( // eslint-disable-next-line deprecation/deprecation this._moveFocus(false, function (activeRect, targetRect) { var distance = -1; // ClientRect values can be floats that differ by very small fractions of a decimal. // If the difference between top and bottom are within a pixel then we should treat // them as equivalent by using Math.floor. For instance 5.2222 and 5.222221 should be equivalent, // but without Math.Floor they will be handled incorrectly. var targetRectBottom = Math.floor(targetRect.bottom); var targetRectTop = Math.floor(targetRect.top); var activeRectTop = Math.floor(activeRect.top); if (targetRectBottom > activeRectTop) { if (!_this._shouldWrapFocus(_this._activeElement, NO_VERTICAL_WRAP)) { return LARGE_NEGATIVE_DISTANCE_FROM_CENTER; } return LARGE_DISTANCE_FROM_CENTER; } if ((targetTop === -1 && targetRectBottom <= activeRectTop) || targetRectTop === targetTop) { targetTop = targetRectTop; if (leftAlignment >= targetRect.left && leftAlignment <= targetRect.left + targetRect.width) { distance = 0; } else { distance = Math.abs(targetRect.left + targetRect.width / 2 - leftAlignment); } } return distance; })) { this._setFocusAlignment(this._activeElement, false, true); return true; } return false; }; FocusZone.prototype._moveFocusLeft = function (theme) { var _this = this; var shouldWrap = this._shouldWrapFocus(this._activeElement, NO_HORIZONTAL_WRAP); if (this._moveFocus((0, utilities_1.getRTL)(theme), // eslint-disable-next-line deprecation/deprecation function (activeRect, targetRect) { var distance = -1; var topBottomComparison; if ((0, utilities_1.getRTL)(theme)) { // When in RTL, this comparison should be the same as the one in _moveFocusRight for LTR. // Going left at a leftmost rectangle will go down a line instead of up a line like in LTR. // This is important, because we want to be comparing the top of the target rect // with the bottom of the active rect. topBottomComparison = parseFloat(targetRect.top.toFixed(3)) < parseFloat(activeRect.bottom.toFixed(3)); } else { topBottomComparison = parseFloat(targetRect.bottom.toFixed(3)) > parseFloat(activeRect.top.toFixed(3)); } if (topBottomComparison && targetRect.right <= activeRect.right && _this.props.direction !== FocusZone_types_1.FocusZoneDirection.vertical) { distance = activeRect.right - targetRect.right; } else if (!shouldWrap) { distance = LARGE_NEGATIVE_DISTANCE_FROM_CENTER; } return distance; }, undefined /*ev*/, shouldWrap)) { this._setFocusAlignment(this._activeElement, true, false); return true; } return false; }; FocusZone.prototype._moveFocusRight = function (theme) { var _this = this; var shouldWrap = this._shouldWrapFocus(this._activeElement, NO_HORIZONTAL_WRAP); if (this._moveFocus(!(0, utilities_1.getRTL)(theme), // eslint-disable-next-line deprecation/deprecation function (activeRect, targetRect) { var distance = -1; var topBottomComparison; if ((0, utilities_1.getRTL)(theme)) { // When in RTL, this comparison should be the same as the one in _moveFocusLeft for LTR. // Going right at a rightmost rectangle will go up a line instead of down a line like in LTR. // This is important, because we want to be comparing the bottom of the target rect // with the top of the active rect. topBottomComparison = parseFloat(targetRect.bottom.toFixed(3)) > parseFloat(activeRect.top.toFixed(3)); } else { topBottomComparison = parseFloat(targetRect.top.toFixed(3)) < parseFloat(activeRect.bottom.toFixed(3)); } if (topBottomComparison && targetRect.left >= activeRect.left && _this.props.direction !== FocusZone_types_1.FocusZoneDirection.vertical) { distance = targetRect.left - activeRect.left; } else if (!shouldWrap) { distance = LARGE_NEGATIVE_DISTANCE_FROM_CENTER; } return distance; }, undefined /*ev*/, shouldWrap)) { this._setFocusAlignment(this._activeElement, true, false); return true; } return false; }; FocusZone.prototype._moveFocusPaging = function (isForward, useDefaultWrap) { if (useDefaultWrap === void 0) { useDefaultWrap = true; } var element = this._activeElement; if (!element || !this._root.current) { return false; } if (this._isElementInput(element)) { if (!this._shouldInputLoseFocus(element, isForward)) { return false; } } var scrollableParent = (0, utilities_1.findScrollableParent)(element); if (!scrollableParent) { return false; } var candidateDistance = -1; var candidateElement = undefined; var targetTop = -1; var targetBottom = -1; var pagesize = scrollableParent.clientHeight; var activeRect = element.getBoundingClientRect(); do { element = isForward ? (0, utilities_1.getNextElement)(this._root.current, element) : (0, utilities_1.getPreviousElement)(this._root.current, element); if (element) { var targetRect = element.getBoundingClientRect(); var targetRectTop = Math.floor(targetRect.top); var activeRectBottom = Math.floor(activeRect.bottom); var targetRectBottom = Math.floor(targetRect.bottom); var activeRectTop = Math.floor(activeRect.top); var elementDistance = this._getHorizontalDistanceFromCenter(isForward, activeRect, targetRect); var isElementPassedPageSizeOnPagingDown = isForward && targetRectTop > activeRectBottom + pagesize; var isElementPassedPageSizeOnPagingUp = !isForward && targetRectBottom < activeRectTop - pagesize; if (isElementPassedPageSizeOnPagingDown || isElementPassedPageSizeOnPagingUp) { break; } if (elementDistance > -1) { // for paging down if (isForward && targetRectTop > targetTop) { targetTop = targetRectTop; candidateDistance = elementDistance; candidateElement = element; } else if (!isForward && targetRectBottom < targetBottom) { // for paging up targetBottom = targetRectBottom; candidateDistance = elementDistance; candidateElement = element; } else if (candidateDistance === -1 || elementDistance <= candidateDistance) { candidateDistance = elementDistance; candidateElement = element; } } } } while (element); var changedFocus = false; // Focus the closest candidate if (candidateElement && candidateElement !== this._activeElement) { changedFocus = true; this.focusElement(candidateElement); this._setFocusAlignment(candidateElement, false, true); } else if (this.props.isCircularNavigation && useDefaultWrap) { if (isForward) { return this.focusElement((0, utilities_1.getNextElement)(this._root.current, this._root.current.firstElementChild, true)); } return this.focusElement((0, utilities_1.getPreviousElement)(this._root.current, this._root.current.lastElementChild, true, true, true)); } return changedFocus; }; FocusZone.prototype._setFocusAlignment = function (element, isHorizontal, isVertical) { if (this.props.direction === FocusZone_types_1.FocusZoneDirection.bidirectional && (!this._focusAlignment || isHorizontal || isVertical)) { var rect = element.getBoundingClientRect(); var left = rect.left + rect.width / 2; var top_1 = rect.top + rect.height / 2; if (!this._focusAlignment) { this._focusAlignment = { left: left, top: top_1 }; } if (isHorizontal) { this._focusAlignment.left = left; } if (isVertical) { this._focusAlignment.top = top_1; } } }; FocusZone.prototype._isImmediateDescendantOfZone = function (element) { return this._getOwnerZone(element) === this._root.current; }; FocusZone.prototype._getOwnerZone = function (element) { var parentElement = (0, utilities_1.getParent)(element, ALLOW_VIRTUAL_ELEMENTS); while (parentElement && parentElement !== this._root.current && parentElement !== this._getDocument().body) { if ((0, utilities_1.isElementFocusZone)(parentElement)) { return parentElement; } parentElement = (0, utilities_1.getParent)(parentElement, ALLOW_VIRTUAL_ELEMENTS); } return parentElement; }; FocusZone.prototype._updateTabIndexes = function (element) { if (!this._activeElement && this.props.defaultTabbableElement && typeof this.props.defaultTabbableElement === 'function') { this._activeElement = this.props.defaultTabbableElement(this._root.current); } if (!element && this._root.current) { this._defaultFocusElement = null; element = this._root.current; if (this._activeElement && !(0, utilities_1.elementContains)(element, this._activeElement)) { this._activeElement = null; } } // If active element changes state to disabled, set it to null. // Otherwise, we lose keyboard accessibility to other elements in focus zone. if (this._activeElement && !(0, utilities_1.isElementTabbable)(this._activeElement)) { this._activeElement = null; } var childNodes = element && element.children; for (var childIndex = 0; childNodes && childIndex < childNodes.length; childIndex++) { var child = childNodes[childIndex]; if (!(0, utilities_1.isElementFocusZone)(child)) { // If the item is explicitly set to not be focusable then TABINDEX needs to be set to -1. if (child.getAttribute && child.getAttribute(IS_FOCUSABLE_ATTRIBUTE) === 'false') { child.setAttribute(TABINDEX, '-1'); } if ((0, utilities_1.isElementTabbable)(child)) { if (this.props.disabled) { child.setAttribute(TABINDEX, '-1'); } else if (!this._isInnerZone && ((!this._activeElement && !this._defaultFocusElement) || this._activeElement === child)) { this._defaultFocusElement = child; if (child.getAttribute(TABINDEX) !== '0') { child.setAttribute(TABINDEX, '0'); } } else if (child.getAttribute(TABINDEX) !== '-1') { child.setAttribute(TABINDEX, '-1'); } } else if (child.tagName === 'svg' && child.getAttribute('focusable') !== 'false') { // Disgusting IE hack. Sad face. child.setAttribute('focusable', 'false'); } } else if (child.getAttribute(IS_FOCUSABLE_ATTRIBUTE) === 'true') { if (!this._isInnerZone && ((!this._activeElement && !this._defaultFocusElement) || this._activeElement === child)) { this._defaultFocusElement = child; if (child.getAttribute(TABINDEX) !== '0') { child.setAttribute(TABINDEX, '0'); } } else if (child.getAttribute(TABINDEX) !== '-1') { child.setAttribute(TABINDEX, '-1'); } } this._updateTabIndexes(child); } }; FocusZone.prototype._isContentEditableElement = function (element) { return element && element.getAttribute('contenteditable') === 'true'; }; FocusZone.prototype._isElementInput = function (element) { if (element && element.tagName && (element.tagName.toLowerCase() === 'input' || element.tagName.toLowerCase() === 'textarea')) { return true; } return false; }; FocusZone.prototype._shouldInputLoseFocus = function (element, isForward) { // If a tab was used, we want to focus on the next element. if (!this._processingTabKey && element && element.type && ALLOWED_INPUT_TYPES.indexOf(element.type.toLowerCase()) > -1) { var selectionStart = element.selectionStart; var selectionEnd = element.selectionEnd; var isRangeSelected = selectionStart !== selectionEnd; var inputValue = element.value; var isReadonly = element.readOnly; // We shouldn't lose focus in the following cases: // 1. There is range selected. // 2. When selection start is larger than 0 and it is backward and not readOnly. // 3. when selection start is not the end of length, it is forward and not readOnly. // 4. We press any of the arrow keys when our handleTabKey isn't none or undefined (only losing focus if we hit // tab) and if shouldInputLoseFocusOnArrowKey is defined, if scenario prefers to not loose the focus which is // determined by calling the callback shouldInputLoseFocusOnArrowKey if (isRangeSelected || (selectionStart > 0 && !isForward && !isReadonly) || (selectionStart !== inputValue.length && isForward && !isReadonly) || (!!this.props.handleTabKey && !(this.props.shouldInputLoseFocusOnArrowKey && this.props.shouldInputLoseFocusOnArrowKey(element)))) { return false; } } return true; }; FocusZone.prototype._shouldWrapFocus = function (element, noWrapDataAttribute) { return this.props.checkForNoWrap ? (0, utilities_1.shouldWrapFocus)(element, noWrapDataAttribute) : true; }; /** * Returns true if the element is a descendant of the FocusZone through a React portal. */ FocusZone.prototype._portalContainsElement = function (element) { return element && !!this._root.current && (0, utilities_1.portalContainsElement)(element, this._root.current); }; FocusZone.prototype._getDocument = function () { return (0, utilities_1.getDocument)(this._root.current); }; FocusZone.defaultProps = { isCircularNavigation: false, direction: FocusZone_types_1.FocusZoneDirection.bidirectional, shouldRaiseClicks: true, }; return FocusZone; }(React.Component)); exports.FocusZone = FocusZone; //# sourceMappingURL=FocusZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react-focus/lib-commonjs/components/FocusZone/FocusZone.types.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react-focus/lib-commonjs/components/FocusZone/FocusZone.types.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FocusZoneDirection = exports.FocusZoneTabbableElements = void 0; /** * {@docCategory FocusZone} */ exports.FocusZoneTabbableElements = { /** Tabbing is not allowed */ none: 0, /** All tabbing action is allowed */ all: 1, /** Tabbing is allowed only on input elements */ inputOnly: 2, }; /** * {@docCategory FocusZone} */ var FocusZoneDirection; (function (FocusZoneDirection) { /** Only react to up/down arrows. */ FocusZoneDirection[FocusZoneDirection["vertical"] = 0] = "vertical"; /** Only react to left/right arrows. */ FocusZoneDirection[FocusZoneDirection["horizontal"] = 1] = "horizontal"; /** React to all arrows. */ FocusZoneDirection[FocusZoneDirection["bidirectional"] = 2] = "bidirectional"; /** * React to all arrows. Navigate next item in DOM on right/down arrow keys and previous - left/up arrow keys. * Right and Left arrow keys are swapped in RTL mode. */ FocusZoneDirection[FocusZoneDirection["domOrder"] = 3] = "domOrder"; })(FocusZoneDirection = exports.FocusZoneDirection || (exports.FocusZoneDirection = {})); //# sourceMappingURL=FocusZone.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react-focus/lib-commonjs/components/FocusZone/index.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react-focus/lib-commonjs/components/FocusZone/index.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./FocusZone */ "./node_modules/@fluentui/react-focus/lib-commonjs/components/FocusZone/FocusZone.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./FocusZone.types */ "./node_modules/@fluentui/react-focus/lib-commonjs/components/FocusZone/FocusZone.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react-focus/lib-commonjs/index.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react-focus/lib-commonjs/index.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react-focus/lib-commonjs/version.js"); tslib_1.__exportStar(__webpack_require__(/*! ./components/FocusZone/index */ "./node_modules/@fluentui/react-focus/lib-commonjs/components/FocusZone/index.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react-focus/lib-commonjs/version.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/react-focus/lib-commonjs/version.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. var set_version_1 = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib-commonjs/index.js"); (0, set_version_1.setVersion)('@fluentui/react-focus', '8.8.31'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/index.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useIsomorphicLayoutEffect = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react-hooks/lib-commonjs/version.js"); tslib_1.__exportStar(__webpack_require__(/*! ./useAsync */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useAsync.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useBoolean */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useBoolean.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useConst.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useConstCallback */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useConstCallback.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useControllableValue */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useControllableValue.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useEventCallback */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useEventCallback.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useForceUpdate */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useForceUpdate.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useId */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useId.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useMergedRefs */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useMergedRefs.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useMount */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useMount.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useMountSync */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useMountSync.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useOnEvent */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useOnEvent.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./usePrevious */ "./node_modules/@fluentui/react-hooks/lib-commonjs/usePrevious.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useRefEffect */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useRefEffect.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useSetInterval */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useSetInterval.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useSetTimeout */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useSetTimeout.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useTarget */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useTarget.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useUnmount */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useUnmount.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./useWarnings */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useWarnings.js"), exports); // re-export since this is a hook, which people would reasonably expect to import from react-hooks var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "useIsomorphicLayoutEffect", ({ enumerable: true, get: function () { return utilities_1.useIsomorphicLayoutEffect; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useAsync.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useAsync.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useAsync = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * Hook to provide an Async instance that is automatically cleaned up on dismount. */ function useAsync() { var asyncRef = React.useRef(); if (!asyncRef.current) { asyncRef.current = new utilities_1.Async(); } React.useEffect(function () { return function () { var _a; (_a = asyncRef.current) === null || _a === void 0 ? void 0 : _a.dispose(); asyncRef.current = undefined; }; }, []); return asyncRef.current; } exports.useAsync = useAsync; //# sourceMappingURL=useAsync.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useBoolean.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useBoolean.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useBoolean = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useConst_1 = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useConst.js"); /** * Hook to store a value and generate callbacks for setting the value to true or false. * The identity of the callbacks will always stay the same. * * @param initialState - Initial value * @returns Array with the current value and an object containing the updater callbacks. */ function useBoolean(initialState) { var _a = React.useState(initialState), value = _a[0], setValue = _a[1]; var setTrue = (0, useConst_1.useConst)(function () { return function () { setValue(true); }; }); var setFalse = (0, useConst_1.useConst)(function () { return function () { setValue(false); }; }); var toggle = (0, useConst_1.useConst)(function () { return function () { setValue(function (currentValue) { return !currentValue; }); }; }); return [value, { setTrue: setTrue, setFalse: setFalse, toggle: toggle }]; } exports.useBoolean = useBoolean; //# sourceMappingURL=useBoolean.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useConst.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useConst.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useConst = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * Hook to initialize and return a constant value. Unlike `React.useMemo`, this is guaranteed to * always return the same value (and if the initializer is a function, only call it once). * This is similar to setting a private member in a class constructor. * * If the value should ever change based on dependencies, use `React.useMemo` instead. * * @param initialValue - Initial value, or function to get the initial value. Similar to `useState`, * only the value/function passed in the first time this is called is respected. * @returns The value. The identity of this value will always be the same. */ function useConst(initialValue) { // Use useRef to store the value because it's the least expensive built-in hook that works here // (we could also use `const [value] = React.useState(initialValue)` but that's more expensive // internally due to reducer handling which we don't need) var ref = React.useRef(); if (ref.current === undefined) { // Box the value in an object so we can tell if it's initialized even if the initializer // returns/is undefined ref.current = { value: typeof initialValue === 'function' ? initialValue() : initialValue, }; } return ref.current.value; } exports.useConst = useConst; //# sourceMappingURL=useConst.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useConstCallback.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useConstCallback.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useConstCallback = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * @deprecated Deprecated due to potential for misuse. Generally, use `React.useCallback` instead. * If you need a callback reference that never changes, consider `useEventCallback`. * * This hook was intended for creating callbacks which have no dependencies, and therefore never * need to change. It works fine if everyone using it is extremely mindful of how closures work, * but that's not a safe assumption--so in practice, usage of this hook tends to result in bugs * like unintentionally capturing the first value of a prop and not respecting updates (when * updates should be respected). */ // eslint-disable-next-line @typescript-eslint/no-explicit-any function useConstCallback(callback) { var ref = React.useRef(); if (!ref.current) { ref.current = callback; } return ref.current; } exports.useConstCallback = useConstCallback; //# sourceMappingURL=useConstCallback.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useControllableValue.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useControllableValue.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useControllableValue = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useConst_1 = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useConst.js"); function useControllableValue(controlledValue, defaultUncontrolledValue, onChange) { var _a = React.useState(defaultUncontrolledValue), value = _a[0], setValue = _a[1]; var isControlled = (0, useConst_1.useConst)(controlledValue !== undefined); var currentValue = isControlled ? controlledValue : value; // Duplicate the current value and onChange in refs so they're accessible from // setValueOrCallOnChange without creating a new callback every time var valueRef = React.useRef(currentValue); var onChangeRef = React.useRef(onChange); React.useEffect(function () { valueRef.current = currentValue; onChangeRef.current = onChange; }); // To match the behavior of the setter returned by React.useState, this callback's identity // should never change. This means it MUST NOT directly reference variables that can change. var setValueOrCallOnChange = (0, useConst_1.useConst)(function () { return function (update, ev) { // Assuming here that TValue is not a function, because a controllable value will typically // be something a user can enter as input var newValue = typeof update === 'function' ? update(valueRef.current) : update; if (onChangeRef.current) { onChangeRef.current(ev, newValue); } if (!isControlled) { setValue(newValue); } }; }); return [currentValue, setValueOrCallOnChange]; } exports.useControllableValue = useControllableValue; //# sourceMappingURL=useControllableValue.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useEventCallback.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useEventCallback.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useEventCallback = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useConst_1 = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useConst.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); /** * Modified `useCallback` that returns the same function reference every time, but internally calls * the most-recently passed callback implementation. Can be useful in situations such as: * - Event handler dependencies change too frequently, such as user props which might change on * every render, or volatile values such as useState/useDispatch * - Callback must be referenced in a captured context (such as a window event handler or unmount * handler that's registered once) but needs access to the latest props * * In general, prefer `useCallback` unless you've encountered one of the problems above. * * https://reactjs.org/docs/hooks-faq.html#how-to-read-an-often-changing-value-from-usecallback * * @param fn - The callback function that will be used * @returns A function which is referentially stable but internally calls the most recently passed callback */ function useEventCallback(fn) { var callbackRef = React.useRef(function () { throw new Error('Cannot call an event handler while rendering'); }); (0, utilities_1.useIsomorphicLayoutEffect)(function () { callbackRef.current = fn; }, [fn]); // useConst rather than useCallback to ensure the reference is always stable // (useCallback's deps list is an optimization, not a guarantee) return (0, useConst_1.useConst)(function () { return function () { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var callback = callbackRef.current; return callback.apply(void 0, args); }; }); } exports.useEventCallback = useEventCallback; //# sourceMappingURL=useEventCallback.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useForceUpdate.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useForceUpdate.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useForceUpdate = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useConst_1 = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useConst.js"); /** * Hook to force update a function component by updating a dummy state. */ function useForceUpdate() { var _a = React.useState(0), setValue = _a[1]; var forceUpdate = (0, useConst_1.useConst)(function () { return function () { return setValue(function (value) { return ++value; }); }; }); return forceUpdate; } exports.useForceUpdate = useForceUpdate; //# sourceMappingURL=useForceUpdate.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useId.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useId.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useId = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); /** * Hook to generate a unique ID in the global scope (spanning across duplicate copies of the same library). * * @param prefix - Optional prefix for the ID * @param providedId - Optional id provided by a parent component. Defaults to the provided value if present, * without conditioning the hook call * @returns The ID */ function useId(prefix, providedId) { // getId should only be called once since it updates the global constant for the next ID value. // (While an extra update isn't likely to cause problems in practice, it's better to avoid it.) var ref = React.useRef(providedId); if (!ref.current) { ref.current = (0, utilities_1.getId)(prefix); } return ref.current; } exports.useId = useId; //# sourceMappingURL=useId.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useMergedRefs.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useMergedRefs.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useMergedRefs = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * React hook to merge multiple React refs (either MutableRefObjects or ref callbacks) into a single ref callback that * updates all provided refs * @param refs - Refs to collectively update with one ref value. * @returns A function with an attached "current" prop, so that it can be treated like a RefObject. */ function useMergedRefs() { var refs = []; for (var _i = 0; _i < arguments.length; _i++) { refs[_i] = arguments[_i]; } var mergedCallback = React.useCallback(function (value) { // Update the "current" prop hanging on the function. mergedCallback.current = value; for (var _i = 0, refs_1 = refs; _i < refs_1.length; _i++) { var ref = refs_1[_i]; if (typeof ref === 'function') { ref(value); } else if (ref) { // work around the immutability of the React.Ref type ref.current = value; } } }, tslib_1.__spreadArray([], refs, true)); return mergedCallback; } exports.useMergedRefs = useMergedRefs; //# sourceMappingURL=useMergedRefs.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useMount.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useMount.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useMount = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * Hook which asynchronously executes a callback once the component has been mounted. * * @param callback - Function to call before mount. */ var useMount = function (callback) { var mountRef = React.useRef(callback); mountRef.current = callback; React.useEffect(function () { var _a; (_a = mountRef.current) === null || _a === void 0 ? void 0 : _a.call(mountRef); }, []); }; exports.useMount = useMount; //# sourceMappingURL=useMount.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useMountSync.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useMountSync.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useMountSync = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * Hook which synchronously executes a callback once the component has been mounted. * * `WARNING` This should only be used if you need to perform an action after the component has been mounted and * before the browser paints. useMountSync will trigger debug warnings in server-rendered scenarios and should be used * sparingly. * * @deprecated Consider to use React.useEffect() or React.useLayoutEffect() directly based on a use case * * @param callback - Function to call once the component has been mounted. */ var useMountSync = function (callback) { var mountRef = React.useRef(callback); mountRef.current = callback; // eslint-disable-next-line no-restricted-properties React.useLayoutEffect(function () { var _a; (_a = mountRef.current) === null || _a === void 0 ? void 0 : _a.call(mountRef); }, []); }; exports.useMountSync = useMountSync; //# sourceMappingURL=useMountSync.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useOnEvent.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useOnEvent.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useOnEvent = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * Hook to attach an event handler on mount and handle cleanup. * @param element - Element (or ref to an element) to attach the event handler to * @param eventName - The event to attach a handler for * @param callback - The handler for the event * @param useCapture - Whether or not to attach the handler for the capture phase */ function useOnEvent(element, eventName, callback, useCapture) { // Use a ref for the callback to prevent repeatedly attaching/unattaching callbacks that are unstable across renders var callbackRef = React.useRef(callback); callbackRef.current = callback; React.useEffect(function () { var actualElement = element && 'current' in element ? element.current : element; if (!actualElement) { return; } var dispose = (0, utilities_1.on)(actualElement, eventName, function (ev) { return callbackRef.current(ev); }, useCapture); return dispose; }, [element, eventName, useCapture]); } exports.useOnEvent = useOnEvent; //# sourceMappingURL=useOnEvent.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/usePrevious.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/usePrevious.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.usePrevious = void 0; var react_1 = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * Hook keeping track of a given value from a previous execution of the component the Hook is used in. * * See [React Hooks FAQ](https://reactjs.org/docs/hooks-faq.html#how-to-get-the-previous-props-or-state) */ function usePrevious(value) { var ref = (0, react_1.useRef)(); (0, react_1.useEffect)(function () { ref.current = value; }); return ref.current; } exports.usePrevious = usePrevious; //# sourceMappingURL=usePrevious.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useRefEffect.js": /*!*************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useRefEffect.js ***! \*************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useRefEffect = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * Creates a ref, and calls a callback whenever the ref changes to a non-null value. The callback can optionally return * a cleanup function that'll be called before the value changes, and when the ref is unmounted. * * This can be used to work around a limitation that useEffect cannot depend on `ref.current` (see * https://github.com/facebook/react/issues/14387#issuecomment-503616820). * * Usage example: * ```ts * const myRef = useRefEffect(element => { * ... * return () => { ... cleanup ... }; * }); * ``` * ```jsx *
* ``` * * @param callback - Called whenever the ref's value changes to non-null. Can optionally return a cleanup function. * @param initial - (Optional) The initial value for the ref. * * @returns A function that should be called to set the ref's value. The object also has a `.current` member that can be * used to access the ref's value (like a normal RefObject). It can be hooked up to an element's `ref` property. */ function useRefEffect(callback, initial) { if (initial === void 0) { initial = null; } var createRefCallback = function () { var refCallback = function (value) { if (data.ref.current !== value) { if (data.cleanup) { data.cleanup(); data.cleanup = undefined; } data.ref.current = value; if (value !== null) { data.cleanup = data.callback(value); } } }; refCallback.current = initial; return refCallback; }; var data = React.useRef({ ref: createRefCallback(), callback: callback, }).current; data.callback = callback; return data.ref; } exports.useRefEffect = useRefEffect; //# sourceMappingURL=useRefEffect.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useSetInterval.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useSetInterval.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useSetInterval = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useConst_1 = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useConst.js"); /** * Returns a wrapper function for `setInterval` which automatically handles disposal. */ var useSetInterval = function () { var intervalIds = (0, useConst_1.useConst)({}); React.useEffect(function () { return function () { for (var _i = 0, _a = Object.keys(intervalIds); _i < _a.length; _i++) { var id = _a[_i]; // eslint-disable-next-line @typescript-eslint/no-explicit-any clearInterval(id); } }; }, // useConst ensures this will never change, but react-hooks/exhaustive-deps doesn't know that [intervalIds]); return (0, useConst_1.useConst)({ setInterval: function (func, duration) { var id = setInterval(func, duration); intervalIds[id] = 1; return id; }, clearInterval: function (id) { delete intervalIds[id]; clearInterval(id); }, }); }; exports.useSetInterval = useSetInterval; //# sourceMappingURL=useSetInterval.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useSetTimeout.js": /*!**************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useSetTimeout.js ***! \**************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useSetTimeout = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var useConst_1 = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useConst.js"); /** * Returns a wrapper function for `setTimeout` which automatically handles disposal. */ var useSetTimeout = function () { var timeoutIds = (0, useConst_1.useConst)({}); // Cleanup function. React.useEffect(function () { return function () { for (var _i = 0, _a = Object.keys(timeoutIds); _i < _a.length; _i++) { var id = _a[_i]; // eslint-disable-next-line @typescript-eslint/no-explicit-any clearTimeout(id); } }; }, // useConst ensures this will never change, but react-hooks/exhaustive-deps doesn't know that [timeoutIds]); // Return wrapper which will auto cleanup. return (0, useConst_1.useConst)({ setTimeout: function (func, duration) { var id = setTimeout(func, duration); timeoutIds[id] = 1; return id; }, clearTimeout: function (id) { delete timeoutIds[id]; clearTimeout(id); }, }); }; exports.useSetTimeout = useSetTimeout; //# sourceMappingURL=useSetTimeout.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useTarget.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useTarget.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useTarget = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var react_window_provider_1 = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib-commonjs/index.js"); /** * Hook to calculate and cache the target element specified by the given target attribute, * as well as the target element's (or host element's) parent window * @param target- Target selector passed to the component as a property, describing the element that * the callout should target * @param hostElement- The callout's host element, used for determining the parent window. */ function useTarget(target, hostElement) { var previousTargetProp = React.useRef(); var targetRef = React.useRef(null); /** * Stores an instance of Window, used to check * for server side rendering and if focus was lost. */ var targetWindow = (0, react_window_provider_1.useWindow)(); // If the target element changed, find the new one. If we are tracking // target with class name, always find element because we do not know if // fabric has rendered a new element and disposed the old element. if (!target || target !== previousTargetProp.current || typeof target === 'string') { var currentElement = hostElement === null || hostElement === void 0 ? void 0 : hostElement.current; if (target) { if (typeof target === 'string') { var currentDoc = (0, utilities_1.getDocument)(currentElement); targetRef.current = currentDoc ? currentDoc.querySelector(target) : null; } else if ('stopPropagation' in target) { targetRef.current = target; } else if ('getBoundingClientRect' in target) { targetRef.current = target; } else if ('current' in target) { targetRef.current = target.current; } else { targetRef.current = target; } } previousTargetProp.current = target; } return [targetRef, targetWindow]; } exports.useTarget = useTarget; //# sourceMappingURL=useTarget.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useUnmount.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useUnmount.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useUnmount = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * Hook which synchronously executes a callback when the component is about to unmount. * * @param callback - Function to call during unmount. */ var useUnmount = function (callback) { var unmountRef = React.useRef(callback); unmountRef.current = callback; React.useEffect(function () { return function () { var _a; (_a = unmountRef.current) === null || _a === void 0 ? void 0 : _a.call(unmountRef); }; }, []); }; exports.useUnmount = useUnmount; //# sourceMappingURL=useUnmount.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/useWarnings.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/useWarnings.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useWarnings = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var usePrevious_1 = __webpack_require__(/*! ./usePrevious */ "./node_modules/@fluentui/react-hooks/lib-commonjs/usePrevious.js"); var useConst_1 = __webpack_require__(/*! ./useConst */ "./node_modules/@fluentui/react-hooks/lib-commonjs/useConst.js"); var warningId = 0; /** * Only in development mode, display console warnings when certain conditions are met. * Note that all warnings except `controlledUsage` will only be shown on first render * (new `controlledUsage` warnings may be shown later due to prop changes). */ function useWarnings(options) { if (true) { var name_1 = options.name, props = options.props, _a = options.other, other = _a === void 0 ? [] : _a, conditionallyRequired = options.conditionallyRequired, deprecations = options.deprecations, mutuallyExclusive = options.mutuallyExclusive, controlledUsage = options.controlledUsage; /* eslint-disable react-hooks/rules-of-hooks -- build-time conditional */ var hasWarnedRef = React.useRef(false); var componentId = (0, useConst_1.useConst)(function () { return "useWarnings_".concat(warningId++); }); var oldProps = (0, usePrevious_1.usePrevious)(props); /* eslint-enable react-hooks/rules-of-hooks */ // Warn synchronously (not in useEffect) on first render to make debugging easier. if (!hasWarnedRef.current) { hasWarnedRef.current = true; for (var _i = 0, other_1 = other; _i < other_1.length; _i++) { var warning = other_1[_i]; (0, utilities_1.warn)(warning); } if (conditionallyRequired) { for (var _b = 0, conditionallyRequired_1 = conditionallyRequired; _b < conditionallyRequired_1.length; _b++) { var req = conditionallyRequired_1[_b]; (0, utilities_1.warnConditionallyRequiredProps)(name_1, props, req.requiredProps, req.conditionalPropName, req.condition); } } deprecations && (0, utilities_1.warnDeprecations)(name_1, props, deprecations); mutuallyExclusive && (0, utilities_1.warnMutuallyExclusive)(name_1, props, mutuallyExclusive); } // Controlled usage warnings may be displayed on either first or subsequent renders due to // prop changes. Note that it's safe to run this synchronously (not in useEffect) even in // concurrent mode because `warnControlledUsage` internally tracks which warnings have been // displayed for each component instance (so nothing will be displayed twice). controlledUsage && (0, utilities_1.warnControlledUsage)(tslib_1.__assign(tslib_1.__assign({}, controlledUsage), { componentId: componentId, props: props, componentName: name_1, oldProps: oldProps })); } } exports.useWarnings = useWarnings; //# sourceMappingURL=useWarnings.js.map /***/ }), /***/ "./node_modules/@fluentui/react-hooks/lib-commonjs/version.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/react-hooks/lib-commonjs/version.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. var set_version_1 = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib-commonjs/index.js"); (0, set_version_1.setVersion)('@fluentui/react-hooks', '8.6.29'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/react-portal-compat-context/lib-commonjs/PortalCompatContext.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react-portal-compat-context/lib-commonjs/PortalCompatContext.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { PortalCompatContextProvider: function() { return PortalCompatContextProvider; }, usePortalCompat: function() { return usePortalCompat; } }); const _interop_require_wildcard = __webpack_require__(/*! @swc/helpers/_/_interop_require_wildcard */ "./node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs"); const _react = /*#__PURE__*/ _interop_require_wildcard._(__webpack_require__(/*! react */ "./node_modules/react/index.js")); const PortalCompatContext = /*#__PURE__*/ _react.createContext(undefined); const portalCompatContextDefaultValue = ()=>()=>undefined; const PortalCompatContextProvider = PortalCompatContext.Provider; function usePortalCompat() { var _React_useContext; return (_React_useContext = _react.useContext(PortalCompatContext)) !== null && _React_useContext !== void 0 ? _React_useContext : portalCompatContextDefaultValue; } /***/ }), /***/ "./node_modules/@fluentui/react-portal-compat-context/lib-commonjs/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react-portal-compat-context/lib-commonjs/index.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { PortalCompatContextProvider: function() { return _PortalCompatContext.PortalCompatContextProvider; }, usePortalCompat: function() { return _PortalCompatContext.usePortalCompat; } }); const _PortalCompatContext = __webpack_require__(/*! ./PortalCompatContext */ "./node_modules/@fluentui/react-portal-compat-context/lib-commonjs/PortalCompatContext.js"); /***/ }), /***/ "./node_modules/@fluentui/react-window-provider/lib-commonjs/WindowProvider.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react-window-provider/lib-commonjs/WindowProvider.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.WindowProvider = exports.useDocument = exports.useWindow = exports.WindowContext = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); /** * Context for providing the window. */ // eslint-disable-next-line @fluentui/no-context-default-value exports.WindowContext = React.createContext({ window: typeof window === 'object' ? window : undefined, }); /** * Hook to access the window object. This can be overridden contextually using the `WindowProvider`. */ var useWindow = function () { return React.useContext(exports.WindowContext).window; }; exports.useWindow = useWindow; /** * Hook to access the document object. This can be overridden contextually using the `WindowProvider`. */ var useDocument = function () { var _a; return (_a = React.useContext(exports.WindowContext).window) === null || _a === void 0 ? void 0 : _a.document; }; exports.useDocument = useDocument; /** * Component to provide the window object contextually. This is useful when rendering content to an element * contained within a child window or iframe element, where event handlers and styling must be projected * to an alternative window or document. */ var WindowProvider = function (props) { return React.createElement(exports.WindowContext.Provider, { value: props }, props.children); }; exports.WindowProvider = WindowProvider; //# sourceMappingURL=WindowProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react-window-provider/lib-commonjs/index.js": /*!****************************************************************************!*\ !*** ./node_modules/@fluentui/react-window-provider/lib-commonjs/index.js ***! \****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); (0, tslib_1.__exportStar)(__webpack_require__(/*! ./WindowProvider */ "./node_modules/@fluentui/react-window-provider/lib-commonjs/WindowProvider.js"), exports); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react-window-provider/lib-commonjs/version.js"); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react-window-provider/lib-commonjs/version.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react-window-provider/lib-commonjs/version.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); // Do not modify this file; it is generated as part of publish. // The checked in version is a placeholder only and will not be updated. var set_version_1 = __webpack_require__(/*! @fluentui/set-version */ "./node_modules/@fluentui/set-version/lib-commonjs/index.js"); (0, set_version_1.setVersion)('@fluentui/react-window-provider', '2.2.15'); //# sourceMappingURL=version.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ActivityItem.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ActivityItem.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/ActivityItem/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/index.js"), exports); //# sourceMappingURL=ActivityItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Announced.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Announced.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Announced/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Announced/index.js"), exports); //# sourceMappingURL=Announced.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Autofill.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Autofill.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Autofill/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/index.js"), exports); //# sourceMappingURL=Autofill.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Breadcrumb.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Breadcrumb.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Breadcrumb/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/index.js"), exports); //# sourceMappingURL=Breadcrumb.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Button.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Button.js ***! \*************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Button/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/index.js"), exports); //# sourceMappingURL=Button.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ButtonGrid.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ButtonGrid.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/ButtonGrid/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ButtonGrid/index.js"), exports); //# sourceMappingURL=ButtonGrid.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Calendar.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Calendar.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Calendar/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/index.js"), exports); //# sourceMappingURL=Calendar.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Callout.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Callout.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Callout/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/index.js"), exports); //# sourceMappingURL=Callout.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Check.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Check.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Check/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Check/index.js"), exports); //# sourceMappingURL=Check.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Checkbox.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Checkbox.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Checkbox/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/index.js"), exports); //# sourceMappingURL=Checkbox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ChoiceGroup.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ChoiceGroup.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/ChoiceGroup/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/index.js"), exports); //# sourceMappingURL=ChoiceGroup.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Coachmark.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Coachmark.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Coachmark/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/index.js"), exports); //# sourceMappingURL=Coachmark.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Color.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Color.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/color/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/index.js"), exports); //# sourceMappingURL=Color.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ColorPicker.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ColorPicker.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/ColorPicker/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/index.js"), exports); //# sourceMappingURL=ColorPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ComboBox.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ComboBox.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/ComboBox/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/index.js"), exports); //# sourceMappingURL=ComboBox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/CommandBar.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/CommandBar.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/CommandBar/index */ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/index.js"), exports); //# sourceMappingURL=CommandBar.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ContextualMenu.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ContextualMenu.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/ContextualMenu/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/index.js"), exports); //# sourceMappingURL=ContextualMenu.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/DatePicker.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/DatePicker.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/DatePicker/index */ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/index.js"), exports); //# sourceMappingURL=DatePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/DateTimeUtilities.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/DateTimeUtilities.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.TimeConstants = exports.MonthOfYear = exports.FirstWeekOfYear = exports.DayOfWeek = exports.DateRangeType = exports.DAYS_IN_WEEK = exports.setMonth = exports.isInDateRangeArray = exports.getYearStart = exports.getYearEnd = exports.getWeekNumbersInMonth = exports.getWeekNumber = exports.getStartDateOfWeek = exports.getMonthStart = exports.getMonthEnd = exports.getEndDateOfWeek = exports.getDateRangeArray = exports.getDatePartHashValue = exports.compareDates = exports.compareDatePart = exports.addYears = exports.addWeeks = exports.addMonths = exports.addDays = void 0; // NOTE: This is not a full re-export because date-time-utilities includes some additional stuff // which is exported elsewhere, causes conflicts, or isn't needed. var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "addDays", ({ enumerable: true, get: function () { return date_time_utilities_1.addDays; } })); Object.defineProperty(exports, "addMonths", ({ enumerable: true, get: function () { return date_time_utilities_1.addMonths; } })); Object.defineProperty(exports, "addWeeks", ({ enumerable: true, get: function () { return date_time_utilities_1.addWeeks; } })); Object.defineProperty(exports, "addYears", ({ enumerable: true, get: function () { return date_time_utilities_1.addYears; } })); Object.defineProperty(exports, "compareDatePart", ({ enumerable: true, get: function () { return date_time_utilities_1.compareDatePart; } })); Object.defineProperty(exports, "compareDates", ({ enumerable: true, get: function () { return date_time_utilities_1.compareDates; } })); Object.defineProperty(exports, "getDatePartHashValue", ({ enumerable: true, get: function () { return date_time_utilities_1.getDatePartHashValue; } })); Object.defineProperty(exports, "getDateRangeArray", ({ enumerable: true, get: function () { return date_time_utilities_1.getDateRangeArray; } })); Object.defineProperty(exports, "getEndDateOfWeek", ({ enumerable: true, get: function () { return date_time_utilities_1.getEndDateOfWeek; } })); Object.defineProperty(exports, "getMonthEnd", ({ enumerable: true, get: function () { return date_time_utilities_1.getMonthEnd; } })); Object.defineProperty(exports, "getMonthStart", ({ enumerable: true, get: function () { return date_time_utilities_1.getMonthStart; } })); Object.defineProperty(exports, "getStartDateOfWeek", ({ enumerable: true, get: function () { return date_time_utilities_1.getStartDateOfWeek; } })); Object.defineProperty(exports, "getWeekNumber", ({ enumerable: true, get: function () { return date_time_utilities_1.getWeekNumber; } })); Object.defineProperty(exports, "getWeekNumbersInMonth", ({ enumerable: true, get: function () { return date_time_utilities_1.getWeekNumbersInMonth; } })); Object.defineProperty(exports, "getYearEnd", ({ enumerable: true, get: function () { return date_time_utilities_1.getYearEnd; } })); Object.defineProperty(exports, "getYearStart", ({ enumerable: true, get: function () { return date_time_utilities_1.getYearStart; } })); Object.defineProperty(exports, "isInDateRangeArray", ({ enumerable: true, get: function () { return date_time_utilities_1.isInDateRangeArray; } })); Object.defineProperty(exports, "setMonth", ({ enumerable: true, get: function () { return date_time_utilities_1.setMonth; } })); Object.defineProperty(exports, "DAYS_IN_WEEK", ({ enumerable: true, get: function () { return date_time_utilities_1.DAYS_IN_WEEK; } })); Object.defineProperty(exports, "DateRangeType", ({ enumerable: true, get: function () { return date_time_utilities_1.DateRangeType; } })); Object.defineProperty(exports, "DayOfWeek", ({ enumerable: true, get: function () { return date_time_utilities_1.DayOfWeek; } })); Object.defineProperty(exports, "FirstWeekOfYear", ({ enumerable: true, get: function () { return date_time_utilities_1.FirstWeekOfYear; } })); Object.defineProperty(exports, "MonthOfYear", ({ enumerable: true, get: function () { return date_time_utilities_1.MonthOfYear; } })); Object.defineProperty(exports, "TimeConstants", ({ enumerable: true, get: function () { return date_time_utilities_1.TimeConstants; } })); //# sourceMappingURL=DateTimeUtilities.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/DetailsList.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/DetailsList.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/DetailsList/index */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/index.js"), exports); //# sourceMappingURL=DetailsList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Dialog.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Dialog.js ***! \*************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Dialog/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/index.js"), exports); var index_1 = __webpack_require__(/*! ./components/Dialog/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/index.js"); Object.defineProperty(exports, "default", ({ enumerable: true, get: function () { return index_1.Dialog; } })); //# sourceMappingURL=Dialog.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Divider.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Divider.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Divider/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/index.js"), exports); //# sourceMappingURL=Divider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/DocumentCard.js": /*!*******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/DocumentCard.js ***! \*******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/DocumentCard/index */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/index.js"), exports); //# sourceMappingURL=DocumentCard.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/DragDrop.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/DragDrop.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/dragdrop/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/dragdrop/index.js"), exports); //# sourceMappingURL=DragDrop.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Dropdown.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Dropdown.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Dropdown/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/index.js"), exports); //# sourceMappingURL=Dropdown.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ExtendedPicker.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ExtendedPicker.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/ExtendedPicker/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/index.js"), exports); //# sourceMappingURL=ExtendedPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Fabric.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Fabric.js ***! \*************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Fabric/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Fabric/index.js"), exports); //# sourceMappingURL=Fabric.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Facepile.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Facepile.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Facepile/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/index.js"), exports); //# sourceMappingURL=Facepile.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/FloatingPicker.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/FloatingPicker.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/FloatingPicker/index */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/index.js"), exports); //# sourceMappingURL=FloatingPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/FocusTrapZone.js": /*!********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/FocusTrapZone.js ***! \********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/FocusTrapZone/index */ "./node_modules/@fluentui/react/lib-commonjs/components/FocusTrapZone/index.js"), exports); //# sourceMappingURL=FocusTrapZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/FocusZone.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FocusZoneTabbableElements = exports.FocusZoneDirection = exports.FocusZone = void 0; var react_focus_1 = __webpack_require__(/*! @fluentui/react-focus */ "./node_modules/@fluentui/react-focus/lib-commonjs/index.js"); Object.defineProperty(exports, "FocusZone", ({ enumerable: true, get: function () { return react_focus_1.FocusZone; } })); Object.defineProperty(exports, "FocusZoneDirection", ({ enumerable: true, get: function () { return react_focus_1.FocusZoneDirection; } })); Object.defineProperty(exports, "FocusZoneTabbableElements", ({ enumerable: true, get: function () { return react_focus_1.FocusZoneTabbableElements; } })); //# sourceMappingURL=FocusZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/GroupedList.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/GroupedList.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/GroupedList/index */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/groupedList/GroupedListUtility */ "./node_modules/@fluentui/react/lib-commonjs/utilities/groupedList/GroupedListUtility.js"), exports); //# sourceMappingURL=GroupedList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/HoverCard.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/HoverCard.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/HoverCard/index */ "./node_modules/@fluentui/react/lib-commonjs/components/HoverCard/index.js"), exports); //# sourceMappingURL=HoverCard.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Icon.js": /*!***********************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Icon.js ***! \***********************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Icon/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/index.js"), exports); //# sourceMappingURL=Icon.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Icons.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Icons.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.initializeIcons = void 0; var font_icons_mdl2_1 = __webpack_require__(/*! @fluentui/font-icons-mdl2 */ "./node_modules/@fluentui/font-icons-mdl2/lib-commonjs/index.js"); Object.defineProperty(exports, "initializeIcons", ({ enumerable: true, get: function () { return font_icons_mdl2_1.initializeIcons; } })); //# sourceMappingURL=Icons.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Image.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Image.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Image/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Image/index.js"), exports); //# sourceMappingURL=Image.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Keytip.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Keytip.js ***! \*************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Keytip/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/index.js"), exports); //# sourceMappingURL=Keytip.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/KeytipData.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/KeytipData.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/KeytipData/index */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/index.js"), exports); //# sourceMappingURL=KeytipData.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Keytips.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Keytips.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Keytip/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Keytip/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./components/KeytipData/index */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipData/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./components/KeytipLayer/index */ "./node_modules/@fluentui/react/lib-commonjs/components/KeytipLayer/index.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/keytips/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/keytips/index.js"), exports); //# sourceMappingURL=Keytips.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Label.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Label.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Label/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Label/index.js"), exports); //# sourceMappingURL=Label.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Layer.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Layer.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib-commonjs/version.js"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Layer/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Layer/index.js"), exports); //# sourceMappingURL=Layer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Link.js": /*!***********************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Link.js ***! \***********************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib-commonjs/version.js"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Link/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Link/index.js"), exports); //# sourceMappingURL=Link.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/List.js": /*!***********************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/List.js ***! \***********************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/List/index */ "./node_modules/@fluentui/react/lib-commonjs/components/List/index.js"), exports); //# sourceMappingURL=List.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/MarqueeSelection.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/MarqueeSelection.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/MarqueeSelection/MarqueeSelection */ "./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./components/MarqueeSelection/MarqueeSelection.types */ "./node_modules/@fluentui/react/lib-commonjs/components/MarqueeSelection/MarqueeSelection.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/selection/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/index.js"), exports); //# sourceMappingURL=MarqueeSelection.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/MessageBar.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/MessageBar.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/MessageBar/index */ "./node_modules/@fluentui/react/lib-commonjs/components/MessageBar/index.js"), exports); //# sourceMappingURL=MessageBar.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Modal.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Modal.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports["default"] = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Modal/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/index.js"), exports); var index_1 = __webpack_require__(/*! ./components/Modal/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Modal/index.js"); Object.defineProperty(exports, "default", ({ enumerable: true, get: function () { return index_1.Modal; } })); //# sourceMappingURL=Modal.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Nav.js": /*!**********************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Nav.js ***! \**********************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Nav/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Nav/index.js"), exports); //# sourceMappingURL=Nav.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/OverflowSet.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/OverflowSet.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/OverflowSet/index */ "./node_modules/@fluentui/react/lib-commonjs/components/OverflowSet/index.js"), exports); //# sourceMappingURL=OverflowSet.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Overlay.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Overlay.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Overlay/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Overlay/index.js"), exports); //# sourceMappingURL=Overlay.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Panel.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Panel.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Panel/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Panel/index.js"), exports); //# sourceMappingURL=Panel.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Persona.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Persona.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Persona/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/index.js"), exports); //# sourceMappingURL=Persona.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/PersonaCoin.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/PersonaCoin.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Persona/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Persona/index.js"), exports); //# sourceMappingURL=PersonaCoin.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Pickers.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Pickers.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/pickers/index */ "./node_modules/@fluentui/react/lib-commonjs/components/pickers/index.js"), exports); //# sourceMappingURL=Pickers.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Pivot.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Pivot.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Pivot/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Pivot/index.js"), exports); //# sourceMappingURL=Pivot.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Popup.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Popup.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Popup/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Popup/index.js"), exports); //# sourceMappingURL=Popup.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Positioning.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Positioning.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/positioning/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/positioning/index.js"), exports); //# sourceMappingURL=Positioning.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/PositioningContainer.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/PositioningContainer.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Coachmark/PositioningContainer/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/index.js"), exports); //# sourceMappingURL=PositioningContainer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ProgressIndicator.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ProgressIndicator.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/ProgressIndicator/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ProgressIndicator/index.js"), exports); //# sourceMappingURL=ProgressIndicator.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Rating.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Rating.js ***! \*************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Rating/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Rating/index.js"), exports); //# sourceMappingURL=Rating.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ResizeGroup.js": /*!******************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ResizeGroup.js ***! \******************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/ResizeGroup/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ResizeGroup/index.js"), exports); //# sourceMappingURL=ResizeGroup.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ResponsiveMode.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ResponsiveMode.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/hooks/useResponsiveMode */ "./node_modules/@fluentui/react/lib-commonjs/utilities/hooks/useResponsiveMode.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/decorators/withResponsiveMode */ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withResponsiveMode.js"), exports); //# sourceMappingURL=ResponsiveMode.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ScrollablePane.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ScrollablePane.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/ScrollablePane/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ScrollablePane/index.js"), exports); //# sourceMappingURL=ScrollablePane.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/SearchBox.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/SearchBox.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/SearchBox/index */ "./node_modules/@fluentui/react/lib-commonjs/components/SearchBox/index.js"), exports); //# sourceMappingURL=SearchBox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/SelectableOption.js": /*!***********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/SelectableOption.js ***! \***********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/selectableOption/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selectableOption/index.js"), exports); //# sourceMappingURL=SelectableOption.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/SelectedItemsList.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/SelectedItemsList.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/SelectedItemsList/index */ "./node_modules/@fluentui/react/lib-commonjs/components/SelectedItemsList/index.js"), exports); //# sourceMappingURL=SelectedItemsList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Selection.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Selection.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/selection/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/selection/index.js"), exports); //# sourceMappingURL=Selection.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Separator.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Separator.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Separator/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Separator/index.js"), exports); //# sourceMappingURL=Separator.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Shimmer.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Shimmer.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Shimmer/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Shimmer/index.js"), exports); //# sourceMappingURL=Shimmer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ShimmeredDetailsList.js": /*!***************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ShimmeredDetailsList.js ***! \***************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/DetailsList/ShimmeredDetailsList */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./components/DetailsList/ShimmeredDetailsList.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./components/DetailsList/ShimmeredDetailsList.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.styles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./components/DetailsList/ShimmeredDetailsList.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.types.js"), exports); //# sourceMappingURL=ShimmeredDetailsList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Slider.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Slider.js ***! \*************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Slider/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Slider/index.js"), exports); //# sourceMappingURL=Slider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/SpinButton.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/SpinButton.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/SpinButton/index */ "./node_modules/@fluentui/react/lib-commonjs/components/SpinButton/index.js"), exports); //# sourceMappingURL=SpinButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Spinner.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Spinner.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Spinner/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Spinner/index.js"), exports); //# sourceMappingURL=Spinner.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Stack.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Stack.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Stack/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Stack/index.js"), exports); //# sourceMappingURL=Stack.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Sticky.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Sticky.js ***! \*************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Sticky/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Sticky/index.js"), exports); //# sourceMappingURL=Sticky.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Styling.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Styling.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getTheme = exports.getScreenSelector = exports.getPlaceholderStyles = exports.getInputFocusStyle = exports.getIconClassName = exports.getIcon = exports.getHighContrastNoAdjustStyle = exports.getGlobalClassNames = exports.getFocusStyle = exports.getFocusOutlineStyle = exports.getFadedOverflowStyle = exports.getEdgeChromiumNoHighContrastAdjustSelector = exports.fontFace = exports.focusClear = exports.createFontStyles = exports.concatStyleSetsWithProps = exports.concatStyleSets = exports.buildClassMap = exports.ZIndexes = exports.ThemeSettingName = exports.Stylesheet = exports.ScreenWidthMinXXXLarge = exports.ScreenWidthMinXXLarge = exports.ScreenWidthMinXLarge = exports.ScreenWidthMinUhfMobile = exports.ScreenWidthMinSmall = exports.ScreenWidthMinMedium = exports.ScreenWidthMinLarge = exports.ScreenWidthMaxXXLarge = exports.ScreenWidthMaxXLarge = exports.ScreenWidthMaxSmall = exports.ScreenWidthMaxMedium = exports.ScreenWidthMaxLarge = exports.PulsingBeaconAnimationStyles = exports.InjectionMode = exports.IconFontSizes = exports.HighContrastSelectorWhite = exports.HighContrastSelectorBlack = exports.HighContrastSelector = exports.FontWeights = exports.FontSizes = exports.FontClassNames = exports.EdgeChromiumHighContrastSelector = exports.DefaultPalette = exports.DefaultFontStyles = exports.DefaultEffects = exports.ColorClassNames = exports.AnimationVariables = exports.AnimationStyles = exports.AnimationClassNames = void 0; exports.registerDefaultFontFaces = exports.createTheme = exports.unregisterIcons = exports.setIconOptions = exports.removeOnThemeChangeCallback = exports.registerOnThemeChangeCallback = exports.registerIcons = exports.registerIconAlias = exports.normalize = exports.noWrap = exports.mergeStyles = exports.mergeStyleSets = exports.loadTheme = exports.keyframes = exports.hiddenContentStyle = exports.getThemedContext = void 0; __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib-commonjs/version.js"); var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "AnimationClassNames", ({ enumerable: true, get: function () { return style_utilities_1.AnimationClassNames; } })); Object.defineProperty(exports, "AnimationStyles", ({ enumerable: true, get: function () { return style_utilities_1.AnimationStyles; } })); Object.defineProperty(exports, "AnimationVariables", ({ enumerable: true, get: function () { return style_utilities_1.AnimationVariables; } })); Object.defineProperty(exports, "ColorClassNames", ({ enumerable: true, get: function () { return style_utilities_1.ColorClassNames; } })); Object.defineProperty(exports, "DefaultEffects", ({ enumerable: true, get: function () { return style_utilities_1.DefaultEffects; } })); Object.defineProperty(exports, "DefaultFontStyles", ({ enumerable: true, get: function () { return style_utilities_1.DefaultFontStyles; } })); Object.defineProperty(exports, "DefaultPalette", ({ enumerable: true, get: function () { return style_utilities_1.DefaultPalette; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "EdgeChromiumHighContrastSelector", ({ enumerable: true, get: function () { return style_utilities_1.EdgeChromiumHighContrastSelector; } })); Object.defineProperty(exports, "FontClassNames", ({ enumerable: true, get: function () { return style_utilities_1.FontClassNames; } })); Object.defineProperty(exports, "FontSizes", ({ enumerable: true, get: function () { return style_utilities_1.FontSizes; } })); Object.defineProperty(exports, "FontWeights", ({ enumerable: true, get: function () { return style_utilities_1.FontWeights; } })); Object.defineProperty(exports, "HighContrastSelector", ({ enumerable: true, get: function () { return style_utilities_1.HighContrastSelector; } })); Object.defineProperty(exports, "HighContrastSelectorBlack", ({ enumerable: true, get: function () { return style_utilities_1.HighContrastSelectorBlack; } })); Object.defineProperty(exports, "HighContrastSelectorWhite", ({ enumerable: true, get: function () { return style_utilities_1.HighContrastSelectorWhite; } })); Object.defineProperty(exports, "IconFontSizes", ({ enumerable: true, get: function () { return style_utilities_1.IconFontSizes; } })); Object.defineProperty(exports, "InjectionMode", ({ enumerable: true, get: function () { return style_utilities_1.InjectionMode; } })); Object.defineProperty(exports, "PulsingBeaconAnimationStyles", ({ enumerable: true, get: function () { return style_utilities_1.PulsingBeaconAnimationStyles; } })); Object.defineProperty(exports, "ScreenWidthMaxLarge", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMaxLarge; } })); Object.defineProperty(exports, "ScreenWidthMaxMedium", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMaxMedium; } })); Object.defineProperty(exports, "ScreenWidthMaxSmall", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMaxSmall; } })); Object.defineProperty(exports, "ScreenWidthMaxXLarge", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMaxXLarge; } })); Object.defineProperty(exports, "ScreenWidthMaxXXLarge", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMaxXXLarge; } })); Object.defineProperty(exports, "ScreenWidthMinLarge", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMinLarge; } })); Object.defineProperty(exports, "ScreenWidthMinMedium", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMinMedium; } })); Object.defineProperty(exports, "ScreenWidthMinSmall", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMinSmall; } })); Object.defineProperty(exports, "ScreenWidthMinUhfMobile", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMinUhfMobile; } })); Object.defineProperty(exports, "ScreenWidthMinXLarge", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMinXLarge; } })); Object.defineProperty(exports, "ScreenWidthMinXXLarge", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMinXXLarge; } })); Object.defineProperty(exports, "ScreenWidthMinXXXLarge", ({ enumerable: true, get: function () { return style_utilities_1.ScreenWidthMinXXXLarge; } })); Object.defineProperty(exports, "Stylesheet", ({ enumerable: true, get: function () { return style_utilities_1.Stylesheet; } })); Object.defineProperty(exports, "ThemeSettingName", ({ enumerable: true, get: function () { return style_utilities_1.ThemeSettingName; } })); Object.defineProperty(exports, "ZIndexes", ({ enumerable: true, get: function () { return style_utilities_1.ZIndexes; } })); Object.defineProperty(exports, "buildClassMap", ({ enumerable: true, get: function () { return style_utilities_1.buildClassMap; } })); Object.defineProperty(exports, "concatStyleSets", ({ enumerable: true, get: function () { return style_utilities_1.concatStyleSets; } })); Object.defineProperty(exports, "concatStyleSetsWithProps", ({ enumerable: true, get: function () { return style_utilities_1.concatStyleSetsWithProps; } })); Object.defineProperty(exports, "createFontStyles", ({ enumerable: true, get: function () { return style_utilities_1.createFontStyles; } })); Object.defineProperty(exports, "focusClear", ({ enumerable: true, get: function () { return style_utilities_1.focusClear; } })); Object.defineProperty(exports, "fontFace", ({ enumerable: true, get: function () { return style_utilities_1.fontFace; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getEdgeChromiumNoHighContrastAdjustSelector", ({ enumerable: true, get: function () { return style_utilities_1.getEdgeChromiumNoHighContrastAdjustSelector; } })); Object.defineProperty(exports, "getFadedOverflowStyle", ({ enumerable: true, get: function () { return style_utilities_1.getFadedOverflowStyle; } })); Object.defineProperty(exports, "getFocusOutlineStyle", ({ enumerable: true, get: function () { return style_utilities_1.getFocusOutlineStyle; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getFocusStyle", ({ enumerable: true, get: function () { return style_utilities_1.getFocusStyle; } })); Object.defineProperty(exports, "getGlobalClassNames", ({ enumerable: true, get: function () { return style_utilities_1.getGlobalClassNames; } })); Object.defineProperty(exports, "getHighContrastNoAdjustStyle", ({ enumerable: true, get: function () { return style_utilities_1.getHighContrastNoAdjustStyle; } })); Object.defineProperty(exports, "getIcon", ({ enumerable: true, get: function () { return style_utilities_1.getIcon; } })); Object.defineProperty(exports, "getIconClassName", ({ enumerable: true, get: function () { return style_utilities_1.getIconClassName; } })); Object.defineProperty(exports, "getInputFocusStyle", ({ enumerable: true, get: function () { return style_utilities_1.getInputFocusStyle; } })); Object.defineProperty(exports, "getPlaceholderStyles", ({ enumerable: true, get: function () { return style_utilities_1.getPlaceholderStyles; } })); Object.defineProperty(exports, "getScreenSelector", ({ enumerable: true, get: function () { return style_utilities_1.getScreenSelector; } })); Object.defineProperty(exports, "getTheme", ({ enumerable: true, get: function () { return style_utilities_1.getTheme; } })); Object.defineProperty(exports, "getThemedContext", ({ enumerable: true, get: function () { return style_utilities_1.getThemedContext; } })); Object.defineProperty(exports, "hiddenContentStyle", ({ enumerable: true, get: function () { return style_utilities_1.hiddenContentStyle; } })); Object.defineProperty(exports, "keyframes", ({ enumerable: true, get: function () { return style_utilities_1.keyframes; } })); Object.defineProperty(exports, "loadTheme", ({ enumerable: true, get: function () { return style_utilities_1.loadTheme; } })); Object.defineProperty(exports, "mergeStyleSets", ({ enumerable: true, get: function () { return style_utilities_1.mergeStyleSets; } })); Object.defineProperty(exports, "mergeStyles", ({ enumerable: true, get: function () { return style_utilities_1.mergeStyles; } })); Object.defineProperty(exports, "noWrap", ({ enumerable: true, get: function () { return style_utilities_1.noWrap; } })); Object.defineProperty(exports, "normalize", ({ enumerable: true, get: function () { return style_utilities_1.normalize; } })); Object.defineProperty(exports, "registerIconAlias", ({ enumerable: true, get: function () { return style_utilities_1.registerIconAlias; } })); Object.defineProperty(exports, "registerIcons", ({ enumerable: true, get: function () { return style_utilities_1.registerIcons; } })); Object.defineProperty(exports, "registerOnThemeChangeCallback", ({ enumerable: true, get: function () { return style_utilities_1.registerOnThemeChangeCallback; } })); Object.defineProperty(exports, "removeOnThemeChangeCallback", ({ enumerable: true, get: function () { return style_utilities_1.removeOnThemeChangeCallback; } })); Object.defineProperty(exports, "setIconOptions", ({ enumerable: true, get: function () { return style_utilities_1.setIconOptions; } })); Object.defineProperty(exports, "unregisterIcons", ({ enumerable: true, get: function () { return style_utilities_1.unregisterIcons; } })); var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "createTheme", ({ enumerable: true, get: function () { return theme_1.createTheme; } })); Object.defineProperty(exports, "registerDefaultFontFaces", ({ enumerable: true, get: function () { return theme_1.registerDefaultFontFaces; } })); //# sourceMappingURL=Styling.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/SwatchColorPicker.js": /*!************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/SwatchColorPicker.js ***! \************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/SwatchColorPicker/index */ "./node_modules/@fluentui/react/lib-commonjs/components/SwatchColorPicker/index.js"), exports); //# sourceMappingURL=SwatchColorPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/TeachingBubble.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/TeachingBubble.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/TeachingBubble/index */ "./node_modules/@fluentui/react/lib-commonjs/components/TeachingBubble/index.js"), exports); //# sourceMappingURL=TeachingBubble.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Text.js": /*!***********************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Text.js ***! \***********************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Text/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Text/index.js"), exports); //# sourceMappingURL=Text.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/TextField.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/TextField.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/TextField/index */ "./node_modules/@fluentui/react/lib-commonjs/components/TextField/index.js"), exports); //# sourceMappingURL=TextField.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Theme.js": /*!************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Theme.js ***! \************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.registerDefaultFontFaces = exports.SharedColors = exports.NeutralColors = exports.MotionAnimations = exports.MotionTimings = exports.MotionDurations = exports.mergeThemes = exports.LocalizedFontNames = exports.LocalizedFontFamilies = exports.createTheme = exports.createFontStyles = exports.FluentTheme = exports.Depths = exports.DefaultSpacing = exports.DefaultPalette = exports.DefaultFontStyles = exports.DefaultEffects = exports.CommunicationColors = exports.AnimationVariables = exports.AnimationStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); //When adding new exports to this file, also add them to index.ts. var theme_1 = __webpack_require__(/*! @fluentui/theme */ "./node_modules/@fluentui/theme/lib-commonjs/index.js"); Object.defineProperty(exports, "AnimationStyles", ({ enumerable: true, get: function () { return theme_1.AnimationStyles; } })); Object.defineProperty(exports, "AnimationVariables", ({ enumerable: true, get: function () { return theme_1.AnimationVariables; } })); Object.defineProperty(exports, "CommunicationColors", ({ enumerable: true, get: function () { return theme_1.CommunicationColors; } })); Object.defineProperty(exports, "DefaultEffects", ({ enumerable: true, get: function () { return theme_1.DefaultEffects; } })); Object.defineProperty(exports, "DefaultFontStyles", ({ enumerable: true, get: function () { return theme_1.DefaultFontStyles; } })); Object.defineProperty(exports, "DefaultPalette", ({ enumerable: true, get: function () { return theme_1.DefaultPalette; } })); Object.defineProperty(exports, "DefaultSpacing", ({ enumerable: true, get: function () { return theme_1.DefaultSpacing; } })); Object.defineProperty(exports, "Depths", ({ enumerable: true, get: function () { return theme_1.Depths; } })); Object.defineProperty(exports, "FluentTheme", ({ enumerable: true, get: function () { return theme_1.FluentTheme; } })); Object.defineProperty(exports, "createFontStyles", ({ enumerable: true, get: function () { return theme_1.createFontStyles; } })); Object.defineProperty(exports, "createTheme", ({ enumerable: true, get: function () { return theme_1.createTheme; } })); Object.defineProperty(exports, "LocalizedFontFamilies", ({ enumerable: true, get: function () { return theme_1.LocalizedFontFamilies; } })); Object.defineProperty(exports, "LocalizedFontNames", ({ enumerable: true, get: function () { return theme_1.LocalizedFontNames; } })); Object.defineProperty(exports, "mergeThemes", ({ enumerable: true, get: function () { return theme_1.mergeThemes; } })); Object.defineProperty(exports, "MotionDurations", ({ enumerable: true, get: function () { return theme_1.MotionDurations; } })); Object.defineProperty(exports, "MotionTimings", ({ enumerable: true, get: function () { return theme_1.MotionTimings; } })); Object.defineProperty(exports, "MotionAnimations", ({ enumerable: true, get: function () { return theme_1.MotionAnimations; } })); Object.defineProperty(exports, "NeutralColors", ({ enumerable: true, get: function () { return theme_1.NeutralColors; } })); Object.defineProperty(exports, "SharedColors", ({ enumerable: true, get: function () { return theme_1.SharedColors; } })); Object.defineProperty(exports, "registerDefaultFontFaces", ({ enumerable: true, get: function () { return theme_1.registerDefaultFontFaces; } })); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/ThemeProvider/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/ThemeProvider/index.js"), exports); //When adding new exports to this file, also add them to index.ts. //# sourceMappingURL=Theme.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/ThemeGenerator.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/ThemeGenerator.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/ThemeGenerator/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ThemeGenerator/index.js"), exports); //# sourceMappingURL=ThemeGenerator.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/TimePicker.js": /*!*****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/TimePicker.js ***! \*****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/TimePicker/index */ "./node_modules/@fluentui/react/lib-commonjs/components/TimePicker/index.js"), exports); //# sourceMappingURL=TimePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Toggle.js": /*!*************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Toggle.js ***! \*************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Toggle/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Toggle/index.js"), exports); //# sourceMappingURL=Toggle.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Tooltip.js": /*!**************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Tooltip.js ***! \**************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/Tooltip/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Tooltip/index.js"), exports); //# sourceMappingURL=Tooltip.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js": /*!****************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Utilities.js ***! \****************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.divProperties = exports.disableBodyScroll = exports.customizable = exports.css = exports.createMergedRef = exports.createMemoizer = exports.createArray = exports.composeRenderFunction = exports.composeComponentAs = exports.colProperties = exports.colGroupProperties = exports.classNamesFunction = exports.canUseDOM = exports.calculatePrecision = exports.buttonProperties = exports.baseElementProperties = exports.baseElementEvents = exports.audioProperties = exports.assign = exports.assertNever = exports.asAsync = exports.arraysEqual = exports.appendFunction = exports.anchorProperties = exports.allowScrollOnElement = exports.allowOverscrollOnElement = exports.addElementAtIndex = exports.addDirectionalKeyCode = exports.SelectionMode = exports.SelectionDirection = exports.Selection = exports.SELECTION_CHANGE = exports.Rectangle = exports.KeyCodes = exports.IsFocusVisibleClassName = exports.GlobalSettings = exports.FocusRectsProvider = exports.FocusRectsContext = exports.FocusRects = exports.FabricPerformance = exports.EventGroup = exports.DelayedRender = exports.DATA_PORTAL_ATTRIBUTE = exports.DATA_IS_SCROLLABLE_ATTRIBUTE = exports.CustomizerContext = exports.Customizer = exports.Customizations = exports.BaseComponent = exports.AutoScroll = exports.Async = void 0; exports.imageProperties = exports.iframeProperties = exports.htmlElementProperties = exports.hoistStatics = exports.hoistMethods = exports.hasVerticalOverflow = exports.hasOverflow = exports.hasHorizontalOverflow = exports.getWindow = exports.getVirtualParent = exports.getScrollbarWidth = exports.getResourceUrl = exports.getRect = exports.getRTLSafeKeyCode = exports.getRTL = exports.getPropsWithDefaults = exports.getPreviousElement = exports.getParent = exports.getNextElement = exports.getNativeProps = exports.getNativeElementProps = exports.getLastTabbable = exports.getLastFocusable = exports.getLanguage = exports.getInitials = exports.getId = exports.getFocusableByIndexPath = exports.getFirstVisibleElementFromSelector = exports.getFirstTabbable = exports.getFirstFocusable = exports.getElementIndexPath = exports.getDocument = exports.getDistanceBetweenPoints = exports.getChildren = exports.format = exports.formProperties = exports.focusFirstChild = exports.focusAsync = exports.flatten = exports.fitContentToBounds = exports.findScrollableParent = exports.findIndex = exports.findElementRecursive = exports.find = exports.filteredAssign = exports.extendComponent = exports.enableBodyScroll = exports.elementContainsAttribute = exports.elementContains = exports.doesElementContainFocus = void 0; exports.setSSR = exports.setRTL = exports.setPortalAttribute = exports.setMemoizeWeakMap = exports.setLanguage = exports.setFocusVisibility = exports.setBaseUrl = exports.selectProperties = exports.safeSetTimeout = exports.safeRequestAnimationFrame = exports.resetMemoizations = exports.resetIds = exports.resetControlledWarnings = exports.replaceElement = exports.removeIndex = exports.removeDirectionalKeyCode = exports.raiseClick = exports.precisionRound = exports.portalContainsElement = exports.optionProperties = exports.on = exports.omit = exports.olProperties = exports.nullRender = exports.modalize = exports.mergeSettings = exports.mergeScopedSettings = exports.mergeCustomizations = exports.mergeAriaAttributeValues = exports.merge = exports.memoizeFunction = exports.memoize = exports.mapEnumByName = exports.liProperties = exports.labelProperties = exports.isVirtualElement = exports.isMac = exports.isIOS = exports.isIE11 = exports.isElementVisibleAndNotHidden = exports.isElementVisible = exports.isElementTabbable = exports.isElementFocusZone = exports.isElementFocusSubZone = exports.isDirectionalKeyCode = exports.isControlled = exports.inputProperties = exports.initializeFocusRects = exports.initializeComponentRef = exports.imgProperties = void 0; exports.warnMutuallyExclusive = exports.warnDeprecations = exports.warnControlledUsage = exports.warnConditionallyRequiredProps = exports.warn = exports.videoProperties = exports.values = exports.useFocusRects = exports.useCustomizationSettings = exports.unhoistMethods = exports.trProperties = exports.toMatrix = exports.thProperties = exports.textAreaProperties = exports.tdProperties = exports.tableProperties = exports.styled = exports.shouldWrapFocus = exports.shallowCompare = exports.setWarningCallback = exports.setVirtualParent = void 0; __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib-commonjs/version.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "Async", ({ enumerable: true, get: function () { return utilities_1.Async; } })); Object.defineProperty(exports, "AutoScroll", ({ enumerable: true, get: function () { return utilities_1.AutoScroll; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "BaseComponent", ({ enumerable: true, get: function () { return utilities_1.BaseComponent; } })); Object.defineProperty(exports, "Customizations", ({ enumerable: true, get: function () { return utilities_1.Customizations; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "Customizer", ({ enumerable: true, get: function () { return utilities_1.Customizer; } })); Object.defineProperty(exports, "CustomizerContext", ({ enumerable: true, get: function () { return utilities_1.CustomizerContext; } })); Object.defineProperty(exports, "DATA_IS_SCROLLABLE_ATTRIBUTE", ({ enumerable: true, get: function () { return utilities_1.DATA_IS_SCROLLABLE_ATTRIBUTE; } })); Object.defineProperty(exports, "DATA_PORTAL_ATTRIBUTE", ({ enumerable: true, get: function () { return utilities_1.DATA_PORTAL_ATTRIBUTE; } })); Object.defineProperty(exports, "DelayedRender", ({ enumerable: true, get: function () { return utilities_1.DelayedRender; } })); Object.defineProperty(exports, "EventGroup", ({ enumerable: true, get: function () { return utilities_1.EventGroup; } })); Object.defineProperty(exports, "FabricPerformance", ({ enumerable: true, get: function () { return utilities_1.FabricPerformance; } })); Object.defineProperty(exports, "FocusRects", ({ enumerable: true, get: function () { return utilities_1.FocusRects; } })); Object.defineProperty(exports, "FocusRectsContext", ({ enumerable: true, get: function () { return utilities_1.FocusRectsContext; } })); Object.defineProperty(exports, "FocusRectsProvider", ({ enumerable: true, get: function () { return utilities_1.FocusRectsProvider; } })); Object.defineProperty(exports, "GlobalSettings", ({ enumerable: true, get: function () { return utilities_1.GlobalSettings; } })); Object.defineProperty(exports, "IsFocusVisibleClassName", ({ enumerable: true, get: function () { return utilities_1.IsFocusVisibleClassName; } })); Object.defineProperty(exports, "KeyCodes", ({ enumerable: true, get: function () { return utilities_1.KeyCodes; } })); Object.defineProperty(exports, "Rectangle", ({ enumerable: true, get: function () { return utilities_1.Rectangle; } })); Object.defineProperty(exports, "SELECTION_CHANGE", ({ enumerable: true, get: function () { return utilities_1.SELECTION_CHANGE; } })); Object.defineProperty(exports, "Selection", ({ enumerable: true, get: function () { return utilities_1.Selection; } })); Object.defineProperty(exports, "SelectionDirection", ({ enumerable: true, get: function () { return utilities_1.SelectionDirection; } })); Object.defineProperty(exports, "SelectionMode", ({ enumerable: true, get: function () { return utilities_1.SelectionMode; } })); Object.defineProperty(exports, "addDirectionalKeyCode", ({ enumerable: true, get: function () { return utilities_1.addDirectionalKeyCode; } })); Object.defineProperty(exports, "addElementAtIndex", ({ enumerable: true, get: function () { return utilities_1.addElementAtIndex; } })); Object.defineProperty(exports, "allowOverscrollOnElement", ({ enumerable: true, get: function () { return utilities_1.allowOverscrollOnElement; } })); Object.defineProperty(exports, "allowScrollOnElement", ({ enumerable: true, get: function () { return utilities_1.allowScrollOnElement; } })); Object.defineProperty(exports, "anchorProperties", ({ enumerable: true, get: function () { return utilities_1.anchorProperties; } })); Object.defineProperty(exports, "appendFunction", ({ enumerable: true, get: function () { return utilities_1.appendFunction; } })); Object.defineProperty(exports, "arraysEqual", ({ enumerable: true, get: function () { return utilities_1.arraysEqual; } })); Object.defineProperty(exports, "asAsync", ({ enumerable: true, get: function () { return utilities_1.asAsync; } })); Object.defineProperty(exports, "assertNever", ({ enumerable: true, get: function () { return utilities_1.assertNever; } })); Object.defineProperty(exports, "assign", ({ enumerable: true, get: function () { return utilities_1.assign; } })); Object.defineProperty(exports, "audioProperties", ({ enumerable: true, get: function () { return utilities_1.audioProperties; } })); Object.defineProperty(exports, "baseElementEvents", ({ enumerable: true, get: function () { return utilities_1.baseElementEvents; } })); Object.defineProperty(exports, "baseElementProperties", ({ enumerable: true, get: function () { return utilities_1.baseElementProperties; } })); Object.defineProperty(exports, "buttonProperties", ({ enumerable: true, get: function () { return utilities_1.buttonProperties; } })); Object.defineProperty(exports, "calculatePrecision", ({ enumerable: true, get: function () { return utilities_1.calculatePrecision; } })); Object.defineProperty(exports, "canUseDOM", ({ enumerable: true, get: function () { return utilities_1.canUseDOM; } })); Object.defineProperty(exports, "classNamesFunction", ({ enumerable: true, get: function () { return utilities_1.classNamesFunction; } })); Object.defineProperty(exports, "colGroupProperties", ({ enumerable: true, get: function () { return utilities_1.colGroupProperties; } })); Object.defineProperty(exports, "colProperties", ({ enumerable: true, get: function () { return utilities_1.colProperties; } })); Object.defineProperty(exports, "composeComponentAs", ({ enumerable: true, get: function () { return utilities_1.composeComponentAs; } })); Object.defineProperty(exports, "composeRenderFunction", ({ enumerable: true, get: function () { return utilities_1.composeRenderFunction; } })); Object.defineProperty(exports, "createArray", ({ enumerable: true, get: function () { return utilities_1.createArray; } })); Object.defineProperty(exports, "createMemoizer", ({ enumerable: true, get: function () { return utilities_1.createMemoizer; } })); Object.defineProperty(exports, "createMergedRef", ({ enumerable: true, get: function () { return utilities_1.createMergedRef; } })); Object.defineProperty(exports, "css", ({ enumerable: true, get: function () { return utilities_1.css; } })); Object.defineProperty(exports, "customizable", ({ enumerable: true, get: function () { return utilities_1.customizable; } })); Object.defineProperty(exports, "disableBodyScroll", ({ enumerable: true, get: function () { return utilities_1.disableBodyScroll; } })); Object.defineProperty(exports, "divProperties", ({ enumerable: true, get: function () { return utilities_1.divProperties; } })); Object.defineProperty(exports, "doesElementContainFocus", ({ enumerable: true, get: function () { return utilities_1.doesElementContainFocus; } })); Object.defineProperty(exports, "elementContains", ({ enumerable: true, get: function () { return utilities_1.elementContains; } })); Object.defineProperty(exports, "elementContainsAttribute", ({ enumerable: true, get: function () { return utilities_1.elementContainsAttribute; } })); Object.defineProperty(exports, "enableBodyScroll", ({ enumerable: true, get: function () { return utilities_1.enableBodyScroll; } })); Object.defineProperty(exports, "extendComponent", ({ enumerable: true, get: function () { return utilities_1.extendComponent; } })); Object.defineProperty(exports, "filteredAssign", ({ enumerable: true, get: function () { return utilities_1.filteredAssign; } })); Object.defineProperty(exports, "find", ({ enumerable: true, get: function () { return utilities_1.find; } })); Object.defineProperty(exports, "findElementRecursive", ({ enumerable: true, get: function () { return utilities_1.findElementRecursive; } })); Object.defineProperty(exports, "findIndex", ({ enumerable: true, get: function () { return utilities_1.findIndex; } })); Object.defineProperty(exports, "findScrollableParent", ({ enumerable: true, get: function () { return utilities_1.findScrollableParent; } })); Object.defineProperty(exports, "fitContentToBounds", ({ enumerable: true, get: function () { return utilities_1.fitContentToBounds; } })); Object.defineProperty(exports, "flatten", ({ enumerable: true, get: function () { return utilities_1.flatten; } })); Object.defineProperty(exports, "focusAsync", ({ enumerable: true, get: function () { return utilities_1.focusAsync; } })); Object.defineProperty(exports, "focusFirstChild", ({ enumerable: true, get: function () { return utilities_1.focusFirstChild; } })); Object.defineProperty(exports, "formProperties", ({ enumerable: true, get: function () { return utilities_1.formProperties; } })); Object.defineProperty(exports, "format", ({ enumerable: true, get: function () { return utilities_1.format; } })); Object.defineProperty(exports, "getChildren", ({ enumerable: true, get: function () { return utilities_1.getChildren; } })); Object.defineProperty(exports, "getDistanceBetweenPoints", ({ enumerable: true, get: function () { return utilities_1.getDistanceBetweenPoints; } })); Object.defineProperty(exports, "getDocument", ({ enumerable: true, get: function () { return utilities_1.getDocument; } })); Object.defineProperty(exports, "getElementIndexPath", ({ enumerable: true, get: function () { return utilities_1.getElementIndexPath; } })); Object.defineProperty(exports, "getFirstFocusable", ({ enumerable: true, get: function () { return utilities_1.getFirstFocusable; } })); Object.defineProperty(exports, "getFirstTabbable", ({ enumerable: true, get: function () { return utilities_1.getFirstTabbable; } })); Object.defineProperty(exports, "getFirstVisibleElementFromSelector", ({ enumerable: true, get: function () { return utilities_1.getFirstVisibleElementFromSelector; } })); Object.defineProperty(exports, "getFocusableByIndexPath", ({ enumerable: true, get: function () { return utilities_1.getFocusableByIndexPath; } })); Object.defineProperty(exports, "getId", ({ enumerable: true, get: function () { return utilities_1.getId; } })); Object.defineProperty(exports, "getInitials", ({ enumerable: true, get: function () { return utilities_1.getInitials; } })); Object.defineProperty(exports, "getLanguage", ({ enumerable: true, get: function () { return utilities_1.getLanguage; } })); Object.defineProperty(exports, "getLastFocusable", ({ enumerable: true, get: function () { return utilities_1.getLastFocusable; } })); Object.defineProperty(exports, "getLastTabbable", ({ enumerable: true, get: function () { return utilities_1.getLastTabbable; } })); Object.defineProperty(exports, "getNativeElementProps", ({ enumerable: true, get: function () { return utilities_1.getNativeElementProps; } })); Object.defineProperty(exports, "getNativeProps", ({ enumerable: true, get: function () { return utilities_1.getNativeProps; } })); Object.defineProperty(exports, "getNextElement", ({ enumerable: true, get: function () { return utilities_1.getNextElement; } })); Object.defineProperty(exports, "getParent", ({ enumerable: true, get: function () { return utilities_1.getParent; } })); Object.defineProperty(exports, "getPreviousElement", ({ enumerable: true, get: function () { return utilities_1.getPreviousElement; } })); Object.defineProperty(exports, "getPropsWithDefaults", ({ enumerable: true, get: function () { return utilities_1.getPropsWithDefaults; } })); Object.defineProperty(exports, "getRTL", ({ enumerable: true, get: function () { return utilities_1.getRTL; } })); Object.defineProperty(exports, "getRTLSafeKeyCode", ({ enumerable: true, get: function () { return utilities_1.getRTLSafeKeyCode; } })); Object.defineProperty(exports, "getRect", ({ enumerable: true, get: function () { return utilities_1.getRect; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getResourceUrl", ({ enumerable: true, get: function () { return utilities_1.getResourceUrl; } })); Object.defineProperty(exports, "getScrollbarWidth", ({ enumerable: true, get: function () { return utilities_1.getScrollbarWidth; } })); Object.defineProperty(exports, "getVirtualParent", ({ enumerable: true, get: function () { return utilities_1.getVirtualParent; } })); Object.defineProperty(exports, "getWindow", ({ enumerable: true, get: function () { return utilities_1.getWindow; } })); Object.defineProperty(exports, "hasHorizontalOverflow", ({ enumerable: true, get: function () { return utilities_1.hasHorizontalOverflow; } })); Object.defineProperty(exports, "hasOverflow", ({ enumerable: true, get: function () { return utilities_1.hasOverflow; } })); Object.defineProperty(exports, "hasVerticalOverflow", ({ enumerable: true, get: function () { return utilities_1.hasVerticalOverflow; } })); Object.defineProperty(exports, "hoistMethods", ({ enumerable: true, get: function () { return utilities_1.hoistMethods; } })); Object.defineProperty(exports, "hoistStatics", ({ enumerable: true, get: function () { return utilities_1.hoistStatics; } })); Object.defineProperty(exports, "htmlElementProperties", ({ enumerable: true, get: function () { return utilities_1.htmlElementProperties; } })); Object.defineProperty(exports, "iframeProperties", ({ enumerable: true, get: function () { return utilities_1.iframeProperties; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "imageProperties", ({ enumerable: true, get: function () { return utilities_1.imageProperties; } })); Object.defineProperty(exports, "imgProperties", ({ enumerable: true, get: function () { return utilities_1.imgProperties; } })); Object.defineProperty(exports, "initializeComponentRef", ({ enumerable: true, get: function () { return utilities_1.initializeComponentRef; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "initializeFocusRects", ({ enumerable: true, get: function () { return utilities_1.initializeFocusRects; } })); Object.defineProperty(exports, "inputProperties", ({ enumerable: true, get: function () { return utilities_1.inputProperties; } })); Object.defineProperty(exports, "isControlled", ({ enumerable: true, get: function () { return utilities_1.isControlled; } })); Object.defineProperty(exports, "isDirectionalKeyCode", ({ enumerable: true, get: function () { return utilities_1.isDirectionalKeyCode; } })); Object.defineProperty(exports, "isElementFocusSubZone", ({ enumerable: true, get: function () { return utilities_1.isElementFocusSubZone; } })); Object.defineProperty(exports, "isElementFocusZone", ({ enumerable: true, get: function () { return utilities_1.isElementFocusZone; } })); Object.defineProperty(exports, "isElementTabbable", ({ enumerable: true, get: function () { return utilities_1.isElementTabbable; } })); Object.defineProperty(exports, "isElementVisible", ({ enumerable: true, get: function () { return utilities_1.isElementVisible; } })); Object.defineProperty(exports, "isElementVisibleAndNotHidden", ({ enumerable: true, get: function () { return utilities_1.isElementVisibleAndNotHidden; } })); Object.defineProperty(exports, "isIE11", ({ enumerable: true, get: function () { return utilities_1.isIE11; } })); Object.defineProperty(exports, "isIOS", ({ enumerable: true, get: function () { return utilities_1.isIOS; } })); Object.defineProperty(exports, "isMac", ({ enumerable: true, get: function () { return utilities_1.isMac; } })); Object.defineProperty(exports, "isVirtualElement", ({ enumerable: true, get: function () { return utilities_1.isVirtualElement; } })); Object.defineProperty(exports, "labelProperties", ({ enumerable: true, get: function () { return utilities_1.labelProperties; } })); Object.defineProperty(exports, "liProperties", ({ enumerable: true, get: function () { return utilities_1.liProperties; } })); Object.defineProperty(exports, "mapEnumByName", ({ enumerable: true, get: function () { return utilities_1.mapEnumByName; } })); Object.defineProperty(exports, "memoize", ({ enumerable: true, get: function () { return utilities_1.memoize; } })); Object.defineProperty(exports, "memoizeFunction", ({ enumerable: true, get: function () { return utilities_1.memoizeFunction; } })); Object.defineProperty(exports, "merge", ({ enumerable: true, get: function () { return utilities_1.merge; } })); Object.defineProperty(exports, "mergeAriaAttributeValues", ({ enumerable: true, get: function () { return utilities_1.mergeAriaAttributeValues; } })); Object.defineProperty(exports, "mergeCustomizations", ({ enumerable: true, get: function () { return utilities_1.mergeCustomizations; } })); Object.defineProperty(exports, "mergeScopedSettings", ({ enumerable: true, get: function () { return utilities_1.mergeScopedSettings; } })); Object.defineProperty(exports, "mergeSettings", ({ enumerable: true, get: function () { return utilities_1.mergeSettings; } })); Object.defineProperty(exports, "modalize", ({ enumerable: true, get: function () { return utilities_1.modalize; } })); Object.defineProperty(exports, "nullRender", ({ enumerable: true, get: function () { return utilities_1.nullRender; } })); Object.defineProperty(exports, "olProperties", ({ enumerable: true, get: function () { return utilities_1.olProperties; } })); Object.defineProperty(exports, "omit", ({ enumerable: true, get: function () { return utilities_1.omit; } })); Object.defineProperty(exports, "on", ({ enumerable: true, get: function () { return utilities_1.on; } })); Object.defineProperty(exports, "optionProperties", ({ enumerable: true, get: function () { return utilities_1.optionProperties; } })); Object.defineProperty(exports, "portalContainsElement", ({ enumerable: true, get: function () { return utilities_1.portalContainsElement; } })); Object.defineProperty(exports, "precisionRound", ({ enumerable: true, get: function () { return utilities_1.precisionRound; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "raiseClick", ({ enumerable: true, get: function () { return utilities_1.raiseClick; } })); Object.defineProperty(exports, "removeDirectionalKeyCode", ({ enumerable: true, get: function () { return utilities_1.removeDirectionalKeyCode; } })); Object.defineProperty(exports, "removeIndex", ({ enumerable: true, get: function () { return utilities_1.removeIndex; } })); Object.defineProperty(exports, "replaceElement", ({ enumerable: true, get: function () { return utilities_1.replaceElement; } })); Object.defineProperty(exports, "resetControlledWarnings", ({ enumerable: true, get: function () { return utilities_1.resetControlledWarnings; } })); Object.defineProperty(exports, "resetIds", ({ enumerable: true, get: function () { return utilities_1.resetIds; } })); Object.defineProperty(exports, "resetMemoizations", ({ enumerable: true, get: function () { return utilities_1.resetMemoizations; } })); Object.defineProperty(exports, "safeRequestAnimationFrame", ({ enumerable: true, get: function () { return utilities_1.safeRequestAnimationFrame; } })); Object.defineProperty(exports, "safeSetTimeout", ({ enumerable: true, get: function () { return utilities_1.safeSetTimeout; } })); Object.defineProperty(exports, "selectProperties", ({ enumerable: true, get: function () { return utilities_1.selectProperties; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "setBaseUrl", ({ enumerable: true, get: function () { return utilities_1.setBaseUrl; } })); Object.defineProperty(exports, "setFocusVisibility", ({ enumerable: true, get: function () { return utilities_1.setFocusVisibility; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "setLanguage", ({ enumerable: true, get: function () { return utilities_1.setLanguage; } })); Object.defineProperty(exports, "setMemoizeWeakMap", ({ enumerable: true, get: function () { return utilities_1.setMemoizeWeakMap; } })); Object.defineProperty(exports, "setPortalAttribute", ({ enumerable: true, get: function () { return utilities_1.setPortalAttribute; } })); Object.defineProperty(exports, "setRTL", ({ enumerable: true, get: function () { return utilities_1.setRTL; } })); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "setSSR", ({ enumerable: true, get: function () { return utilities_1.setSSR; } })); Object.defineProperty(exports, "setVirtualParent", ({ enumerable: true, get: function () { return utilities_1.setVirtualParent; } })); Object.defineProperty(exports, "setWarningCallback", ({ enumerable: true, get: function () { return utilities_1.setWarningCallback; } })); Object.defineProperty(exports, "shallowCompare", ({ enumerable: true, get: function () { return utilities_1.shallowCompare; } })); Object.defineProperty(exports, "shouldWrapFocus", ({ enumerable: true, get: function () { return utilities_1.shouldWrapFocus; } })); Object.defineProperty(exports, "styled", ({ enumerable: true, get: function () { return utilities_1.styled; } })); Object.defineProperty(exports, "tableProperties", ({ enumerable: true, get: function () { return utilities_1.tableProperties; } })); Object.defineProperty(exports, "tdProperties", ({ enumerable: true, get: function () { return utilities_1.tdProperties; } })); Object.defineProperty(exports, "textAreaProperties", ({ enumerable: true, get: function () { return utilities_1.textAreaProperties; } })); Object.defineProperty(exports, "thProperties", ({ enumerable: true, get: function () { return utilities_1.thProperties; } })); Object.defineProperty(exports, "toMatrix", ({ enumerable: true, get: function () { return utilities_1.toMatrix; } })); Object.defineProperty(exports, "trProperties", ({ enumerable: true, get: function () { return utilities_1.trProperties; } })); Object.defineProperty(exports, "unhoistMethods", ({ enumerable: true, get: function () { return utilities_1.unhoistMethods; } })); Object.defineProperty(exports, "useCustomizationSettings", ({ enumerable: true, get: function () { return utilities_1.useCustomizationSettings; } })); Object.defineProperty(exports, "useFocusRects", ({ enumerable: true, get: function () { return utilities_1.useFocusRects; } })); Object.defineProperty(exports, "values", ({ enumerable: true, get: function () { return utilities_1.values; } })); Object.defineProperty(exports, "videoProperties", ({ enumerable: true, get: function () { return utilities_1.videoProperties; } })); Object.defineProperty(exports, "warn", ({ enumerable: true, get: function () { return utilities_1.warn; } })); Object.defineProperty(exports, "warnConditionallyRequiredProps", ({ enumerable: true, get: function () { return utilities_1.warnConditionallyRequiredProps; } })); Object.defineProperty(exports, "warnControlledUsage", ({ enumerable: true, get: function () { return utilities_1.warnControlledUsage; } })); Object.defineProperty(exports, "warnDeprecations", ({ enumerable: true, get: function () { return utilities_1.warnDeprecations; } })); Object.defineProperty(exports, "warnMutuallyExclusive", ({ enumerable: true, get: function () { return utilities_1.warnMutuallyExclusive; } })); //# sourceMappingURL=Utilities.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/Viewport.js": /*!***************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/Viewport.js ***! \***************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./utilities/decorators/withViewport */ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withViewport.js"), exports); //# sourceMappingURL=Viewport.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/WeeklyDayPicker.js": /*!**********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/WeeklyDayPicker.js ***! \**********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./components/WeeklyDayPicker/index */ "./node_modules/@fluentui/react/lib-commonjs/components/WeeklyDayPicker/index.js"), exports); //# sourceMappingURL=WeeklyDayPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/WindowProvider.js": /*!*********************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/WindowProvider.js ***! \*********************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.useWindow = exports.useDocument = exports.WindowProvider = exports.WindowContext = void 0; __webpack_require__(/*! ./version */ "./node_modules/@fluentui/react/lib-commonjs/version.js"); var react_window_provider_1 = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib-commonjs/index.js"); Object.defineProperty(exports, "WindowContext", ({ enumerable: true, get: function () { return react_window_provider_1.WindowContext; } })); Object.defineProperty(exports, "WindowProvider", ({ enumerable: true, get: function () { return react_window_provider_1.WindowProvider; } })); Object.defineProperty(exports, "useDocument", ({ enumerable: true, get: function () { return react_window_provider_1.useDocument; } })); Object.defineProperty(exports, "useWindow", ({ enumerable: true, get: function () { return react_window_provider_1.useWindow; } })); //# sourceMappingURL=WindowProvider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DirectionalHint = void 0; exports.DirectionalHint = { /** * Appear above the target element, with the left edges of the callout and target aligning. */ topLeftEdge: 0, /** * Appear above the target element, with the centers of the callout and target aligning. */ topCenter: 1, /** * Appear above the target element, with the right edges of the callout and target aligning. */ topRightEdge: 2, /** * Appear above the target element, aligning with the target element such that the callout tends toward * the center of the screen. */ topAutoEdge: 3, /** * Appear below the target element, with the left edges of the callout and target aligning. */ bottomLeftEdge: 4, /** * Appear below the target element, with the centers of the callout and target aligning. */ bottomCenter: 5, /** * Appear below the target element, with the right edges of the callout and target aligning. */ bottomRightEdge: 6, /** * Appear below the target element, aligning with the target element such that the callout tends toward * the center of the screen. */ bottomAutoEdge: 7, /** * Appear to the left of the target element, with the top edges of the callout and target aligning. */ leftTopEdge: 8, /** * Appear to the left of the target element, with the centers of the callout and target aligning. */ leftCenter: 9, /** * Appear to the left of the target element, with the bottom edges of the callout and target aligning. */ leftBottomEdge: 10, /** * Appear to the right of the target element, with the top edges of the callout and target aligning. */ rightTopEdge: 11, /** * Appear to the right of the target element, with the centers of the callout and target aligning. */ rightCenter: 12, /** * Appear to the right of the target element, with the bottom edges of the callout and target aligning. */ rightBottomEdge: 13, }; //# sourceMappingURL=DirectionalHint.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.classNames.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.classNames.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getClassNames = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.getClassNames = (0, Utilities_1.memoizeFunction)(function (styles, className, activityPersonas, isCompact) { return { root: (0, Styling_1.mergeStyles)('ms-ActivityItem', className, styles.root, isCompact && styles.isCompactRoot), pulsingBeacon: (0, Styling_1.mergeStyles)('ms-ActivityItem-pulsingBeacon', styles.pulsingBeacon), personaContainer: (0, Styling_1.mergeStyles)('ms-ActivityItem-personaContainer', styles.personaContainer, isCompact && styles.isCompactPersonaContainer), activityPersona: (0, Styling_1.mergeStyles)('ms-ActivityItem-activityPersona', styles.activityPersona, isCompact && styles.isCompactPersona, !isCompact && activityPersonas && activityPersonas.length === 2 && styles.doublePersona), activityTypeIcon: (0, Styling_1.mergeStyles)('ms-ActivityItem-activityTypeIcon', styles.activityTypeIcon, isCompact && styles.isCompactIcon), activityContent: (0, Styling_1.mergeStyles)('ms-ActivityItem-activityContent', styles.activityContent, isCompact && styles.isCompactContent), activityText: (0, Styling_1.mergeStyles)('ms-ActivityItem-activityText', styles.activityText), commentText: (0, Styling_1.mergeStyles)('ms-ActivityItem-commentText', styles.commentText), timeStamp: (0, Styling_1.mergeStyles)('ms-ActivityItem-timeStamp', styles.timeStamp, isCompact && styles.isCompactTimeStamp), }; }); //# sourceMappingURL=ActivityItem.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ActivityItem = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var ActivityItem_classNames_1 = __webpack_require__(/*! ./ActivityItem.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.classNames.js"); var ActivityItem_styles_1 = __webpack_require__(/*! ./ActivityItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.styles.js"); var Persona_1 = __webpack_require__(/*! ../../Persona */ "./node_modules/@fluentui/react/lib-commonjs/Persona.js"); /** * {@docCategory ActivityItem} */ var ActivityItem = /** @class */ (function (_super) { tslib_1.__extends(ActivityItem, _super); function ActivityItem(props) { var _this = _super.call(this, props) || this; _this._onRenderIcon = function (props) { if (props.activityPersonas) { return _this._onRenderPersonaArray(props); } else { return _this.props.activityIcon; } }; _this._onRenderActivityDescription = function (props) { var classNames = _this._getClassNames(props); // eslint-disable-next-line deprecation/deprecation var activityDescription = props.activityDescription || props.activityDescriptionText; if (activityDescription) { return React.createElement("span", { className: classNames.activityText }, activityDescription); } return null; }; _this._onRenderComments = function (props) { var classNames = _this._getClassNames(props); // eslint-disable-next-line deprecation/deprecation var comments = props.comments || props.commentText; if (!props.isCompact && comments) { return React.createElement("div", { className: classNames.commentText }, comments); } return null; }; _this._onRenderTimeStamp = function (props) { var classNames = _this._getClassNames(props); if (!props.isCompact && props.timeStamp) { return React.createElement("div", { className: classNames.timeStamp }, props.timeStamp); } return null; }; // If activityPersonas is an array of persona props, build the persona cluster element. _this._onRenderPersonaArray = function (props) { var classNames = _this._getClassNames(props); var personaElement = null; var activityPersonas = props.activityPersonas; if (activityPersonas[0].imageUrl || activityPersonas[0].imageInitials) { var personaList_1 = []; var showSize16Personas_1 = activityPersonas.length > 1 || props.isCompact; var personaLimit_1 = props.isCompact ? 3 : 4; var style_1 = undefined; if (props.isCompact) { style_1 = { display: 'inline-block', width: '10px', minWidth: '10px', overflow: 'visible', }; } activityPersonas .filter(function (person, index) { return index < personaLimit_1; }) .forEach(function (person, index) { personaList_1.push(React.createElement(Persona_1.PersonaCoin, tslib_1.__assign({}, person, { key: person.key || index, className: classNames.activityPersona, // eslint-disable-next-line deprecation/deprecation size: showSize16Personas_1 ? Persona_1.PersonaSize.size16 : Persona_1.PersonaSize.size32, style: style_1 }))); }); personaElement = React.createElement("div", { className: classNames.personaContainer }, personaList_1); } return personaElement; }; return _this; } ActivityItem.prototype.render = function () { var _a = this.props, _b = _a.onRenderIcon, onRenderIcon = _b === void 0 ? this._onRenderIcon : _b, _c = _a.onRenderActivityDescription, onRenderActivityDescription = _c === void 0 ? this._onRenderActivityDescription : _c, _d = _a.onRenderComments, onRenderComments = _d === void 0 ? this._onRenderComments : _d, _e = _a.onRenderTimeStamp, onRenderTimeStamp = _e === void 0 ? this._onRenderTimeStamp : _e, animateBeaconSignal = _a.animateBeaconSignal, isCompact = _a.isCompact; var classNames = this._getClassNames(this.props); return (React.createElement("div", { className: classNames.root, style: this.props.style }, (this.props.activityPersonas || this.props.activityIcon || this.props.onRenderIcon) && (React.createElement("div", { className: classNames.activityTypeIcon }, animateBeaconSignal && isCompact && React.createElement("div", { className: classNames.pulsingBeacon }), onRenderIcon(this.props))), React.createElement("div", { className: classNames.activityContent }, onRenderActivityDescription(this.props, this._onRenderActivityDescription), onRenderComments(this.props, this._onRenderComments), onRenderTimeStamp(this.props, this._onRenderTimeStamp)))); }; ActivityItem.prototype._getClassNames = function (props) { return (0, ActivityItem_classNames_1.getClassNames)((0, ActivityItem_styles_1.getStyles)(undefined, props.styles, props.animateBeaconSignal, props.beaconColorOne, props.beaconColorTwo, props.isCompact), props.className, props.activityPersonas, props.isCompact); }; return ActivityItem; }(React.Component)); exports.ActivityItem = ActivityItem; //# sourceMappingURL=ActivityItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.styles.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.styles.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DEFAULT_PERSONA_SIZE = '32px'; var COMPACT_PERSONA_SIZE = '16px'; var DEFAULT_ICON_SIZE = '16px'; var COMPACT_ICON_SIZE = '13px'; var ANIMATION_INNER_DIMENSION = '4px'; var ANIMATION_OUTER_DIMENSION = '28px'; var ANIMATION_BORDER_WIDTH = '4px'; var fadeIn = (0, Utilities_1.memoizeFunction)(function () { return (0, Styling_1.keyframes)({ from: { opacity: 0 }, to: { opacity: 1 }, }); }); var slideIn = (0, Utilities_1.memoizeFunction)(function () { return (0, Styling_1.keyframes)({ from: { transform: 'translateX(-10px)' }, to: { transform: 'translateX(0)' }, }); }); exports.getStyles = (0, Utilities_1.memoizeFunction)(function (theme, customStyles, animateBeaconSignal, beaconColorOne, beaconColorTwo, isCompact) { var _a; if (theme === void 0) { theme = (0, Styling_1.getTheme)(); } var continuousPulse = Styling_1.PulsingBeaconAnimationStyles.continuousPulseAnimationSingle(beaconColorOne ? beaconColorOne : theme.palette.themePrimary, beaconColorTwo ? beaconColorTwo : theme.palette.themeTertiary, ANIMATION_INNER_DIMENSION, ANIMATION_OUTER_DIMENSION, ANIMATION_BORDER_WIDTH); var continuousPulseAnimation = { animationName: continuousPulse, animationIterationCount: '1', animationDuration: '.8s', zIndex: 1, }; var slideInAnimation = { animationName: slideIn(), animationIterationCount: '1', animationDuration: '.5s', }; var fadeInAnimation = { animationName: fadeIn(), animationIterationCount: '1', animationDuration: '.5s', }; var ActivityItemStyles = { root: [ theme.fonts.small, { display: 'flex', justifyContent: 'flex-start', alignItems: 'flex-start', boxSizing: 'border-box', color: theme.palette.neutralSecondary, }, isCompact && animateBeaconSignal && fadeInAnimation, ], pulsingBeacon: [ { position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', width: '0px', height: '0px', borderRadius: '225px', borderStyle: 'solid', opacity: 0, }, isCompact && animateBeaconSignal && continuousPulseAnimation, ], isCompactRoot: { alignItems: 'center', }, personaContainer: { display: 'flex', flexWrap: 'wrap', minWidth: DEFAULT_PERSONA_SIZE, width: DEFAULT_PERSONA_SIZE, height: DEFAULT_PERSONA_SIZE, }, isCompactPersonaContainer: { display: 'inline-flex', flexWrap: 'nowrap', flexBasis: 'auto', height: COMPACT_PERSONA_SIZE, width: 'auto', minWidth: '0', paddingRight: '6px', }, activityTypeIcon: { height: DEFAULT_PERSONA_SIZE, fontSize: DEFAULT_ICON_SIZE, lineHeight: DEFAULT_ICON_SIZE, marginTop: '3px', }, isCompactIcon: { height: COMPACT_PERSONA_SIZE, minWidth: COMPACT_PERSONA_SIZE, fontSize: COMPACT_ICON_SIZE, lineHeight: COMPACT_ICON_SIZE, color: theme.palette.themePrimary, marginTop: '1px', position: 'relative', display: 'flex', justifyContent: 'center', alignItems: 'center', selectors: { '.ms-Persona-imageArea': { margin: '-2px 0 0 -2px', border: '2px solid' + theme.palette.white, borderRadius: '50%', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { border: 'none', margin: '0', }, _a), }, }, }, activityPersona: { display: 'block', }, doublePersona: { selectors: { ':first-child': { alignSelf: 'flex-end', }, }, }, isCompactPersona: { display: 'inline-block', width: '8px', minWidth: '8px', overflow: 'visible', }, activityContent: [ { padding: '0 8px', }, isCompact && animateBeaconSignal && slideInAnimation, ], activityText: { display: 'inline', }, isCompactContent: { flex: '1', padding: '0 4px', whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflowX: 'hidden', }, commentText: { color: theme.palette.neutralPrimary, }, timeStamp: [ theme.fonts.tiny, { fontWeight: 400, color: theme.palette.neutralSecondary, }, ], isCompactTimeStamp: { display: 'inline-block', paddingLeft: '0.3em', fontSize: '1em', }, }; return (0, Styling_1.concatStyleSets)(ActivityItemStyles, customStyles); }); //# sourceMappingURL=ActivityItem.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.types.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.types.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ActivityItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/index.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/index.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getActivityItemClassNames = exports.getActivityItemStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var ActivityItem_styles_1 = __webpack_require__(/*! ./ActivityItem.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.styles.js"); Object.defineProperty(exports, "getActivityItemStyles", ({ enumerable: true, get: function () { return ActivityItem_styles_1.getStyles; } })); var ActivityItem_classNames_1 = __webpack_require__(/*! ./ActivityItem.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.classNames.js"); Object.defineProperty(exports, "getActivityItemClassNames", ({ enumerable: true, get: function () { return ActivityItem_classNames_1.getClassNames; } })); tslib_1.__exportStar(__webpack_require__(/*! ./ActivityItem */ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ActivityItem.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ActivityItem/ActivityItem.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.base.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.base.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AnnouncedBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory Announced} */ var AnnouncedBase = /** @class */ (function (_super) { tslib_1.__extends(AnnouncedBase, _super); function AnnouncedBase() { return _super !== null && _super.apply(this, arguments) || this; } AnnouncedBase.prototype.render = function () { var _a = this.props, message = _a.message, styles = _a.styles, _b = _a.as, Root = _b === void 0 ? 'div' : _b, className = _a.className; var classNames = getClassNames(styles, { className: className }); return (React.createElement(Root, tslib_1.__assign({ role: "status", className: classNames.root }, (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties, ['className'])), React.createElement(Utilities_1.DelayedRender, null, React.createElement("div", { className: classNames.screenReaderText }, message)))); }; AnnouncedBase.defaultProps = { 'aria-live': 'polite', }; return AnnouncedBase; }(React.Component)); exports.AnnouncedBase = AnnouncedBase; //# sourceMappingURL=Announced.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Announced = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Announced_base_1 = __webpack_require__(/*! ./Announced.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.base.js"); var Announced_styles_1 = __webpack_require__(/*! ./Announced.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.styles.js"); exports.Announced = (0, Utilities_1.styled)(Announced_base_1.AnnouncedBase, Announced_styles_1.getStyles); //# sourceMappingURL=Announced.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.styles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.styles.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var getStyles = function (props) { return { root: props.className, screenReaderText: Styling_1.hiddenContentStyle, }; }; exports.getStyles = getStyles; //# sourceMappingURL=Announced.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.types.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.types.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Announced.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Announced/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Announced/index.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Announced */ "./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Announced.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Announced.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Announced/Announced.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/Autofill.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Autofill/Autofill.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Autofill = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var react_window_provider_1 = __webpack_require__(/*! @fluentui/react-window-provider */ "./node_modules/@fluentui/react-window-provider/lib-commonjs/index.js"); var SELECTION_FORWARD = 'forward'; var SELECTION_BACKWARD = 'backward'; /** * {@docCategory Autofill} */ var Autofill = /** @class */ (function (_super) { tslib_1.__extends(Autofill, _super); function Autofill(props) { var _this = _super.call(this, props) || this; _this._inputElement = React.createRef(); _this._autoFillEnabled = true; // Composition events are used when the character/text requires several keystrokes to be completed. // Some examples of this are mobile text input and languages like Japanese or Arabic. // Find out more at https://developer.mozilla.org/en-US/docs/Web/Events/compositionstart _this._onCompositionStart = function (ev) { _this.setState({ isComposing: true }); _this._autoFillEnabled = false; }; // Composition events are used when the character/text requires several keystrokes to be completed. // Some examples of this are mobile text input and languages like Japanese or Arabic. // Find out more at https://developer.mozilla.org/en-US/docs/Web/Events/compositionstart _this._onCompositionUpdate = function () { if ((0, Utilities_1.isIE11)()) { _this._updateValue(_this._getCurrentInputValue(), true); } }; // Composition events are used when the character/text requires several keystrokes to be completed. // Some examples of this are mobile text input and languages like Japanese or Arabic. // Find out more at https://developer.mozilla.org/en-US/docs/Web/Events/compositionstart _this._onCompositionEnd = function (ev) { var inputValue = _this._getCurrentInputValue(); _this._tryEnableAutofill(inputValue, _this.value, false, true); _this.setState({ isComposing: false }); // Due to timing, this needs to be async, otherwise no text will be selected. _this._async.setTimeout(function () { // it's technically possible that the value of isComposing is reset during this timeout, // so explicitly trigger this with composing=true here, since it is supposed to be the // update for composition end _this._updateValue(_this._getCurrentInputValue(), false); }, 0); }; _this._onClick = function () { if (_this.value && _this.value !== '' && _this._autoFillEnabled) { _this._autoFillEnabled = false; } }; _this._onKeyDown = function (ev) { if (_this.props.onKeyDown) { _this.props.onKeyDown(ev); } // If the event is actively being composed, then don't alert autofill. // Right now typing does not have isComposing, once that has been fixed any should be removed. if (!ev.nativeEvent.isComposing) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.backspace: _this._autoFillEnabled = false; break; case Utilities_1.KeyCodes.left: case Utilities_1.KeyCodes.right: if (_this._autoFillEnabled) { _this.setState(function (prev) { return ({ inputValue: _this.props.suggestedDisplayValue || prev.inputValue, }); }); _this._autoFillEnabled = false; } break; default: if (!_this._autoFillEnabled) { // eslint-disable-next-line deprecation/deprecation if (_this.props.enableAutofillOnKeyPress.indexOf(ev.which) !== -1) { _this._autoFillEnabled = true; } } break; } } }; _this._onInputChanged = function (ev) { var value = _this._getCurrentInputValue(ev); if (!_this.state.isComposing) { _this._tryEnableAutofill(value, _this.value, ev.nativeEvent.isComposing); } // If it is not IE11 and currently composing, update the value if (!((0, Utilities_1.isIE11)() && _this.state.isComposing)) { var nativeEventComposing = ev.nativeEvent.isComposing; var isComposing = nativeEventComposing === undefined ? _this.state.isComposing : nativeEventComposing; _this._updateValue(value, isComposing); } }; _this._onChanged = function () { // Swallow this event, we don't care about it // We must provide it because React PropTypes marks it as required, but onInput serves the correct purpose return; }; /** * Updates the current input value as well as getting a new display value. * @param newValue - The new value from the input */ _this._updateValue = function (newValue, composing) { // Only proceed if the value is nonempty and is different from the old value // This is to work around the fact that, in IE 11, inputs with a placeholder fire an onInput event on focus if (!newValue && newValue === _this.value) { return; } // eslint-disable-next-line deprecation/deprecation var _a = _this.props, onInputChange = _a.onInputChange, onInputValueChange = _a.onInputValueChange; if (onInputChange) { newValue = (onInputChange === null || onInputChange === void 0 ? void 0 : onInputChange(newValue, composing)) || ''; } _this.setState({ inputValue: newValue }, function () { return onInputValueChange === null || onInputValueChange === void 0 ? void 0 : onInputValueChange(newValue, composing); }); }; (0, Utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); _this.state = { inputValue: props.defaultVisibleValue || '', isComposing: false, }; return _this; } Autofill.getDerivedStateFromProps = function (props, state) { // eslint-disable-next-line deprecation/deprecation if (props.updateValueInWillReceiveProps) { // eslint-disable-next-line deprecation/deprecation var updatedInputValue = props.updateValueInWillReceiveProps(); // Don't update if we have a null value or the value isn't changing // the value should still update if an empty string is passed in if (updatedInputValue !== null && updatedInputValue !== state.inputValue && !state.isComposing) { return tslib_1.__assign(tslib_1.__assign({}, state), { inputValue: updatedInputValue }); } } return null; }; Object.defineProperty(Autofill.prototype, "cursorLocation", { get: function () { if (this._inputElement.current) { var inputElement = this._inputElement.current; if (inputElement.selectionDirection !== SELECTION_FORWARD) { return inputElement.selectionEnd; } else { return inputElement.selectionStart; } } else { return -1; } }, enumerable: false, configurable: true }); Object.defineProperty(Autofill.prototype, "isValueSelected", { get: function () { return Boolean(this.inputElement && this.inputElement.selectionStart !== this.inputElement.selectionEnd); }, enumerable: false, configurable: true }); Object.defineProperty(Autofill.prototype, "value", { get: function () { return this._getControlledValue() || this.state.inputValue || ''; }, enumerable: false, configurable: true }); Object.defineProperty(Autofill.prototype, "selectionStart", { get: function () { return this._inputElement.current ? this._inputElement.current.selectionStart : -1; }, enumerable: false, configurable: true }); Object.defineProperty(Autofill.prototype, "selectionEnd", { get: function () { return this._inputElement.current ? this._inputElement.current.selectionEnd : -1; }, enumerable: false, configurable: true }); Object.defineProperty(Autofill.prototype, "inputElement", { get: function () { return this._inputElement.current; }, enumerable: false, configurable: true }); Autofill.prototype.componentDidUpdate = function (_, _1, cursor) { var _a; var _b = this.props, suggestedDisplayValue = _b.suggestedDisplayValue, shouldSelectFullInputValueInComponentDidUpdate = _b.shouldSelectFullInputValueInComponentDidUpdate, preventValueSelection = _b.preventValueSelection; var differenceIndex = 0; if (preventValueSelection) { return; } var document = ((_a = this.context) === null || _a === void 0 ? void 0 : _a.window.document) || (0, Utilities_1.getDocument)(this._inputElement.current); var isFocused = this._inputElement.current && this._inputElement.current === (document === null || document === void 0 ? void 0 : document.activeElement); if (isFocused && this._autoFillEnabled && this.value && suggestedDisplayValue && _doesTextStartWith(suggestedDisplayValue, this.value)) { var shouldSelectFullRange = false; if (shouldSelectFullInputValueInComponentDidUpdate) { shouldSelectFullRange = shouldSelectFullInputValueInComponentDidUpdate(); } if (shouldSelectFullRange) { this._inputElement.current.setSelectionRange(0, suggestedDisplayValue.length, SELECTION_BACKWARD); } else { while (differenceIndex < this.value.length && this.value[differenceIndex].toLocaleLowerCase() === suggestedDisplayValue[differenceIndex].toLocaleLowerCase()) { differenceIndex++; } if (differenceIndex > 0) { this._inputElement.current.setSelectionRange(differenceIndex, suggestedDisplayValue.length, SELECTION_BACKWARD); } } } else if (this._inputElement.current) { if (cursor !== null && !this._autoFillEnabled && !this.state.isComposing) { this._inputElement.current.setSelectionRange(cursor.start, cursor.end, cursor.dir); } } }; Autofill.prototype.componentWillUnmount = function () { this._async.dispose(); }; Autofill.prototype.render = function () { var nativeProps = (0, Utilities_1.getNativeProps)(this.props, Utilities_1.inputProperties); var style = tslib_1.__assign(tslib_1.__assign({}, this.props.style), { fontFamily: 'inherit' }); return (React.createElement("input", tslib_1.__assign({ autoCapitalize: "off", autoComplete: "off", "aria-autocomplete": 'both' }, nativeProps, { style: style, ref: this._inputElement, value: this._getDisplayValue(), onCompositionStart: this._onCompositionStart, onCompositionUpdate: this._onCompositionUpdate, onCompositionEnd: this._onCompositionEnd, // TODO (Fabric 8?) - switch to calling only onChange. See notes in TextField._onInputChange. onChange: this._onChanged, onInput: this._onInputChanged, onKeyDown: this._onKeyDown, onClick: this.props.onClick ? this.props.onClick : this._onClick, "data-lpignore": true }))); }; Autofill.prototype.focus = function () { this._inputElement.current && this._inputElement.current.focus(); }; Autofill.prototype.clear = function () { this._autoFillEnabled = true; this._updateValue('', false); this._inputElement.current && this._inputElement.current.setSelectionRange(0, 0); }; Autofill.prototype.getSnapshotBeforeUpdate = function () { var _a, _b; var inel = this._inputElement.current; if (inel && inel.selectionStart !== this.value.length) { return { start: (_a = inel.selectionStart) !== null && _a !== void 0 ? _a : inel.value.length, end: (_b = inel.selectionEnd) !== null && _b !== void 0 ? _b : inel.value.length, dir: inel.selectionDirection || 'backward' || 0, }; } return null; }; Autofill.prototype._getCurrentInputValue = function (ev) { if (ev && ev.target && ev.target.value) { return ev.target.value; } else if (this.inputElement && this.inputElement.value) { return this.inputElement.value; } else { return ''; } }; /** * Attempts to enable autofill. Whether or not autofill is enabled depends on the input value, * whether or not any text is selected, and only if the new input value is longer than the old input value. * Autofill should never be set to true if the value is composing. Once compositionEnd is called, then * it should be completed. * See https://developer.mozilla.org/en-US/docs/Web/API/CompositionEvent for more information on composition. * @param newValue - new input value * @param oldValue - old input value * @param isComposing - if true then the text is actively being composed and it has not completed. * @param isComposed - if the text is a composed text value. */ Autofill.prototype._tryEnableAutofill = function (newValue, oldValue, isComposing, isComposed) { if (!isComposing && newValue && this._inputElement.current && this._inputElement.current.selectionStart === newValue.length && !this._autoFillEnabled && (newValue.length > oldValue.length || isComposed)) { this._autoFillEnabled = true; } }; Autofill.prototype._getDisplayValue = function () { if (this._autoFillEnabled) { return _getDisplayValue(this.value, this.props.suggestedDisplayValue); } return this.value; }; Autofill.prototype._getControlledValue = function () { var value = this.props.value; if (value === undefined || typeof value === 'string') { return value; } // eslint-disable-next-line no-console console.warn("props.value of Autofill should be a string, but it is ".concat(value, " with type of ").concat(typeof value)); return value.toString(); }; Autofill.defaultProps = { enableAutofillOnKeyPress: [Utilities_1.KeyCodes.down, Utilities_1.KeyCodes.up], }; // need to check WindowContext to get the provided document Autofill.contextType = react_window_provider_1.WindowContext; return Autofill; }(React.Component)); exports.Autofill = Autofill; /** * Returns a string that should be used as the display value. * It evaluates this based on whether or not the suggested value starts with the input value * and whether or not autofill is enabled. * @param inputValue - the value that the input currently has. * @param suggestedDisplayValue - the possible full value */ function _getDisplayValue(inputValue, suggestedDisplayValue) { var displayValue = inputValue; if (suggestedDisplayValue && inputValue && _doesTextStartWith(suggestedDisplayValue, displayValue)) { displayValue = suggestedDisplayValue; } return displayValue; } function _doesTextStartWith(text, startWith) { if (!text || !startWith) { return false; } if (true) { for (var _i = 0, _a = [text, startWith]; _i < _a.length; _i++) { var val = _a[_i]; if (typeof val !== 'string') { throw new Error("".concat(Autofill.name // eslint-disable-next-line @fluentui/max-len , " received non-string value \"").concat(val, "\" of type ").concat(typeof val, " from either input's value or suggestedDisplayValue")); } } } return text.toLocaleLowerCase().indexOf(startWith.toLocaleLowerCase()) === 0; } //# sourceMappingURL=Autofill.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/Autofill.types.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Autofill/Autofill.types.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Autofill.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Autofill/index.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Autofill */ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/Autofill.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Autofill.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Autofill/Autofill.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.base.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.base.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BreadcrumbBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var Link_1 = __webpack_require__(/*! ../../Link */ "./node_modules/@fluentui/react/lib-commonjs/Link.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Button_1 = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var ResizeGroup_1 = __webpack_require__(/*! ../../ResizeGroup */ "./node_modules/@fluentui/react/lib-commonjs/ResizeGroup.js"); var Tooltip_1 = __webpack_require__(/*! ../../Tooltip */ "./node_modules/@fluentui/react/lib-commonjs/Tooltip.js"); var Utilities_2 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var OVERFLOW_KEY = 'overflow'; var nullFunction = function () { return null; }; var nonActionableItemProps = { styles: function (props) { var theme = props.theme; return { root: { selectors: { '&.is-disabled': { color: theme.semanticColors.bodyText, }, }, }, }; }, }; /** * {@docCategory Breadcrumb} */ var BreadcrumbBase = /** @class */ (function (_super) { tslib_1.__extends(BreadcrumbBase, _super); function BreadcrumbBase(props) { var _this = _super.call(this, props) || this; _this._focusZone = React.createRef(); /** * Remove the first rendered item past the overlow point and put it and the end the overflow set. */ _this._onReduceData = function (data) { var renderedItems = data.renderedItems, renderedOverflowItems = data.renderedOverflowItems; var overflowIndex = data.props.overflowIndex; var movedItem = renderedItems[overflowIndex]; if (!movedItem) { return undefined; } renderedItems = tslib_1.__spreadArray([], renderedItems, true); renderedItems.splice(overflowIndex, 1); renderedOverflowItems = tslib_1.__spreadArray(tslib_1.__spreadArray([], renderedOverflowItems, true), [movedItem], false); return tslib_1.__assign(tslib_1.__assign({}, data), { renderedItems: renderedItems, renderedOverflowItems: renderedOverflowItems }); }; /** * Remove the last item of the overflow set and insert the item as the start of the rendered set past the overflow * point. */ _this._onGrowData = function (data) { var renderedItems = data.renderedItems, renderedOverflowItems = data.renderedOverflowItems; var _a = data.props, overflowIndex = _a.overflowIndex, maxDisplayedItems = _a.maxDisplayedItems; renderedOverflowItems = tslib_1.__spreadArray([], renderedOverflowItems, true); var movedItem = renderedOverflowItems.pop(); if (!movedItem || renderedItems.length >= maxDisplayedItems) { return undefined; } renderedItems = tslib_1.__spreadArray([], renderedItems, true); renderedItems.splice(overflowIndex, 0, movedItem); return tslib_1.__assign(tslib_1.__assign({}, data), { renderedItems: renderedItems, renderedOverflowItems: renderedOverflowItems }); }; _this._onRenderBreadcrumb = function (data) { var _a = data.props, ariaLabel = _a.ariaLabel, _b = _a.dividerAs, DividerType = _b === void 0 ? Icon_1.Icon : _b, onRenderItem = _a.onRenderItem, overflowAriaLabel = _a.overflowAriaLabel, overflowIndex = _a.overflowIndex, onRenderOverflowIcon = _a.onRenderOverflowIcon, overflowButtonAs = _a.overflowButtonAs; var renderedOverflowItems = data.renderedOverflowItems, renderedItems = data.renderedItems; var contextualItems = renderedOverflowItems.map(function (item) { var isActionable = !!(item.onClick || item.href); return { text: item.text, name: item.text, key: item.key, onClick: item.onClick ? _this._onBreadcrumbClicked.bind(_this, item) : null, href: item.href, disabled: !isActionable, itemProps: isActionable ? undefined : nonActionableItemProps, }; }); // Find index of last rendered item so the divider icon // knows not to render on that item var lastItemIndex = renderedItems.length - 1; var hasOverflowItems = renderedOverflowItems && renderedOverflowItems.length !== 0; var itemElements = renderedItems.map(function (item, index) { var finalOnRenderItem = _this._onRenderItem; if (item.onRender) { finalOnRenderItem = (0, Utilities_2.composeRenderFunction)(item.onRender, finalOnRenderItem); } if (onRenderItem) { finalOnRenderItem = (0, Utilities_2.composeRenderFunction)(onRenderItem, finalOnRenderItem); } return (React.createElement("li", { className: _this._classNames.listItem, key: item.key || String(index) }, finalOnRenderItem(item), (index !== lastItemIndex || (hasOverflowItems && index === overflowIndex - 1)) && (React.createElement(DividerType, { className: _this._classNames.chevron, iconName: (0, Utilities_1.getRTL)(_this.props.theme) ? 'ChevronLeft' : 'ChevronRight', item: item })))); }); if (hasOverflowItems) { var iconProps = !onRenderOverflowIcon ? { iconName: 'More' } : {}; var onRenderMenuIcon = onRenderOverflowIcon ? onRenderOverflowIcon : nullFunction; var OverflowButton = overflowButtonAs ? overflowButtonAs : Button_1.IconButton; itemElements.splice(overflowIndex, 0, React.createElement("li", { className: _this._classNames.overflow, key: OVERFLOW_KEY }, React.createElement(OverflowButton, { className: _this._classNames.overflowButton, iconProps: iconProps, role: "button", "aria-haspopup": "true", ariaLabel: overflowAriaLabel, onRenderMenuIcon: onRenderMenuIcon, menuProps: { items: contextualItems, directionalHint: DirectionalHint_1.DirectionalHint.bottomLeftEdge, } }), overflowIndex !== lastItemIndex + 1 && (React.createElement(DividerType, { className: _this._classNames.chevron, iconName: (0, Utilities_1.getRTL)(_this.props.theme) ? 'ChevronLeft' : 'ChevronRight', item: renderedOverflowItems[renderedOverflowItems.length - 1] })))); } var nativeProps = (0, Utilities_1.getNativeProps)(_this.props, Utilities_1.htmlElementProperties, [ 'className', ]); return (React.createElement("div", tslib_1.__assign({ className: _this._classNames.root, role: "navigation", "aria-label": ariaLabel }, nativeProps), React.createElement(FocusZone_1.FocusZone, tslib_1.__assign({ componentRef: _this._focusZone, direction: FocusZone_1.FocusZoneDirection.horizontal }, _this.props.focusZoneProps), React.createElement("ol", { className: _this._classNames.list }, itemElements)))); }; _this._onRenderItem = function (item) { if (!item) { return null; } var as = item.as, href = item.href, onClick = item.onClick, isCurrentItem = item.isCurrentItem, text = item.text, onRenderContent = item.onRenderContent, additionalProps = tslib_1.__rest(item, ["as", "href", "onClick", "isCurrentItem", "text", "onRenderContent"]); var finalOnRenderContent = defaultOnRenderCrumbContent; if (onRenderContent) { finalOnRenderContent = (0, Utilities_2.composeRenderFunction)(onRenderContent, finalOnRenderContent); } if (_this.props.onRenderItemContent) { finalOnRenderContent = (0, Utilities_2.composeRenderFunction)(_this.props.onRenderItemContent, finalOnRenderContent); } if (onClick || href) { return (React.createElement(Link_1.Link, tslib_1.__assign({}, additionalProps, { as: as, className: _this._classNames.itemLink, href: href, "aria-current": isCurrentItem ? 'page' : undefined, // eslint-disable-next-line react/jsx-no-bind onClick: _this._onBreadcrumbClicked.bind(_this, item) }), React.createElement(Tooltip_1.TooltipHost, tslib_1.__assign({ content: text, overflowMode: Tooltip_1.TooltipOverflowMode.Parent }, _this.props.tooltipHostProps), finalOnRenderContent(item)))); } else { var Tag = as || 'span'; return (React.createElement(Tag, tslib_1.__assign({}, additionalProps, { className: _this._classNames.item }), React.createElement(Tooltip_1.TooltipHost, tslib_1.__assign({ content: text, overflowMode: Tooltip_1.TooltipOverflowMode.Parent }, _this.props.tooltipHostProps), finalOnRenderContent(item)))); } }; _this._onBreadcrumbClicked = function (item, ev) { if (item.onClick) { item.onClick(ev, item); } }; (0, Utilities_1.initializeComponentRef)(_this); _this._validateProps(props); return _this; } /** * Sets focus to the first breadcrumb link. */ BreadcrumbBase.prototype.focus = function () { if (this._focusZone.current) { this._focusZone.current.focus(); } }; BreadcrumbBase.prototype.render = function () { this._validateProps(this.props); var _a = this.props, _b = _a.onReduceData, onReduceData = _b === void 0 ? this._onReduceData : _b, _c = _a.onGrowData, onGrowData = _c === void 0 ? this._onGrowData : _c, overflowIndex = _a.overflowIndex, maxDisplayedItems = _a.maxDisplayedItems, items = _a.items, className = _a.className, theme = _a.theme, styles = _a.styles; var renderedItems = tslib_1.__spreadArray([], items, true); var renderedOverflowItems = renderedItems.splice(overflowIndex, renderedItems.length - maxDisplayedItems); var breadcrumbData = { props: this.props, renderedItems: renderedItems, renderedOverflowItems: renderedOverflowItems, }; this._classNames = getClassNames(styles, { className: className, theme: theme, }); return (React.createElement(ResizeGroup_1.ResizeGroup, { onRenderData: this._onRenderBreadcrumb, onReduceData: onReduceData, onGrowData: onGrowData, data: breadcrumbData })); }; /** * Validate incoming props * @param props - Props to validate */ BreadcrumbBase.prototype._validateProps = function (props) { var maxDisplayedItems = props.maxDisplayedItems, overflowIndex = props.overflowIndex, items = props.items; if (overflowIndex < 0 || (maxDisplayedItems > 1 && overflowIndex > maxDisplayedItems - 1) || (items.length > 0 && overflowIndex > items.length - 1)) { throw new Error('Breadcrumb: overflowIndex out of range'); } }; BreadcrumbBase.defaultProps = { items: [], maxDisplayedItems: 999, overflowIndex: 0, }; return BreadcrumbBase; }(React.Component)); exports.BreadcrumbBase = BreadcrumbBase; function defaultOnRenderCrumbContent(item) { return item ? React.createElement(React.Fragment, null, item.text) : null; } //# sourceMappingURL=Breadcrumb.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Breadcrumb = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Breadcrumb_base_1 = __webpack_require__(/*! ./Breadcrumb.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.base.js"); var Breadcrumb_styles_1 = __webpack_require__(/*! ./Breadcrumb.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.styles.js"); exports.Breadcrumb = (0, Utilities_1.styled)(Breadcrumb_base_1.BreadcrumbBase, Breadcrumb_styles_1.getStyles, undefined, { scope: 'Breadcrumb' }); //# sourceMappingURL=Breadcrumb.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.styles.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.styles.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var GlobalClassNames = { root: 'ms-Breadcrumb', list: 'ms-Breadcrumb-list', listItem: 'ms-Breadcrumb-listItem', chevron: 'ms-Breadcrumb-chevron', overflow: 'ms-Breadcrumb-overflow', overflowButton: 'ms-Breadcrumb-overflowButton', itemLink: 'ms-Breadcrumb-itemLink', item: 'ms-Breadcrumb-item', }; var SingleLineTextStyle = { whiteSpace: 'nowrap', textOverflow: 'ellipsis', overflow: 'hidden', }; var overflowButtonFontSize = 16; var chevronSmallFontSize = 8; var itemLineHeight = 36; var itemFontSize = 18; var MinimumScreenSelector = (0, Styling_1.getScreenSelector)(0, Styling_1.ScreenWidthMaxSmall); var MediumScreenSelector = (0, Styling_1.getScreenSelector)(Styling_1.ScreenWidthMinMedium, Styling_1.ScreenWidthMaxMedium); var getStyles = function (props) { var _a, _b, _c, _d, _e; var className = props.className, theme = props.theme; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); // Tokens var itemBackgroundHoveredColor = semanticColors.menuItemBackgroundHovered; var itemBackgroundPressedColor = semanticColors.menuItemBackgroundPressed; var itemTextColor = palette.neutralSecondary; var itemTextFontWeight = Styling_1.FontWeights.regular; var itemTextHoveredOrPressedColor = palette.neutralPrimary; var itemLastChildTextColor = palette.neutralPrimary; var itemLastChildTextFontWeight = Styling_1.FontWeights.semibold; var chevronButtonColor = palette.neutralSecondary; var overflowButtonColor = palette.neutralSecondary; var lastChildItemStyles = { fontWeight: itemLastChildTextFontWeight, color: itemLastChildTextColor, }; var itemStateSelectors = { ':hover': { color: itemTextHoveredOrPressedColor, backgroundColor: itemBackgroundHoveredColor, cursor: 'pointer', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { color: 'Highlight', backgroundColor: 'transparent', }, _a), }, ':active': { backgroundColor: itemBackgroundPressedColor, color: itemTextHoveredOrPressedColor, }, '&:active:hover': { color: itemTextHoveredOrPressedColor, backgroundColor: itemBackgroundPressedColor, }, '&:active, &:hover, &:active:hover': { textDecoration: 'none', }, }; var commonItemStyles = { color: itemTextColor, padding: '0 8px', lineHeight: itemLineHeight, fontSize: itemFontSize, fontWeight: itemTextFontWeight, }; var overflowButtonHighContrastFocus = { left: 1, right: 1, top: 1, bottom: 1, }; return { root: [ classNames.root, fonts.medium, { margin: '11px 0 1px', }, className, ], list: [ classNames.list, { whiteSpace: 'nowrap', padding: 0, margin: 0, display: 'flex', alignItems: 'stretch', }, ], listItem: [ classNames.listItem, { listStyleType: 'none', margin: '0', padding: '0', display: 'flex', position: 'relative', alignItems: 'center', selectors: { '&:last-child .ms-Breadcrumb-itemLink': tslib_1.__assign(tslib_1.__assign({}, lastChildItemStyles), (_b = {}, _b[Styling_1.HighContrastSelector] = { MsHighContrastAdjust: 'auto', forcedColorAdjust: 'auto', }, _b)), '&:last-child .ms-Breadcrumb-item': lastChildItemStyles, }, }, ], chevron: [ classNames.chevron, { color: chevronButtonColor, fontSize: fonts.small.fontSize, selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'WindowText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _c[MediumScreenSelector] = { fontSize: chevronSmallFontSize, }, _c[MinimumScreenSelector] = { fontSize: chevronSmallFontSize, }, _c), }, ], overflow: [ classNames.overflow, { position: 'relative', display: 'flex', alignItems: 'center', }, ], overflowButton: [ classNames.overflowButton, (0, Styling_1.getFocusStyle)(theme, { highContrastStyle: overflowButtonHighContrastFocus }), SingleLineTextStyle, { fontSize: overflowButtonFontSize, color: overflowButtonColor, height: '100%', cursor: 'pointer', selectors: tslib_1.__assign(tslib_1.__assign({}, itemStateSelectors), (_d = {}, _d[MinimumScreenSelector] = { padding: '4px 6px', }, _d[MediumScreenSelector] = { fontSize: fonts.mediumPlus.fontSize, }, _d)), }, ], itemLink: [ classNames.itemLink, (0, Styling_1.getFocusStyle)(theme), SingleLineTextStyle, tslib_1.__assign(tslib_1.__assign({}, commonItemStyles), { selectors: tslib_1.__assign((_e = { ':focus': { color: palette.neutralDark, } }, _e[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus")] = { outline: "none", }, _e), itemStateSelectors) }), ], item: [ classNames.item, tslib_1.__assign(tslib_1.__assign({}, commonItemStyles), { selectors: { ':hover': { cursor: 'default', }, } }), ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Breadcrumb.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.types.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.types.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Breadcrumb.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/index.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Breadcrumb */ "./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Breadcrumb.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Breadcrumb.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Breadcrumb/Breadcrumb.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/ActionButton/ActionButton.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/ActionButton/ActionButton.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ActionButton = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var BaseButton_1 = __webpack_require__(/*! ../BaseButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ActionButton_styles_1 = __webpack_require__(/*! ./ActionButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/ActionButton/ActionButton.styles.js"); /** * {@docCategory Button} */ var ActionButton = /** @class */ (function (_super) { tslib_1.__extends(ActionButton, _super); function ActionButton() { return _super !== null && _super.apply(this, arguments) || this; } ActionButton.prototype.render = function () { var _a = this.props, styles = _a.styles, theme = _a.theme; return (React.createElement(BaseButton_1.BaseButton, tslib_1.__assign({}, this.props, { variantClassName: "ms-Button--action ms-Button--command", styles: (0, ActionButton_styles_1.getStyles)(theme, styles), onRenderDescription: Utilities_1.nullRender }))); }; ActionButton = tslib_1.__decorate([ (0, Utilities_1.customizable)('ActionButton', ['theme', 'styles'], true) ], ActionButton); return ActionButton; }(React.Component)); exports.ActionButton = ActionButton; //# sourceMappingURL=ActionButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/ActionButton/ActionButton.styles.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/ActionButton/ActionButton.styles.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var BaseButton_styles_1 = __webpack_require__(/*! ../BaseButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.styles.js"); var DEFAULT_BUTTON_HEIGHT = '40px'; var DEFAULT_PADDING = '0 4px'; exports.getStyles = (0, Utilities_1.memoizeFunction)(function (theme, customStyles) { var _a, _b, _c; var baseButtonStyles = (0, BaseButton_styles_1.getStyles)(theme); var actionButtonStyles = { root: { padding: DEFAULT_PADDING, height: DEFAULT_BUTTON_HEIGHT, color: theme.palette.neutralPrimary, backgroundColor: 'transparent', border: '1px solid transparent', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { borderColor: 'Window', }, _a), }, rootHovered: { color: theme.palette.themePrimary, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'Highlight', }, _b), }, iconHovered: { color: theme.palette.themePrimary, }, rootPressed: { color: theme.palette.black, }, rootExpanded: { color: theme.palette.themePrimary, }, iconPressed: { color: theme.palette.themeDarker, }, rootDisabled: { color: theme.palette.neutralTertiary, backgroundColor: 'transparent', borderColor: 'transparent', selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _c), }, rootChecked: { color: theme.palette.black, }, iconChecked: { color: theme.palette.themeDarker, }, flexContainer: { justifyContent: 'flex-start', }, icon: { color: theme.palette.themeDarkAlt, }, iconDisabled: { color: 'inherit', }, menuIcon: { color: theme.palette.neutralSecondary, }, textContainer: { flexGrow: 0, }, }; return (0, Styling_1.concatStyleSets)(baseButtonStyles, actionButtonStyles, customStyles); }); //# sourceMappingURL=ActionButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.classNames.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.classNames.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getBaseButtonClassNames = exports.ButtonGlobalClassNames = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); exports.ButtonGlobalClassNames = { msButton: 'ms-Button', msButtonHasMenu: 'ms-Button--hasMenu', msButtonIcon: 'ms-Button-icon', msButtonMenuIcon: 'ms-Button-menuIcon', msButtonLabel: 'ms-Button-label', msButtonDescription: 'ms-Button-description', msButtonScreenReaderText: 'ms-Button-screenReaderText', msButtonFlexContainer: 'ms-Button-flexContainer', msButtonTextContainer: 'ms-Button-textContainer', }; exports.getBaseButtonClassNames = (0, Utilities_1.memoizeFunction)(function (theme, styles, className, variantClassName, iconClassName, menuIconClassName, disabled, hasMenu, checked, expanded, isSplit) { var _a, _b; var classNames = (0, Styling_1.getGlobalClassNames)(exports.ButtonGlobalClassNames, theme || {}); var isExpanded = expanded && !isSplit; return (0, Styling_1.mergeStyleSets)({ root: [ classNames.msButton, styles.root, variantClassName, checked && ['is-checked', styles.rootChecked], isExpanded && [ 'is-expanded', styles.rootExpanded, { selectors: (_a = {}, _a[":hover .".concat(classNames.msButtonIcon)] = styles.iconExpandedHovered, // menuIcon falls back to rootExpandedHovered to support original behavior _a[":hover .".concat(classNames.msButtonMenuIcon)] = styles.menuIconExpandedHovered || styles.rootExpandedHovered, _a[':hover'] = styles.rootExpandedHovered, _a), }, ], hasMenu && [exports.ButtonGlobalClassNames.msButtonHasMenu, styles.rootHasMenu], disabled && ['is-disabled', styles.rootDisabled], !disabled && !isExpanded && !checked && { selectors: (_b = { ':hover': styles.rootHovered }, _b[":hover .".concat(classNames.msButtonLabel)] = styles.labelHovered, _b[":hover .".concat(classNames.msButtonIcon)] = styles.iconHovered, _b[":hover .".concat(classNames.msButtonDescription)] = styles.descriptionHovered, _b[":hover .".concat(classNames.msButtonMenuIcon)] = styles.menuIconHovered, _b[':focus'] = styles.rootFocused, _b[':active'] = styles.rootPressed, _b[":active .".concat(classNames.msButtonIcon)] = styles.iconPressed, _b[":active .".concat(classNames.msButtonDescription)] = styles.descriptionPressed, _b[":active .".concat(classNames.msButtonMenuIcon)] = styles.menuIconPressed, _b), }, disabled && checked && [styles.rootCheckedDisabled], !disabled && checked && { selectors: { ':hover': styles.rootCheckedHovered, ':active': styles.rootCheckedPressed, }, }, className, ], flexContainer: [classNames.msButtonFlexContainer, styles.flexContainer], textContainer: [classNames.msButtonTextContainer, styles.textContainer], icon: [ classNames.msButtonIcon, iconClassName, styles.icon, isExpanded && styles.iconExpanded, checked && styles.iconChecked, disabled && styles.iconDisabled, ], label: [classNames.msButtonLabel, styles.label, checked && styles.labelChecked, disabled && styles.labelDisabled], menuIcon: [ classNames.msButtonMenuIcon, menuIconClassName, styles.menuIcon, checked && styles.menuIconChecked, disabled && !isSplit && styles.menuIconDisabled, !disabled && !isExpanded && !checked && { selectors: { ':hover': styles.menuIconHovered, ':active': styles.menuIconPressed, }, }, isExpanded && ['is-expanded', styles.menuIconExpanded], ], description: [ classNames.msButtonDescription, styles.description, checked && styles.descriptionChecked, disabled && styles.descriptionDisabled, ], screenReaderText: [classNames.msButtonScreenReaderText, styles.screenReaderText], }); }); //# sourceMappingURL=BaseButton.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BaseButton = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var ContextualMenu_1 = __webpack_require__(/*! ../../ContextualMenu */ "./node_modules/@fluentui/react/lib-commonjs/ContextualMenu.js"); var BaseButton_classNames_1 = __webpack_require__(/*! ./BaseButton.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.classNames.js"); var SplitButton_classNames_1 = __webpack_require__(/*! ./SplitButton/SplitButton.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/SplitButton/SplitButton.classNames.js"); var KeytipData_1 = __webpack_require__(/*! ../../KeytipData */ "./node_modules/@fluentui/react/lib-commonjs/KeytipData.js"); var Utilities_2 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var TouchIdleDelay = 500; /* ms */ var COMPONENT_NAME = 'BaseButton'; /** * {@docCategory Button} */ var BaseButton = /** @class */ (function (_super) { tslib_1.__extends(BaseButton, _super); function BaseButton(props) { var _this = _super.call(this, props) || this; _this._buttonElement = React.createRef(); _this._splitButtonContainer = React.createRef(); _this._mergedRef = (0, Utilities_1.createMergedRef)(); _this._renderedVisibleMenu = false; _this._getMemoizedMenuButtonKeytipProps = (0, Utilities_1.memoizeFunction)(function (keytipProps) { return tslib_1.__assign(tslib_1.__assign({}, keytipProps), { hasMenu: true }); }); _this._onRenderIcon = function (buttonProps, defaultRender) { var iconProps = _this.props.iconProps; if (iconProps && (iconProps.iconName !== undefined || iconProps.imageProps)) { var className = iconProps.className, imageProps = iconProps.imageProps, rest = tslib_1.__rest(iconProps, ["className", "imageProps"]); // If the styles prop is specified as part of iconProps, fall back to regular Icon as FontIcon and ImageIcon // do not have this prop. if (iconProps.styles) { return React.createElement(Icon_1.Icon, tslib_1.__assign({ className: (0, Utilities_1.css)(_this._classNames.icon, className), imageProps: imageProps }, rest)); } if (iconProps.iconName) { return React.createElement(Icon_1.FontIcon, tslib_1.__assign({ className: (0, Utilities_1.css)(_this._classNames.icon, className) }, rest)); } if (imageProps) { return React.createElement(Icon_1.ImageIcon, tslib_1.__assign({ className: (0, Utilities_1.css)(_this._classNames.icon, className), imageProps: imageProps }, rest)); } } return null; }; _this._onRenderTextContents = function () { var _a = _this.props, text = _a.text, children = _a.children, // eslint-disable-next-line deprecation/deprecation _b = _a.secondaryText, // eslint-disable-next-line deprecation/deprecation secondaryText = _b === void 0 ? _this.props.description : _b, _c = _a.onRenderText, onRenderText = _c === void 0 ? _this._onRenderText : _c, _d = _a.onRenderDescription, onRenderDescription = _d === void 0 ? _this._onRenderDescription : _d; if (text || typeof children === 'string' || secondaryText) { return (React.createElement("span", { className: _this._classNames.textContainer }, onRenderText(_this.props, _this._onRenderText), onRenderDescription(_this.props, _this._onRenderDescription))); } return [onRenderText(_this.props, _this._onRenderText), onRenderDescription(_this.props, _this._onRenderDescription)]; }; _this._onRenderText = function () { var text = _this.props.text; var children = _this.props.children; // For backwards compat, we should continue to take in the text content from children. if (text === undefined && typeof children === 'string') { text = children; } if (_this._hasText()) { return (React.createElement("span", { key: _this._labelId, className: _this._classNames.label, id: _this._labelId }, text)); } return null; }; _this._onRenderChildren = function () { var children = _this.props.children; // If children is just a string, either it or the text will be rendered via onRenderLabel // If children is another component, it will be rendered after text if (typeof children === 'string') { return null; } return children; }; _this._onRenderDescription = function (props) { // eslint-disable-next-line deprecation/deprecation var _a = props.secondaryText, secondaryText = _a === void 0 ? _this.props.description : _a; // ms-Button-description is only shown when the button type is compound. // In other cases it will not be displayed. return secondaryText ? (React.createElement("span", { key: _this._descriptionId, className: _this._classNames.description, id: _this._descriptionId }, secondaryText)) : null; }; _this._onRenderAriaDescription = function () { var ariaDescription = _this.props.ariaDescription; // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan, // otherwise it will be assigned to descriptionSpan. return ariaDescription ? (React.createElement("span", { className: _this._classNames.screenReaderText, id: _this._ariaDescriptionId }, ariaDescription)) : null; }; _this._onRenderMenuIcon = function (props) { var menuIconProps = _this.props.menuIconProps; return React.createElement(Icon_1.FontIcon, tslib_1.__assign({ iconName: "ChevronDown" }, menuIconProps, { className: _this._classNames.menuIcon })); }; _this._onRenderMenu = function (menuProps) { var MenuType = _this.props.menuAs ? (0, Utilities_2.composeComponentAs)(_this.props.menuAs, ContextualMenu_1.ContextualMenu) : ContextualMenu_1.ContextualMenu; return React.createElement(MenuType, tslib_1.__assign({}, menuProps)); }; _this._onDismissMenu = function (ev) { var menuProps = _this.props.menuProps; if (menuProps && menuProps.onDismiss) { menuProps.onDismiss(ev); } if (!ev || !ev.defaultPrevented) { _this._dismissMenu(); } }; _this._dismissMenu = function () { _this._menuShouldFocusOnMount = undefined; _this._menuShouldFocusOnContainer = undefined; _this.setState({ menuHidden: true }); }; _this._openMenu = function (shouldFocusOnContainer, shouldFocusOnMount) { if (shouldFocusOnMount === void 0) { shouldFocusOnMount = true; } if (_this.props.menuProps) { _this._menuShouldFocusOnContainer = shouldFocusOnContainer; _this._menuShouldFocusOnMount = shouldFocusOnMount; _this._renderedVisibleMenu = true; _this.setState({ menuHidden: false }); } }; _this._onToggleMenu = function (shouldFocusOnContainer) { var shouldFocusOnMount = true; if (_this.props.menuProps && _this.props.menuProps.shouldFocusOnMount === false) { shouldFocusOnMount = false; } _this.state.menuHidden ? _this._openMenu(shouldFocusOnContainer, shouldFocusOnMount) : _this._dismissMenu(); }; _this._onSplitContainerFocusCapture = function (ev) { var container = _this._splitButtonContainer.current; // If the target is coming from the portal we do not need to set focus on the container. if (!container || (ev.target && (0, Utilities_1.portalContainsElement)(ev.target, container))) { return; } // We should never be able to focus the individual buttons in a split button. Focus // should always remain on the container. container.focus(); }; _this._onSplitButtonPrimaryClick = function (ev) { if (!_this.state.menuHidden) { _this._dismissMenu(); } // toggle split buttons need two separate targets, even for touch var singleTouchTarget = _this._processingTouch && !_this.props.toggle; if (!singleTouchTarget && _this.props.onClick) { _this.props.onClick(ev); } else if (singleTouchTarget) { _this._onMenuClick(ev); } }; _this._onKeyDown = function (ev) { // explicity cancelling event so click won't fire after this // eslint-disable-next-line deprecation/deprecation if (_this.props.disabled && (ev.which === Utilities_1.KeyCodes.enter || ev.which === Utilities_1.KeyCodes.space)) { ev.preventDefault(); ev.stopPropagation(); } else if (!_this.props.disabled) { if (_this.props.menuProps) { _this._onMenuKeyDown(ev); } else if (_this.props.onKeyDown !== undefined) { _this.props.onKeyDown(ev); // not cancelling event because it's not disabled } } }; _this._onKeyUp = function (ev) { if (!_this.props.disabled && _this.props.onKeyUp !== undefined) { _this.props.onKeyUp(ev); // not cancelling event because it's not disabled } }; _this._onKeyPress = function (ev) { // eslint-disable-next-line deprecation/deprecation if (!_this.props.disabled && _this.props.onKeyPress !== undefined) { // eslint-disable-next-line deprecation/deprecation _this.props.onKeyPress(ev); // not cancelling event because it's not disabled } }; _this._onMouseUp = function (ev) { if (!_this.props.disabled && _this.props.onMouseUp !== undefined) { _this.props.onMouseUp(ev); // not cancelling event because it's not disabled } }; _this._onMouseDown = function (ev) { if (!_this.props.disabled && _this.props.onMouseDown !== undefined) { _this.props.onMouseDown(ev); // not cancelling event because it's not disabled } }; _this._onClick = function (ev) { if (!_this.props.disabled) { if (_this.props.menuProps) { _this._onMenuClick(ev); } else if (_this.props.onClick !== undefined) { _this.props.onClick(ev); // not cancelling event because it's not disabled } } }; _this._onSplitButtonContainerKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter || ev.which === Utilities_1.KeyCodes.space) { if (_this._buttonElement.current) { _this._buttonElement.current.click(); ev.preventDefault(); ev.stopPropagation(); } } else { _this._onMenuKeyDown(ev); } }; _this._onMenuKeyDown = function (ev) { var _a; if (_this.props.disabled) { return; } if (_this.props.onKeyDown) { _this.props.onKeyDown(ev); } // eslint-disable-next-line deprecation/deprecation var isUp = ev.which === Utilities_1.KeyCodes.up; // eslint-disable-next-line deprecation/deprecation var isDown = ev.which === Utilities_1.KeyCodes.down; if (!ev.defaultPrevented && _this._isValidMenuOpenKey(ev)) { var onMenuClick = _this.props.onMenuClick; if (onMenuClick) { onMenuClick(ev, _this.props); } _this._onToggleMenu(false); ev.preventDefault(); ev.stopPropagation(); } // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter || ev.which === Utilities_1.KeyCodes.space) { // We manually set the focus visibility to true if opening via Enter or Space to account for the scenario where // a user clicks on the button, closes the menu and then opens it via keyboard. In this scenario our default logic // for setting focus visibility is not triggered since there is no keyboard navigation present beforehand. (0, Utilities_1.setFocusVisibility)(true, ev.target, (_a = _this.context) === null || _a === void 0 ? void 0 : _a.registeredProviders); } if (!(ev.altKey || ev.metaKey) && (isUp || isDown)) { // Suppose a menu, with shouldFocusOnMount: false, is open, and user wants to keyboard to the menu items // We need to re-render the menu with shouldFocusOnMount as true. if (!_this.state.menuHidden && _this.props.menuProps) { var currentShouldFocusOnMount = _this._menuShouldFocusOnMount !== undefined ? _this._menuShouldFocusOnMount : _this.props.menuProps.shouldFocusOnMount; if (!currentShouldFocusOnMount) { ev.preventDefault(); ev.stopPropagation(); _this._menuShouldFocusOnMount = true; _this.forceUpdate(); } } } }; _this._onTouchStart = function () { if (_this._isSplitButton && _this._splitButtonContainer.current && !('onpointerdown' in _this._splitButtonContainer.current)) { _this._handleTouchAndPointerEvent(); } }; _this._onMenuClick = function (ev) { var _a = _this.props, onMenuClick = _a.onMenuClick, menuProps = _a.menuProps; if (onMenuClick) { onMenuClick(ev, _this.props); } // focus on the container by default when the menu is opened with a click event // this differentiates from a keyboard interaction triggering the click event var shouldFocusOnContainer = typeof (menuProps === null || menuProps === void 0 ? void 0 : menuProps.shouldFocusOnContainer) === 'boolean' ? menuProps.shouldFocusOnContainer : ev.nativeEvent.pointerType === 'mouse'; if (!ev.defaultPrevented) { _this._onToggleMenu(shouldFocusOnContainer); ev.preventDefault(); ev.stopPropagation(); } }; (0, Utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); _this._events = new Utilities_1.EventGroup(_this); (0, Utilities_1.warnConditionallyRequiredProps)(COMPONENT_NAME, props, ['menuProps', 'onClick'], 'split', _this.props.split); (0, Utilities_1.warnDeprecations)(COMPONENT_NAME, props, { rootProps: undefined, description: 'secondaryText', toggled: 'checked', }); _this._labelId = (0, Utilities_1.getId)(); _this._descriptionId = (0, Utilities_1.getId)(); _this._ariaDescriptionId = (0, Utilities_1.getId)(); _this.state = { menuHidden: true, }; return _this; } Object.defineProperty(BaseButton.prototype, "_isSplitButton", { get: function () { return !!this.props.menuProps && !!this.props.onClick && this.props.split === true; }, enumerable: false, configurable: true }); BaseButton.prototype.render = function () { var _a; var _b = this.props, ariaDescription = _b.ariaDescription, ariaLabel = _b.ariaLabel, ariaHidden = _b.ariaHidden, className = _b.className, disabled = _b.disabled, allowDisabledFocus = _b.allowDisabledFocus, primaryDisabled = _b.primaryDisabled, // eslint-disable-next-line deprecation/deprecation _c = _b.secondaryText, // eslint-disable-next-line deprecation/deprecation secondaryText = _c === void 0 ? this.props.description : _c, href = _b.href, iconProps = _b.iconProps, menuIconProps = _b.menuIconProps, styles = _b.styles, checked = _b.checked, variantClassName = _b.variantClassName, theme = _b.theme, toggle = _b.toggle, getClassNames = _b.getClassNames, role = _b.role; var menuHidden = this.state.menuHidden; // Button is disabled if the whole button (in case of splitButton is disabled) or if the primary action is disabled var isPrimaryButtonDisabled = disabled || primaryDisabled; this._classNames = getClassNames ? getClassNames(theme, className, variantClassName, iconProps && iconProps.className, menuIconProps && menuIconProps.className, isPrimaryButtonDisabled, checked, !menuHidden, !!this.props.menuProps, this.props.split, !!allowDisabledFocus) : (0, BaseButton_classNames_1.getBaseButtonClassNames)(theme, styles, className, variantClassName, iconProps && iconProps.className, menuIconProps && menuIconProps.className, isPrimaryButtonDisabled, !!this.props.menuProps, checked, !menuHidden, this.props.split); var _d = this, _ariaDescriptionId = _d._ariaDescriptionId, _labelId = _d._labelId, _descriptionId = _d._descriptionId; // Anchor tag cannot be disabled hence in disabled state rendering // anchor button as normal button var renderAsAnchor = !isPrimaryButtonDisabled && !!href; var tag = renderAsAnchor ? 'a' : 'button'; var nativeProps = (0, Utilities_1.getNativeProps)( // eslint-disable-next-line deprecation/deprecation (0, Utilities_1.assign)(renderAsAnchor ? {} : { type: 'button' }, this.props.rootProps, this.props), renderAsAnchor ? Utilities_1.anchorProperties : Utilities_1.buttonProperties, [ 'disabled', // let disabled buttons be focused and styled as disabled. ]); // Check for ariaLabel passed in via Button props, and fall back to aria-label passed in via native props var resolvedAriaLabel = ariaLabel || nativeProps['aria-label']; // Check for ariaDescription, secondaryText or aria-describedby in the native props to determine source of // aria-describedby. Otherwise default to undefined so property does not appear in output. var ariaDescribedBy = undefined; if (ariaDescription) { ariaDescribedBy = _ariaDescriptionId; } else if (secondaryText && this.props.onRenderDescription !== Utilities_1.nullRender) { // for buttons like CompoundButton with a valid onRenderDescription, we need to set an ariaDescribedBy // for buttons that do not render anything (via nullRender), we should not set an ariaDescribedBy ariaDescribedBy = _descriptionId; } else if (nativeProps['aria-describedby']) { ariaDescribedBy = nativeProps['aria-describedby']; } // If an explicit aria-labelledby is given, use that and we're done. // If any kind of description is given (which will end up as an aria-describedby attribute) // and no ariaLabel is specified, set the labelledby element. // Otherwise, the button is labeled implicitly by the descendent text on the button (if it exists). var ariaLabelledBy = undefined; if (nativeProps['aria-labelledby']) { ariaLabelledBy = nativeProps['aria-labelledby']; } else if (ariaDescribedBy && !resolvedAriaLabel) { ariaLabelledBy = this._hasText() ? _labelId : undefined; } var dataIsFocusable = this.props['data-is-focusable'] === false || (disabled && !allowDisabledFocus) || this._isSplitButton ? false : true; var isCheckboxTypeRole = role === 'menuitemcheckbox' || role === 'checkbox'; // if isCheckboxTypeRole, always return a checked value. // Otherwise only return checked value if toggle is set to true. // This is because role="checkbox" always needs to have an aria-checked value // but our checked prop only sets aria-pressed if we mark the button as a toggle="true" var checkedOrPressedValue = isCheckboxTypeRole ? !!checked : toggle === true ? !!checked : undefined; var buttonProps = (0, Utilities_1.assign)(nativeProps, (_a = { className: this._classNames.root, // eslint-disable-next-line deprecation/deprecation ref: this._mergedRef(this.props.elementRef, this._buttonElement), disabled: isPrimaryButtonDisabled && !allowDisabledFocus, onKeyDown: this._onKeyDown, onKeyPress: this._onKeyPress, onKeyUp: this._onKeyUp, onMouseDown: this._onMouseDown, onMouseUp: this._onMouseUp, onClick: this._onClick, 'aria-label': resolvedAriaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, 'aria-disabled': isPrimaryButtonDisabled, 'data-is-focusable': dataIsFocusable }, // aria-pressed attribute should only be present for toggle buttons // aria-checked attribute should only be present for toggle buttons with checkbox type role _a[isCheckboxTypeRole ? 'aria-checked' : 'aria-pressed'] = checkedOrPressedValue, _a)); if (ariaHidden) { buttonProps['aria-hidden'] = true; } if (this._isSplitButton) { return this._onRenderSplitButtonContent(tag, buttonProps); } else if (this.props.menuProps) { var _e = this.props.menuProps.id, id = _e === void 0 ? "".concat(this._labelId, "-menu") : _e; (0, Utilities_1.assign)(buttonProps, { 'aria-expanded': !menuHidden, 'aria-controls': !menuHidden ? id : null, 'aria-haspopup': true, }); } return this._onRenderContent(tag, buttonProps); }; BaseButton.prototype.componentDidMount = function () { // For split buttons, touching anywhere in the button should drop the dropdown, which should contain the // primary action. This gives more hit target space for touch environments. We're setting the onpointerdown here, // because React does not support Pointer events yet. if (this._isSplitButton && this._splitButtonContainer.current) { if ('onpointerdown' in this._splitButtonContainer.current) { this._events.on(this._splitButtonContainer.current, 'pointerdown', this._onPointerDown, true); } if ('onpointerup' in this._splitButtonContainer.current && this.props.onPointerUp) { this._events.on(this._splitButtonContainer.current, 'pointerup', this.props.onPointerUp, true); } } }; BaseButton.prototype.componentDidUpdate = function (prevProps, prevState) { // If Button's menu was closed, run onAfterMenuDismiss. if (this.props.onAfterMenuDismiss && !prevState.menuHidden && this.state.menuHidden) { this.props.onAfterMenuDismiss(); } }; BaseButton.prototype.componentWillUnmount = function () { this._async.dispose(); this._events.dispose(); }; BaseButton.prototype.focus = function () { var _a, _b; if (this._isSplitButton && this._splitButtonContainer.current) { (0, Utilities_1.setFocusVisibility)(true, undefined, (_a = this.context) === null || _a === void 0 ? void 0 : _a.registeredProviders); this._splitButtonContainer.current.focus(); } else if (this._buttonElement.current) { (0, Utilities_1.setFocusVisibility)(true, undefined, (_b = this.context) === null || _b === void 0 ? void 0 : _b.registeredProviders); this._buttonElement.current.focus(); } }; BaseButton.prototype.dismissMenu = function () { this._dismissMenu(); }; BaseButton.prototype.openMenu = function (shouldFocusOnContainer, shouldFocusOnMount) { this._openMenu(shouldFocusOnContainer, shouldFocusOnMount); }; BaseButton.prototype._onRenderContent = function (tag, buttonProps) { var _this = this; var props = this.props; var Tag = tag; var menuIconProps = props.menuIconProps, menuProps = props.menuProps, _a = props.onRenderIcon, onRenderIcon = _a === void 0 ? this._onRenderIcon : _a, _b = props.onRenderAriaDescription, onRenderAriaDescription = _b === void 0 ? this._onRenderAriaDescription : _b, _c = props.onRenderChildren, onRenderChildren = _c === void 0 ? this._onRenderChildren : _c, // eslint-disable-next-line deprecation/deprecation _d = props.onRenderMenu, // eslint-disable-next-line deprecation/deprecation onRenderMenu = _d === void 0 ? this._onRenderMenu : _d, _e = props.onRenderMenuIcon, onRenderMenuIcon = _e === void 0 ? this._onRenderMenuIcon : _e, disabled = props.disabled; var keytipProps = props.keytipProps; if (keytipProps && menuProps) { keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps); } var Button = function (keytipAttributes) { return (React.createElement(Tag, tslib_1.__assign({}, buttonProps, keytipAttributes), React.createElement("span", { className: _this._classNames.flexContainer, "data-automationid": "splitbuttonprimary" }, onRenderIcon(props, _this._onRenderIcon), _this._onRenderTextContents(), onRenderAriaDescription(props, _this._onRenderAriaDescription), onRenderChildren(props, _this._onRenderChildren), !_this._isSplitButton && (menuProps || menuIconProps || _this.props.onRenderMenuIcon) && onRenderMenuIcon(_this.props, _this._onRenderMenuIcon), menuProps && !menuProps.doNotLayer && _this._shouldRenderMenu() && onRenderMenu(_this._getMenuProps(menuProps), _this._onRenderMenu)))); }; var Content = keytipProps ? ( // If we're making a split button, we won't put the keytip here React.createElement(KeytipData_1.KeytipData, { keytipProps: !this._isSplitButton ? keytipProps : undefined, ariaDescribedBy: buttonProps['aria-describedby'], disabled: disabled }, function (keytipAttributes) { return Button(keytipAttributes); })) : (Button()); if (menuProps && menuProps.doNotLayer) { return (React.createElement(React.Fragment, null, Content, this._shouldRenderMenu() && onRenderMenu(this._getMenuProps(menuProps), this._onRenderMenu))); } return (React.createElement(React.Fragment, null, Content, React.createElement(Utilities_1.FocusRects, null))); }; /** * Method to help determine if the menu's component tree should * be rendered. It takes into account whether the menu is expanded, * whether it is a persisted menu and whether it has been shown to the user. */ BaseButton.prototype._shouldRenderMenu = function () { var menuHidden = this.state.menuHidden; // eslint-disable-next-line deprecation/deprecation var _a = this.props, persistMenu = _a.persistMenu, renderPersistedMenuHiddenOnMount = _a.renderPersistedMenuHiddenOnMount; if (!menuHidden) { // Always should render a menu when it is expanded return true; } else if (persistMenu && (this._renderedVisibleMenu || renderPersistedMenuHiddenOnMount)) { // _renderedVisibleMenu ensures that the first rendering of // the menu happens on-screen, as edge's scrollbar calculations are off if done while hidden. return true; } return false; }; BaseButton.prototype._hasText = function () { // _onRenderTextContents and _onRenderText do not perform the same checks. Below is parity with what _onRenderText // used to have before the refactor that introduced this function. _onRenderTextContents does not require props. // text to be undefined in order for props.children to be used as a fallback. // Purely a code maintainability/reuse issue, but logged as Issue #4979. return this.props.text !== null && (this.props.text !== undefined || typeof this.props.children === 'string'); }; BaseButton.prototype._getMenuProps = function (menuProps) { var persistMenu = this.props.persistMenu; var menuHidden = this.state.menuHidden; // the accessible menu label (accessible name) has a relationship to the button. // If the menu props do not specify an explicit value for aria-label or aria-labelledBy, // AND the button has text, we'll set the menu aria-labelledBy to the text element id. if (!menuProps.ariaLabel && !menuProps.labelElementId && this._hasText()) { menuProps = tslib_1.__assign(tslib_1.__assign({}, menuProps), { labelElementId: this._labelId }); } return tslib_1.__assign(tslib_1.__assign({ id: this._labelId + '-menu', directionalHint: DirectionalHint_1.DirectionalHint.bottomLeftEdge }, menuProps), { shouldFocusOnContainer: this._menuShouldFocusOnContainer, shouldFocusOnMount: this._menuShouldFocusOnMount, hidden: persistMenu ? menuHidden : undefined, className: (0, Utilities_1.css)('ms-BaseButton-menuhost', menuProps.className), target: this._isSplitButton ? this._splitButtonContainer.current : this._buttonElement.current, onDismiss: this._onDismissMenu }); }; BaseButton.prototype._onRenderSplitButtonContent = function (tag, buttonProps) { var _this = this; var _a = this.props, _b = _a.styles, styles = _b === void 0 ? {} : _b, disabled = _a.disabled, allowDisabledFocus = _a.allowDisabledFocus, checked = _a.checked, getSplitButtonClassNames = _a.getSplitButtonClassNames, primaryDisabled = _a.primaryDisabled, menuProps = _a.menuProps, toggle = _a.toggle, role = _a.role, primaryActionButtonProps = _a.primaryActionButtonProps; var keytipProps = this.props.keytipProps; var menuHidden = this.state.menuHidden; var classNames = getSplitButtonClassNames ? getSplitButtonClassNames(!!disabled, !menuHidden, !!checked, !!allowDisabledFocus) : styles && (0, SplitButton_classNames_1.getSplitButtonClassNames)(styles, !!disabled, !menuHidden, !!checked, !!primaryDisabled); (0, Utilities_1.assign)(buttonProps, { onClick: undefined, onPointerDown: undefined, onPointerUp: undefined, tabIndex: -1, 'data-is-focusable': false, }); if (keytipProps && menuProps) { keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps); } var containerProps = (0, Utilities_1.getNativeProps)(buttonProps, [], ['disabled']); // Add additional props to apply on primary action button if (primaryActionButtonProps) { (0, Utilities_1.assign)(buttonProps, primaryActionButtonProps); } var SplitButton = function (keytipAttributes) { return (React.createElement("div", tslib_1.__assign({}, containerProps, { "data-ktp-target": keytipAttributes ? keytipAttributes['data-ktp-target'] : undefined, role: role ? role : 'button', "aria-disabled": disabled, "aria-haspopup": true, "aria-expanded": !menuHidden, "aria-pressed": toggle ? !!checked : undefined, "aria-describedby": (0, Utilities_1.mergeAriaAttributeValues)(buttonProps['aria-describedby'], keytipAttributes ? keytipAttributes['aria-describedby'] : undefined), className: classNames && classNames.splitButtonContainer, onKeyDown: _this._onSplitButtonContainerKeyDown, onTouchStart: _this._onTouchStart, ref: _this._splitButtonContainer, "data-is-focusable": true, onClick: !disabled && !primaryDisabled ? _this._onSplitButtonPrimaryClick : undefined, tabIndex: (!disabled && !primaryDisabled) || allowDisabledFocus ? 0 : undefined, "aria-roledescription": buttonProps['aria-roledescription'], onFocusCapture: _this._onSplitContainerFocusCapture }), React.createElement("span", { style: { display: 'flex', width: '100%' } }, _this._onRenderContent(tag, buttonProps), _this._onRenderSplitButtonMenuButton(classNames, keytipAttributes), _this._onRenderSplitButtonDivider(classNames)))); }; return keytipProps ? (React.createElement(KeytipData_1.KeytipData, { keytipProps: keytipProps, disabled: disabled }, function (keytipAttributes) { return SplitButton(keytipAttributes); })) : (SplitButton()); }; BaseButton.prototype._onRenderSplitButtonDivider = function (classNames) { if (classNames && classNames.divider) { var onClick = function (ev) { ev.stopPropagation(); }; return React.createElement("span", { className: classNames.divider, "aria-hidden": true, onClick: onClick }); } return null; }; BaseButton.prototype._onRenderSplitButtonMenuButton = function (classNames, keytipAttributes) { var _a = this.props, allowDisabledFocus = _a.allowDisabledFocus, checked = _a.checked, disabled = _a.disabled, splitButtonMenuProps = _a.splitButtonMenuProps, splitButtonAriaLabel = _a.splitButtonAriaLabel, primaryDisabled = _a.primaryDisabled; var menuHidden = this.state.menuHidden; var menuIconProps = this.props.menuIconProps; if (menuIconProps === undefined) { menuIconProps = { iconName: 'ChevronDown', }; } var splitButtonProps = tslib_1.__assign(tslib_1.__assign({}, splitButtonMenuProps), { styles: classNames, checked: checked, disabled: disabled, allowDisabledFocus: allowDisabledFocus, onClick: this._onMenuClick, menuProps: undefined, iconProps: tslib_1.__assign(tslib_1.__assign({}, menuIconProps), { className: this._classNames.menuIcon }), ariaLabel: splitButtonAriaLabel, 'aria-haspopup': true, 'aria-expanded': !menuHidden, 'data-is-focusable': false }); // Add data-ktp-execute-target to the split button if the keytip is defined return (React.createElement(BaseButton, tslib_1.__assign({}, splitButtonProps, { "data-ktp-execute-target": keytipAttributes ? keytipAttributes['data-ktp-execute-target'] : keytipAttributes, onMouseDown: this._onMouseDown, tabIndex: primaryDisabled && !allowDisabledFocus ? 0 : -1 }))); }; BaseButton.prototype._onPointerDown = function (ev) { var onPointerDown = this.props.onPointerDown; if (onPointerDown) { onPointerDown(ev); } if (ev.pointerType === 'touch') { this._handleTouchAndPointerEvent(); ev.preventDefault(); ev.stopImmediatePropagation(); } }; BaseButton.prototype._handleTouchAndPointerEvent = function () { var _this = this; // If we already have an existing timeout from a previous touch and pointer event // cancel that timeout so we can set a new one. if (this._lastTouchTimeoutId !== undefined) { this._async.clearTimeout(this._lastTouchTimeoutId); this._lastTouchTimeoutId = undefined; } this._processingTouch = true; this._lastTouchTimeoutId = this._async.setTimeout(function () { _this._processingTouch = false; _this._lastTouchTimeoutId = undefined; // Touch and pointer events don't focus the button naturally, // so adding an imperative focus call to guarantee this behavior. // Only focus the button if a splitbutton menu is not open if (_this.state.menuHidden) { _this.focus(); } }, TouchIdleDelay); }; /** * Returns if the user hits a valid keyboard key to open the menu * @param ev - the keyboard event * @returns True if user clicks on custom trigger key if enabled or alt + down arrow if not. False otherwise. */ BaseButton.prototype._isValidMenuOpenKey = function (ev) { if (this.props.menuTriggerKeyCode) { // eslint-disable-next-line deprecation/deprecation return ev.which === this.props.menuTriggerKeyCode; } else if (this.props.menuProps) { // eslint-disable-next-line deprecation/deprecation return ev.which === Utilities_1.KeyCodes.down && (ev.altKey || ev.metaKey); } // Note: When enter is pressed, we will let the event continue to propagate // to trigger the onClick event on the button return false; }; BaseButton.defaultProps = { baseClassName: 'ms-Button', styles: {}, split: false, }; // needed to access registeredProviders when manually setting focus visibility BaseButton.contextType = Utilities_1.FocusRectsContext; return BaseButton; }(React.Component)); exports.BaseButton = BaseButton; //# sourceMappingURL=BaseButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.styles.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.styles.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var noOutline = { outline: 0, }; var iconStyle = function (fontSize) { return { fontSize: fontSize, margin: '0 4px', height: '16px', lineHeight: '16px', textAlign: 'center', flexShrink: 0, }; }; /** * Gets the base button styles. Note: because it is a base class to be used with the `mergeRules` * helper, it should have values for all class names in the interface. This let `mergeRules` optimize * mixing class names together. */ exports.getStyles = (0, Utilities_1.memoizeFunction)(function (theme) { var _a, _b; var semanticColors = theme.semanticColors, effects = theme.effects, fonts = theme.fonts; var border = semanticColors.buttonBorder; var disabledBackground = semanticColors.disabledBackground; var disabledText = semanticColors.disabledText; var buttonHighContrastFocus = { left: -2, top: -2, bottom: -2, right: -2, outlineColor: 'ButtonText', }; return { root: [ (0, Styling_1.getFocusStyle)(theme, { inset: 1, highContrastStyle: buttonHighContrastFocus, borderColor: 'transparent' }), theme.fonts.medium, { border: '1px solid ' + border, borderRadius: effects.roundedCorner2, boxSizing: 'border-box', cursor: 'pointer', display: 'inline-block', padding: '0 16px', textDecoration: 'none', textAlign: 'center', userSelect: 'none', selectors: { // IE11 workaround for preventing shift of child elements of a button when active. ':active > span': { position: 'relative', left: 0, top: 0, }, }, }, ], rootDisabled: [ (0, Styling_1.getFocusStyle)(theme, { inset: 1, highContrastStyle: buttonHighContrastFocus, borderColor: 'transparent' }), { backgroundColor: disabledBackground, borderColor: disabledBackground, color: disabledText, cursor: 'default', selectors: { ':hover': noOutline, ':focus': noOutline, }, }, ], iconDisabled: { color: disabledText, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _a), }, menuIconDisabled: { color: disabledText, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _b), }, flexContainer: { display: 'flex', height: '100%', flexWrap: 'nowrap', justifyContent: 'center', alignItems: 'center', }, description: { display: 'block', }, textContainer: { flexGrow: 1, display: 'block', }, icon: iconStyle(fonts.mediumPlus.fontSize), menuIcon: iconStyle(fonts.small.fontSize), label: { margin: '0 4px', lineHeight: '100%', display: 'block', }, screenReaderText: Styling_1.hiddenContentStyle, }; }); //# sourceMappingURL=BaseButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/Button.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/Button.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Button = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Button_types_1 = __webpack_require__(/*! ./Button.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/Button.types.js"); var DefaultButton_1 = __webpack_require__(/*! ./DefaultButton/DefaultButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/DefaultButton/DefaultButton.js"); var ActionButton_1 = __webpack_require__(/*! ./ActionButton/ActionButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/ActionButton/ActionButton.js"); var CompoundButton_1 = __webpack_require__(/*! ./CompoundButton/CompoundButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/CompoundButton/CompoundButton.js"); var IconButton_1 = __webpack_require__(/*! ./IconButton/IconButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/IconButton/IconButton.js"); var PrimaryButton_1 = __webpack_require__(/*! ./PrimaryButton/PrimaryButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/PrimaryButton/PrimaryButton.js"); /** * This class is deprecated. Use the individual *Button components instead. * @deprecated Use the individual *Button components instead. * {@docCategory Button} */ var Button = /** @class */ (function (_super) { tslib_1.__extends(Button, _super); function Button(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.warn)("The Button component has been deprecated. Use specific variants instead. " + "(PrimaryButton, DefaultButton, IconButton, ActionButton, etc.)"); return _this; } Button.prototype.render = function () { var props = this.props; // eslint-disable-next-line deprecation/deprecation switch (props.buttonType) { case Button_types_1.ButtonType.command: return React.createElement(ActionButton_1.ActionButton, tslib_1.__assign({}, props)); case Button_types_1.ButtonType.compound: return React.createElement(CompoundButton_1.CompoundButton, tslib_1.__assign({}, props)); case Button_types_1.ButtonType.icon: return React.createElement(IconButton_1.IconButton, tslib_1.__assign({}, props)); case Button_types_1.ButtonType.primary: return React.createElement(PrimaryButton_1.PrimaryButton, tslib_1.__assign({}, props)); default: return React.createElement(DefaultButton_1.DefaultButton, tslib_1.__assign({}, props)); } }; return Button; }(React.Component)); exports.Button = Button; //# sourceMappingURL=Button.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/Button.types.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/Button.types.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ButtonType = exports.ElementType = void 0; /** * {@docCategory Button} */ var ElementType; (function (ElementType) { /** `button` element. */ ElementType[ElementType["button"] = 0] = "button"; /** `a` element. */ ElementType[ElementType["anchor"] = 1] = "anchor"; })(ElementType = exports.ElementType || (exports.ElementType = {})); /** * {@docCategory Button} */ var ButtonType; (function (ButtonType) { ButtonType[ButtonType["normal"] = 0] = "normal"; ButtonType[ButtonType["primary"] = 1] = "primary"; ButtonType[ButtonType["hero"] = 2] = "hero"; ButtonType[ButtonType["compound"] = 3] = "compound"; ButtonType[ButtonType["command"] = 4] = "command"; ButtonType[ButtonType["icon"] = 5] = "icon"; ButtonType[ButtonType["default"] = 6] = "default"; })(ButtonType = exports.ButtonType || (exports.ButtonType = {})); //# sourceMappingURL=Button.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/ButtonThemes.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/ButtonThemes.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.primaryStyles = exports.standardStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var splitButtonDividerBaseStyles = function () { return { position: 'absolute', width: 1, right: 31, top: 8, bottom: 8, }; }; function standardStyles(theme) { var _a, _b, _c, _d, _e; var s = theme.semanticColors, p = theme.palette; var buttonBackground = s.buttonBackground; var buttonBackgroundPressed = s.buttonBackgroundPressed; var buttonBackgroundHovered = s.buttonBackgroundHovered; var buttonBackgroundDisabled = s.buttonBackgroundDisabled; var buttonText = s.buttonText; var buttonTextHovered = s.buttonTextHovered; var buttonTextDisabled = s.buttonTextDisabled; var buttonTextChecked = s.buttonTextChecked; var buttonTextCheckedHovered = s.buttonTextCheckedHovered; return { root: { backgroundColor: buttonBackground, color: buttonText, }, rootHovered: { backgroundColor: buttonBackgroundHovered, color: buttonTextHovered, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { borderColor: 'Highlight', color: 'Highlight', }, _a), }, rootPressed: { backgroundColor: buttonBackgroundPressed, color: buttonTextChecked, }, rootExpanded: { backgroundColor: buttonBackgroundPressed, color: buttonTextChecked, }, rootChecked: { backgroundColor: buttonBackgroundPressed, color: buttonTextChecked, }, rootCheckedHovered: { backgroundColor: buttonBackgroundPressed, color: buttonTextCheckedHovered, }, rootDisabled: { color: buttonTextDisabled, backgroundColor: buttonBackgroundDisabled, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'GrayText', borderColor: 'GrayText', backgroundColor: 'Window', }, _b), }, // Split button styles splitButtonContainer: { selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { border: 'none', }, _c), }, splitButtonMenuButton: { color: p.white, backgroundColor: 'transparent', selectors: { ':hover': { backgroundColor: p.neutralLight, selectors: (_d = {}, _d[Styling_1.HighContrastSelector] = { color: 'Highlight', }, _d), }, }, }, splitButtonMenuButtonDisabled: { backgroundColor: s.buttonBackgroundDisabled, selectors: { ':hover': { backgroundColor: s.buttonBackgroundDisabled, }, }, }, splitButtonDivider: tslib_1.__assign(tslib_1.__assign({}, splitButtonDividerBaseStyles()), { backgroundColor: p.neutralTertiaryAlt, selectors: (_e = {}, _e[Styling_1.HighContrastSelector] = { backgroundColor: 'WindowText', }, _e) }), splitButtonDividerDisabled: { backgroundColor: theme.palette.neutralTertiaryAlt, }, splitButtonMenuButtonChecked: { backgroundColor: p.neutralQuaternaryAlt, selectors: { ':hover': { backgroundColor: p.neutralQuaternaryAlt, }, }, }, splitButtonMenuButtonExpanded: { backgroundColor: p.neutralQuaternaryAlt, selectors: { ':hover': { backgroundColor: p.neutralQuaternaryAlt, }, }, }, splitButtonMenuIcon: { color: s.buttonText, }, splitButtonMenuIconDisabled: { color: s.buttonTextDisabled, }, }; } exports.standardStyles = standardStyles; function primaryStyles(theme) { var _a, _b, _c, _d, _e, _f, _g, _h, _j; var p = theme.palette, s = theme.semanticColors; return { root: { backgroundColor: s.primaryButtonBackground, border: "1px solid ".concat(s.primaryButtonBackground), color: s.primaryButtonText, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'Window', backgroundColor: 'WindowText', borderColor: 'WindowText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus")] = { selectors: { ':after': { border: "none", outlineColor: p.white, }, }, }, _a), }, rootHovered: { backgroundColor: s.primaryButtonBackgroundHovered, border: "1px solid ".concat(s.primaryButtonBackgroundHovered), color: s.primaryButtonTextHovered, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'Window', backgroundColor: 'Highlight', borderColor: 'Highlight', }, _b), }, rootPressed: { backgroundColor: s.primaryButtonBackgroundPressed, border: "1px solid ".concat(s.primaryButtonBackgroundPressed), color: s.primaryButtonTextPressed, selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'Window', backgroundColor: 'WindowText', borderColor: 'WindowText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _c), }, rootExpanded: { backgroundColor: s.primaryButtonBackgroundPressed, color: s.primaryButtonTextPressed, }, rootChecked: { backgroundColor: s.primaryButtonBackgroundPressed, color: s.primaryButtonTextPressed, }, rootCheckedHovered: { backgroundColor: s.primaryButtonBackgroundPressed, color: s.primaryButtonTextPressed, }, rootDisabled: { color: s.primaryButtonTextDisabled, backgroundColor: s.primaryButtonBackgroundDisabled, selectors: (_d = {}, _d[Styling_1.HighContrastSelector] = { color: 'GrayText', borderColor: 'GrayText', backgroundColor: 'Window', }, _d), }, // Split button styles splitButtonContainer: { selectors: (_e = {}, _e[Styling_1.HighContrastSelector] = { border: 'none', }, _e), }, splitButtonDivider: tslib_1.__assign(tslib_1.__assign({}, splitButtonDividerBaseStyles()), { backgroundColor: p.white, selectors: (_f = {}, _f[Styling_1.HighContrastSelector] = { backgroundColor: 'Window', }, _f) }), splitButtonMenuButton: { backgroundColor: s.primaryButtonBackground, color: s.primaryButtonText, selectors: (_g = {}, _g[Styling_1.HighContrastSelector] = { backgroundColor: 'Canvas', }, _g[':hover'] = { backgroundColor: s.primaryButtonBackgroundHovered, selectors: (_h = {}, _h[Styling_1.HighContrastSelector] = { color: 'Highlight', }, _h), }, _g), }, splitButtonMenuButtonDisabled: { backgroundColor: s.primaryButtonBackgroundDisabled, selectors: { ':hover': { backgroundColor: s.primaryButtonBackgroundDisabled, }, }, }, splitButtonMenuButtonChecked: { backgroundColor: s.primaryButtonBackgroundPressed, selectors: { ':hover': { backgroundColor: s.primaryButtonBackgroundPressed, }, }, }, splitButtonMenuButtonExpanded: { backgroundColor: s.primaryButtonBackgroundPressed, selectors: { ':hover': { backgroundColor: s.primaryButtonBackgroundPressed, }, }, }, splitButtonMenuIcon: { color: s.primaryButtonText, }, splitButtonMenuIconDisabled: { color: p.neutralTertiary, selectors: (_j = {}, _j[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _j), }, }; } exports.primaryStyles = primaryStyles; //# sourceMappingURL=ButtonThemes.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/CommandBarButton/CommandBarButton.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/CommandBarButton/CommandBarButton.js ***! \**********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CommandBarButton = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var BaseButton_1 = __webpack_require__(/*! ../BaseButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var CommandBarButton_styles_1 = __webpack_require__(/*! ./CommandBarButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/CommandBarButton/CommandBarButton.styles.js"); /** * {@docCategory Button} */ var CommandBarButton = /** @class */ (function (_super) { tslib_1.__extends(CommandBarButton, _super); function CommandBarButton() { return _super !== null && _super.apply(this, arguments) || this; } CommandBarButton.prototype.render = function () { var _a = this.props, styles = _a.styles, theme = _a.theme; return (React.createElement(BaseButton_1.BaseButton, tslib_1.__assign({}, this.props, { variantClassName: "ms-Button--commandBar", styles: (0, CommandBarButton_styles_1.getStyles)(theme, styles), onRenderDescription: Utilities_1.nullRender }))); }; CommandBarButton = tslib_1.__decorate([ (0, Utilities_1.customizable)('CommandBarButton', ['theme', 'styles'], true) ], CommandBarButton); return CommandBarButton; }(React.Component)); exports.CommandBarButton = CommandBarButton; //# sourceMappingURL=CommandBarButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/CommandBarButton/CommandBarButton.styles.js": /*!*****************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/CommandBarButton/CommandBarButton.styles.js ***! \*****************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var BaseButton_styles_1 = __webpack_require__(/*! ../BaseButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.styles.js"); var SplitButton_styles_1 = __webpack_require__(/*! ../SplitButton/SplitButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/SplitButton/SplitButton.styles.js"); var BaseButton_classNames_1 = __webpack_require__(/*! ../BaseButton.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.classNames.js"); exports.getStyles = (0, Utilities_1.memoizeFunction)(function (theme, customStyles, focusInset, focusColor) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; var baseButtonStyles = (0, BaseButton_styles_1.getStyles)(theme); var baseSplitButtonStyles = (0, SplitButton_styles_1.getStyles)(theme); var p = theme.palette, semanticColors = theme.semanticColors; var commandButtonHighContrastFocus = { left: 4, top: 4, bottom: 4, right: 4, border: 'none', }; var commandButtonStyles = { root: [ (0, Styling_1.getFocusStyle)(theme, { inset: 2, highContrastStyle: commandButtonHighContrastFocus, borderColor: 'transparent', }), theme.fonts.medium, { minWidth: '40px', backgroundColor: p.white, color: p.neutralPrimary, padding: '0 4px', border: 'none', borderRadius: 0, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { border: 'none', }, _a), }, ], rootHovered: { backgroundColor: p.neutralLighter, color: p.neutralDark, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'Highlight', }, _b[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: p.themeDarkAlt, }, _b[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonMenuIcon)] = { color: p.neutralPrimary, }, _b), }, rootPressed: { backgroundColor: p.neutralLight, color: p.neutralDark, selectors: (_c = {}, _c[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: p.themeDark, }, _c[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonMenuIcon)] = { color: p.neutralPrimary, }, _c), }, rootChecked: { backgroundColor: p.neutralLight, color: p.neutralDark, selectors: (_d = {}, _d[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: p.themeDark, }, _d[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonMenuIcon)] = { color: p.neutralPrimary, }, _d), }, rootCheckedHovered: { backgroundColor: p.neutralQuaternaryAlt, selectors: (_e = {}, _e[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: p.themeDark, }, _e[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonMenuIcon)] = { color: p.neutralPrimary, }, _e), }, rootExpanded: { backgroundColor: p.neutralLight, color: p.neutralDark, selectors: (_f = {}, _f[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: p.themeDark, }, _f[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonMenuIcon)] = { color: p.neutralPrimary, }, _f), }, rootExpandedHovered: { backgroundColor: p.neutralQuaternaryAlt, }, rootDisabled: { backgroundColor: p.white, selectors: (_g = {}, _g[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: semanticColors.disabledBodySubtext, selectors: (_h = {}, _h[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'GrayText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _h), }, _g[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'GrayText', backgroundColor: 'Window' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _g), }, // Split button styles splitButtonContainer: { height: '100%', selectors: (_j = {}, _j[Styling_1.HighContrastSelector] = { border: 'none', }, _j), }, splitButtonDividerDisabled: { selectors: (_k = {}, _k[Styling_1.HighContrastSelector] = { backgroundColor: 'Window', }, _k), }, splitButtonDivider: { backgroundColor: p.neutralTertiaryAlt, }, splitButtonMenuButton: { backgroundColor: p.white, border: 'none', borderTopRightRadius: '0', borderBottomRightRadius: '0', color: p.neutralSecondary, selectors: { ':hover': { backgroundColor: p.neutralLighter, color: p.neutralDark, selectors: (_l = {}, _l[Styling_1.HighContrastSelector] = { color: 'Highlight', }, _l[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: p.neutralPrimary, }, _l), }, ':active': { backgroundColor: p.neutralLight, selectors: (_m = {}, _m[".".concat(BaseButton_classNames_1.ButtonGlobalClassNames.msButtonIcon)] = { color: p.neutralPrimary, }, _m), }, }, }, splitButtonMenuButtonDisabled: { backgroundColor: p.white, selectors: (_o = {}, _o[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'GrayText', border: 'none', backgroundColor: 'Window' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _o), }, splitButtonMenuButtonChecked: { backgroundColor: p.neutralLight, color: p.neutralDark, selectors: { ':hover': { backgroundColor: p.neutralQuaternaryAlt, }, }, }, splitButtonMenuButtonExpanded: { backgroundColor: p.neutralLight, color: p.black, selectors: { ':hover': { backgroundColor: p.neutralQuaternaryAlt, }, }, }, splitButtonMenuIcon: { color: p.neutralPrimary, }, splitButtonMenuIconDisabled: { color: p.neutralTertiary, }, label: { fontWeight: 'normal', // theme.fontWeights.semibold, }, icon: { color: p.themePrimary, }, menuIcon: (_p = { color: p.neutralSecondary }, _p[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _p), }; return (0, Styling_1.concatStyleSets)(baseButtonStyles, baseSplitButtonStyles, commandButtonStyles, customStyles); }); //# sourceMappingURL=CommandBarButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/CommandButton/CommandButton.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/CommandButton/CommandButton.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CommandButton = void 0; var ActionButton_1 = __webpack_require__(/*! ../ActionButton/ActionButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/ActionButton/ActionButton.js"); /** * {@docCategory Button} */ exports.CommandButton = ActionButton_1.ActionButton; //# sourceMappingURL=CommandButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/CompoundButton/CompoundButton.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/CompoundButton/CompoundButton.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CompoundButton = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var BaseButton_1 = __webpack_require__(/*! ../BaseButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var CompoundButton_styles_1 = __webpack_require__(/*! ./CompoundButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/CompoundButton/CompoundButton.styles.js"); /** * {@docCategory Button} */ var CompoundButton = /** @class */ (function (_super) { tslib_1.__extends(CompoundButton, _super); function CompoundButton() { return _super !== null && _super.apply(this, arguments) || this; } CompoundButton.prototype.render = function () { var _a = this.props, _b = _a.primary, primary = _b === void 0 ? false : _b, styles = _a.styles, theme = _a.theme; return (React.createElement(BaseButton_1.BaseButton, tslib_1.__assign({}, this.props, { variantClassName: primary ? 'ms-Button--compoundPrimary' : 'ms-Button--compound', styles: (0, CompoundButton_styles_1.getStyles)(theme, styles, primary) }))); }; CompoundButton = tslib_1.__decorate([ (0, Utilities_1.customizable)('CompoundButton', ['theme', 'styles'], true) ], CompoundButton); return CompoundButton; }(React.Component)); exports.CompoundButton = CompoundButton; //# sourceMappingURL=CompoundButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/CompoundButton/CompoundButton.styles.js": /*!*************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/CompoundButton/CompoundButton.styles.js ***! \*************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var BaseButton_styles_1 = __webpack_require__(/*! ../BaseButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.styles.js"); var SplitButton_styles_1 = __webpack_require__(/*! ../SplitButton/SplitButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/SplitButton/SplitButton.styles.js"); var ButtonThemes_1 = __webpack_require__(/*! ../ButtonThemes */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/ButtonThemes.js"); exports.getStyles = (0, Utilities_1.memoizeFunction)(function (theme, customStyles, primary) { var _a, _b, _c, _d, _e; var fonts = theme.fonts, palette = theme.palette; var baseButtonStyles = (0, BaseButton_styles_1.getStyles)(theme); var splitButtonStyles = (0, SplitButton_styles_1.getStyles)(theme); var compoundButtonStyles = { root: { maxWidth: '280px', minHeight: '72px', height: 'auto', padding: '16px 12px', }, flexContainer: { flexDirection: 'row', alignItems: 'flex-start', minWidth: '100%', margin: '', }, textContainer: { textAlign: 'left', }, icon: { fontSize: '2em', lineHeight: '1em', height: '1em', margin: '0px 8px 0px 0px', flexBasis: '1em', flexShrink: '0', }, label: { margin: '0 0 5px', lineHeight: '100%', fontWeight: Styling_1.FontWeights.semibold, }, description: [ fonts.small, { lineHeight: '100%', }, ], }; var standardCompoundTheme = { description: { color: palette.neutralSecondary, }, descriptionHovered: { color: palette.neutralDark, }, descriptionPressed: { color: 'inherit', }, descriptionChecked: { color: 'inherit', }, descriptionDisabled: { color: 'inherit', }, }; var primaryCompoundTheme = { description: { color: palette.white, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'WindowText', color: 'Window' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a), }, descriptionHovered: { color: palette.white, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { backgroundColor: 'Highlight', color: 'Window', }, _b), }, descriptionPressed: { color: 'inherit', selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'Window', backgroundColor: 'WindowText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _c), }, descriptionChecked: { color: 'inherit', selectors: (_d = {}, _d[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'Window', backgroundColor: 'WindowText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _d), }, descriptionDisabled: { color: 'inherit', selectors: (_e = {}, _e[Styling_1.HighContrastSelector] = { color: 'inherit', }, _e), }, }; return (0, Styling_1.concatStyleSets)(baseButtonStyles, compoundButtonStyles, primary ? (0, ButtonThemes_1.primaryStyles)(theme) : (0, ButtonThemes_1.standardStyles)(theme), primary ? primaryCompoundTheme : standardCompoundTheme, splitButtonStyles, customStyles); }); //# sourceMappingURL=CompoundButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/DefaultButton/DefaultButton.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/DefaultButton/DefaultButton.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DefaultButton = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var BaseButton_1 = __webpack_require__(/*! ../BaseButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DefaultButton_styles_1 = __webpack_require__(/*! ./DefaultButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/DefaultButton/DefaultButton.styles.js"); /** * {@docCategory Button} */ var DefaultButton = /** @class */ (function (_super) { tslib_1.__extends(DefaultButton, _super); function DefaultButton() { return _super !== null && _super.apply(this, arguments) || this; } DefaultButton.prototype.render = function () { var _a = this.props, _b = _a.primary, primary = _b === void 0 ? false : _b, styles = _a.styles, theme = _a.theme; return (React.createElement(BaseButton_1.BaseButton, tslib_1.__assign({}, this.props, { variantClassName: primary ? 'ms-Button--primary' : 'ms-Button--default', styles: (0, DefaultButton_styles_1.getStyles)(theme, styles, primary), onRenderDescription: Utilities_1.nullRender }))); }; DefaultButton = tslib_1.__decorate([ (0, Utilities_1.customizable)('DefaultButton', ['theme', 'styles'], true) ], DefaultButton); return DefaultButton; }(React.Component)); exports.DefaultButton = DefaultButton; //# sourceMappingURL=DefaultButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/DefaultButton/DefaultButton.styles.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/DefaultButton/DefaultButton.styles.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var BaseButton_styles_1 = __webpack_require__(/*! ../BaseButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.styles.js"); var SplitButton_styles_1 = __webpack_require__(/*! ../SplitButton/SplitButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/SplitButton/SplitButton.styles.js"); var ButtonThemes_1 = __webpack_require__(/*! ../ButtonThemes */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/ButtonThemes.js"); var DEFAULT_BUTTON_HEIGHT = '32px'; var DEFAULT_BUTTON_MIN_WIDTH = '80px'; exports.getStyles = (0, Utilities_1.memoizeFunction)(function (theme, customStyles, primary) { var baseButtonStyles = (0, BaseButton_styles_1.getStyles)(theme); var splitButtonStyles = (0, SplitButton_styles_1.getStyles)(theme); var defaultButtonStyles = { root: { minWidth: DEFAULT_BUTTON_MIN_WIDTH, height: DEFAULT_BUTTON_HEIGHT, }, label: { fontWeight: Styling_1.FontWeights.semibold, }, }; return (0, Styling_1.concatStyleSets)(baseButtonStyles, defaultButtonStyles, primary ? (0, ButtonThemes_1.primaryStyles)(theme) : (0, ButtonThemes_1.standardStyles)(theme), splitButtonStyles, customStyles); }); //# sourceMappingURL=DefaultButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/IconButton/IconButton.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/IconButton/IconButton.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.IconButton = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var BaseButton_1 = __webpack_require__(/*! ../BaseButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var IconButton_styles_1 = __webpack_require__(/*! ./IconButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/IconButton/IconButton.styles.js"); /** * {@docCategory Button} */ var IconButton = /** @class */ (function (_super) { tslib_1.__extends(IconButton, _super); function IconButton() { return _super !== null && _super.apply(this, arguments) || this; } IconButton.prototype.render = function () { var _a = this.props, styles = _a.styles, theme = _a.theme; return (React.createElement(BaseButton_1.BaseButton, tslib_1.__assign({}, this.props, { variantClassName: "ms-Button--icon", styles: (0, IconButton_styles_1.getStyles)(theme, styles), onRenderText: Utilities_1.nullRender, onRenderDescription: Utilities_1.nullRender }))); }; IconButton = tslib_1.__decorate([ (0, Utilities_1.customizable)('IconButton', ['theme', 'styles'], true) ], IconButton); return IconButton; }(React.Component)); exports.IconButton = IconButton; //# sourceMappingURL=IconButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/IconButton/IconButton.styles.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/IconButton/IconButton.styles.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var BaseButton_styles_1 = __webpack_require__(/*! ../BaseButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.styles.js"); var SplitButton_styles_1 = __webpack_require__(/*! ../SplitButton/SplitButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/SplitButton/SplitButton.styles.js"); exports.getStyles = (0, Utilities_1.memoizeFunction)(function (theme, customStyles) { var _a; var baseButtonStyles = (0, BaseButton_styles_1.getStyles)(theme); var splitButtonStyles = (0, SplitButton_styles_1.getStyles)(theme); var palette = theme.palette, semanticColors = theme.semanticColors; var iconButtonStyles = { root: { padding: '0 4px', width: '32px', height: '32px', backgroundColor: 'transparent', border: 'none', color: semanticColors.link, }, rootHovered: { color: palette.themeDarkAlt, backgroundColor: palette.neutralLighter, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { borderColor: 'Highlight', color: 'Highlight', }, _a), }, rootHasMenu: { width: 'auto', }, rootPressed: { color: palette.themeDark, backgroundColor: palette.neutralLight, }, rootExpanded: { color: palette.themeDark, backgroundColor: palette.neutralLight, }, rootChecked: { color: palette.themeDark, backgroundColor: palette.neutralLight, }, rootCheckedHovered: { color: palette.themeDark, backgroundColor: palette.neutralQuaternaryAlt, }, rootDisabled: { color: palette.neutralTertiaryAlt, }, }; return (0, Styling_1.concatStyleSets)(baseButtonStyles, iconButtonStyles, splitButtonStyles, customStyles); }); //# sourceMappingURL=IconButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/MessageBarButton/MessageBarButton.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/MessageBarButton/MessageBarButton.js ***! \**********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.MessageBarButton = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var DefaultButton_1 = __webpack_require__(/*! ../DefaultButton/DefaultButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/DefaultButton/DefaultButton.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var MessageBarButton_styles_1 = __webpack_require__(/*! ./MessageBarButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/MessageBarButton/MessageBarButton.styles.js"); /** * {@docCategory MessageBar} */ var MessageBarButton = /** @class */ (function (_super) { tslib_1.__extends(MessageBarButton, _super); function MessageBarButton() { return _super !== null && _super.apply(this, arguments) || this; } MessageBarButton.prototype.render = function () { var _a = this.props, styles = _a.styles, theme = _a.theme; return React.createElement(DefaultButton_1.DefaultButton, tslib_1.__assign({}, this.props, { styles: (0, MessageBarButton_styles_1.getStyles)(theme, styles), onRenderDescription: Utilities_1.nullRender })); }; MessageBarButton = tslib_1.__decorate([ (0, Utilities_1.customizable)('MessageBarButton', ['theme', 'styles'], true) ], MessageBarButton); return MessageBarButton; }(React.Component)); exports.MessageBarButton = MessageBarButton; //# sourceMappingURL=MessageBarButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/MessageBarButton/MessageBarButton.styles.js": /*!*****************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/MessageBarButton/MessageBarButton.styles.js ***! \*****************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.getStyles = (0, Utilities_1.memoizeFunction)(function (theme, customStyles) { return (0, Styling_1.concatStyleSets)({ root: [ (0, Styling_1.getFocusStyle)(theme, { inset: 1, highContrastStyle: { outlineOffset: '-4px', outline: '1px solid Window', }, borderColor: 'transparent', }), { height: 24, }, ], }, customStyles); }); //# sourceMappingURL=MessageBarButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/PrimaryButton/PrimaryButton.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/PrimaryButton/PrimaryButton.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PrimaryButton = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DefaultButton_1 = __webpack_require__(/*! ../DefaultButton/DefaultButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/DefaultButton/DefaultButton.js"); /** * {@docCategory Button} */ var PrimaryButton = /** @class */ (function (_super) { tslib_1.__extends(PrimaryButton, _super); function PrimaryButton() { return _super !== null && _super.apply(this, arguments) || this; } PrimaryButton.prototype.render = function () { return React.createElement(DefaultButton_1.DefaultButton, tslib_1.__assign({}, this.props, { primary: true, onRenderDescription: Utilities_1.nullRender })); }; PrimaryButton = tslib_1.__decorate([ (0, Utilities_1.customizable)('PrimaryButton', ['theme', 'styles'], true) ], PrimaryButton); return PrimaryButton; }(React.Component)); exports.PrimaryButton = PrimaryButton; //# sourceMappingURL=PrimaryButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/SplitButton/SplitButton.classNames.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/SplitButton/SplitButton.classNames.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getSplitButtonClassNames = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); exports.getSplitButtonClassNames = (0, Utilities_1.memoizeFunction)(function (styles, disabled, expanded, checked, primaryDisabled) { return { root: (0, Styling_1.mergeStyles)(styles.splitButtonMenuButton, expanded && [styles.splitButtonMenuButtonExpanded], disabled && [styles.splitButtonMenuButtonDisabled], checked && !disabled && [styles.splitButtonMenuButtonChecked], primaryDisabled && !disabled && [ { selectors: { ':focus': styles.splitButtonMenuFocused, }, }, ]), splitButtonContainer: (0, Styling_1.mergeStyles)(styles.splitButtonContainer, !disabled && checked && [ styles.splitButtonContainerChecked, { selectors: { ':hover': styles.splitButtonContainerCheckedHovered, }, }, ], !disabled && !checked && [ { selectors: { ':hover': styles.splitButtonContainerHovered, ':focus': styles.splitButtonContainerFocused, }, }, ], disabled && styles.splitButtonContainerDisabled), icon: (0, Styling_1.mergeStyles)(styles.splitButtonMenuIcon, disabled && styles.splitButtonMenuIconDisabled, !disabled && primaryDisabled && styles.splitButtonMenuIcon), flexContainer: (0, Styling_1.mergeStyles)(styles.splitButtonFlexContainer), divider: (0, Styling_1.mergeStyles)(styles.splitButtonDivider, (primaryDisabled || disabled) && styles.splitButtonDividerDisabled), }; }); //# sourceMappingURL=SplitButton.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/SplitButton/SplitButton.styles.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/SplitButton/SplitButton.styles.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.getStyles = (0, Utilities_1.memoizeFunction)(function (theme, customStyles) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; var effects = theme.effects, palette = theme.palette, semanticColors = theme.semanticColors; var buttonHighContrastFocus = { left: -2, top: -2, bottom: -2, right: -2, border: 'none', }; var splitButtonDividerBaseStyles = { position: 'absolute', width: 1, right: 31, top: 8, bottom: 8, }; var splitButtonStyles = { splitButtonContainer: [ (0, Styling_1.getFocusStyle)(theme, { highContrastStyle: buttonHighContrastFocus, inset: 2, pointerEvents: 'none' }), { display: 'inline-flex', selectors: { '.ms-Button--default': { borderTopRightRadius: '0', borderBottomRightRadius: '0', borderRight: 'none', flexGrow: '1', }, '.ms-Button--primary': { borderTopRightRadius: '0', borderBottomRightRadius: '0', border: 'none', flexGrow: '1', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'WindowText', backgroundColor: 'Window', border: '1px solid WindowText', borderRightWidth: '0' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a[':hover'] = { border: 'none', }, _a[':active'] = { border: 'none', }, _a), }, '.ms-Button--primary + .ms-Button': { border: 'none', selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { border: '1px solid WindowText', borderLeftWidth: '0', }, _b), }, }, }, ], splitButtonContainerHovered: { selectors: { '.ms-Button--primary': { selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'Window', backgroundColor: 'Highlight', }, _c), }, '.ms-Button.is-disabled': { color: semanticColors.buttonTextDisabled, selectors: (_d = {}, _d[Styling_1.HighContrastSelector] = { color: 'GrayText', borderColor: 'GrayText', backgroundColor: 'Window', }, _d), }, }, }, splitButtonContainerChecked: { selectors: { '.ms-Button--primary': { selectors: (_e = {}, _e[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'Window', backgroundColor: 'WindowText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _e), }, }, }, splitButtonContainerCheckedHovered: { selectors: { '.ms-Button--primary': { selectors: (_f = {}, _f[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'Window', backgroundColor: 'WindowText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _f), }, }, }, splitButtonContainerFocused: { outline: 'none!important', }, splitButtonMenuButton: (_g = { padding: 6, height: 'auto', boxSizing: 'border-box', borderRadius: 0, borderTopRightRadius: effects.roundedCorner2, borderBottomRightRadius: effects.roundedCorner2, border: "1px solid ".concat(palette.neutralSecondaryAlt), borderLeft: 'none', outline: 'transparent', userSelect: 'none', display: 'inline-block', textDecoration: 'none', textAlign: 'center', cursor: 'pointer', verticalAlign: 'top', width: 32, marginLeft: -1, marginTop: 0, marginRight: 0, marginBottom: 0 }, _g[Styling_1.HighContrastSelector] = { '.ms-Button-menuIcon': { color: 'WindowText', }, }, _g), splitButtonDivider: tslib_1.__assign(tslib_1.__assign({}, splitButtonDividerBaseStyles), { selectors: (_h = {}, _h[Styling_1.HighContrastSelector] = { backgroundColor: 'WindowText', }, _h) }), splitButtonDividerDisabled: tslib_1.__assign(tslib_1.__assign({}, splitButtonDividerBaseStyles), { selectors: (_j = {}, _j[Styling_1.HighContrastSelector] = { backgroundColor: 'GrayText', }, _j) }), splitButtonMenuButtonDisabled: { pointerEvents: 'none', border: 'none', selectors: (_k = { ':hover': { cursor: 'default', }, '.ms-Button--primary': { selectors: (_l = {}, _l[Styling_1.HighContrastSelector] = { color: 'GrayText', borderColor: 'GrayText', backgroundColor: 'Window', }, _l), }, '.ms-Button-menuIcon': { selectors: (_m = {}, _m[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _m), } }, _k[Styling_1.HighContrastSelector] = { color: 'GrayText', border: '1px solid GrayText', backgroundColor: 'Window', }, _k), }, splitButtonFlexContainer: { display: 'flex', height: '100%', flexWrap: 'nowrap', justifyContent: 'center', alignItems: 'center', }, splitButtonContainerDisabled: { outline: 'none', border: 'none', selectors: (_o = {}, _o[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'GrayText', borderColor: 'GrayText', backgroundColor: 'Window' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _o), }, splitButtonMenuFocused: tslib_1.__assign({}, (0, Styling_1.getFocusStyle)(theme, { highContrastStyle: buttonHighContrastFocus, inset: 2 })), }; return (0, Styling_1.concatStyleSets)(splitButtonStyles, customStyles); }); //# sourceMappingURL=SplitButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Button/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Button/index.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ButtonGlobalClassNames = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./BaseButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Button.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/Button.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Button */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/Button.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ActionButton/ActionButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/ActionButton/ActionButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./CommandBarButton/CommandBarButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/CommandBarButton/CommandBarButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./CommandButton/CommandButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/CommandButton/CommandButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./CompoundButton/CompoundButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/CompoundButton/CompoundButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DefaultButton/DefaultButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/DefaultButton/DefaultButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./MessageBarButton/MessageBarButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/MessageBarButton/MessageBarButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PrimaryButton/PrimaryButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/PrimaryButton/PrimaryButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./IconButton/IconButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/IconButton/IconButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./SplitButton/SplitButton.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/SplitButton/SplitButton.classNames.js"), exports); var BaseButton_classNames_1 = __webpack_require__(/*! ./BaseButton.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.classNames.js"); Object.defineProperty(exports, "ButtonGlobalClassNames", ({ enumerable: true, get: function () { return BaseButton_classNames_1.ButtonGlobalClassNames; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.base.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.base.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); var CalendarDay_1 = __webpack_require__(/*! ./CalendarDay/CalendarDay */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.js"); var CalendarMonth_1 = __webpack_require__(/*! ./CalendarMonth/CalendarMonth */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var defaults_1 = __webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/defaults.js"); var MIN_SIZE_FORCE_OVERLAY = 440; var getClassNames = (0, utilities_1.classNamesFunction)(); var defaultWorkWeekDays = [ date_time_utilities_1.DayOfWeek.Monday, date_time_utilities_1.DayOfWeek.Tuesday, date_time_utilities_1.DayOfWeek.Wednesday, date_time_utilities_1.DayOfWeek.Thursday, date_time_utilities_1.DayOfWeek.Friday, ]; var DEFAULT_PROPS = { isMonthPickerVisible: true, isDayPickerVisible: true, showMonthPickerAsOverlay: false, today: new Date(), firstDayOfWeek: date_time_utilities_1.DayOfWeek.Sunday, dateRangeType: date_time_utilities_1.DateRangeType.Day, showGoToToday: true, strings: date_time_utilities_1.DEFAULT_CALENDAR_STRINGS, highlightCurrentMonth: false, highlightSelectedMonth: false, navigationIcons: defaults_1.defaultCalendarNavigationIcons, showWeekNumbers: false, firstWeekOfYear: date_time_utilities_1.FirstWeekOfYear.FirstDay, dateTimeFormatter: date_time_utilities_1.DEFAULT_DATE_FORMATTING, showSixWeeksByDefault: false, workWeekDays: defaultWorkWeekDays, showCloseButton: false, allFocusable: false, }; function useDateState(_a) { var value = _a.value, _b = _a.today, today = _b === void 0 ? new Date() : _b, onSelectDate = _a.onSelectDate; /** The currently selected date in the calendar */ var _c = (0, react_hooks_1.useControllableValue)(value, today), _d = _c[0], selectedDate = _d === void 0 ? today : _d, setSelectedDate = _c[1]; /** The currently focused date in the day picker, but not necessarily selected */ var _e = React.useState(value), _f = _e[0], navigatedDay = _f === void 0 ? today : _f, setNavigatedDay = _e[1]; /** The currently focused date in the month picker, but not necessarily selected */ var _g = React.useState(value), _h = _g[0], navigatedMonth = _h === void 0 ? today : _h, setNavigatedMonth = _g[1]; /** If using a controlled value, when that value changes, navigate to that date */ var _j = React.useState(value), _k = _j[0], lastSelectedDate = _k === void 0 ? today : _k, setLastSelectedDate = _j[1]; if (value && lastSelectedDate.valueOf() !== value.valueOf()) { setNavigatedDay(value); setNavigatedMonth(value); setLastSelectedDate(value); } var navigateMonth = function (date) { setNavigatedMonth(date); }; var navigateDay = function (date) { setNavigatedMonth(date); setNavigatedDay(date); }; var onDateSelected = function (date, selectedDateRangeArray) { setNavigatedMonth(date); setNavigatedDay(date); setSelectedDate(date); onSelectDate === null || onSelectDate === void 0 ? void 0 : onSelectDate(date, selectedDateRangeArray); }; return [selectedDate, navigatedDay, navigatedMonth, onDateSelected, navigateDay, navigateMonth]; } function useVisibilityState(props) { /** State used to show/hide month picker */ var _a = (0, react_hooks_1.useControllableValue)(getShowMonthPickerAsOverlay(props) ? undefined : props.isMonthPickerVisible, false), _b = _a[0], isMonthPickerVisible = _b === void 0 ? true : _b, setIsMonthPickerVisible = _a[1]; /** State used to show/hide day picker */ var _c = (0, react_hooks_1.useControllableValue)(getShowMonthPickerAsOverlay(props) ? undefined : props.isDayPickerVisible, true), _d = _c[0], isDayPickerVisible = _d === void 0 ? true : _d, setIsDayPickerVisible = _c[1]; var toggleDayMonthPickerVisibility = function () { setIsMonthPickerVisible(!isMonthPickerVisible); setIsDayPickerVisible(!isDayPickerVisible); }; return [isMonthPickerVisible, isDayPickerVisible, toggleDayMonthPickerVisibility]; } function useFocusLogic(_a, isDayPickerVisible, isMonthPickerVisible) { var componentRef = _a.componentRef; var dayPicker = React.useRef(null); var monthPicker = React.useRef(null); var focusOnUpdate = React.useRef(false); var focus = React.useCallback(function () { if (isDayPickerVisible && dayPicker.current) { (0, utilities_1.focusAsync)(dayPicker.current); } else if (isMonthPickerVisible && monthPicker.current) { (0, utilities_1.focusAsync)(monthPicker.current); } }, [isDayPickerVisible, isMonthPickerVisible]); React.useImperativeHandle(componentRef, function () { return ({ focus: focus }); }, [focus]); React.useEffect(function () { if (focusOnUpdate.current) { focus(); focusOnUpdate.current = false; } }); var focusOnNextUpdate = function () { focusOnUpdate.current = true; }; return [dayPicker, monthPicker, focusOnNextUpdate]; } exports.CalendarBase = React.forwardRef(function (propsWithoutDefaults, forwardedRef) { var props = (0, utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); var _a = useDateState(props), selectedDate = _a[0], navigatedDay = _a[1], navigatedMonth = _a[2], onDateSelected = _a[3], navigateDay = _a[4], navigateMonth = _a[5]; var _b = useVisibilityState(props), isMonthPickerVisible = _b[0], isDayPickerVisible = _b[1], toggleDayMonthPickerVisibility = _b[2]; var _c = useFocusLogic(props, isDayPickerVisible, isMonthPickerVisible), dayPicker = _c[0], monthPicker = _c[1], focusOnNextUpdate = _c[2]; var renderGoToTodayButton = function () { var goTodayEnabled = showGoToToday; if (goTodayEnabled && today) { goTodayEnabled = navigatedDay.getFullYear() !== today.getFullYear() || navigatedDay.getMonth() !== today.getMonth() || navigatedMonth.getFullYear() !== today.getFullYear() || navigatedMonth.getMonth() !== today.getMonth(); } return (showGoToToday && (React.createElement("button", { className: (0, utilities_1.css)('js-goToday', classes.goTodayButton), onClick: onGotoToday, onKeyDown: onButtonKeyDown(onGotoToday), type: "button", disabled: !goTodayEnabled }, strings.goToToday))); }; var onNavigateDayDate = function (date, focusOnNavigatedDay) { navigateDay(date); if (focusOnNavigatedDay) { focusOnNextUpdate(); } }; var onNavigateMonthDate = function (date, focusOnNavigatedDay) { if (focusOnNavigatedDay) { focusOnNextUpdate(); } if (!focusOnNavigatedDay) { navigateMonth(date); return; } if (monthPickerOnly) { onDateSelected(date); } navigateDay(date); }; var onHeaderSelect = getShowMonthPickerAsOverlay(props) ? function () { toggleDayMonthPickerVisibility(); focusOnNextUpdate(); } : undefined; var onGotoToday = function () { navigateDay(today); focusOnNextUpdate(); }; var onButtonKeyDown = function (callback) { return function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case utilities_1.KeyCodes.enter: case utilities_1.KeyCodes.space: callback(); break; } }; }; var onDatePickerPopupKeyDown = function (ev) { var _a; // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case utilities_1.KeyCodes.enter: ev.preventDefault(); break; case utilities_1.KeyCodes.backspace: ev.preventDefault(); break; case utilities_1.KeyCodes.escape: (_a = props.onDismiss) === null || _a === void 0 ? void 0 : _a.call(props); break; case utilities_1.KeyCodes.pageUp: if (ev.ctrlKey) { // go to next year navigateDay((0, date_time_utilities_1.addYears)(navigatedDay, 1)); } else { // go to next month navigateDay((0, date_time_utilities_1.addMonths)(navigatedDay, 1)); } ev.preventDefault(); break; case utilities_1.KeyCodes.pageDown: if (ev.ctrlKey) { // go to previous year navigateDay((0, date_time_utilities_1.addYears)(navigatedDay, -1)); } else { // go to previous month navigateDay((0, date_time_utilities_1.addMonths)(navigatedDay, -1)); } ev.preventDefault(); break; default: break; } }; var rootClass = 'ms-DatePicker'; var firstDayOfWeek = props.firstDayOfWeek, dateRangeType = props.dateRangeType, strings = props.strings, showGoToToday = props.showGoToToday, highlightCurrentMonth = props.highlightCurrentMonth, highlightSelectedMonth = props.highlightSelectedMonth, navigationIcons = props.navigationIcons, minDate = props.minDate, maxDate = props.maxDate, restrictedDates = props.restrictedDates, id = props.id, className = props.className, showCloseButton = props.showCloseButton, allFocusable = props.allFocusable, styles = props.styles, showWeekNumbers = props.showWeekNumbers, theme = props.theme, calendarDayProps = props.calendarDayProps, calendarMonthProps = props.calendarMonthProps, dateTimeFormatter = props.dateTimeFormatter, _d = props.today, today = _d === void 0 ? new Date() : _d; var showMonthPickerAsOverlay = getShowMonthPickerAsOverlay(props); var monthPickerOnly = !showMonthPickerAsOverlay && !isDayPickerVisible; var overlaidWithButton = showMonthPickerAsOverlay && showGoToToday; var classes = getClassNames(styles, { theme: theme, className: className, isMonthPickerVisible: isMonthPickerVisible, isDayPickerVisible: isDayPickerVisible, monthPickerOnly: monthPickerOnly, showMonthPickerAsOverlay: showMonthPickerAsOverlay, overlaidWithButton: overlaidWithButton, overlayedWithButton: overlaidWithButton, showGoToToday: showGoToToday, showWeekNumbers: showWeekNumbers, }); var todayDateString = ''; var selectedDateString = ''; if (dateTimeFormatter && strings.todayDateFormatString) { todayDateString = (0, utilities_1.format)(strings.todayDateFormatString, dateTimeFormatter.formatMonthDayYear(today, strings)); } if (dateTimeFormatter && strings.selectedDateFormatString) { var dateStringFormatter = monthPickerOnly ? dateTimeFormatter.formatMonthYear : dateTimeFormatter.formatMonthDayYear; selectedDateString = (0, utilities_1.format)(strings.selectedDateFormatString, dateStringFormatter(selectedDate, strings)); } var selectionAndTodayString = selectedDateString + ', ' + todayDateString; return (React.createElement("div", { id: id, ref: forwardedRef, role: "group", "aria-label": selectionAndTodayString, className: (0, utilities_1.css)(rootClass, classes.root, className, 'ms-slideDownIn10'), onKeyDown: onDatePickerPopupKeyDown }, React.createElement("div", { className: classes.liveRegion, "aria-live": "polite", "aria-atomic": "true" }, React.createElement("span", null, selectedDateString)), isDayPickerVisible && (React.createElement(CalendarDay_1.CalendarDay, tslib_1.__assign({ selectedDate: selectedDate, navigatedDate: navigatedDay, today: props.today, onSelectDate: onDateSelected, // eslint-disable-next-line react/jsx-no-bind onNavigateDate: onNavigateDayDate, onDismiss: props.onDismiss, firstDayOfWeek: firstDayOfWeek, dateRangeType: dateRangeType, strings: strings, // eslint-disable-next-line react/jsx-no-bind onHeaderSelect: onHeaderSelect, navigationIcons: navigationIcons, showWeekNumbers: props.showWeekNumbers, firstWeekOfYear: props.firstWeekOfYear, dateTimeFormatter: props.dateTimeFormatter, showSixWeeksByDefault: props.showSixWeeksByDefault, minDate: minDate, maxDate: maxDate, restrictedDates: restrictedDates, workWeekDays: props.workWeekDays, componentRef: dayPicker, showCloseButton: showCloseButton, allFocusable: allFocusable }, calendarDayProps))), isDayPickerVisible && isMonthPickerVisible && React.createElement("div", { className: classes.divider }), isMonthPickerVisible ? (React.createElement("div", { className: classes.monthPickerWrapper }, React.createElement(CalendarMonth_1.CalendarMonth, tslib_1.__assign({ navigatedDate: navigatedMonth, selectedDate: navigatedDay, strings: strings, // eslint-disable-next-line react/jsx-no-bind onNavigateDate: onNavigateMonthDate, today: props.today, highlightCurrentMonth: highlightCurrentMonth, highlightSelectedMonth: highlightSelectedMonth, // eslint-disable-next-line react/jsx-no-bind onHeaderSelect: onHeaderSelect, navigationIcons: navigationIcons, dateTimeFormatter: props.dateTimeFormatter, minDate: minDate, maxDate: maxDate, componentRef: monthPicker }, calendarMonthProps)), renderGoToTodayButton())) : (renderGoToTodayButton()), React.createElement(utilities_1.FocusRects, null))); }); exports.CalendarBase.displayName = 'CalendarBase'; function getShowMonthPickerAsOverlay(_a) { var showMonthPickerAsOverlay = _a.showMonthPickerAsOverlay, isDayPickerVisible = _a.isDayPickerVisible; var win = (0, utilities_1.getWindow)(); return showMonthPickerAsOverlay || (isDayPickerVisible && win && win.innerWidth <= MIN_SIZE_FORCE_OVERLAY); } //# sourceMappingURL=Calendar.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Calendar = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var Calendar_base_1 = __webpack_require__(/*! ./Calendar.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.base.js"); var Calendar_styles_1 = __webpack_require__(/*! ./Calendar.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.styles.js"); exports.Calendar = (0, utilities_1.styled)(Calendar_base_1.CalendarBase, Calendar_styles_1.styles, undefined, { scope: 'Calendar', }); //# sourceMappingURL=Calendar.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.styles.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.styles.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.styles = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var styles = function (props) { var _a; var className = props.className, theme = props.theme, isDayPickerVisible = props.isDayPickerVisible, isMonthPickerVisible = props.isMonthPickerVisible, showWeekNumbers = props.showWeekNumbers; var palette = theme.palette; var totalWidth = isDayPickerVisible && isMonthPickerVisible ? 440 : 220; if (showWeekNumbers && isDayPickerVisible) { totalWidth += 30; } return { root: [ style_utilities_1.normalize, { display: 'flex', width: totalWidth, }, !isMonthPickerVisible && { flexDirection: 'column', }, className, ], divider: { top: 0, borderRight: '1px solid', borderColor: palette.neutralLight, }, monthPickerWrapper: [ { display: 'flex', flexDirection: 'column', }, ], goTodayButton: [ (0, style_utilities_1.getFocusStyle)(theme, { inset: -1 }), { bottom: 0, color: palette.neutralPrimary, height: 30, lineHeight: 30, backgroundColor: 'transparent', border: 'none', boxSizing: 'content-box', padding: '0 4px', alignSelf: 'flex-end', marginRight: 16, marginTop: 3, fontSize: style_utilities_1.FontSizes.small, fontFamily: 'inherit', overflow: 'visible', selectors: { '& div': { fontSize: style_utilities_1.FontSizes.small, }, '&:hover': { color: palette.themePrimary, backgroundColor: 'transparent', cursor: 'pointer', selectors: (_a = {}, _a[style_utilities_1.HighContrastSelector] = { outline: '1px solid Buttontext', borderRadius: '2px', }, _a), }, '&:active': { color: palette.themeDark, }, '&:disabled': { color: palette.neutralTertiaryAlt, pointerEvents: 'none', }, }, }, ], liveRegion: { border: 0, height: '1px', margin: '-1px', overflow: 'hidden', padding: 0, width: '1px', position: 'absolute', }, }; }; exports.styles = styles; //# sourceMappingURL=Calendar.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.types.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.types.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.AnimationDirection = void 0; /** * {@docCategory Calendar} */ var AnimationDirection; (function (AnimationDirection) { /** * Grid will transition out and in horizontally */ AnimationDirection[AnimationDirection["Horizontal"] = 0] = "Horizontal"; /** * Grid will transition out and in vertically */ AnimationDirection[AnimationDirection["Vertical"] = 1] = "Vertical"; })(AnimationDirection = exports.AnimationDirection || (exports.AnimationDirection = {})); //# sourceMappingURL=Calendar.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.base.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.base.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarDayBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var Icon_1 = __webpack_require__(/*! ../../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); var CalendarDayGrid_1 = __webpack_require__(/*! ../../CalendarDayGrid/CalendarDayGrid */ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var getClassNames = (0, utilities_1.classNamesFunction)(); var CalendarDayBase = function (props) { var dayGrid = React.useRef(null); React.useImperativeHandle(props.componentRef, function () { return ({ focus: function () { var _a, _b; (_b = (_a = dayGrid.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }, }); }, []); var strings = props.strings, navigatedDate = props.navigatedDate, dateTimeFormatter = props.dateTimeFormatter, styles = props.styles, theme = props.theme, className = props.className, onHeaderSelect = props.onHeaderSelect, showSixWeeksByDefault = props.showSixWeeksByDefault, minDate = props.minDate, maxDate = props.maxDate, restrictedDates = props.restrictedDates, onNavigateDate = props.onNavigateDate, showWeekNumbers = props.showWeekNumbers, dateRangeType = props.dateRangeType, animationDirection = props.animationDirection; var monthAndYearId = (0, react_hooks_1.useId)(); var classNames = getClassNames(styles, { theme: theme, className: className, headerIsClickable: !!onHeaderSelect, showWeekNumbers: showWeekNumbers, animationDirection: animationDirection, }); var monthAndYear = dateTimeFormatter.formatMonthYear(navigatedDate, strings); var HeaderButtonComponentType = onHeaderSelect ? 'button' : 'div'; var headerAriaLabel = strings.yearPickerHeaderAriaLabel ? (0, utilities_1.format)(strings.yearPickerHeaderAriaLabel, monthAndYear) : monthAndYear; return (React.createElement("div", { className: classNames.root }, React.createElement("div", { className: classNames.header }, React.createElement(HeaderButtonComponentType, { "aria-label": onHeaderSelect ? headerAriaLabel : undefined, className: classNames.monthAndYear, onClick: onHeaderSelect, "data-is-focusable": !!onHeaderSelect, tabIndex: onHeaderSelect ? 0 : -1, onKeyDown: onButtonKeyDown(onHeaderSelect), type: "button" }, React.createElement("span", { id: monthAndYearId, "aria-live": "polite", "aria-atomic": "true" }, monthAndYear)), React.createElement(CalendarDayNavigationButtons, tslib_1.__assign({}, props, { classNames: classNames }))), React.createElement(CalendarDayGrid_1.CalendarDayGrid, tslib_1.__assign({}, props, { styles: styles, componentRef: dayGrid, strings: strings, navigatedDate: navigatedDate, weeksToShow: showSixWeeksByDefault ? 6 : undefined, dateTimeFormatter: dateTimeFormatter, minDate: minDate, maxDate: maxDate, restrictedDates: restrictedDates, onNavigateDate: onNavigateDate, labelledBy: monthAndYearId, dateRangeType: dateRangeType })))); }; exports.CalendarDayBase = CalendarDayBase; exports.CalendarDayBase.displayName = 'CalendarDayBase'; var CalendarDayNavigationButtons = function (props) { var _a, _b; var minDate = props.minDate, maxDate = props.maxDate, navigatedDate = props.navigatedDate, allFocusable = props.allFocusable, strings = props.strings, navigationIcons = props.navigationIcons, showCloseButton = props.showCloseButton, classNames = props.classNames, onNavigateDate = props.onNavigateDate, onDismiss = props.onDismiss; var onSelectNextMonth = function () { onNavigateDate((0, date_time_utilities_1.addMonths)(navigatedDate, 1), false); }; var onSelectPrevMonth = function () { onNavigateDate((0, date_time_utilities_1.addMonths)(navigatedDate, -1), false); }; var leftNavigationIcon = navigationIcons.leftNavigation; var rightNavigationIcon = navigationIcons.rightNavigation; var closeNavigationIcon = navigationIcons.closeIcon; // determine if previous/next months are in bounds var prevMonthInBounds = minDate ? (0, date_time_utilities_1.compareDatePart)(minDate, (0, date_time_utilities_1.getMonthStart)(navigatedDate)) < 0 : true; var nextMonthInBounds = maxDate ? (0, date_time_utilities_1.compareDatePart)((0, date_time_utilities_1.getMonthEnd)(navigatedDate), maxDate) < 0 : true; // use aria-disabled instead of disabled so focus is not lost // when a prev/next button becomes disabled after being clicked return (React.createElement("div", { className: classNames.monthComponents }, React.createElement("button", { className: (0, utilities_1.css)(classNames.headerIconButton, (_a = {}, _a[classNames.disabledStyle] = !prevMonthInBounds, _a)), tabIndex: prevMonthInBounds ? undefined : allFocusable ? 0 : -1, "aria-disabled": !prevMonthInBounds, onClick: prevMonthInBounds ? onSelectPrevMonth : undefined, onKeyDown: prevMonthInBounds ? onButtonKeyDown(onSelectPrevMonth) : undefined, title: strings.prevMonthAriaLabel ? strings.prevMonthAriaLabel + ' ' + strings.months[(0, date_time_utilities_1.addMonths)(navigatedDate, -1).getMonth()] : undefined, type: "button" }, React.createElement(Icon_1.Icon, { iconName: leftNavigationIcon })), React.createElement("button", { className: (0, utilities_1.css)(classNames.headerIconButton, (_b = {}, _b[classNames.disabledStyle] = !nextMonthInBounds, _b)), tabIndex: nextMonthInBounds ? undefined : allFocusable ? 0 : -1, "aria-disabled": !nextMonthInBounds, onClick: nextMonthInBounds ? onSelectNextMonth : undefined, onKeyDown: nextMonthInBounds ? onButtonKeyDown(onSelectNextMonth) : undefined, title: strings.nextMonthAriaLabel ? strings.nextMonthAriaLabel + ' ' + strings.months[(0, date_time_utilities_1.addMonths)(navigatedDate, 1).getMonth()] : undefined, type: "button" }, React.createElement(Icon_1.Icon, { iconName: rightNavigationIcon })), showCloseButton && (React.createElement("button", { className: (0, utilities_1.css)(classNames.headerIconButton), onClick: onDismiss, onKeyDown: onButtonKeyDown(onDismiss), title: strings.closeButtonAriaLabel, type: "button" }, React.createElement(Icon_1.Icon, { iconName: closeNavigationIcon }))))); }; CalendarDayNavigationButtons.displayName = 'CalendarDayNavigationButtons'; var onButtonKeyDown = function (callback) { return function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case utilities_1.KeyCodes.enter: callback === null || callback === void 0 ? void 0 : callback(); break; } }; }; //# sourceMappingURL=CalendarDay.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarDay = void 0; var CalendarDay_base_1 = __webpack_require__(/*! ./CalendarDay.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.base.js"); var CalendarDay_styles_1 = __webpack_require__(/*! ./CalendarDay.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.styles.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.CalendarDay = (0, Utilities_1.styled)(CalendarDay_base_1.CalendarDayBase, CalendarDay_styles_1.styles, undefined, { scope: 'CalendarDay', }); //# sourceMappingURL=CalendarDay.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.styles.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.styles.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.styles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var styles = function (props) { var _a; var className = props.className, theme = props.theme, headerIsClickable = props.headerIsClickable, showWeekNumbers = props.showWeekNumbers; var palette = theme.palette; var disabledStyle = { selectors: (_a = { '&, &:disabled, & button': { color: palette.neutralTertiaryAlt, pointerEvents: 'none', } }, _a[style_utilities_1.HighContrastSelector] = { color: 'GrayText', forcedColorAdjust: 'none', }, _a), }; return { root: [ style_utilities_1.normalize, { width: 196, padding: 12, boxSizing: 'content-box', }, showWeekNumbers && { width: 226, }, className, ], header: { position: 'relative', display: 'inline-flex', height: 28, lineHeight: 44, width: '100%', }, monthAndYear: [ (0, style_utilities_1.getFocusStyle)(theme, { inset: 1 }), tslib_1.__assign(tslib_1.__assign({}, style_utilities_1.AnimationStyles.fadeIn200), { alignItems: 'center', fontSize: style_utilities_1.FontSizes.medium, fontFamily: 'inherit', color: palette.neutralPrimary, display: 'inline-block', flexGrow: 1, fontWeight: style_utilities_1.FontWeights.semibold, padding: '0 4px 0 10px', border: 'none', backgroundColor: 'transparent', borderRadius: 2, lineHeight: 28, overflow: 'hidden', whiteSpace: 'nowrap', textAlign: 'left', textOverflow: 'ellipsis' }), headerIsClickable && { selectors: { '&:hover': { cursor: 'pointer', background: palette.neutralLight, color: palette.black, }, }, }, ], monthComponents: { display: 'inline-flex', alignSelf: 'flex-end', }, headerIconButton: [ (0, style_utilities_1.getFocusStyle)(theme, { inset: -1 }), { width: 28, height: 28, display: 'block', textAlign: 'center', lineHeight: 28, fontSize: style_utilities_1.FontSizes.small, fontFamily: 'inherit', color: palette.neutralPrimary, borderRadius: 2, position: 'relative', backgroundColor: 'transparent', border: 'none', padding: 0, overflow: 'visible', selectors: { '&:hover': { color: palette.neutralDark, backgroundColor: palette.neutralLight, cursor: 'pointer', outline: '1px solid transparent', }, }, }, ], disabledStyle: disabledStyle, }; }; exports.styles = styles; //# sourceMappingURL=CalendarDay.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.types.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.types.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=CalendarDay.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.base.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.base.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarMonthBase = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var FocusZone_1 = __webpack_require__(/*! ../../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); var Icon_1 = __webpack_require__(/*! ../../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var CalendarMonth_styles_1 = __webpack_require__(/*! ./CalendarMonth.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.styles.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var CalendarYear_1 = __webpack_require__(/*! ../CalendarYear/CalendarYear */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var defaults_1 = __webpack_require__(/*! ../defaults */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/defaults.js"); var MONTHS_PER_ROW = 4; var getClassNames = (0, utilities_1.classNamesFunction)(); var DEFAULT_PROPS = { styles: CalendarMonth_styles_1.getStyles, strings: undefined, navigationIcons: defaults_1.defaultCalendarNavigationIcons, dateTimeFormatter: date_time_utilities_1.DEFAULT_DATE_FORMATTING, yearPickerHidden: false, }; function useAnimateBackwards(_a) { var navigatedDate = _a.navigatedDate; var currentYear = navigatedDate.getFullYear(); var previousYear = (0, react_hooks_1.usePrevious)(currentYear); if (previousYear === undefined || previousYear === currentYear) { return undefined; } else { return previousYear > currentYear; } } function useFocusLogic(_a) { var componentRef = _a.componentRef; var navigatedMonthRef = React.useRef(null); var calendarYearRef = React.useRef(null); var focusOnUpdate = React.useRef(false); var focus = React.useCallback(function () { if (calendarYearRef.current) { calendarYearRef.current.focus(); } else if (navigatedMonthRef.current) { navigatedMonthRef.current.focus(); } }, []); React.useImperativeHandle(componentRef, function () { return ({ focus: focus }); }, [focus]); React.useEffect(function () { if (focusOnUpdate.current) { focus(); focusOnUpdate.current = false; } }); var focusOnNextUpdate = function () { focusOnUpdate.current = true; }; return [navigatedMonthRef, calendarYearRef, focusOnNextUpdate]; } var CalendarMonthBase = function (propsWithoutDefaults) { var _a, _b; var props = (0, utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); var _c = useFocusLogic(props), navigatedMonthRef = _c[0], calendarYearRef = _c[1], focusOnNextUpdate = _c[2]; var _d = React.useState(false), isYearPickerVisible = _d[0], setIsYearPickerVisible = _d[1]; var animateBackwards = useAnimateBackwards(props); var navigatedDate = props.navigatedDate, selectedDate = props.selectedDate, strings = props.strings, _e = props.today, today = _e === void 0 ? new Date() : _e, navigationIcons = props.navigationIcons, dateTimeFormatter = props.dateTimeFormatter, minDate = props.minDate, maxDate = props.maxDate, theme = props.theme, styles = props.styles, className = props.className, allFocusable = props.allFocusable, highlightCurrentMonth = props.highlightCurrentMonth, highlightSelectedMonth = props.highlightSelectedMonth, animationDirection = props.animationDirection, yearPickerHidden = props.yearPickerHidden, onNavigateDate = props.onNavigateDate; var selectMonthCallback = function (newMonth) { return function () { return onSelectMonth(newMonth); }; }; var onSelectNextYear = function () { onNavigateDate((0, date_time_utilities_1.addYears)(navigatedDate, 1), false); }; var onSelectPrevYear = function () { onNavigateDate((0, date_time_utilities_1.addYears)(navigatedDate, -1), false); }; var onSelectMonth = function (newMonth) { var _a; // If header is clickable the calendars are overlayed, switch back to day picker when month is clicked (_a = props.onHeaderSelect) === null || _a === void 0 ? void 0 : _a.call(props); onNavigateDate((0, date_time_utilities_1.setMonth)(navigatedDate, newMonth), true); }; var onHeaderSelect = function () { var _a; if (!yearPickerHidden) { focusOnNextUpdate(); setIsYearPickerVisible(true); } else { (_a = props.onHeaderSelect) === null || _a === void 0 ? void 0 : _a.call(props); } }; var onSelectYear = function (selectedYear) { focusOnNextUpdate(); var navYear = navigatedDate.getFullYear(); if (navYear !== selectedYear) { var newNavigationDate = new Date(navigatedDate.getTime()); newNavigationDate.setFullYear(selectedYear); // for min and max dates, adjust the new navigation date - perhaps this should be // checked on the master navigation date handler (i.e. in Calendar) if (maxDate && newNavigationDate > maxDate) { newNavigationDate = (0, date_time_utilities_1.setMonth)(newNavigationDate, maxDate.getMonth()); } else if (minDate && newNavigationDate < minDate) { newNavigationDate = (0, date_time_utilities_1.setMonth)(newNavigationDate, minDate.getMonth()); } onNavigateDate(newNavigationDate, true); } setIsYearPickerVisible(false); }; var onYearPickerHeaderSelect = function (focus) { focusOnNextUpdate(); setIsYearPickerVisible(false); }; // navigationIcons has a default value in defaultProps, but typescript doesn't recognize this var leftNavigationIcon = navigationIcons.leftNavigation; var rightNavigationIcon = navigationIcons.rightNavigation; var dateFormatter = dateTimeFormatter; // determine if previous/next years are in bounds var isPrevYearInBounds = minDate ? (0, date_time_utilities_1.compareDatePart)(minDate, (0, date_time_utilities_1.getYearStart)(navigatedDate)) < 0 : true; var isNextYearInBounds = maxDate ? (0, date_time_utilities_1.compareDatePart)((0, date_time_utilities_1.getYearEnd)(navigatedDate), maxDate) < 0 : true; var classNames = getClassNames(styles, { theme: theme, className: className, hasHeaderClickCallback: !!props.onHeaderSelect || !yearPickerHidden, highlightCurrent: highlightCurrentMonth, highlightSelected: highlightSelectedMonth, animateBackwards: animateBackwards, animationDirection: animationDirection, }); if (isYearPickerVisible) { var _f = getYearStrings(props), onRenderYear = _f[0], yearStrings = _f[1]; // use navigated date for the year picker return (React.createElement(CalendarYear_1.CalendarYear, { key: 'calendarYear', minYear: minDate ? minDate.getFullYear() : undefined, maxYear: maxDate ? maxDate.getFullYear() : undefined, // eslint-disable-next-line react/jsx-no-bind onSelectYear: onSelectYear, navigationIcons: navigationIcons, // eslint-disable-next-line react/jsx-no-bind onHeaderSelect: onYearPickerHeaderSelect, selectedYear: selectedDate ? selectedDate.getFullYear() : navigatedDate ? navigatedDate.getFullYear() : undefined, navigatedYear: navigatedDate.getFullYear(), onRenderYear: onRenderYear, strings: yearStrings, componentRef: calendarYearRef, styles: styles, highlightCurrentYear: highlightCurrentMonth, highlightSelectedYear: highlightSelectedMonth, animationDirection: animationDirection })); } var rowIndexes = []; for (var i = 0; i < strings.shortMonths.length / MONTHS_PER_ROW; i++) { rowIndexes.push(i); } var yearString = dateFormatter.formatYear(navigatedDate); var headerAriaLabel = strings.monthPickerHeaderAriaLabel ? (0, utilities_1.format)(strings.monthPickerHeaderAriaLabel, yearString) : yearString; return (React.createElement("div", { className: classNames.root }, React.createElement("div", { className: classNames.headerContainer }, React.createElement("button", { className: classNames.currentItemButton, onClick: onHeaderSelect, onKeyDown: onButtonKeyDown(onHeaderSelect), "aria-label": headerAriaLabel, "data-is-focusable": !!props.onHeaderSelect || !yearPickerHidden, tabIndex: !!props.onHeaderSelect || !yearPickerHidden ? 0 : -1, type: "button" }, React.createElement("span", { "aria-live": "polite", "aria-atomic": "true" }, yearString)), React.createElement("div", { className: classNames.navigationButtonsContainer }, React.createElement("button", { className: (0, utilities_1.css)(classNames.navigationButton, (_a = {}, _a[classNames.disabled] = !isPrevYearInBounds, _a)), "aria-disabled": !isPrevYearInBounds, tabIndex: isPrevYearInBounds ? undefined : allFocusable ? 0 : -1, onClick: isPrevYearInBounds ? onSelectPrevYear : undefined, onKeyDown: isPrevYearInBounds ? onButtonKeyDown(onSelectPrevYear) : undefined, title: strings.prevYearAriaLabel ? strings.prevYearAriaLabel + ' ' + dateFormatter.formatYear((0, date_time_utilities_1.addYears)(navigatedDate, -1)) : undefined, type: "button" }, React.createElement(Icon_1.Icon, { iconName: (0, utilities_1.getRTL)() ? rightNavigationIcon : leftNavigationIcon })), React.createElement("button", { className: (0, utilities_1.css)(classNames.navigationButton, (_b = {}, _b[classNames.disabled] = !isNextYearInBounds, _b)), "aria-disabled": !isNextYearInBounds, tabIndex: isNextYearInBounds ? undefined : allFocusable ? 0 : -1, onClick: isNextYearInBounds ? onSelectNextYear : undefined, onKeyDown: isNextYearInBounds ? onButtonKeyDown(onSelectNextYear) : undefined, title: strings.nextYearAriaLabel ? strings.nextYearAriaLabel + ' ' + dateFormatter.formatYear((0, date_time_utilities_1.addYears)(navigatedDate, 1)) : undefined, type: "button" }, React.createElement(Icon_1.Icon, { iconName: (0, utilities_1.getRTL)() ? leftNavigationIcon : rightNavigationIcon })))), React.createElement(FocusZone_1.FocusZone, null, React.createElement("div", { className: classNames.gridContainer, role: "grid", "aria-label": yearString }, rowIndexes.map(function (rowNum) { var monthsForRow = strings.shortMonths.slice(rowNum * MONTHS_PER_ROW, (rowNum + 1) * MONTHS_PER_ROW); return (React.createElement("div", { key: 'monthRow_' + rowNum + navigatedDate.getFullYear(), role: "row", className: classNames.buttonRow }, monthsForRow.map(function (month, index) { var _a; var monthIndex = rowNum * MONTHS_PER_ROW + index; var indexedMonth = (0, date_time_utilities_1.setMonth)(navigatedDate, monthIndex); var isNavigatedMonth = navigatedDate.getMonth() === monthIndex; var isSelectedMonth = selectedDate.getMonth() === monthIndex; var isSelectedYear = selectedDate.getFullYear() === navigatedDate.getFullYear(); var isInBounds = (minDate ? (0, date_time_utilities_1.compareDatePart)(minDate, (0, date_time_utilities_1.getMonthEnd)(indexedMonth)) < 1 : true) && (maxDate ? (0, date_time_utilities_1.compareDatePart)((0, date_time_utilities_1.getMonthStart)(indexedMonth), maxDate) < 1 : true); return (React.createElement("button", { ref: isNavigatedMonth ? navigatedMonthRef : undefined, role: 'gridcell', className: (0, utilities_1.css)(classNames.itemButton, (_a = {}, _a[classNames.current] = highlightCurrentMonth && isCurrentMonth(monthIndex, navigatedDate.getFullYear(), today), _a[classNames.selected] = highlightSelectedMonth && isSelectedMonth && isSelectedYear, _a[classNames.disabled] = !isInBounds, _a)), disabled: !allFocusable && !isInBounds, key: monthIndex, onClick: isInBounds ? selectMonthCallback(monthIndex) : undefined, onKeyDown: isInBounds ? onButtonKeyDown(selectMonthCallback(monthIndex)) : undefined, "aria-label": dateFormatter.formatMonth(indexedMonth, strings), "aria-selected": isNavigatedMonth, "data-is-focusable": isInBounds ? true : undefined, type: "button" }, month)); }))); }))))); }; exports.CalendarMonthBase = CalendarMonthBase; exports.CalendarMonthBase.displayName = 'CalendarMonthBase'; function getYearStrings(_a) { var strings = _a.strings, navigatedDate = _a.navigatedDate, dateTimeFormatter = _a.dateTimeFormatter; var yearToString = function (year) { if (dateTimeFormatter) { // create a date based on the current nav date var yearFormattingDate = new Date(navigatedDate.getTime()); yearFormattingDate.setFullYear(year); return dateTimeFormatter.formatYear(yearFormattingDate); } return String(year); }; var yearRangeToString = function (yearRange) { return "".concat(yearToString(yearRange.fromYear), " - ").concat(yearToString(yearRange.toYear)); }; var yearRangeToNextDecadeLabel = function (yearRange) { return strings.nextYearRangeAriaLabel ? "".concat(strings.nextYearRangeAriaLabel, " ").concat(yearRangeToString(yearRange)) : ''; }; var yearRangeToPrevDecadeLabel = function (yearRange) { return strings.prevYearRangeAriaLabel ? "".concat(strings.prevYearRangeAriaLabel, " ").concat(yearRangeToString(yearRange)) : ''; }; return [ yearToString, { rangeAriaLabel: yearRangeToString, prevRangeAriaLabel: yearRangeToPrevDecadeLabel, nextRangeAriaLabel: yearRangeToNextDecadeLabel, headerAriaLabelFormatString: strings.yearPickerHeaderAriaLabel, }, ]; } function isCurrentMonth(month, year, today) { return today.getFullYear() === year && today.getMonth() === month; } function onButtonKeyDown(callback) { return function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case utilities_1.KeyCodes.enter: callback(); break; } }; } //# sourceMappingURL=CalendarMonth.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarMonth = void 0; var CalendarMonth_base_1 = __webpack_require__(/*! ./CalendarMonth.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.base.js"); var CalendarMonth_styles_1 = __webpack_require__(/*! ./CalendarMonth.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.styles.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.CalendarMonth = (0, Utilities_1.styled)(CalendarMonth_base_1.CalendarMonthBase, CalendarMonth_styles_1.getStyles, undefined, { scope: 'CalendarMonth' }); //# sourceMappingURL=CalendarMonth.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.styles.js": /*!*************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.styles.js ***! \*************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var CalendarPicker_styles_1 = __webpack_require__(/*! ../CalendarPicker/CalendarPicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarPicker/CalendarPicker.styles.js"); var getStyles = function (props) { /* Return styles from the base class. * If this component has extra styles not in the base, apply them here i.e.: * const myStyle: IStyle = { * display: "block" * }; * * return {...getPickerStyles(props), myStyle}; */ return (0, CalendarPicker_styles_1.getStyles)(props); }; exports.getStyles = getStyles; //# sourceMappingURL=CalendarMonth.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.types.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.types.js ***! \************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=CalendarMonth.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarPicker/CalendarPicker.styles.js": /*!***************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarPicker/CalendarPicker.styles.js ***! \***************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var Calendar_types_1 = __webpack_require__(/*! ../Calendar.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.types.js"); var getStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g; var className = props.className, theme = props.theme, hasHeaderClickCallback = props.hasHeaderClickCallback, highlightCurrent = props.highlightCurrent, highlightSelected = props.highlightSelected, animateBackwards = props.animateBackwards, animationDirection = props.animationDirection; var palette = theme.palette; var animationStyle = {}; if (animateBackwards !== undefined) { if (animationDirection === Calendar_types_1.AnimationDirection.Horizontal) { animationStyle = animateBackwards ? style_utilities_1.AnimationStyles.slideRightIn20 : style_utilities_1.AnimationStyles.slideLeftIn20; } else { animationStyle = animateBackwards ? style_utilities_1.AnimationStyles.slideDownIn20 : style_utilities_1.AnimationStyles.slideUpIn20; } } var headerAnimationStyle = animateBackwards !== undefined ? style_utilities_1.AnimationStyles.fadeIn200 : {}; return { root: [ style_utilities_1.normalize, { width: 196, padding: 12, boxSizing: 'content-box', overflow: 'hidden', }, className, ], headerContainer: { display: 'flex', }, currentItemButton: [ (0, style_utilities_1.getFocusStyle)(theme, { inset: -1 }), tslib_1.__assign(tslib_1.__assign({}, headerAnimationStyle), { fontSize: style_utilities_1.FontSizes.medium, fontWeight: style_utilities_1.FontWeights.semibold, fontFamily: 'inherit', textAlign: 'left', color: 'inherit', backgroundColor: 'transparent', flexGrow: 1, padding: '0 4px 0 10px', border: 'none', overflow: 'visible' }), hasHeaderClickCallback && { selectors: { '&:hover, &:active': { cursor: !hasHeaderClickCallback ? 'default' : 'pointer', color: palette.neutralDark, outline: '1px solid transparent', backgroundColor: palette.neutralLight, }, }, }, ], navigationButtonsContainer: { display: 'flex', alignItems: 'center', }, navigationButton: [ (0, style_utilities_1.getFocusStyle)(theme, { inset: -1 }), { fontFamily: 'inherit', width: 28, minWidth: 28, height: 28, minHeight: 28, display: 'block', textAlign: 'center', lineHeight: 28, fontSize: style_utilities_1.FontSizes.small, color: palette.neutralPrimary, borderRadius: 2, position: 'relative', backgroundColor: 'transparent', border: 'none', padding: 0, overflow: 'visible', selectors: { '&:hover': { color: palette.neutralDark, cursor: 'pointer', outline: '1px solid transparent', backgroundColor: palette.neutralLight, }, }, }, ], gridContainer: { marginTop: 4, }, buttonRow: tslib_1.__assign(tslib_1.__assign({}, animationStyle), { marginBottom: 16, selectors: { '&:nth-child(n + 3)': { marginBottom: 0, }, } }), itemButton: [ (0, style_utilities_1.getFocusStyle)(theme, { inset: -1 }), { width: 40, height: 40, minWidth: 40, minHeight: 40, lineHeight: 40, fontSize: style_utilities_1.FontSizes.small, fontFamily: 'inherit', padding: 0, margin: '0 12px 0 0', color: palette.neutralPrimary, backgroundColor: 'transparent', border: 'none', borderRadius: 2, overflow: 'visible', selectors: { '&:nth-child(4n + 4)': { marginRight: 0, }, '&:nth-child(n + 9)': { marginBottom: 0, }, '& div': { fontWeight: style_utilities_1.FontWeights.regular, }, '&:hover': { color: palette.neutralDark, backgroundColor: palette.neutralLight, cursor: 'pointer', outline: '1px solid transparent', selectors: (_a = {}, _a[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ background: 'Window', color: 'WindowText', outline: '1px solid Highlight' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _a), }, '&:active': { backgroundColor: palette.themeLight, selectors: (_b = {}, _b[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ background: 'Window', color: 'Highlight' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _b), }, }, }, ], current: highlightCurrent ? { color: palette.white, backgroundColor: palette.themePrimary, selectors: (_c = { '& div': { fontWeight: style_utilities_1.FontWeights.semibold, }, '&:hover': { backgroundColor: palette.themePrimary, selectors: (_d = {}, _d[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'WindowText', color: 'Window' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _d), } }, _c[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'WindowText', color: 'Window' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _c), } : {}, selected: highlightSelected ? { color: palette.neutralPrimary, backgroundColor: palette.themeLight, fontWeight: style_utilities_1.FontWeights.semibold, selectors: (_e = { '& div': { fontWeight: style_utilities_1.FontWeights.semibold, }, '&:hover, &:active': { backgroundColor: palette.themeLight, selectors: (_f = {}, _f[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ color: 'Window', background: 'Highlight' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _f), } }, _e[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ background: 'Highlight', color: 'Window' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _e), } : {}, disabled: { selectors: (_g = { '&, &:disabled, & button': { color: palette.neutralTertiaryAlt, pointerEvents: 'none', } }, _g[style_utilities_1.HighContrastSelector] = { color: 'GrayText', forcedColorAdjust: 'none', }, _g), }, }; }; exports.getStyles = getStyles; //# sourceMappingURL=CalendarPicker.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarPicker/CalendarPicker.types.js": /*!**************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarPicker/CalendarPicker.types.js ***! \**************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=CalendarPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.base.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.base.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarYearBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var FocusZone_1 = __webpack_require__(/*! ../../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var Icon_1 = __webpack_require__(/*! ../../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var defaults_1 = __webpack_require__(/*! ../defaults */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/defaults.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var CELL_COUNT = 12; var CELLS_PER_ROW = 4; var DefaultCalendarYearStrings = { prevRangeAriaLabel: undefined, nextRangeAriaLabel: undefined, }; var CalendarYearGridCell = function (props) { var _a; var _b; var styles = props.styles, theme = props.theme, className = props.className, highlightCurrentYear = props.highlightCurrentYear, highlightSelectedYear = props.highlightSelectedYear, year = props.year, selected = props.selected, disabled = props.disabled, componentRef = props.componentRef, onSelectYear = props.onSelectYear, onRenderYear = props.onRenderYear; var buttonRef = React.useRef(null); React.useImperativeHandle(componentRef, function () { return ({ focus: function () { var _a, _b; (_b = (_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }, }); }, []); var onClick = function () { onSelectYear === null || onSelectYear === void 0 ? void 0 : onSelectYear(year); }; var onKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter) { onSelectYear === null || onSelectYear === void 0 ? void 0 : onSelectYear(year); } }; var classNames = getClassNames(styles, { theme: theme, className: className, highlightCurrent: highlightCurrentYear, highlightSelected: highlightSelectedYear, }); return (React.createElement("button", { className: (0, Utilities_1.css)(classNames.itemButton, (_a = {}, _a[classNames.selected] = selected, _a[classNames.disabled] = disabled, _a)), type: "button", role: "gridcell", onClick: !disabled ? onClick : undefined, onKeyDown: !disabled ? onKeyDown : undefined, disabled: disabled, "aria-selected": selected, ref: buttonRef }, (_b = onRenderYear === null || onRenderYear === void 0 ? void 0 : onRenderYear(year)) !== null && _b !== void 0 ? _b : year)); }; CalendarYearGridCell.displayName = 'CalendarYearGridCell'; var CalendarYearGrid = function (props) { var styles = props.styles, theme = props.theme, className = props.className, fromYear = props.fromYear, toYear = props.toYear, animationDirection = props.animationDirection, animateBackwards = props.animateBackwards, minYear = props.minYear, maxYear = props.maxYear, onSelectYear = props.onSelectYear, selectedYear = props.selectedYear, componentRef = props.componentRef; var selectedCellRef = React.useRef(null); var currentCellRef = React.useRef(null); React.useImperativeHandle(componentRef, function () { return ({ focus: function () { var _a, _b; (_b = (_a = (selectedCellRef.current || currentCellRef.current)) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }, }); }, []); var renderCell = function (yearToRender) { var selected = yearToRender === selectedYear; var disabled = (minYear !== undefined && yearToRender < minYear) || (maxYear !== undefined && yearToRender > maxYear); var current = yearToRender === new Date().getFullYear(); return (React.createElement(CalendarYearGridCell, tslib_1.__assign({}, props, { key: yearToRender, year: yearToRender, selected: selected, current: current, disabled: disabled, onSelectYear: onSelectYear, componentRef: selected ? selectedCellRef : current ? currentCellRef : undefined, theme: theme }))); }; var classNames = getClassNames(styles, { theme: theme, className: className, animateBackwards: animateBackwards, animationDirection: animationDirection, }); var onRenderYear = function (value) { var _a, _b; return (_b = (_a = props.onRenderYear) === null || _a === void 0 ? void 0 : _a.call(props, value)) !== null && _b !== void 0 ? _b : value; }; var gridAriaLabel = "".concat(onRenderYear(fromYear), " - ").concat(onRenderYear(toYear)); var year = fromYear; var cells = []; for (var i = 0; i < (toYear - fromYear + 1) / CELLS_PER_ROW; i++) { cells.push([]); for (var j = 0; j < CELLS_PER_ROW; j++) { cells[i].push(renderCell(year)); year++; } } return (React.createElement(FocusZone_1.FocusZone, null, React.createElement("div", { className: classNames.gridContainer, role: "grid", "aria-label": gridAriaLabel }, cells.map(function (cellRow, index) { return (React.createElement.apply(React, tslib_1.__spreadArray(["div", { key: 'yearPickerRow_' + index + '_' + fromYear, role: "row", className: classNames.buttonRow }], cellRow, false))); })))); }; CalendarYearGrid.displayName = 'CalendarYearGrid'; var CalendarYearNavDirection; (function (CalendarYearNavDirection) { CalendarYearNavDirection[CalendarYearNavDirection["Previous"] = 0] = "Previous"; CalendarYearNavDirection[CalendarYearNavDirection["Next"] = 1] = "Next"; })(CalendarYearNavDirection || (CalendarYearNavDirection = {})); var CalendarYearNavArrow = function (props) { var _a; var styles = props.styles, theme = props.theme, className = props.className, _b = props.navigationIcons, navigationIcons = _b === void 0 ? defaults_1.defaultCalendarNavigationIcons : _b, _c = props.strings, strings = _c === void 0 ? DefaultCalendarYearStrings : _c, direction = props.direction, onSelectPrev = props.onSelectPrev, onSelectNext = props.onSelectNext, fromYear = props.fromYear, toYear = props.toYear, maxYear = props.maxYear, minYear = props.minYear; var classNames = getClassNames(styles, { theme: theme, className: className, }); var ariaLabel = direction === CalendarYearNavDirection.Previous ? strings.prevRangeAriaLabel : strings.nextRangeAriaLabel; var newRangeOffset = direction === CalendarYearNavDirection.Previous ? -CELL_COUNT : CELL_COUNT; var newRange = { fromYear: fromYear + newRangeOffset, toYear: toYear + newRangeOffset }; var ariaLabelString = ariaLabel ? (typeof ariaLabel === 'string' ? ariaLabel : ariaLabel(newRange)) : undefined; var disabled = direction === CalendarYearNavDirection.Previous ? minYear !== undefined && fromYear < minYear : maxYear !== undefined && props.fromYear + CELL_COUNT > maxYear; var onNavigate = function () { direction === CalendarYearNavDirection.Previous ? onSelectPrev === null || onSelectPrev === void 0 ? void 0 : onSelectPrev() : onSelectNext === null || onSelectNext === void 0 ? void 0 : onSelectNext(); }; var onKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter) { onNavigate(); } }; // can be condensed, but leaving verbose for clarity due to regressions var isLeftNavigation = (0, Utilities_1.getRTL)() ? direction === CalendarYearNavDirection.Next : direction === CalendarYearNavDirection.Previous; return (React.createElement("button", { className: (0, Utilities_1.css)(classNames.navigationButton, (_a = {}, _a[classNames.disabled] = disabled, _a)), onClick: !disabled ? onNavigate : undefined, onKeyDown: !disabled ? onKeyDown : undefined, type: "button", title: ariaLabelString, disabled: disabled }, React.createElement(Icon_1.Icon, { iconName: isLeftNavigation ? navigationIcons.leftNavigation : navigationIcons.rightNavigation }))); }; CalendarYearNavArrow.displayName = 'CalendarYearNavArrow'; var CalendarYearNav = function (props) { var styles = props.styles, theme = props.theme, className = props.className; var classNames = getClassNames(styles, { theme: theme, className: className, }); return (React.createElement("div", { className: classNames.navigationButtonsContainer }, React.createElement(CalendarYearNavArrow, tslib_1.__assign({}, props, { direction: CalendarYearNavDirection.Previous })), React.createElement(CalendarYearNavArrow, tslib_1.__assign({}, props, { direction: CalendarYearNavDirection.Next })))); }; CalendarYearNav.displayName = 'CalendarYearNav'; var CalendarYearTitle = function (props) { var styles = props.styles, theme = props.theme, className = props.className, fromYear = props.fromYear, toYear = props.toYear, _a = props.strings, strings = _a === void 0 ? DefaultCalendarYearStrings : _a, animateBackwards = props.animateBackwards, animationDirection = props.animationDirection; var onHeaderSelect = function () { var _a; (_a = props.onHeaderSelect) === null || _a === void 0 ? void 0 : _a.call(props, true); }; var onHeaderKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter || ev.which === Utilities_1.KeyCodes.space) { onHeaderSelect(); } }; var onRenderYear = function (year) { var _a, _b; return (_b = (_a = props.onRenderYear) === null || _a === void 0 ? void 0 : _a.call(props, year)) !== null && _b !== void 0 ? _b : year; }; var classNames = getClassNames(styles, { theme: theme, className: className, hasHeaderClickCallback: !!props.onHeaderSelect, animateBackwards: animateBackwards, animationDirection: animationDirection, }); if (props.onHeaderSelect) { var rangeAriaLabel = strings.rangeAriaLabel; var headerAriaLabelFormatString = strings.headerAriaLabelFormatString; var currentDateRange = rangeAriaLabel ? typeof rangeAriaLabel === 'string' ? rangeAriaLabel : rangeAriaLabel(props) : undefined; var ariaLabel = headerAriaLabelFormatString ? (0, Utilities_1.format)(headerAriaLabelFormatString, currentDateRange) : currentDateRange; return (React.createElement("button", { className: classNames.currentItemButton, onClick: onHeaderSelect, onKeyDown: onHeaderKeyDown, "aria-label": ariaLabel, role: "button", type: "button" }, React.createElement("span", { "aria-live": "assertive", "aria-atomic": "true" }, onRenderYear(fromYear), " - ", onRenderYear(toYear)))); } return (React.createElement("div", { className: classNames.current }, onRenderYear(fromYear), " - ", onRenderYear(toYear))); }; CalendarYearTitle.displayName = 'CalendarYearTitle'; var CalendarYearHeader = function (props) { var _a; var styles = props.styles, theme = props.theme, className = props.className, animateBackwards = props.animateBackwards, animationDirection = props.animationDirection, onRenderTitle = props.onRenderTitle; var classNames = getClassNames(styles, { theme: theme, className: className, hasHeaderClickCallback: !!props.onHeaderSelect, animateBackwards: animateBackwards, animationDirection: animationDirection, }); return (React.createElement("div", { className: classNames.headerContainer }, (_a = onRenderTitle === null || onRenderTitle === void 0 ? void 0 : onRenderTitle(props)) !== null && _a !== void 0 ? _a : React.createElement(CalendarYearTitle, tslib_1.__assign({}, props)), React.createElement(CalendarYearNav, tslib_1.__assign({}, props)))); }; CalendarYearHeader.displayName = 'CalendarYearHeader'; function useAnimateBackwards(_a) { var selectedYear = _a.selectedYear, navigatedYear = _a.navigatedYear; var rangeYear = selectedYear || navigatedYear || new Date().getFullYear(); var fromYear = Math.floor(rangeYear / 10) * 10; var previousFromYear = (0, react_hooks_1.usePrevious)(fromYear); if (!previousFromYear || previousFromYear === fromYear) { return undefined; } else if (previousFromYear > fromYear) { return true; } else { return false; } } function useYearRangeState(_a) { var selectedYear = _a.selectedYear, navigatedYear = _a.navigatedYear; var rangeYear = React.useMemo(function () { return selectedYear || navigatedYear || Math.floor(new Date().getFullYear() / 10) * 10; }, [navigatedYear, selectedYear]); var _b = React.useState(rangeYear), fromYear = _b[0], setFromYear = _b[1]; var onNavNext = function () { setFromYear(function (year) { return year + CELL_COUNT; }); }; var onNavPrevious = function () { setFromYear(function (year) { return year - CELL_COUNT; }); }; React.useEffect(function () { setFromYear(rangeYear); }, [rangeYear]); var toYear = fromYear + CELL_COUNT - 1; return [fromYear, toYear, onNavNext, onNavPrevious]; } var CalendarYearBase = function (props) { var animateBackwards = useAnimateBackwards(props); var _a = useYearRangeState(props), fromYear = _a[0], toYear = _a[1], onNavNext = _a[2], onNavPrevious = _a[3]; var gridRef = React.useRef(null); React.useImperativeHandle(props.componentRef, function () { return ({ focus: function () { var _a, _b; (_b = (_a = gridRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }, }); }); var styles = props.styles, theme = props.theme, className = props.className; var classNames = getClassNames(styles, { theme: theme, className: className, }); return (React.createElement("div", { className: classNames.root }, React.createElement(CalendarYearHeader, tslib_1.__assign({}, props, { fromYear: fromYear, toYear: toYear, onSelectPrev: onNavPrevious, onSelectNext: onNavNext, animateBackwards: animateBackwards })), React.createElement(CalendarYearGrid, tslib_1.__assign({}, props, { fromYear: fromYear, toYear: toYear, animateBackwards: animateBackwards, componentRef: gridRef })))); }; exports.CalendarYearBase = CalendarYearBase; exports.CalendarYearBase.displayName = 'CalendarYearBase'; //# sourceMappingURL=CalendarYear.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarYear = void 0; var CalendarYear_styles_1 = __webpack_require__(/*! ./CalendarYear.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.styles.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var CalendarYear_base_1 = __webpack_require__(/*! ./CalendarYear.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.base.js"); exports.CalendarYear = (0, Utilities_1.styled)(CalendarYear_base_1.CalendarYearBase, CalendarYear_styles_1.getStyles, undefined, { scope: 'CalendarYear' }); //# sourceMappingURL=CalendarYear.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.styles.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.styles.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var CalendarPicker_styles_1 = __webpack_require__(/*! ../CalendarPicker/CalendarPicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarPicker/CalendarPicker.styles.js"); var getStyles = function (props) { /* Return styles from the base class. * If this component has extra styles not in the base, apply them here i.e.: * const myStyle: IStyle = { * display: "block" * }; * return {...getPickerStyles(props), myStyle}; */ return (0, CalendarPicker_styles_1.getStyles)(props); }; exports.getStyles = getStyles; //# sourceMappingURL=CalendarYear.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.types.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.types.js ***! \**********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=CalendarYear.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/defaults.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/defaults.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.defaultCalendarNavigationIcons = exports.defaultDayPickerStrings = exports.defaultCalendarStrings = void 0; var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); exports.defaultCalendarStrings = date_time_utilities_1.DEFAULT_CALENDAR_STRINGS; /** * @deprecated Use `defaultCalendarStrings` */ exports.defaultDayPickerStrings = exports.defaultCalendarStrings; exports.defaultCalendarNavigationIcons = { leftNavigation: 'Up', rightNavigation: 'Down', closeIcon: 'CalculatorMultiply', }; //# sourceMappingURL=defaults.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Calendar/index.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FirstWeekOfYear = exports.DateRangeType = exports.DayOfWeek = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Calendar */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Calendar.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./CalendarDay/CalendarDay.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarDay/CalendarDay.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./CalendarMonth/CalendarMonth.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarMonth/CalendarMonth.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./CalendarPicker/CalendarPicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarPicker/CalendarPicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./CalendarYear/CalendarYear.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/CalendarYear/CalendarYear.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ../CalendarDayGrid/CalendarDayGrid.types */ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/defaults.js"), exports); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); Object.defineProperty(exports, "DayOfWeek", ({ enumerable: true, get: function () { return date_time_utilities_1.DayOfWeek; } })); Object.defineProperty(exports, "DateRangeType", ({ enumerable: true, get: function () { return date_time_utilities_1.DateRangeType; } })); Object.defineProperty(exports, "FirstWeekOfYear", ({ enumerable: true, get: function () { return date_time_utilities_1.FirstWeekOfYear; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.base.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.base.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarDayGridBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var CalendarMonthHeaderRow_1 = __webpack_require__(/*! ./CalendarMonthHeaderRow */ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarMonthHeaderRow.js"); var CalendarGridRow_1 = __webpack_require__(/*! ./CalendarGridRow */ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js"); var getClassNames = (0, utilities_1.classNamesFunction)(); function useDayRefs() { var daysRef = React.useRef({}); var getSetRefCallback = function (dayKey) { return function (element) { if (element === null) { delete daysRef.current[dayKey]; } else { daysRef.current[dayKey] = element; } }; }; return [daysRef, getSetRefCallback]; } function useWeeks(props, onSelectDate, getSetRefCallback) { /** * Initial parsing of the given props to generate IDayInfo two dimensional array, which contains a representation * of every day in the grid. Convenient for helping with conversions between day refs and Date objects in callbacks. */ var weeks = React.useMemo(function () { var _a; var weeksGrid = (0, date_time_utilities_1.getDayGrid)(props); var firstVisibleDay = weeksGrid[1][0].originalDate; var lastVisibleDay = weeksGrid[weeksGrid.length - 1][6].originalDate; var markedDays = ((_a = props.getMarkedDays) === null || _a === void 0 ? void 0 : _a.call(props, firstVisibleDay, lastVisibleDay)) || []; /** * Weeks is a 2D array. Weeks[0] contains the last week of the prior range, * Weeks[weeks.length - 1] contains first week of next range. These are for transition states. * * Weeks[1... weeks.length - 2] contains the actual visible data */ var returnValue = []; for (var weekIndex = 0; weekIndex < weeksGrid.length; weekIndex++) { var week = []; var _loop_1 = function (dayIndex) { var day = weeksGrid[weekIndex][dayIndex]; var dayInfo = tslib_1.__assign(tslib_1.__assign({ onSelected: function () { return onSelectDate(day.originalDate); }, setRef: getSetRefCallback(day.key) }, day), { isMarked: day.isMarked || (markedDays === null || markedDays === void 0 ? void 0 : markedDays.some(function (markedDay) { return (0, date_time_utilities_1.compareDates)(day.originalDate, markedDay); })) }); week.push(dayInfo); }; for (var dayIndex = 0; dayIndex < date_time_utilities_1.DAYS_IN_WEEK; dayIndex++) { _loop_1(dayIndex); } returnValue.push(week); } return returnValue; // TODO: this is missing deps on getSetRefCallback and onSelectDate (and depending on the entire // props object may not be a good idea due to likely frequent mutation). It would be easy to // fix getSetRefCallback to not mutate every render, but onSelectDate is passed down from // Calendar and trying to fix it requires a huge cascade of changes. // eslint-disable-next-line react-hooks/exhaustive-deps }, [props]); return weeks; } /** * Hook to determine whether to animate the CalendarDayGrid forwards or backwards * @returns true if the grid should animate backwards; false otherwise */ function useAnimateBackwards(weeks) { var previousNavigatedDate = (0, react_hooks_1.usePrevious)(weeks[0][0].originalDate); if (!previousNavigatedDate || previousNavigatedDate.getTime() === weeks[0][0].originalDate.getTime()) { return undefined; } else if (previousNavigatedDate <= weeks[0][0].originalDate) { return false; } else { return true; } } function useWeekCornerStyles(props) { /** * * Section for setting the rounded corner styles on individual day cells. Individual day cells need different * corners to be rounded depending on which date range type and where the cell is located in the current grid. * If we just round all of the corners, there isn't a good overlap and we get gaps between contiguous day boxes * in Edge browser. * */ var getWeekCornerStyles = function (classNames, initialWeeks) { var weekCornersStyled = {}; /* need to handle setting all of the corners on arbitrarily shaped blobs __ __|A | |B |C |__ |D |E |F | in this case, A needs top left rounded, top right rounded B needs top left rounded C doesn't need any rounding D needs bottom left rounded E doesn't need any rounding F needs top right rounding */ // cut off the animation transition weeks var weeks = initialWeeks.slice(1, initialWeeks.length - 1); // if there's an item above, lose both top corners. Item below, lose both bottom corners, etc. weeks.forEach(function (week, weekIndex) { week.forEach(function (day, dayIndex) { var above = weeks[weekIndex - 1] && weeks[weekIndex - 1][dayIndex] && isInSameHoverRange(weeks[weekIndex - 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex - 1][dayIndex].isSelected, day.isSelected); var below = weeks[weekIndex + 1] && weeks[weekIndex + 1][dayIndex] && isInSameHoverRange(weeks[weekIndex + 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex + 1][dayIndex].isSelected, day.isSelected); var left = weeks[weekIndex][dayIndex - 1] && isInSameHoverRange(weeks[weekIndex][dayIndex - 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex - 1].isSelected, day.isSelected); var right = weeks[weekIndex][dayIndex + 1] && isInSameHoverRange(weeks[weekIndex][dayIndex + 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex + 1].isSelected, day.isSelected); var style = []; style.push(calculateRoundedStyles(classNames, above, below, left, right)); style.push(calculateBorderStyles(classNames, above, below, left, right)); weekCornersStyled[weekIndex + '_' + dayIndex] = style.join(' '); }); }); return weekCornersStyled; }; var calculateRoundedStyles = function (classNames, above, below, left, right) { var style = []; var roundedTopLeft = !above && !left; var roundedTopRight = !above && !right; var roundedBottomLeft = !below && !left; var roundedBottomRight = !below && !right; if (roundedTopLeft) { style.push((0, utilities_1.getRTL)() ? classNames.topRightCornerDate : classNames.topLeftCornerDate); } if (roundedTopRight) { style.push((0, utilities_1.getRTL)() ? classNames.topLeftCornerDate : classNames.topRightCornerDate); } if (roundedBottomLeft) { style.push((0, utilities_1.getRTL)() ? classNames.bottomRightCornerDate : classNames.bottomLeftCornerDate); } if (roundedBottomRight) { style.push((0, utilities_1.getRTL)() ? classNames.bottomLeftCornerDate : classNames.bottomRightCornerDate); } return style.join(' '); }; var calculateBorderStyles = function (classNames, above, below, left, right) { var style = []; if (!above) { style.push(classNames.datesAbove); } if (!below) { style.push(classNames.datesBelow); } if (!left) { style.push((0, utilities_1.getRTL)() ? classNames.datesRight : classNames.datesLeft); } if (!right) { style.push((0, utilities_1.getRTL)() ? classNames.datesLeft : classNames.datesRight); } return style.join(' '); }; var isInSameHoverRange = function (date1, date2, date1Selected, date2Selected) { var dateRangeType = props.dateRangeType, firstDayOfWeek = props.firstDayOfWeek, workWeekDays = props.workWeekDays; // The hover state looks weird with non-contiguous days in work week view. In work week, show week hover state var dateRangeHoverType = dateRangeType === date_time_utilities_1.DateRangeType.WorkWeek ? date_time_utilities_1.DateRangeType.Week : dateRangeType; // we do not pass daysToSelectInDayView because we handle setting those styles dyanamically in onMouseOver var dateRange = (0, date_time_utilities_1.getDateRangeArray)(date1, dateRangeHoverType, firstDayOfWeek, workWeekDays); if (date1Selected !== date2Selected) { // if one is selected and the other is not, they can't be in the same range return false; } else if (date1Selected && date2Selected) { // if they're both selected at the same time they must be in the same range return true; } // otherwise, both must be unselected, so check the dateRange return dateRange.filter(function (date) { return date.getTime() === date2.getTime(); }).length > 0; }; return [getWeekCornerStyles, calculateRoundedStyles]; } var CalendarDayGridBase = function (props) { var navigatedDayRef = React.useRef(null); var activeDescendantId = (0, react_hooks_1.useId)(); var onSelectDate = function (selectedDate) { var _a, _b; var firstDayOfWeek = props.firstDayOfWeek, minDate = props.minDate, maxDate = props.maxDate, workWeekDays = props.workWeekDays, daysToSelectInDayView = props.daysToSelectInDayView, restrictedDates = props.restrictedDates; var restrictedDatesOptions = { minDate: minDate, maxDate: maxDate, restrictedDates: restrictedDates }; var dateRange = (0, date_time_utilities_1.getDateRangeArray)(selectedDate, dateRangeType, firstDayOfWeek, workWeekDays, daysToSelectInDayView); dateRange = (0, date_time_utilities_1.getBoundedDateRange)(dateRange, minDate, maxDate); dateRange = dateRange.filter(function (d) { return !(0, date_time_utilities_1.isRestrictedDate)(d, restrictedDatesOptions); }); (_a = props.onSelectDate) === null || _a === void 0 ? void 0 : _a.call(props, selectedDate, dateRange); (_b = props.onNavigateDate) === null || _b === void 0 ? void 0 : _b.call(props, selectedDate, true); }; var _a = useDayRefs(), daysRef = _a[0], getSetRefCallback = _a[1]; var weeks = useWeeks(props, onSelectDate, getSetRefCallback); var animateBackwards = useAnimateBackwards(weeks); var _b = useWeekCornerStyles(props), getWeekCornerStyles = _b[0], calculateRoundedStyles = _b[1]; React.useImperativeHandle(props.componentRef, function () { return ({ focus: function () { var _a, _b; (_b = (_a = navigatedDayRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }, }); }, []); /** * * Section for setting hover/pressed styles. Because we want arbitrary blobs of days to be selectable, to support * highlighting every day in the month for month view, css :hover style isn't enough, so we need mouse callbacks * to set classnames on all relevant child refs to apply the styling * */ var getDayInfosInRangeOfDay = function (dayToCompare) { // The hover state looks weird with non-contiguous days in work week view. In work week, show week hover state var dateRangeHoverType = getDateRangeTypeToUse(props.dateRangeType, props.workWeekDays); // gets all the dates for the given date range type that are in the same date range as the given day var dateRange = (0, date_time_utilities_1.getDateRangeArray)(dayToCompare.originalDate, dateRangeHoverType, props.firstDayOfWeek, props.workWeekDays, props.daysToSelectInDayView).map(function (date) { return date.getTime(); }); // gets all the day refs for the given dates var dayInfosInRange = weeks.reduce(function (accumulatedValue, currentWeek) { return accumulatedValue.concat(currentWeek.filter(function (weekDay) { return dateRange.indexOf(weekDay.originalDate.getTime()) !== -1; })); }, []); return dayInfosInRange; }; var getRefsFromDayInfos = function (dayInfosInRange) { var dayRefs = []; dayRefs = dayInfosInRange.map(function (dayInfo) { return daysRef.current[dayInfo.key]; }); return dayRefs; }; var styles = props.styles, theme = props.theme, className = props.className, dateRangeType = props.dateRangeType, showWeekNumbers = props.showWeekNumbers, labelledBy = props.labelledBy, lightenDaysOutsideNavigatedMonth = props.lightenDaysOutsideNavigatedMonth, animationDirection = props.animationDirection; var classNames = getClassNames(styles, { theme: theme, className: className, dateRangeType: dateRangeType, showWeekNumbers: showWeekNumbers, lightenDaysOutsideNavigatedMonth: lightenDaysOutsideNavigatedMonth === undefined ? true : lightenDaysOutsideNavigatedMonth, animationDirection: animationDirection, animateBackwards: animateBackwards, }); // When the month is highlighted get the corner dates so that styles can be added to them var weekCorners = getWeekCornerStyles(classNames, weeks); var partialWeekProps = { weeks: weeks, navigatedDayRef: navigatedDayRef, calculateRoundedStyles: calculateRoundedStyles, activeDescendantId: activeDescendantId, classNames: classNames, weekCorners: weekCorners, getDayInfosInRangeOfDay: getDayInfosInRangeOfDay, getRefsFromDayInfos: getRefsFromDayInfos, }; return (React.createElement(FocusZone_1.FocusZone, { className: classNames.wrapper, preventDefaultWhenHandled: true }, React.createElement("table", { className: classNames.table, "aria-multiselectable": "false", "aria-labelledby": labelledBy, "aria-activedescendant": activeDescendantId, role: "grid" }, React.createElement("tbody", null, React.createElement(CalendarMonthHeaderRow_1.CalendarMonthHeaderRow, tslib_1.__assign({}, props, { classNames: classNames, weeks: weeks })), React.createElement(CalendarGridRow_1.CalendarGridRow, tslib_1.__assign({}, props, partialWeekProps, { week: weeks[0], weekIndex: -1, rowClassName: classNames.firstTransitionWeek, ariaRole: "presentation", ariaHidden: true })), weeks.slice(1, weeks.length - 1).map(function (week, weekIndex) { return (React.createElement(CalendarGridRow_1.CalendarGridRow, tslib_1.__assign({}, props, partialWeekProps, { key: weekIndex, week: week, weekIndex: weekIndex, rowClassName: classNames.weekRow }))); }), React.createElement(CalendarGridRow_1.CalendarGridRow, tslib_1.__assign({}, props, partialWeekProps, { week: weeks[weeks.length - 1], weekIndex: -2, rowClassName: classNames.lastTransitionWeek, ariaRole: "presentation", ariaHidden: true })))))); }; exports.CalendarDayGridBase = CalendarDayGridBase; exports.CalendarDayGridBase.displayName = 'CalendarDayGridBase'; /** * When given work week, if the days are non-contiguous, the hover states look really weird. So for non-contiguous * work weeks, we'll just show week view instead. */ function getDateRangeTypeToUse(dateRangeType, workWeekDays) { if (workWeekDays && dateRangeType === date_time_utilities_1.DateRangeType.WorkWeek) { var sortedWWDays = workWeekDays.slice().sort(); var isContiguous = true; for (var i = 1; i < sortedWWDays.length; i++) { if (sortedWWDays[i] !== sortedWWDays[i - 1] + 1) { isContiguous = false; break; } } if (!isContiguous || workWeekDays.length === 0) { return date_time_utilities_1.DateRangeType.Week; } } return dateRangeType; } //# sourceMappingURL=CalendarDayGrid.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarDayGrid = void 0; var CalendarDayGrid_base_1 = __webpack_require__(/*! ./CalendarDayGrid.base */ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.base.js"); var CalendarDayGrid_styles_1 = __webpack_require__(/*! ./CalendarDayGrid.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.styles.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.CalendarDayGrid = (0, Utilities_1.styled)(CalendarDayGrid_base_1.CalendarDayGridBase, CalendarDayGrid_styles_1.styles, undefined, { scope: 'CalendarDayGrid' }); //# sourceMappingURL=CalendarDayGrid.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.styles.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.styles.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.styles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); var Calendar_types_1 = __webpack_require__(/*! ../Calendar/Calendar.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.types.js"); var GlobalClassNames = { hoverStyle: 'ms-CalendarDay-hoverStyle', pressedStyle: 'ms-CalendarDay-pressedStyle', dayIsTodayStyle: 'ms-CalendarDay-dayIsToday', daySelectedStyle: 'ms-CalendarDay-daySelected', }; var transitionRowDisappearance = (0, style_utilities_1.keyframes)({ '100%': { width: 0, height: 0, overflow: 'hidden', }, '99.9%': { width: '100%', height: 28, overflow: 'visible', }, '0%': { width: '100%', height: 28, overflow: 'visible', }, }); var styles = function (props) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; var theme = props.theme, dateRangeType = props.dateRangeType, showWeekNumbers = props.showWeekNumbers, lightenDaysOutsideNavigatedMonth = props.lightenDaysOutsideNavigatedMonth, animateBackwards = props.animateBackwards, animationDirection = props.animationDirection; var palette = theme.palette; var classNames = (0, style_utilities_1.getGlobalClassNames)(GlobalClassNames, theme); var rowAnimationStyle = {}; if (animateBackwards !== undefined) { if (animationDirection === Calendar_types_1.AnimationDirection.Horizontal) { rowAnimationStyle = animateBackwards ? style_utilities_1.AnimationStyles.slideRightIn20 : style_utilities_1.AnimationStyles.slideLeftIn20; } else { rowAnimationStyle = animateBackwards ? style_utilities_1.AnimationStyles.slideDownIn20 : style_utilities_1.AnimationStyles.slideUpIn20; } } var firstTransitionRowAnimationStyle = {}; var lastTransitionRowAnimationStyle = {}; if (animateBackwards !== undefined) { if (animationDirection !== Calendar_types_1.AnimationDirection.Horizontal) { firstTransitionRowAnimationStyle = animateBackwards ? { animationName: '' } : style_utilities_1.AnimationStyles.slideUpOut20; lastTransitionRowAnimationStyle = animateBackwards ? style_utilities_1.AnimationStyles.slideDownOut20 : { animationName: '' }; } } var disabledStyle = { selectors: { '&, &:disabled, & button': { color: palette.neutralTertiaryAlt, pointerEvents: 'none', }, }, }; return { wrapper: { paddingBottom: 10, }, table: [ { textAlign: 'center', borderCollapse: 'collapse', borderSpacing: '0', tableLayout: 'fixed', fontSize: 'inherit', marginTop: 4, width: 196, position: 'relative', paddingBottom: 10, }, showWeekNumbers && { width: 226, }, ], dayCell: [ (0, style_utilities_1.getFocusStyle)(theme, { inset: -3 }), { margin: 0, padding: 0, width: 28, height: 28, lineHeight: 28, fontSize: style_utilities_1.FontSizes.small, fontWeight: style_utilities_1.FontWeights.regular, color: palette.neutralPrimary, cursor: 'pointer', position: 'relative', selectors: (_a = {}, _a[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ color: 'WindowText', backgroundColor: 'transparent', zIndex: 0 }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _a['&.' + classNames.hoverStyle] = { backgroundColor: palette.neutralLighter, selectors: (_b = {}, _b[style_utilities_1.HighContrastSelector] = { zIndex: 3, backgroundColor: 'Window', outline: '1px solid Highlight', }, _b), }, _a['&.' + classNames.pressedStyle] = { backgroundColor: palette.neutralLight, selectors: (_c = {}, _c[style_utilities_1.HighContrastSelector] = { borderColor: 'Highlight', color: 'Highlight', backgroundColor: 'Window', }, _c), }, _a['&.' + classNames.pressedStyle + '.' + classNames.hoverStyle] = { selectors: (_d = {}, _d[style_utilities_1.HighContrastSelector] = { backgroundColor: 'Window', outline: '1px solid Highlight', }, _d), }, _a), }, ], daySelected: [ dateRangeType !== date_time_utilities_1.DateRangeType.Month && { backgroundColor: palette.neutralLight + '!important', selectors: (_e = { '&::before': { content: '""', position: 'absolute', top: 0, bottom: 0, left: 0, right: 0, } }, _e['&:hover, &.' + classNames.hoverStyle + ', &.' + classNames.pressedStyle] = (_f = { backgroundColor: palette.neutralLight + '!important' }, _f[style_utilities_1.HighContrastSelector] = { color: 'HighlightText!important', background: 'Highlight!important', }, _f), _e[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ background: 'Highlight!important', color: 'HighlightText!important', borderColor: 'Highlight!important' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _e), }, ], weekRow: rowAnimationStyle, weekDayLabelCell: style_utilities_1.AnimationStyles.fadeIn200, weekNumberCell: { margin: 0, padding: 0, borderRight: '1px solid', borderColor: palette.neutralLight, backgroundColor: palette.neutralLighterAlt, color: palette.neutralSecondary, boxSizing: 'border-box', width: 28, height: 28, fontWeight: style_utilities_1.FontWeights.regular, fontSize: style_utilities_1.FontSizes.small, }, dayOutsideBounds: disabledStyle, dayOutsideNavigatedMonth: lightenDaysOutsideNavigatedMonth && { color: palette.neutralSecondary, fontWeight: style_utilities_1.FontWeights.regular, }, dayButton: { width: 24, height: 24, lineHeight: 24, fontSize: style_utilities_1.FontSizes.small, fontWeight: 'inherit', borderRadius: 2, border: 'none', padding: 0, color: 'inherit', backgroundColor: 'transparent', cursor: 'pointer', overflow: 'visible', selectors: { span: { height: 'inherit', lineHeight: 'inherit', }, }, }, dayIsToday: { backgroundColor: palette.themePrimary + '!important', borderRadius: '100%', color: palette.white + '!important', fontWeight: (style_utilities_1.FontWeights.semibold + '!important'), selectors: (_g = {}, _g[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ background: 'WindowText!important', color: 'Window!important', borderColor: 'WindowText!important' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _g), }, firstTransitionWeek: tslib_1.__assign(tslib_1.__assign({ position: 'absolute', opacity: 0, width: 0, height: 0, overflow: 'hidden' }, firstTransitionRowAnimationStyle), { animationName: firstTransitionRowAnimationStyle.animationName + ',' + transitionRowDisappearance }), lastTransitionWeek: tslib_1.__assign(tslib_1.__assign({ position: 'absolute', opacity: 0, width: 0, height: 0, overflow: 'hidden', marginTop: -28 }, lastTransitionRowAnimationStyle), { animationName: lastTransitionRowAnimationStyle.animationName + ',' + transitionRowDisappearance }), dayMarker: { width: 4, height: 4, backgroundColor: palette.neutralSecondary, borderRadius: '100%', bottom: 1, left: 0, right: 0, position: 'absolute', margin: 'auto', selectors: (_h = {}, _h['.' + classNames.dayIsTodayStyle + ' &'] = { backgroundColor: palette.white, selectors: (_j = {}, _j[style_utilities_1.HighContrastSelector] = { backgroundColor: 'Window', }, _j), }, _h['.' + classNames.daySelectedStyle + ' &'] = { selectors: (_k = {}, _k[style_utilities_1.HighContrastSelector] = { backgroundColor: 'HighlightText', }, _k), }, _h[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'WindowText' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _h), }, topRightCornerDate: { borderTopRightRadius: '2px', }, topLeftCornerDate: { borderTopLeftRadius: '2px', }, bottomRightCornerDate: { borderBottomRightRadius: '2px', }, bottomLeftCornerDate: { borderBottomLeftRadius: '2px', }, datesAbove: { '&::before': { borderTop: "1px solid ".concat(palette.neutralSecondary), }, }, datesBelow: { '&::before': { borderBottom: "1px solid ".concat(palette.neutralSecondary), }, }, datesLeft: { '&::before': { borderLeft: "1px solid ".concat(palette.neutralSecondary), }, }, datesRight: { '&::before': { borderRight: "1px solid ".concat(palette.neutralSecondary), }, }, }; }; exports.styles = styles; //# sourceMappingURL=CalendarDayGrid.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.types.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarDayGrid.types.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=CalendarDayGrid.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarGridDayCell.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarGridDayCell.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarGridDayCell = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); var CalendarGridDayCell = function (props) { var _a; var navigatedDate = props.navigatedDate, dateTimeFormatter = props.dateTimeFormatter, allFocusable = props.allFocusable, strings = props.strings, activeDescendantId = props.activeDescendantId, navigatedDayRef = props.navigatedDayRef, calculateRoundedStyles = props.calculateRoundedStyles, weeks = props.weeks, classNames = props.classNames, day = props.day, dayIndex = props.dayIndex, weekIndex = props.weekIndex, weekCorners = props.weekCorners, ariaHidden = props.ariaHidden, customDayCellRef = props.customDayCellRef, dateRangeType = props.dateRangeType, daysToSelectInDayView = props.daysToSelectInDayView, onSelectDate = props.onSelectDate, restrictedDates = props.restrictedDates, minDate = props.minDate, maxDate = props.maxDate, onNavigateDate = props.onNavigateDate, getDayInfosInRangeOfDay = props.getDayInfosInRangeOfDay, getRefsFromDayInfos = props.getRefsFromDayInfos; var cornerStyle = (_a = weekCorners === null || weekCorners === void 0 ? void 0 : weekCorners[weekIndex + '_' + dayIndex]) !== null && _a !== void 0 ? _a : ''; var isNavigatedDate = (0, date_time_utilities_1.compareDates)(navigatedDate, day.originalDate); var navigateMonthEdge = function (ev, date) { var targetDate = undefined; var direction = 1; // by default search forward // eslint-disable-next-line deprecation/deprecation if (ev.which === utilities_1.KeyCodes.up) { targetDate = (0, date_time_utilities_1.addWeeks)(date, -1); direction = -1; // eslint-disable-next-line deprecation/deprecation } else if (ev.which === utilities_1.KeyCodes.down) { targetDate = (0, date_time_utilities_1.addWeeks)(date, 1); // eslint-disable-next-line deprecation/deprecation } else if (ev.which === (0, utilities_1.getRTLSafeKeyCode)(utilities_1.KeyCodes.left)) { targetDate = (0, date_time_utilities_1.addDays)(date, -1); direction = -1; // eslint-disable-next-line deprecation/deprecation } else if (ev.which === (0, utilities_1.getRTLSafeKeyCode)(utilities_1.KeyCodes.right)) { targetDate = (0, date_time_utilities_1.addDays)(date, 1); } if (!targetDate) { // if we couldn't find a target date at all, do nothing return; } var findAvailableDateOptions = { initialDate: date, targetDate: targetDate, direction: direction, restrictedDates: restrictedDates, minDate: minDate, maxDate: maxDate, }; // target date is restricted, search in whatever direction until finding the next possible date, // stopping at boundaries var nextDate = (0, date_time_utilities_1.findAvailableDate)(findAvailableDateOptions); if (!nextDate) { // if no dates available in initial direction, try going backwards findAvailableDateOptions.direction = -direction; nextDate = (0, date_time_utilities_1.findAvailableDate)(findAvailableDateOptions); } // if the nextDate is still inside the same focusZone area, let the focusZone handle setting the focus so we // don't jump the view unnecessarily var isInCurrentView = weeks && nextDate && weeks.slice(1, weeks.length - 1).some(function (week) { return week.some(function (dayToCompare) { return (0, date_time_utilities_1.compareDates)(dayToCompare.originalDate, nextDate); }); }); if (isInCurrentView) { return; } // else, fire navigation on the date to change the view to show it if (nextDate) { onNavigateDate(nextDate, true); ev.preventDefault(); } }; var onMouseOverDay = function (ev) { var dayInfos = getDayInfosInRangeOfDay(day); var dayRefs = getRefsFromDayInfos(dayInfos); dayRefs.forEach(function (dayRef, index) { var _a; if (dayRef) { dayRef.classList.add('ms-CalendarDay-hoverStyle'); if (!dayInfos[index].isSelected && dateRangeType === date_time_utilities_1.DateRangeType.Day && daysToSelectInDayView && daysToSelectInDayView > 1) { // remove the static classes first to overwrite them dayRef.classList.remove(classNames.bottomLeftCornerDate, classNames.bottomRightCornerDate, classNames.topLeftCornerDate, classNames.topRightCornerDate); var classNamesToAdd = calculateRoundedStyles(classNames, false, false, index > 0, index < dayRefs.length - 1).trim(); if (classNamesToAdd) { (_a = dayRef.classList).add.apply(_a, classNamesToAdd.split(' ')); } } } }); }; var onMouseDownDay = function (ev) { var dayInfos = getDayInfosInRangeOfDay(day); var dayRefs = getRefsFromDayInfos(dayInfos); dayRefs.forEach(function (dayRef) { if (dayRef) { dayRef.classList.add('ms-CalendarDay-pressedStyle'); } }); }; var onMouseUpDay = function (ev) { var dayInfos = getDayInfosInRangeOfDay(day); var dayRefs = getRefsFromDayInfos(dayInfos); dayRefs.forEach(function (dayRef) { if (dayRef) { dayRef.classList.remove('ms-CalendarDay-pressedStyle'); } }); }; var onMouseOutDay = function (ev) { var dayInfos = getDayInfosInRangeOfDay(day); var dayRefs = getRefsFromDayInfos(dayInfos); dayRefs.forEach(function (dayRef, index) { var _a; if (dayRef) { dayRef.classList.remove('ms-CalendarDay-hoverStyle'); dayRef.classList.remove('ms-CalendarDay-pressedStyle'); if (!dayInfos[index].isSelected && dateRangeType === date_time_utilities_1.DateRangeType.Day && daysToSelectInDayView && daysToSelectInDayView > 1) { var classNamesToAdd = calculateRoundedStyles(classNames, false, false, index > 0, index < dayRefs.length - 1).trim(); if (classNamesToAdd) { (_a = dayRef.classList).remove.apply(_a, classNamesToAdd.split(' ')); } } } }); }; var onDayKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === utilities_1.KeyCodes.enter) { onSelectDate === null || onSelectDate === void 0 ? void 0 : onSelectDate(day.originalDate); } else { navigateMonthEdge(ev, day.originalDate); } }; var ariaLabel = day.originalDate.getDate() + ', ' + strings.months[day.originalDate.getMonth()] + ', ' + day.originalDate.getFullYear(); if (day.isMarked) { ariaLabel = ariaLabel + ', ' + strings.dayMarkedAriaLabel; } return (React.createElement("td", { className: (0, utilities_1.css)(classNames.dayCell, weekCorners && cornerStyle, day.isSelected && classNames.daySelected, day.isSelected && 'ms-CalendarDay-daySelected', !day.isInBounds && classNames.dayOutsideBounds, !day.isInMonth && classNames.dayOutsideNavigatedMonth), ref: function (element) { customDayCellRef === null || customDayCellRef === void 0 ? void 0 : customDayCellRef(element, day.originalDate, classNames); day.setRef(element); isNavigatedDate && (navigatedDayRef.current = element); }, "aria-hidden": ariaHidden, "aria-disabled": !ariaHidden && !day.isInBounds, onClick: day.isInBounds && !ariaHidden ? day.onSelected : undefined, onMouseOver: !ariaHidden ? onMouseOverDay : undefined, onMouseDown: !ariaHidden ? onMouseDownDay : undefined, onMouseUp: !ariaHidden ? onMouseUpDay : undefined, onMouseOut: !ariaHidden ? onMouseOutDay : undefined, onKeyDown: !ariaHidden ? onDayKeyDown : undefined, role: "gridcell", tabIndex: isNavigatedDate ? 0 : undefined, "aria-current": day.isToday ? 'date' : undefined, "aria-selected": day.isInBounds ? day.isSelected : undefined, "data-is-focusable": !ariaHidden && (allFocusable || (day.isInBounds ? true : undefined)) }, React.createElement("button", { key: day.key + 'button', "aria-hidden": ariaHidden, className: (0, utilities_1.css)(classNames.dayButton, day.isToday && classNames.dayIsToday, day.isToday && 'ms-CalendarDay-dayIsToday'), "aria-label": ariaLabel, id: isNavigatedDate ? activeDescendantId : undefined, disabled: !ariaHidden && !day.isInBounds, type: "button", tabIndex: -1, "data-is-focusable": "false" }, React.createElement("span", { "aria-hidden": "true" }, dateTimeFormatter.formatDay(day.originalDate)), day.isMarked && React.createElement("div", { "aria-hidden": "true", className: classNames.dayMarker })))); }; exports.CalendarGridDayCell = CalendarGridDayCell; //# sourceMappingURL=CalendarGridDayCell.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarGridRow.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarGridRow = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); var CalendarGridDayCell_1 = __webpack_require__(/*! ./CalendarGridDayCell */ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarGridDayCell.js"); var CalendarGridRow = function (props) { var classNames = props.classNames, week = props.week, weeks = props.weeks, weekIndex = props.weekIndex, rowClassName = props.rowClassName, ariaRole = props.ariaRole, showWeekNumbers = props.showWeekNumbers, firstDayOfWeek = props.firstDayOfWeek, firstWeekOfYear = props.firstWeekOfYear, navigatedDate = props.navigatedDate, strings = props.strings; var weekNumbers = showWeekNumbers ? (0, date_time_utilities_1.getWeekNumbersInMonth)(weeks.length, firstDayOfWeek, firstWeekOfYear, navigatedDate) : null; var titleString = weekNumbers ? strings.weekNumberFormatString && (0, utilities_1.format)(strings.weekNumberFormatString, weekNumbers[weekIndex]) : ''; return (React.createElement("tr", { role: ariaRole, className: rowClassName, key: weekIndex + '_' + week[0].key }, showWeekNumbers && weekNumbers && (React.createElement("th", { className: classNames.weekNumberCell, key: weekIndex, title: titleString, "aria-label": titleString, scope: "row" }, React.createElement("span", null, weekNumbers[weekIndex]))), week.map(function (day, dayIndex) { return (React.createElement(CalendarGridDayCell_1.CalendarGridDayCell, tslib_1.__assign({}, props, { key: day.key, day: day, dayIndex: dayIndex }))); }))); }; exports.CalendarGridRow = CalendarGridRow; //# sourceMappingURL=CalendarGridRow.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarMonthHeaderRow.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CalendarDayGrid/CalendarMonthHeaderRow.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalendarMonthHeaderRow = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); var CalendarMonthHeaderRow = function (props) { var showWeekNumbers = props.showWeekNumbers, strings = props.strings, firstDayOfWeek = props.firstDayOfWeek, allFocusable = props.allFocusable, weeksToShow = props.weeksToShow, weeks = props.weeks, classNames = props.classNames; var dayLabels = strings.shortDays.slice(); var firstOfMonthIndex = (0, utilities_1.findIndex)(weeks[1], function (day) { return day.originalDate.getDate() === 1; }); if (weeksToShow === 1 && firstOfMonthIndex >= 0) { // if we only show one week, replace the header with short month name var firstOfMonthIndexOffset = (firstOfMonthIndex + firstDayOfWeek) % date_time_utilities_1.DAYS_IN_WEEK; dayLabels[firstOfMonthIndexOffset] = strings.shortMonths[weeks[1][firstOfMonthIndex].originalDate.getMonth()]; } return (React.createElement("tr", null, showWeekNumbers && React.createElement("th", { className: classNames.dayCell }), dayLabels.map(function (val, index) { var i = (index + firstDayOfWeek) % date_time_utilities_1.DAYS_IN_WEEK; var label = strings.days[i]; return (React.createElement("th", { className: (0, utilities_1.css)(classNames.dayCell, classNames.weekDayLabelCell), scope: "col", key: dayLabels[i] + ' ' + index, title: label, "aria-label": label, "data-is-focusable": allFocusable ? true : undefined }, dayLabels[i])); }))); }; exports.CalendarMonthHeaderRow = CalendarMonthHeaderRow; //# sourceMappingURL=CalendarMonthHeaderRow.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/Callout.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Callout/Callout.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Callout = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var CalloutContent_1 = __webpack_require__(/*! ./CalloutContent */ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/CalloutContent.js"); var Layer_1 = __webpack_require__(/*! ../../Layer */ "./node_modules/@fluentui/react/lib-commonjs/Layer.js"); exports.Callout = React.forwardRef(function (_a, forwardedRef) { var layerProps = _a.layerProps, doNotLayer = _a.doNotLayer, rest = tslib_1.__rest(_a, ["layerProps", "doNotLayer"]); var content = React.createElement(CalloutContent_1.CalloutContent, tslib_1.__assign({}, rest, { doNotLayer: doNotLayer, ref: forwardedRef })); return doNotLayer ? content : React.createElement(Layer_1.Layer, tslib_1.__assign({}, layerProps), content); }); exports.Callout.displayName = 'Callout'; //# sourceMappingURL=Callout.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/Callout.types.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Callout/Callout.types.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Callout.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/CalloutContent.base.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Callout/CalloutContent.base.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; /* provided dependency */ var Promise = __webpack_require__(/*! es6-promise */ "./node_modules/es6-promise/dist/es6-promise.js")["Promise"]; var _a; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalloutContentBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Positioning_1 = __webpack_require__(/*! ../../Positioning */ "./node_modules/@fluentui/react/lib-commonjs/Positioning.js"); var Popup_1 = __webpack_require__(/*! ../../Popup */ "./node_modules/@fluentui/react/lib-commonjs/Popup.js"); var Utilities_2 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var COMPONENT_NAME = 'CalloutContentBase'; var ANIMATIONS = (_a = {}, _a[Positioning_1.RectangleEdge.top] = Styling_1.AnimationClassNames.slideUpIn10, _a[Positioning_1.RectangleEdge.bottom] = Styling_1.AnimationClassNames.slideDownIn10, _a[Positioning_1.RectangleEdge.left] = Styling_1.AnimationClassNames.slideLeftIn10, _a[Positioning_1.RectangleEdge.right] = Styling_1.AnimationClassNames.slideRightIn10, _a); var BEAK_ORIGIN_POSITION = { top: 0, left: 0 }; // Microsoft Edge will overwrite inline styles if there is an animation pertaining to that style. // To help ensure that edge will respect the offscreen style opacity // filter needs to be added as an additional way to set opacity. // Also set pointer-events: none so that the callout will not occlude the element it is // going to be positioned against var OFF_SCREEN_STYLE = { opacity: 0, filter: 'opacity(0)', pointerEvents: 'none', }; // role and role description go hand-in-hand. Both would be included by spreading getNativeProps for a basic element // This constant array can be used to filter these out of native props spread on callout root and apply them together on // calloutMain (the Popup component within the callout) var ARIA_ROLE_ATTRIBUTES = ['role', 'aria-roledescription']; var DEFAULT_PROPS = { preventDismissOnLostFocus: false, preventDismissOnScroll: false, preventDismissOnResize: false, isBeakVisible: true, beakWidth: 16, gapSpace: 0, minPagePadding: 8, directionalHint: DirectionalHint_1.DirectionalHint.bottomAutoEdge, }; var getClassNames = (0, Utilities_2.classNamesFunction)({ disableCaching: true, // disabling caching because stylesProp.position mutates often }); /** * (Hook) to return a function to lazily fetch the bounds of the target element for the callout. */ function useBounds(_a, targetRef, targetWindow) { var bounds = _a.bounds, _b = _a.minPagePadding, minPagePadding = _b === void 0 ? DEFAULT_PROPS.minPagePadding : _b, target = _a.target; var _c = React.useState(false), targetWindowResized = _c[0], setTargetWindowResized = _c[1]; var cachedBounds = React.useRef(); var getBounds = React.useCallback(function () { if (!cachedBounds.current || targetWindowResized) { var currentBounds = typeof bounds === 'function' ? (targetWindow ? bounds(target, targetWindow) : undefined) : bounds; if (!currentBounds && targetWindow) { currentBounds = (0, Positioning_1.getBoundsFromTargetWindow)(targetRef.current, targetWindow); currentBounds = { top: currentBounds.top + minPagePadding, left: currentBounds.left + minPagePadding, right: currentBounds.right - minPagePadding, bottom: currentBounds.bottom - minPagePadding, width: currentBounds.width - minPagePadding * 2, height: currentBounds.height - minPagePadding * 2, }; } cachedBounds.current = currentBounds; targetWindowResized && setTargetWindowResized(false); } return cachedBounds.current; }, [bounds, minPagePadding, target, targetRef, targetWindow, targetWindowResized]); var async = (0, react_hooks_1.useAsync)(); (0, react_hooks_1.useOnEvent)(targetWindow, 'resize', async.debounce(function () { setTargetWindowResized(true); }, 500, { leading: true })); return getBounds; } /** * (Hook) to return the maximum available height for the Callout to render into. */ function useMaxHeight(_a, getBounds, positions) { var _b; var calloutMaxHeight = _a.calloutMaxHeight, finalHeight = _a.finalHeight, directionalHint = _a.directionalHint, directionalHintFixed = _a.directionalHintFixed, hidden = _a.hidden; var _c = React.useState(), maxHeight = _c[0], setMaxHeight = _c[1]; var _d = (_b = positions === null || positions === void 0 ? void 0 : positions.elementPosition) !== null && _b !== void 0 ? _b : {}, top = _d.top, bottom = _d.bottom; React.useEffect(function () { var _a; var _b = (_a = getBounds()) !== null && _a !== void 0 ? _a : {}, topBounds = _b.top, bottomBounds = _b.bottom; var calculatedHeight; if (typeof top === 'number' && bottomBounds) { calculatedHeight = bottomBounds - top; } else if (typeof bottom === 'number' && typeof topBounds === 'number' && bottomBounds) { calculatedHeight = bottomBounds - topBounds - bottom; } if ((!calloutMaxHeight && !hidden) || (calloutMaxHeight && calculatedHeight && calloutMaxHeight > calculatedHeight)) { setMaxHeight(calculatedHeight); } else if (calloutMaxHeight) { setMaxHeight(calloutMaxHeight); } else { setMaxHeight(undefined); } }, [bottom, calloutMaxHeight, finalHeight, directionalHint, directionalHintFixed, getBounds, hidden, positions, top]); return maxHeight; } /** * (Hook) to find the current position of Callout. If Callout is resized then a new position is calculated. */ function usePositions(props, hostElement, calloutElement, targetRef, getBounds) { var _a = React.useState(), positions = _a[0], setPositions = _a[1]; var positionAttempts = React.useRef(0); var previousTarget = React.useRef(); var async = (0, react_hooks_1.useAsync)(); var hidden = props.hidden, target = props.target, finalHeight = props.finalHeight, calloutMaxHeight = props.calloutMaxHeight, onPositioned = props.onPositioned, directionalHint = props.directionalHint; React.useEffect(function () { if (!hidden) { var timerId_1 = async.requestAnimationFrame(function () { var _a, _b; if (hostElement.current && calloutElement) { var currentProps = tslib_1.__assign(tslib_1.__assign({}, props), { target: targetRef.current, bounds: getBounds() }); // duplicate calloutElement & remove useMaxHeight's maxHeight for position calc var dupeCalloutElement = calloutElement.cloneNode(true); dupeCalloutElement.style.maxHeight = calloutMaxHeight ? "".concat(calloutMaxHeight) : ''; dupeCalloutElement.style.visibility = 'hidden'; (_a = calloutElement.parentElement) === null || _a === void 0 ? void 0 : _a.appendChild(dupeCalloutElement); var previousPositions = previousTarget.current === target ? positions : undefined; // If there is a finalHeight given then we assume that the user knows and will handle // additional positioning adjustments so we should call positionCard var newPositions = finalHeight ? (0, Positioning_1.positionCard)(currentProps, hostElement.current, dupeCalloutElement, previousPositions) : (0, Positioning_1.positionCallout)(currentProps, hostElement.current, dupeCalloutElement, previousPositions); // clean up duplicate calloutElement (_b = calloutElement.parentElement) === null || _b === void 0 ? void 0 : _b.removeChild(dupeCalloutElement); // Set the new position only when the positions do not exist or one of the new callout positions // is different. The position should not change if the position is within 2 decimal places. if ((!positions && newPositions) || (positions && newPositions && !arePositionsEqual(positions, newPositions) && positionAttempts.current < 5)) { // We should not reposition the callout more than a few times, if it is then the content is likely resizing // and we should stop trying to reposition to prevent a stack overflow. positionAttempts.current++; setPositions(newPositions); } else if (positionAttempts.current > 0) { // Only call the onPositioned callback if the callout has been re-positioned at least once. positionAttempts.current = 0; onPositioned === null || onPositioned === void 0 ? void 0 : onPositioned(positions); } } }, calloutElement); previousTarget.current = target; return function () { async.cancelAnimationFrame(timerId_1); previousTarget.current = undefined; }; } else { // When the callout is hidden, clear position state so that it is not accidentally used next render. setPositions(undefined); positionAttempts.current = 0; } }, [ hidden, directionalHint, async, calloutElement, calloutMaxHeight, hostElement, targetRef, finalHeight, getBounds, onPositioned, positions, props, target, ]); return positions; } /** * (Hook) to set up behavior to automatically focus the callout when it appears, if indicated by props. */ function useAutoFocus(_a, positions, calloutElement) { var hidden = _a.hidden, setInitialFocus = _a.setInitialFocus; var async = (0, react_hooks_1.useAsync)(); var hasPositions = !!positions; React.useEffect(function () { if (!hidden && setInitialFocus && hasPositions && calloutElement) { var timerId_2 = async.requestAnimationFrame(function () { return (0, Utilities_1.focusFirstChild)(calloutElement); }, calloutElement); return function () { return async.cancelAnimationFrame(timerId_2); }; } }, [hidden, hasPositions, async, calloutElement, setInitialFocus]); } /** * (Hook) to set up various handlers to dismiss the popup when it loses focus or the window scrolls or similar cases. */ function useDismissHandlers(_a, positions, hostElement, targetRef, targetWindow) { var hidden = _a.hidden, onDismiss = _a.onDismiss, // eslint-disable-next-line deprecation/deprecation preventDismissOnScroll = _a.preventDismissOnScroll, // eslint-disable-next-line deprecation/deprecation preventDismissOnResize = _a.preventDismissOnResize, // eslint-disable-next-line deprecation/deprecation preventDismissOnLostFocus = _a.preventDismissOnLostFocus, dismissOnTargetClick = _a.dismissOnTargetClick, shouldDismissOnWindowFocus = _a.shouldDismissOnWindowFocus, preventDismissOnEvent = _a.preventDismissOnEvent; var isMouseDownOnPopup = React.useRef(false); var async = (0, react_hooks_1.useAsync)(); var mouseDownHandlers = (0, react_hooks_1.useConst)([ function () { isMouseDownOnPopup.current = true; }, function () { isMouseDownOnPopup.current = false; }, ]); var positionsExists = !!positions; React.useEffect(function () { var dismissOnScroll = function (ev) { if (positionsExists && !preventDismissOnScroll) { dismissOnClickOrScroll(ev); } }; var dismissOnResize = function (ev) { if (!preventDismissOnResize && !(preventDismissOnEvent && preventDismissOnEvent(ev))) { onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(ev); } }; var dismissOnLostFocus = function (ev) { if (!preventDismissOnLostFocus) { dismissOnClickOrScroll(ev); } }; var dismissOnClickOrScroll = function (ev) { var eventPaths = ev.composedPath ? ev.composedPath() : []; var target = eventPaths.length > 0 ? eventPaths[0] : ev.target; var isEventTargetOutsideCallout = hostElement.current && !(0, Utilities_1.elementContains)(hostElement.current, target); // If mouse is pressed down on callout but moved outside then released, don't dismiss the callout. if (isEventTargetOutsideCallout && isMouseDownOnPopup.current) { isMouseDownOnPopup.current = false; return; } if ((!targetRef.current && isEventTargetOutsideCallout) || (ev.target !== targetWindow && isEventTargetOutsideCallout && (!targetRef.current || 'stopPropagation' in targetRef.current || dismissOnTargetClick || (target !== targetRef.current && !(0, Utilities_1.elementContains)(targetRef.current, target))))) { if (preventDismissOnEvent && preventDismissOnEvent(ev)) { return; } onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(ev); } }; var dismissOnTargetWindowBlur = function (ev) { // Do nothing if (!shouldDismissOnWindowFocus) { return; } if (((preventDismissOnEvent && !preventDismissOnEvent(ev)) || (!preventDismissOnEvent && !preventDismissOnLostFocus)) && !(targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document.hasFocus()) && ev.relatedTarget === null) { onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(ev); } }; // This is added so the callout will dismiss when the window is scrolled // but not when something inside the callout is scrolled. The delay seems // to be required to avoid React firing an async focus event in IE from // the target changing focus quickly prior to rendering the callout. var disposablesPromise = new Promise(function (resolve) { async.setTimeout(function () { if (!hidden && targetWindow) { var disposables_1 = [ (0, Utilities_1.on)(targetWindow, 'scroll', dismissOnScroll, true), (0, Utilities_1.on)(targetWindow, 'resize', dismissOnResize, true), (0, Utilities_1.on)(targetWindow.document.documentElement, 'focus', dismissOnLostFocus, true), (0, Utilities_1.on)(targetWindow.document.documentElement, 'click', dismissOnLostFocus, true), (0, Utilities_1.on)(targetWindow, 'blur', dismissOnTargetWindowBlur, true), ]; resolve(function () { disposables_1.forEach(function (dispose) { return dispose(); }); }); } }, 0); }); return function () { disposablesPromise.then(function (dispose) { return dispose(); }); }; }, [ hidden, async, hostElement, targetRef, targetWindow, onDismiss, shouldDismissOnWindowFocus, dismissOnTargetClick, preventDismissOnLostFocus, preventDismissOnResize, preventDismissOnScroll, positionsExists, preventDismissOnEvent, ]); return mouseDownHandlers; } exports.CalloutContentBase = React.memo(React.forwardRef(function (propsWithoutDefaults, forwardedRef) { var props = (0, Utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); var styles = props.styles, style = props.style, ariaLabel = props.ariaLabel, ariaDescribedBy = props.ariaDescribedBy, ariaLabelledBy = props.ariaLabelledBy, className = props.className, isBeakVisible = props.isBeakVisible, children = props.children, beakWidth = props.beakWidth, calloutWidth = props.calloutWidth, calloutMaxWidth = props.calloutMaxWidth, calloutMinWidth = props.calloutMinWidth, doNotLayer = props.doNotLayer, finalHeight = props.finalHeight, _a = props.hideOverflow, hideOverflow = _a === void 0 ? !!finalHeight : _a, backgroundColor = props.backgroundColor, calloutMaxHeight = props.calloutMaxHeight, onScroll = props.onScroll, // eslint-disable-next-line deprecation/deprecation _b = props.shouldRestoreFocus, // eslint-disable-next-line deprecation/deprecation shouldRestoreFocus = _b === void 0 ? true : _b, target = props.target, hidden = props.hidden, onLayerMounted = props.onLayerMounted, popupProps = props.popupProps; var hostElement = React.useRef(null); var _c = React.useState(null), calloutElement = _c[0], setCalloutElement = _c[1]; var calloutCallback = React.useCallback(function (calloutEl) { setCalloutElement(calloutEl); }, []); var rootRef = (0, react_hooks_1.useMergedRefs)(hostElement, forwardedRef); var _d = (0, react_hooks_1.useTarget)(props.target, { current: calloutElement, }), targetRef = _d[0], targetWindow = _d[1]; var getBounds = useBounds(props, targetRef, targetWindow); var positions = usePositions(props, hostElement, calloutElement, targetRef, getBounds); var maxHeight = useMaxHeight(props, getBounds, positions); var _e = useDismissHandlers(props, positions, hostElement, targetRef, targetWindow), mouseDownOnPopup = _e[0], mouseUpOnPopup = _e[1]; // do not set both top and bottom css props from positions // instead, use maxHeight var isForcedInBounds = (positions === null || positions === void 0 ? void 0 : positions.elementPosition.top) && (positions === null || positions === void 0 ? void 0 : positions.elementPosition.bottom); var cssPositions = tslib_1.__assign(tslib_1.__assign({}, positions === null || positions === void 0 ? void 0 : positions.elementPosition), { maxHeight: maxHeight }); if (isForcedInBounds) { cssPositions.bottom = undefined; } useAutoFocus(props, positions, calloutElement); React.useEffect(function () { if (!hidden) { onLayerMounted === null || onLayerMounted === void 0 ? void 0 : onLayerMounted(); } // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run if hidden changes }, [hidden]); // If there is no target window then we are likely in server side rendering and we should not render anything. if (!targetWindow) { return null; } var overflowYHidden = hideOverflow; var beakVisible = isBeakVisible && !!target; var classNames = getClassNames(styles, { theme: props.theme, className: className, overflowYHidden: overflowYHidden, calloutWidth: calloutWidth, positions: positions, beakWidth: beakWidth, backgroundColor: backgroundColor, calloutMaxWidth: calloutMaxWidth, calloutMinWidth: calloutMinWidth, doNotLayer: doNotLayer, }); var overflowStyle = tslib_1.__assign(tslib_1.__assign({ maxHeight: calloutMaxHeight ? calloutMaxHeight : '100%' }, style), (overflowYHidden && { overflowY: 'hidden' })); var visibilityStyle = props.hidden ? { visibility: 'hidden' } : undefined; // React.CSSProperties does not understand IRawStyle, so the inline animations will need to be cast as any for now. return (React.createElement("div", { ref: rootRef, className: classNames.container, style: visibilityStyle }, React.createElement("div", tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties, ARIA_ROLE_ATTRIBUTES), { className: (0, Utilities_1.css)(classNames.root, positions && positions.targetEdge && ANIMATIONS[positions.targetEdge]), style: positions ? tslib_1.__assign({}, cssPositions) : OFF_SCREEN_STYLE, // Safari and Firefox on Mac OS requires this to back-stop click events so focus remains in the Callout. // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus tabIndex: -1, ref: calloutCallback }), beakVisible && React.createElement("div", { className: classNames.beak, style: getBeakPosition(positions) }), beakVisible && React.createElement("div", { className: classNames.beakCurtain }), React.createElement(Popup_1.Popup // don't use getNativeElementProps for role and roledescription because it will also // pass through data-* props (resulting in them being used in two places) , tslib_1.__assign({ // don't use getNativeElementProps for role and roledescription because it will also // pass through data-* props (resulting in them being used in two places) role: props.role, "aria-roledescription": props['aria-roledescription'], ariaDescribedBy: ariaDescribedBy, ariaLabel: ariaLabel, ariaLabelledBy: ariaLabelledBy, className: classNames.calloutMain, onDismiss: props.onDismiss, onMouseDown: mouseDownOnPopup, onMouseUp: mouseUpOnPopup, onRestoreFocus: props.onRestoreFocus, onScroll: onScroll, shouldRestoreFocus: shouldRestoreFocus, style: overflowStyle }, popupProps), children)))); }), function (previousProps, nextProps) { if (!nextProps.shouldUpdateWhenHidden && previousProps.hidden && nextProps.hidden) { // Do not update when hidden. return true; } return (0, Utilities_1.shallowCompare)(previousProps, nextProps); }); /** * (Utility) to find and return the current `Callout` Beak position. * * @param positions */ function getBeakPosition(positions) { var _a, _b; var beakPositionStyle = tslib_1.__assign(tslib_1.__assign({}, (_a = positions === null || positions === void 0 ? void 0 : positions.beakPosition) === null || _a === void 0 ? void 0 : _a.elementPosition), { display: ((_b = positions === null || positions === void 0 ? void 0 : positions.beakPosition) === null || _b === void 0 ? void 0 : _b.hideBeak) ? 'none' : undefined }); if (!beakPositionStyle.top && !beakPositionStyle.bottom && !beakPositionStyle.left && !beakPositionStyle.right) { beakPositionStyle.left = BEAK_ORIGIN_POSITION.left; beakPositionStyle.top = BEAK_ORIGIN_POSITION.top; } return beakPositionStyle; } /** * (Utility) used to compare two different elementPositions to determine whether they are equal. * * @param prevElementPositions * @param newElementPosition */ function arePositionsEqual(prevElementPositions, newElementPosition) { return (comparePositions(prevElementPositions.elementPosition, newElementPosition.elementPosition) && comparePositions(prevElementPositions.beakPosition.elementPosition, newElementPosition.beakPosition.elementPosition)); } /** * (Utility) used in **arePositionsEqual** to compare two different elementPositions. * * @param prevElementPositions * @param newElementPositions */ function comparePositions(prevElementPositions, newElementPositions) { for (var key in newElementPositions) { if (newElementPositions.hasOwnProperty(key)) { var oldPositionEdge = prevElementPositions[key]; var newPositionEdge = newElementPositions[key]; if (oldPositionEdge !== undefined && newPositionEdge !== undefined) { if (oldPositionEdge.toFixed(2) !== newPositionEdge.toFixed(2)) { return false; } } else { return false; } } } return true; } exports.CalloutContentBase.displayName = COMPONENT_NAME; //# sourceMappingURL=CalloutContent.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/CalloutContent.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Callout/CalloutContent.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CalloutContent = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var CalloutContent_base_1 = __webpack_require__(/*! ./CalloutContent.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/CalloutContent.base.js"); var CalloutContent_styles_1 = __webpack_require__(/*! ./CalloutContent.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/CalloutContent.styles.js"); exports.CalloutContent = (0, Utilities_1.styled)(CalloutContent_base_1.CalloutContentBase, CalloutContent_styles_1.getStyles, undefined, { scope: 'CalloutContent', }); //# sourceMappingURL=CalloutContent.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/CalloutContent.styles.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Callout/CalloutContent.styles.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); function getBeakStyle(beakWidth) { return { height: beakWidth, width: beakWidth, }; } var GlobalClassNames = { container: 'ms-Callout-container', root: 'ms-Callout', beak: 'ms-Callout-beak', beakCurtain: 'ms-Callout-beakCurtain', calloutMain: 'ms-Callout-main', }; var getStyles = function (props) { var _a; var theme = props.theme, className = props.className, overflowYHidden = props.overflowYHidden, calloutWidth = props.calloutWidth, beakWidth = props.beakWidth, backgroundColor = props.backgroundColor, calloutMaxWidth = props.calloutMaxWidth, calloutMinWidth = props.calloutMinWidth, doNotLayer = props.doNotLayer; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var semanticColors = theme.semanticColors, effects = theme.effects; return { container: [ classNames.container, { position: 'relative', }, ], root: [ classNames.root, theme.fonts.medium, { position: 'absolute', display: 'flex', zIndex: doNotLayer ? Styling_1.ZIndexes.Layer : undefined, boxSizing: 'border-box', borderRadius: effects.roundedCorner2, boxShadow: effects.elevation16, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { borderWidth: 1, borderStyle: 'solid', borderColor: 'WindowText', }, _a), }, (0, Styling_1.focusClear)(), className, !!calloutWidth && { width: calloutWidth }, !!calloutMaxWidth && { maxWidth: calloutMaxWidth }, !!calloutMinWidth && { minWidth: calloutMinWidth }, ], beak: [ classNames.beak, { position: 'absolute', backgroundColor: semanticColors.menuBackground, boxShadow: 'inherit', border: 'inherit', boxSizing: 'border-box', transform: 'rotate(45deg)', }, getBeakStyle(beakWidth), backgroundColor && { backgroundColor: backgroundColor, }, ], beakCurtain: [ classNames.beakCurtain, { position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, backgroundColor: semanticColors.menuBackground, borderRadius: effects.roundedCorner2, }, ], calloutMain: [ classNames.calloutMain, { backgroundColor: semanticColors.menuBackground, overflowX: 'hidden', overflowY: 'auto', position: 'relative', width: '100%', borderRadius: effects.roundedCorner2, }, overflowYHidden && { overflowY: 'hidden', }, backgroundColor && { backgroundColor: backgroundColor, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=CalloutContent.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/FocusTrapCallout.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Callout/FocusTrapCallout.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FocusTrapCallout = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Callout_1 = __webpack_require__(/*! ./Callout */ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/Callout.js"); var FocusTrapZone_1 = __webpack_require__(/*! ../../FocusTrapZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusTrapZone.js"); /** * A special Callout that uses FocusTrapZone to trap focus * @param props - Props for the component */ var FocusTrapCallout = function (props) { return (React.createElement(Callout_1.Callout, tslib_1.__assign({}, props), React.createElement(FocusTrapZone_1.FocusTrapZone, tslib_1.__assign({ disabled: props.hidden }, props.focusTrapProps), props.children))); }; exports.FocusTrapCallout = FocusTrapCallout; //# sourceMappingURL=FocusTrapCallout.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/FocusTrapCallout.types.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Callout/FocusTrapCallout.types.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=FocusTrapCallout.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Callout/index.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Callout */ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/Callout.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Callout.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/Callout.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./CalloutContent */ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/CalloutContent.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./CalloutContent.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/CalloutContent.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./FocusTrapCallout */ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/FocusTrapCallout.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./FocusTrapCallout.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Callout/FocusTrapCallout.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.base.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.base.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CheckBase = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); exports.CheckBase = React.forwardRef(function (props, ref) { var _a = props.checked, checked = _a === void 0 ? false : _a, className = props.className, theme = props.theme, styles = props.styles, _b = props.useFastIcons, useFastIcons = _b === void 0 ? true : _b; var classNames = getClassNames(styles, { theme: theme, className: className, checked: checked }); var IconComponent = useFastIcons ? Icon_1.FontIcon : Icon_1.Icon; return (React.createElement("div", { className: classNames.root, ref: ref }, React.createElement(IconComponent, { iconName: "CircleRing", className: classNames.circle }), React.createElement(IconComponent, { iconName: "StatusCircleCheckmark", className: classNames.check }))); }); exports.CheckBase.displayName = 'CheckBase'; //# sourceMappingURL=Check.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Check = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Check_base_1 = __webpack_require__(/*! ./Check.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.base.js"); var Check_styles_1 = __webpack_require__(/*! ./Check.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.styles.js"); exports.Check = (0, Utilities_1.styled)(Check_base_1.CheckBase, Check_styles_1.getStyles, undefined, { scope: 'Check', }, true); //# sourceMappingURL=Check.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.styles.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.styles.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.CheckGlobalClassNames = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.CheckGlobalClassNames = { root: 'ms-Check', circle: 'ms-Check-circle', check: 'ms-Check-check', /** Must be manually applied to the parent element of the check. */ checkHost: 'ms-Check-checkHost', }; var getStyles = function (props) { var _a, _b, _c, _d, _e; // eslint-disable-next-line deprecation/deprecation var _f = props.height, height = _f === void 0 ? props.checkBoxHeight || '18px' : _f, checked = props.checked, className = props.className, theme = props.theme; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var isRTL = (0, Utilities_1.getRTL)(theme); var classNames = (0, Styling_1.getGlobalClassNames)(exports.CheckGlobalClassNames, theme); var sharedCircleCheck = { fontSize: height, position: 'absolute', left: 0, top: 0, width: height, height: height, textAlign: 'center', // inline-flex prevents the check from shifting with custom line height styles display: 'inline-flex', alignItems: 'center', justifyContent: 'center', verticalAlign: 'middle', }; return { root: [ classNames.root, fonts.medium, { // lineHeight currently needs to be a string to output without 'px' lineHeight: '1', width: height, height: height, verticalAlign: 'top', position: 'relative', userSelect: 'none', selectors: (_a = { ':before': { content: '""', position: 'absolute', top: '1px', right: '1px', bottom: '1px', left: '1px', borderRadius: '50%', opacity: 1, background: semanticColors.bodyBackground, } }, _a[".".concat(classNames.checkHost, ":hover &, .").concat(classNames.checkHost, ":focus &, &:hover, &:focus")] = { opacity: 1, }, _a), }, checked && [ 'is-checked', { selectors: { ':before': { background: palette.themePrimary, opacity: 1, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { background: 'Window', }, _b), }, }, }, ], className, ], circle: [ classNames.circle, sharedCircleCheck, { color: palette.neutralSecondary, selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { color: 'WindowText', }, _c), }, checked && { color: palette.white, }, ], check: [ classNames.check, sharedCircleCheck, { opacity: 0, color: palette.neutralSecondary, fontSize: Styling_1.IconFontSizes.medium, left: isRTL ? '-0.5px' : '.5px', top: '-1px', selectors: (_d = { ':hover': { opacity: 1, } }, _d[Styling_1.HighContrastSelector] = tslib_1.__assign({}, (0, Styling_1.getHighContrastNoAdjustStyle)()), _d), }, checked && { opacity: 1, color: palette.white, fontWeight: 900, selectors: (_e = {}, _e[Styling_1.HighContrastSelector] = { border: 'none', color: 'WindowText', }, _e), }, ], checkHost: classNames.checkHost, }; }; exports.getStyles = getStyles; //# sourceMappingURL=Check.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.types.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.types.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Check.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Check/index.js": /*!*****************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Check/index.js ***! \*****************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Check */ "./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Check.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Check.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.base.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.base.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CheckboxBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var Icon_1 = __webpack_require__(/*! ../Icon/Icon */ "./node_modules/@fluentui/react/lib-commonjs/components/Icon/Icon.js"); var getClassNames = (0, utilities_1.classNamesFunction)(); exports.CheckboxBase = React.forwardRef(function (props, forwardedRef) { var disabled = props.disabled, required = props.required, inputProps = props.inputProps, name = props.name, ariaLabel = props.ariaLabel, ariaLabelledBy = props.ariaLabelledBy, ariaDescribedBy = props.ariaDescribedBy, ariaPositionInSet = props.ariaPositionInSet, ariaSetSize = props.ariaSetSize, title = props.title, checkmarkIconProps = props.checkmarkIconProps, styles = props.styles, theme = props.theme, className = props.className, _a = props.boxSide, boxSide = _a === void 0 ? 'start' : _a; var id = (0, react_hooks_1.useId)('checkbox-', props.id); var rootRef = React.useRef(null); var mergedRootRefs = (0, react_hooks_1.useMergedRefs)(rootRef, forwardedRef); var inputRef = React.useRef(null); var _b = (0, react_hooks_1.useControllableValue)(props.checked, props.defaultChecked, props.onChange), isChecked = _b[0], setIsChecked = _b[1]; var _c = (0, react_hooks_1.useControllableValue)(props.indeterminate, props.defaultIndeterminate), isIndeterminate = _c[0], setIsIndeterminate = _c[1]; (0, utilities_1.useFocusRects)(rootRef); useDebugWarning(props); var classNames = getClassNames(styles, { theme: theme, className: className, disabled: disabled, indeterminate: isIndeterminate, checked: isChecked, reversed: boxSide !== 'start', isUsingCustomLabelRender: !!props.onRenderLabel, }); var onChange = React.useCallback(function (event) { if (isIndeterminate) { // If indeterminate, clicking the checkbox *only* removes the indeterminate state (or if // controlled, lets the consumer know to change it by calling onChange). It doesn't // change the checked state. setIsChecked(!!isChecked, event); setIsIndeterminate(false); } else { setIsChecked(!isChecked, event); } }, [setIsChecked, setIsIndeterminate, isIndeterminate, isChecked]); var defaultLabelRenderer = React.useCallback(function (checkboxProps) { if (!checkboxProps) { return null; } return checkboxProps.label ? (React.createElement("span", { className: classNames.text, title: checkboxProps.title }, checkboxProps.label)) : null; }, [classNames.text]); var setNativeIndeterminate = React.useCallback(function (indeterminate) { if (!inputRef.current) { return; } var value = !!indeterminate; inputRef.current.indeterminate = value; setIsIndeterminate(value); }, [setIsIndeterminate]); useComponentRef(props, isChecked, isIndeterminate, setNativeIndeterminate, inputRef); React.useEffect(function () { return setNativeIndeterminate(isIndeterminate); }, [setNativeIndeterminate, isIndeterminate]); var onRenderLabel = props.onRenderLabel || defaultLabelRenderer; var ariaChecked = isIndeterminate ? 'mixed' : undefined; var mergedInputProps = tslib_1.__assign(tslib_1.__assign({ className: classNames.input, type: 'checkbox' }, inputProps), { checked: !!isChecked, disabled: disabled, required: required, name: name, id: id, title: title, onChange: onChange, 'aria-disabled': disabled, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'aria-describedby': ariaDescribedBy, 'aria-posinset': ariaPositionInSet, 'aria-setsize': ariaSetSize, 'aria-checked': ariaChecked }); return (React.createElement("div", { className: classNames.root, title: title, ref: mergedRootRefs }, React.createElement("input", tslib_1.__assign({}, mergedInputProps, { ref: inputRef, title: title, "data-ktp-execute-target": true })), React.createElement("label", { className: classNames.label, htmlFor: id }, React.createElement("div", { className: classNames.checkbox, "data-ktp-target": true }, React.createElement(Icon_1.Icon, tslib_1.__assign({ iconName: "CheckMark" }, checkmarkIconProps, { className: classNames.checkmark }))), onRenderLabel(props, defaultLabelRenderer)))); }); exports.CheckboxBase.displayName = 'CheckboxBase'; function useDebugWarning(props) { if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional (0, react_hooks_1.useWarnings)({ name: 'Checkbox', props: props, mutuallyExclusive: { checked: 'defaultChecked', indeterminate: 'defaultIndeterminate', }, }); } } function useComponentRef(props, isChecked, isIndeterminate, setIndeterminate, checkBoxRef) { React.useImperativeHandle(props.componentRef, function () { return ({ get checked() { return !!isChecked; }, get indeterminate() { return !!isIndeterminate; }, set indeterminate(indeterminate) { setIndeterminate(indeterminate); }, focus: function () { if (checkBoxRef.current) { checkBoxRef.current.focus(); } }, }); }, [checkBoxRef, isChecked, isIndeterminate, setIndeterminate]); } //# sourceMappingURL=Checkbox.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Checkbox = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var Checkbox_base_1 = __webpack_require__(/*! ./Checkbox.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.base.js"); var Checkbox_styles_1 = __webpack_require__(/*! ./Checkbox.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.styles.js"); exports.Checkbox = (0, utilities_1.styled)(Checkbox_base_1.CheckboxBase, Checkbox_styles_1.getStyles, undefined, { scope: 'Checkbox' }); //# sourceMappingURL=Checkbox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.styles.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.styles.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var GlobalClassNames = { root: 'ms-Checkbox', label: 'ms-Checkbox-label', checkbox: 'ms-Checkbox-checkbox', checkmark: 'ms-Checkbox-checkmark', text: 'ms-Checkbox-text', }; var MS_CHECKBOX_LABEL_SIZE = '20px'; var MS_CHECKBOX_TRANSITION_DURATION = '200ms'; var MS_CHECKBOX_TRANSITION_TIMING = 'cubic-bezier(.4, 0, .23, 1)'; var getStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; var className = props.className, theme = props.theme, reversed = props.reversed, checked = props.checked, disabled = props.disabled, isUsingCustomLabelRender = props.isUsingCustomLabelRender, indeterminate = props.indeterminate; var semanticColors = theme.semanticColors, effects = theme.effects, palette = theme.palette, fonts = theme.fonts; var classNames = (0, style_utilities_1.getGlobalClassNames)(GlobalClassNames, theme); var checkmarkFontColor = semanticColors.inputForegroundChecked; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBorder var checkmarkFontColorHovered = palette.neutralSecondary; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.smallInputBorder var checkboxBorderColor = palette.neutralPrimary; var checkboxBorderIndeterminateColor = semanticColors.inputBackgroundChecked; var checkboxBorderColorChecked = semanticColors.inputBackgroundChecked; var checkboxBorderColorDisabled = semanticColors.disabledBodySubtext; var checkboxBorderHoveredColor = semanticColors.inputBorderHovered; var checkboxBorderIndeterminateHoveredColor = semanticColors.inputBackgroundCheckedHovered; var checkboxBackgroundChecked = semanticColors.inputBackgroundChecked; // TODO: after updating the semanticColors slots mapping the following 2 tokens need to be // semanticColors.inputBackgroundCheckedHovered var checkboxBackgroundCheckedHovered = semanticColors.inputBackgroundCheckedHovered; var checkboxBorderColorCheckedHovered = semanticColors.inputBackgroundCheckedHovered; var checkboxHoveredTextColor = semanticColors.inputTextHovered; var checkboxBackgroundDisabledChecked = semanticColors.disabledBodySubtext; var checkboxTextColor = semanticColors.bodyText; var checkboxTextColorDisabled = semanticColors.disabledText; var indeterminateDotStyles = [ (_a = { content: '""', borderRadius: effects.roundedCorner2, position: 'absolute', width: 10, height: 10, top: 4, left: 4, boxSizing: 'border-box', borderWidth: 5, borderStyle: 'solid', borderColor: disabled ? checkboxBorderColorDisabled : checkboxBorderIndeterminateColor, transitionProperty: 'border-width, border, border-color', transitionDuration: MS_CHECKBOX_TRANSITION_DURATION, transitionTimingFunction: MS_CHECKBOX_TRANSITION_TIMING }, _a[style_utilities_1.HighContrastSelector] = { borderColor: 'WindowText', }, _a), ]; return { root: [ classNames.root, { position: 'relative', display: 'flex', }, reversed && 'reversed', checked && 'is-checked', !disabled && 'is-enabled', disabled && 'is-disabled', !disabled && [ !checked && (_b = {}, _b[":hover .".concat(classNames.checkbox)] = (_c = { borderColor: checkboxBorderHoveredColor }, _c[style_utilities_1.HighContrastSelector] = { borderColor: 'Highlight', }, _c), _b[":focus .".concat(classNames.checkbox)] = { borderColor: checkboxBorderHoveredColor }, _b[":hover .".concat(classNames.checkmark)] = (_d = { color: checkmarkFontColorHovered, opacity: '1' }, _d[style_utilities_1.HighContrastSelector] = { color: 'Highlight', }, _d), _b), checked && !indeterminate && (_e = {}, _e[":hover .".concat(classNames.checkbox)] = { background: checkboxBackgroundCheckedHovered, borderColor: checkboxBorderColorCheckedHovered, }, _e[":focus .".concat(classNames.checkbox)] = { background: checkboxBackgroundCheckedHovered, borderColor: checkboxBorderColorCheckedHovered, }, _e[style_utilities_1.HighContrastSelector] = (_f = {}, _f[":hover .".concat(classNames.checkbox)] = { background: 'Highlight', borderColor: 'Highlight', }, _f[":focus .".concat(classNames.checkbox)] = { background: 'Highlight', }, _f[":focus:hover .".concat(classNames.checkbox)] = { background: 'Highlight', }, _f[":focus:hover .".concat(classNames.checkmark)] = { color: 'Window', }, _f[":hover .".concat(classNames.checkmark)] = { color: 'Window', }, _f), _e), indeterminate && (_g = {}, _g[":hover .".concat(classNames.checkbox, ", :hover .").concat(classNames.checkbox, ":after")] = (_h = { borderColor: checkboxBorderIndeterminateHoveredColor }, _h[style_utilities_1.HighContrastSelector] = { borderColor: 'WindowText', }, _h), _g[":focus .".concat(classNames.checkbox)] = { borderColor: checkboxBorderIndeterminateHoveredColor, }, _g[":hover .".concat(classNames.checkmark)] = { opacity: '0', }, _g), (_j = {}, _j[":hover .".concat(classNames.text, ", :focus .").concat(classNames.text)] = (_k = { color: checkboxHoveredTextColor }, _k[style_utilities_1.HighContrastSelector] = { color: disabled ? 'GrayText' : 'WindowText', }, _k), _j), ], className, ], input: (_l = { position: 'absolute', background: 'none', opacity: 0 }, _l[".".concat(utilities_1.IsFocusVisibleClassName, " &:focus + label::before")] = (_m = { outline: '1px solid ' + theme.palette.neutralSecondary, outlineOffset: '2px' }, _m[style_utilities_1.HighContrastSelector] = { outline: '1px solid WindowText', }, _m), _l), label: [ classNames.label, theme.fonts.medium, { display: 'flex', alignItems: isUsingCustomLabelRender ? 'center' : 'flex-start', cursor: disabled ? 'default' : 'pointer', position: 'relative', userSelect: 'none', }, reversed && { flexDirection: 'row-reverse', justifyContent: 'flex-end', }, { '&::before': { position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, content: '""', pointerEvents: 'none', }, }, ], checkbox: [ classNames.checkbox, (_o = { position: 'relative', display: 'flex', flexShrink: 0, alignItems: 'center', justifyContent: 'center', height: MS_CHECKBOX_LABEL_SIZE, width: MS_CHECKBOX_LABEL_SIZE, border: "1px solid ".concat(checkboxBorderColor), borderRadius: effects.roundedCorner2, boxSizing: 'border-box', transitionProperty: 'background, border, border-color', transitionDuration: MS_CHECKBOX_TRANSITION_DURATION, transitionTimingFunction: MS_CHECKBOX_TRANSITION_TIMING, /* in case the icon is bigger than the box */ overflow: 'hidden', ':after': indeterminate ? indeterminateDotStyles : null }, _o[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ borderColor: 'WindowText' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _o), indeterminate && { borderColor: checkboxBorderIndeterminateColor, }, !reversed ? // This margin on the checkbox is for backwards compat. Notably it has the effect where a customRender // is used, there will be only a 4px margin from checkbox to label. The label by default would have // another 4px margin for a total of 8px margin between checkbox and label. We don't combine the two // (and move it into the text) to not incur a breaking change for everyone using custom render atm. { marginRight: 4, } : { marginLeft: 4, }, !disabled && !indeterminate && checked && (_p = { background: checkboxBackgroundChecked, borderColor: checkboxBorderColorChecked }, _p[style_utilities_1.HighContrastSelector] = { background: 'Highlight', borderColor: 'Highlight', }, _p), disabled && (_q = { borderColor: checkboxBorderColorDisabled }, _q[style_utilities_1.HighContrastSelector] = { borderColor: 'GrayText', }, _q), checked && disabled && (_r = { background: checkboxBackgroundDisabledChecked, borderColor: checkboxBorderColorDisabled }, _r[style_utilities_1.HighContrastSelector] = { background: 'Window', }, _r), ], checkmark: [ classNames.checkmark, (_s = { opacity: checked && !indeterminate ? '1' : '0', color: checkmarkFontColor }, _s[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ color: disabled ? 'GrayText' : 'Window' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _s), ], text: [ classNames.text, (_t = { color: disabled ? checkboxTextColorDisabled : checkboxTextColor, fontSize: fonts.medium.fontSize, lineHeight: '20px' }, _t[style_utilities_1.HighContrastSelector] = tslib_1.__assign({ color: disabled ? 'GrayText' : 'WindowText' }, (0, style_utilities_1.getHighContrastNoAdjustStyle)()), _t), !reversed ? { marginLeft: 4, } : { marginRight: 4, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Checkbox.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.types.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.types.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Checkbox.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/index.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Checkbox */ "./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Checkbox.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Checkbox.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Checkbox/Checkbox.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.base.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ChoiceGroupBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Label_1 = __webpack_require__(/*! ../../Label */ "./node_modules/@fluentui/react/lib-commonjs/Label.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var index_1 = __webpack_require__(/*! ./ChoiceGroupOption/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/index.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var getOptionId = function (option, id) { return "".concat(id, "-").concat(option.key); }; var findOption = function (options, key) { return key === undefined ? undefined : (0, Utilities_1.find)(options, function (value) { return value.key === key; }); }; var focusSelectedOption = function (options, keyChecked, id, focusProviders) { var optionToFocus = findOption(options, keyChecked) || options.filter(function (option) { return !option.disabled; })[0]; var elementToFocus = optionToFocus && document.getElementById(getOptionId(optionToFocus, id)); if (elementToFocus) { elementToFocus.focus(); (0, Utilities_1.setFocusVisibility)(true, elementToFocus, focusProviders); } }; var focusFromFocusTrapZone = function (evt) { return evt.relatedTarget instanceof HTMLElement && evt.relatedTarget.dataset.isFocusTrapZoneBumper === 'true'; }; var useComponentRef = function (options, keyChecked, id, componentRef, focusProviders) { React.useImperativeHandle(componentRef, function () { return ({ get checkedOption() { return findOption(options, keyChecked); }, focus: function () { focusSelectedOption(options, keyChecked, id, focusProviders); }, }); }, [options, keyChecked, id, focusProviders]); }; var COMPONENT_NAME = 'ChoiceGroup'; exports.ChoiceGroupBase = React.forwardRef(function (props, forwardedRef) { var className = props.className, theme = props.theme, styles = props.styles, _a = props.options, options = _a === void 0 ? [] : _a, label = props.label, required = props.required, disabled = props.disabled, name = props.name, defaultSelectedKey = props.defaultSelectedKey, componentRef = props.componentRef, onChange = props.onChange; var id = (0, react_hooks_1.useId)('ChoiceGroup'); var labelId = (0, react_hooks_1.useId)('ChoiceGroupLabel'); var divProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties, [ 'onChange', 'className', 'required', ]); var classNames = getClassNames(styles, { theme: theme, className: className, optionsContainIconOrImage: options.some(function (option) { return !!(option.iconProps || option.imageSrc); }), }); var ariaLabelledBy = props.ariaLabelledBy || (label ? labelId : props['aria-labelledby']); var _b = (0, react_hooks_1.useControllableValue)(props.selectedKey, defaultSelectedKey), keyChecked = _b[0], setKeyChecked = _b[1]; var _c = React.useState(), keyFocused = _c[0], setKeyFocused = _c[1]; var rootRef = React.useRef(null); var mergedRootRefs = (0, react_hooks_1.useMergedRefs)(rootRef, forwardedRef); var focusContext = React.useContext(Utilities_1.FocusRectsContext); useDebugWarnings(props); useComponentRef(options, keyChecked, id, componentRef, focusContext === null || focusContext === void 0 ? void 0 : focusContext.registeredProviders); (0, Utilities_1.useFocusRects)(rootRef); var onFocus = React.useCallback(function (ev, option) { var _a; if (option) { setKeyFocused(option.itemKey); (_a = option.onFocus) === null || _a === void 0 ? void 0 : _a.call(option, ev); } }, []); var onBlur = React.useCallback(function (ev, option) { var _a; setKeyFocused(undefined); (_a = option === null || option === void 0 ? void 0 : option.onBlur) === null || _a === void 0 ? void 0 : _a.call(option, ev); }, []); var onOptionChange = React.useCallback(function (evt, option) { var _a; if (!option) { return; } setKeyChecked(option.itemKey); (_a = option.onChange) === null || _a === void 0 ? void 0 : _a.call(option, evt); onChange === null || onChange === void 0 ? void 0 : onChange(evt, findOption(options, option.itemKey)); }, [onChange, options, setKeyChecked]); var onRadioFocus = React.useCallback(function (evt) { // Handles scenarios like this bug: https://github.com/microsoft/fluentui/issues/20173 if (focusFromFocusTrapZone(evt)) { focusSelectedOption(options, keyChecked, id, focusContext === null || focusContext === void 0 ? void 0 : focusContext.registeredProviders); } }, [options, keyChecked, id, focusContext]); return (React.createElement("div", tslib_1.__assign({ className: classNames.root }, divProps, { ref: mergedRootRefs }), React.createElement("div", tslib_1.__assign({ role: "radiogroup" }, (ariaLabelledBy && { 'aria-labelledby': ariaLabelledBy }), { onFocus: onRadioFocus }), label && (React.createElement(Label_1.Label, { className: classNames.label, required: required, id: labelId, disabled: disabled }, label)), React.createElement("div", { className: classNames.flexContainer }, options.map(function (option) { return (React.createElement(index_1.ChoiceGroupOption, tslib_1.__assign({ itemKey: option.key }, option, { key: option.key, onBlur: onBlur, onFocus: onFocus, onChange: onOptionChange, focused: option.key === keyFocused, checked: option.key === keyChecked, disabled: option.disabled || disabled, id: getOptionId(option, id), labelId: option.labelId || "".concat(labelId, "-").concat(option.key), name: name || id, required: required }))); }))))); }); exports.ChoiceGroupBase.displayName = COMPONENT_NAME; function useDebugWarnings(props) { if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional (0, react_hooks_1.useWarnings)({ name: COMPONENT_NAME, props: props, mutuallyExclusive: { selectedKey: 'defaultSelectedKey', }, }); } } //# sourceMappingURL=ChoiceGroup.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ChoiceGroup = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ChoiceGroup_base_1 = __webpack_require__(/*! ./ChoiceGroup.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.base.js"); var ChoiceGroup_styles_1 = __webpack_require__(/*! ./ChoiceGroup.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.styles.js"); exports.ChoiceGroup = (0, Utilities_1.styled)(ChoiceGroup_base_1.ChoiceGroupBase, ChoiceGroup_styles_1.getStyles, undefined, { scope: 'ChoiceGroup' }); //# sourceMappingURL=ChoiceGroup.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.styles.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { root: 'ms-ChoiceFieldGroup', flexContainer: 'ms-ChoiceFieldGroup-flexContainer', }; var getStyles = function (props) { var className = props.className, optionsContainIconOrImage = props.optionsContainIconOrImage, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ className, classNames.root, theme.fonts.medium, { display: 'block', }, ], flexContainer: [ classNames.flexContainer, optionsContainIconOrImage && { display: 'flex', flexDirection: 'row', flexWrap: 'wrap', }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=ChoiceGroup.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.types.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ChoiceGroup.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.base.js": /*!**********************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.base.js ***! \**********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ChoiceGroupOptionBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Image_1 = __webpack_require__(/*! ../../../Image */ "./node_modules/@fluentui/react/lib-commonjs/Image.js"); var Icon_1 = __webpack_require__(/*! ../../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var LARGE_IMAGE_SIZE = 71; var DEFAULT_PROPS = { // This ensures default imageSize value doesn't mutate. Mutation can cause style re-calcuation. imageSize: { width: 32, height: 32 }, }; var ChoiceGroupOptionBase = function (propsWithoutDefaults) { // Mix the `key` prop back in since custom render functions may be expecting it // (React uses `key` internally rather than passing it through to the component) var props = (0, Utilities_1.getPropsWithDefaults)(tslib_1.__assign(tslib_1.__assign({}, DEFAULT_PROPS), { key: propsWithoutDefaults.itemKey }), propsWithoutDefaults); var ariaLabel = props.ariaLabel, focused = props.focused, required = props.required, theme = props.theme, iconProps = props.iconProps, imageSrc = props.imageSrc, imageSize = props.imageSize, disabled = props.disabled, checked = props.checked, id = props.id, styles = props.styles, name = props.name, rest = tslib_1.__rest(props, ["ariaLabel", "focused", "required", "theme", "iconProps", "imageSrc", "imageSize", "disabled", "checked", "id", "styles", "name"]); var classNames = getClassNames(styles, { theme: theme, hasIcon: !!iconProps, hasImage: !!imageSrc, checked: checked, disabled: disabled, imageIsLarge: !!imageSrc && (imageSize.width > LARGE_IMAGE_SIZE || imageSize.height > LARGE_IMAGE_SIZE), imageSize: imageSize, focused: focused, }); var _a = (0, Utilities_1.getNativeProps)(rest, Utilities_1.inputProperties), className = _a.className, nativeProps = tslib_1.__rest(_a, ["className"]); var defaultOnRenderLabel = function () { return (React.createElement("span", { id: props.labelId, className: "ms-ChoiceFieldLabel" }, props.text)); }; var defaultOnRenderField = function () { var _a = props.imageAlt, imageAlt = _a === void 0 ? '' : _a, selectedImageSrc = props.selectedImageSrc; var onRenderLabel = props.onRenderLabel ? (0, Utilities_1.composeRenderFunction)(props.onRenderLabel, defaultOnRenderLabel) : defaultOnRenderLabel; var label = onRenderLabel(tslib_1.__assign(tslib_1.__assign({}, props), { key: props.itemKey })); return (React.createElement("label", { htmlFor: id, className: classNames.field }, imageSrc && (React.createElement("div", { className: classNames.innerField }, React.createElement("div", { className: classNames.imageWrapper }, React.createElement(Image_1.Image, tslib_1.__assign({ src: imageSrc, alt: imageAlt }, imageSize))), React.createElement("div", { className: classNames.selectedImageWrapper }, React.createElement(Image_1.Image, tslib_1.__assign({ src: selectedImageSrc, alt: imageAlt }, imageSize))))), iconProps && (React.createElement("div", { className: classNames.innerField }, React.createElement("div", { className: classNames.iconWrapper }, React.createElement(Icon_1.Icon, tslib_1.__assign({}, iconProps))))), imageSrc || iconProps ? React.createElement("div", { className: classNames.labelWrapper }, label) : label)); }; var _b = props.onRenderField, onRenderField = _b === void 0 ? defaultOnRenderField : _b; var onChange = function (evt) { var _a; (_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, evt, tslib_1.__assign(tslib_1.__assign({}, props), { key: props.itemKey })); }; var onBlur = function (evt) { var _a; (_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props, evt); }; var onFocus = function (evt) { var _a; (_a = props.onFocus) === null || _a === void 0 ? void 0 : _a.call(props, evt, tslib_1.__assign(tslib_1.__assign({}, props), { key: props.itemKey })); }; return (React.createElement("div", { className: classNames.root }, React.createElement("div", { className: classNames.choiceFieldWrapper }, React.createElement("input", tslib_1.__assign({ "aria-label": ariaLabel, id: id, className: (0, Utilities_1.css)(classNames.input, className), type: "radio", name: name, disabled: disabled, checked: checked, required: required }, nativeProps, { onChange: onChange, onFocus: onFocus, onBlur: onBlur })), onRenderField(tslib_1.__assign(tslib_1.__assign({}, props), { key: props.itemKey }), defaultOnRenderField)))); }; exports.ChoiceGroupOptionBase = ChoiceGroupOptionBase; exports.ChoiceGroupOptionBase.displayName = 'ChoiceGroupOption'; //# sourceMappingURL=ChoiceGroupOption.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.js": /*!*****************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.js ***! \*****************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ChoiceGroupOption = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ChoiceGroupOption_base_1 = __webpack_require__(/*! ./ChoiceGroupOption.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.base.js"); var ChoiceGroupOption_styles_1 = __webpack_require__(/*! ./ChoiceGroupOption.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.styles.js"); exports.ChoiceGroupOption = (0, Utilities_1.styled)(ChoiceGroupOption_base_1.ChoiceGroupOptionBase, ChoiceGroupOption_styles_1.getStyles, undefined, { scope: 'ChoiceGroupOption' }); //# sourceMappingURL=ChoiceGroupOption.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.styles.js": /*!************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.styles.js ***! \************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var GlobalClassNames = { root: 'ms-ChoiceField', choiceFieldWrapper: 'ms-ChoiceField-wrapper', input: 'ms-ChoiceField-input', field: 'ms-ChoiceField-field', innerField: 'ms-ChoiceField-innerField', imageWrapper: 'ms-ChoiceField-imageWrapper', iconWrapper: 'ms-ChoiceField-iconWrapper', labelWrapper: 'ms-ChoiceField-labelWrapper', checked: 'is-checked', }; var labelWrapperLineHeight = 15; var labelWrapperHeight = labelWrapperLineHeight * 2 + 2; // adding 2px height to ensure text doesn't get cutoff var iconSize = 32; var choiceFieldSize = 20; var choiceFieldTransitionDuration = '200ms'; var choiceFieldTransitionTiming = 'cubic-bezier(.4, 0, .23, 1)'; var radioButtonSpacing = 3; var radioButtonInnerSize = 5; function getChoiceGroupFocusStyle(focusBorderColor, hasIconOrImage) { var _a, _b; return [ 'is-inFocus', { selectors: (_a = {}, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &")] = { position: 'relative', outline: 'transparent', selectors: { '::-moz-focus-inner': { border: 0, }, ':after': { content: '""', top: -2, right: -2, bottom: -2, left: -2, pointerEvents: 'none', border: "1px solid ".concat(focusBorderColor), position: 'absolute', selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { borderColor: 'WindowText', borderWidth: hasIconOrImage ? 1 : 2, }, _b), }, }, }, _a), }, ]; } function getImageWrapperStyle(isSelectedImageWrapper, className, checked) { return [ className, { paddingBottom: 2, transitionProperty: 'opacity', transitionDuration: choiceFieldTransitionDuration, transitionTimingFunction: 'ease', selectors: { '.ms-Image': { display: 'inline-block', borderStyle: 'none', }, }, }, (checked ? !isSelectedImageWrapper : isSelectedImageWrapper) && [ 'is-hidden', { position: 'absolute', left: 0, top: 0, width: '100%', height: '100%', overflow: 'hidden', opacity: 0, }, ], ]; } var getStyles = function (props) { var _a, _b, _c, _d, _e; var theme = props.theme, hasIcon = props.hasIcon, hasImage = props.hasImage, checked = props.checked, disabled = props.disabled, imageIsLarge = props.imageIsLarge, focused = props.focused, imageSize = props.imageSize; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); // Tokens // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.smallInputBorder var circleBorderColor = palette.neutralPrimary; var circleHoveredBorderColor = semanticColors.inputBorderHovered; var circleCheckedBorderColor = semanticColors.inputBackgroundChecked; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBackgroundCheckedHovered var circleCheckedHoveredBorderColor = palette.themeDark; var circleDisabledBorderColor = semanticColors.disabledBodySubtext; var circleBackgroundColor = semanticColors.bodyBackground; var dotUncheckedHoveredColor = palette.neutralSecondary; var dotCheckedColor = semanticColors.inputBackgroundChecked; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBackgroundCheckedHovered var dotCheckedHoveredColor = palette.themeDark; var dotDisabledColor = semanticColors.disabledBodySubtext; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.bodyTextChecked var labelHoverFocusColor = palette.neutralDark; var focusBorderColor = semanticColors.focusBorder; var iconOrImageChoiceBorderUncheckedHoveredColor = semanticColors.inputBorderHovered; // TODO: after updating the semanticColors slots mapping this needs to be semanticColors.inputBackgroundCheckedHovered var iconOrImageChoiceBorderCheckedColor = semanticColors.inputBackgroundChecked; var iconOrImageChoiceBorderCheckedHoveredColor = palette.themeDark; var iconOrImageChoiceBackgroundColor = palette.neutralLighter; var fieldHoverOrFocusProperties = { selectors: { '.ms-ChoiceFieldLabel': { color: labelHoverFocusColor, }, ':before': { borderColor: checked ? circleCheckedHoveredBorderColor : circleHoveredBorderColor, }, ':after': [ !hasIcon && !hasImage && !checked && { content: '""', transitionProperty: 'background-color', left: 5, top: 5, width: 10, height: 10, backgroundColor: dotUncheckedHoveredColor, }, checked && { borderColor: dotCheckedHoveredColor, background: dotCheckedHoveredColor, }, ], }, }; var enabledFieldWithImageHoverOrFocusProperties = { borderColor: checked ? iconOrImageChoiceBorderCheckedHoveredColor : iconOrImageChoiceBorderUncheckedHoveredColor, selectors: { ':before': { opacity: 1, borderColor: checked ? circleCheckedHoveredBorderColor : circleHoveredBorderColor, }, }, }; var circleAreaProperties = [ { content: '""', display: 'inline-block', backgroundColor: circleBackgroundColor, borderWidth: 1, borderStyle: 'solid', borderColor: circleBorderColor, width: choiceFieldSize, height: choiceFieldSize, fontWeight: 'normal', position: 'absolute', top: 0, left: 0, boxSizing: 'border-box', transitionProperty: 'border-color', transitionDuration: choiceFieldTransitionDuration, transitionTimingFunction: choiceFieldTransitionTiming, borderRadius: '50%', }, disabled && { borderColor: circleDisabledBorderColor, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ borderColor: 'GrayText', background: 'Window' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a), }, checked && { borderColor: disabled ? circleDisabledBorderColor : circleCheckedBorderColor, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { borderColor: 'Highlight', background: 'Window', forcedColorAdjust: 'none', }, _b), }, (hasIcon || hasImage) && { top: radioButtonSpacing, right: radioButtonSpacing, left: 'auto', opacity: checked ? 1 : 0, }, ]; var dotAreaProperties = [ { content: '""', width: 0, height: 0, borderRadius: '50%', position: 'absolute', left: choiceFieldSize / 2, right: 0, transitionProperty: 'border-width', transitionDuration: choiceFieldTransitionDuration, transitionTimingFunction: choiceFieldTransitionTiming, boxSizing: 'border-box', }, checked && { borderWidth: 5, borderStyle: 'solid', borderColor: disabled ? dotDisabledColor : dotCheckedColor, background: dotCheckedColor, left: 5, top: 5, width: 10, height: 10, selectors: (_c = {}, _c[Styling_1.HighContrastSelector] = { borderColor: 'Highlight', forcedColorAdjust: 'none', }, _c), }, checked && (hasIcon || hasImage) && { top: radioButtonSpacing + radioButtonInnerSize, right: radioButtonSpacing + radioButtonInnerSize, left: 'auto', // To reset the value of 'left' to its default value, so that 'right' works }, ]; return { root: [ classNames.root, theme.fonts.medium, { display: 'flex', alignItems: 'center', boxSizing: 'border-box', color: semanticColors.bodyText, minHeight: 26, border: 'none', position: 'relative', marginTop: 8, selectors: { '.ms-ChoiceFieldLabel': { display: 'inline-block', }, }, }, !hasIcon && !hasImage && { selectors: { '.ms-ChoiceFieldLabel': { paddingLeft: '26px', }, }, }, hasImage && 'ms-ChoiceField--image', hasIcon && 'ms-ChoiceField--icon', (hasIcon || hasImage) && { display: 'inline-flex', fontSize: 0, margin: '0 4px 4px 0', paddingLeft: 0, backgroundColor: iconOrImageChoiceBackgroundColor, height: '100%', }, ], choiceFieldWrapper: [ classNames.choiceFieldWrapper, focused && getChoiceGroupFocusStyle(focusBorderColor, hasIcon || hasImage), ], // The hidden input input: [ classNames.input, { position: 'absolute', opacity: 0, top: 0, right: 0, width: '100%', height: '100%', margin: 0, }, disabled && 'is-disabled', ], field: [ classNames.field, checked && classNames.checked, { display: 'inline-block', cursor: 'pointer', marginTop: 0, position: 'relative', verticalAlign: 'top', userSelect: 'none', minHeight: 20, selectors: { ':hover': !disabled && fieldHoverOrFocusProperties, ':focus': !disabled && fieldHoverOrFocusProperties, // The circle ':before': circleAreaProperties, // The dot ':after': dotAreaProperties, }, }, hasIcon && 'ms-ChoiceField--icon', hasImage && 'ms-ChoiceField-field--image', (hasIcon || hasImage) && { boxSizing: 'content-box', cursor: 'pointer', paddingTop: 22, margin: 0, textAlign: 'center', transitionProperty: 'all', transitionDuration: choiceFieldTransitionDuration, transitionTimingFunction: 'ease', border: '1px solid transparent', justifyContent: 'center', alignItems: 'center', display: 'flex', flexDirection: 'column', }, checked && { borderColor: iconOrImageChoiceBorderCheckedColor, }, (hasIcon || hasImage) && !disabled && { selectors: { ':hover': enabledFieldWithImageHoverOrFocusProperties, ':focus': enabledFieldWithImageHoverOrFocusProperties, }, }, disabled && { cursor: 'default', selectors: { '.ms-ChoiceFieldLabel': { color: semanticColors.disabledBodyText, selectors: (_d = {}, _d[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'GrayText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _d), }, }, }, checked && disabled && { borderColor: iconOrImageChoiceBackgroundColor, }, ], innerField: [ classNames.innerField, hasImage && { // using non-null assertion because we have a default in `ChoiceGroupOptionBase` class. height: imageSize.height, width: imageSize.width, }, (hasIcon || hasImage) && { position: 'relative', display: 'inline-block', paddingLeft: 30, paddingRight: 30, }, (hasIcon || hasImage) && imageIsLarge && { paddingLeft: 24, paddingRight: 24, }, (hasIcon || hasImage) && disabled && { opacity: 0.25, selectors: (_e = {}, _e[Styling_1.HighContrastSelector] = { color: 'GrayText', opacity: 1, }, _e), }, ], imageWrapper: getImageWrapperStyle(false, classNames.imageWrapper, checked), selectedImageWrapper: getImageWrapperStyle(true, classNames.imageWrapper, checked), iconWrapper: [ classNames.iconWrapper, { fontSize: iconSize, lineHeight: iconSize, height: iconSize, }, ], labelWrapper: [ classNames.labelWrapper, fonts.medium, (hasIcon || hasImage) && { display: 'block', position: 'relative', margin: '4px 8px 2px 8px', height: labelWrapperHeight, lineHeight: labelWrapperLineHeight, // using non-null assertion because we have a default in `ChoiceGroupOptionBase` class. maxWidth: imageSize.width * 2, overflow: 'hidden', whiteSpace: 'pre-wrap', }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=ChoiceGroupOption.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.types.js": /*!***********************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.types.js ***! \***********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ChoiceGroupOption.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/index.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/index.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./ChoiceGroupOption */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ChoiceGroupOption.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/ChoiceGroupOption.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/index.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./ChoiceGroup */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ChoiceGroup.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ChoiceGroup.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroup.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ChoiceGroupOption/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ChoiceGroup/ChoiceGroupOption/index.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Beak/Beak.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Beak/Beak.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Beak = exports.BEAK_WIDTH = exports.BEAK_HEIGHT = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Beak_styles_1 = __webpack_require__(/*! ./Beak.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Beak/Beak.styles.js"); var Positioning_1 = __webpack_require__(/*! ../../../Positioning */ "./node_modules/@fluentui/react/lib-commonjs/Positioning.js"); exports.BEAK_HEIGHT = 10; exports.BEAK_WIDTH = 18; exports.Beak = React.forwardRef(function (props, forwardedRef) { var left = props.left, top = props.top, bottom = props.bottom, right = props.right, color = props.color, _a = props.direction, direction = _a === void 0 ? Positioning_1.RectangleEdge.top : _a; var svgHeight; var svgWidth; if (direction === Positioning_1.RectangleEdge.top || direction === Positioning_1.RectangleEdge.bottom) { svgHeight = exports.BEAK_HEIGHT; svgWidth = exports.BEAK_WIDTH; } else { svgHeight = exports.BEAK_WIDTH; svgWidth = exports.BEAK_HEIGHT; } var pointOne; var pointTwo; var pointThree; var transform; switch (direction) { case Positioning_1.RectangleEdge.top: default: pointOne = "".concat(exports.BEAK_WIDTH / 2, ", 0"); pointTwo = "".concat(exports.BEAK_WIDTH, ", ").concat(exports.BEAK_HEIGHT); pointThree = "0, ".concat(exports.BEAK_HEIGHT); transform = 'translateY(-100%)'; break; case Positioning_1.RectangleEdge.right: pointOne = "0, 0"; pointTwo = "".concat(exports.BEAK_HEIGHT, ", ").concat(exports.BEAK_HEIGHT); pointThree = "0, ".concat(exports.BEAK_WIDTH); transform = 'translateX(100%)'; break; case Positioning_1.RectangleEdge.bottom: pointOne = "0, 0"; pointTwo = "".concat(exports.BEAK_WIDTH, ", 0"); pointThree = "".concat(exports.BEAK_WIDTH / 2, ", ").concat(exports.BEAK_HEIGHT); transform = 'translateY(100%)'; break; case Positioning_1.RectangleEdge.left: pointOne = "".concat(exports.BEAK_HEIGHT, ", 0"); pointTwo = "0, ".concat(exports.BEAK_HEIGHT); pointThree = "".concat(exports.BEAK_HEIGHT, ", ").concat(exports.BEAK_WIDTH); transform = 'translateX(-100%)'; break; } var getClassNames = (0, Utilities_1.classNamesFunction)(); var classNames = getClassNames(Beak_styles_1.getStyles, { left: left, top: top, bottom: bottom, right: right, height: "".concat(svgHeight, "px"), width: "".concat(svgWidth, "px"), transform: transform, color: color, }); return (React.createElement("div", { className: classNames.root, role: "presentation", ref: forwardedRef }, React.createElement("svg", { height: svgHeight, width: svgWidth, className: classNames.beak }, React.createElement("polygon", { points: pointOne + ' ' + pointTwo + ' ' + pointThree })))); }); exports.Beak.displayName = 'Beak'; //# sourceMappingURL=Beak.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Beak/Beak.styles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Beak/Beak.styles.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); function getStyles(props) { var _a; return { root: [ { position: 'absolute', boxShadow: 'inherit', border: 'none', boxSizing: 'border-box', transform: props.transform, width: props.width, height: props.height, left: props.left, top: props.top, right: props.right, bottom: props.bottom, }, ], beak: { fill: props.color, display: 'block', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { fill: 'windowtext', }, _a), }, }; } exports.getStyles = getStyles; //# sourceMappingURL=Beak.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.base.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.base.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CoachmarkBase = exports.COACHMARK_ATTRIBUTE_NAME = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); // Utilities var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Positioning_1 = __webpack_require__(/*! ../../Positioning */ "./node_modules/@fluentui/react/lib-commonjs/Positioning.js"); // Component Dependencies var index_1 = __webpack_require__(/*! ./PositioningContainer/index */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/index.js"); var Beak_1 = __webpack_require__(/*! ./Beak/Beak */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Beak/Beak.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); // Coachmark var Coachmark_styles_1 = __webpack_require__(/*! ./Coachmark.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.styles.js"); var FocusTrapZone_1 = __webpack_require__(/*! ../../FocusTrapZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusTrapZone.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); exports.COACHMARK_ATTRIBUTE_NAME = 'data-coachmarkid'; var DEFAULT_PROPS = { isCollapsed: true, mouseProximityOffset: 10, delayBeforeMouseOpen: 3600, delayBeforeCoachmarkAnimation: 0, isPositionForced: true, positioningContainerProps: { directionalHint: DirectionalHint_1.DirectionalHint.bottomAutoEdge, }, }; function useCollapsedState(props, entityInnerHostElementRef) { var propsIsCollapsed = props.isCollapsed, onAnimationOpenStart = props.onAnimationOpenStart, onAnimationOpenEnd = props.onAnimationOpenEnd; /** Is the Coachmark currently collapsed into a tear drop shape */ var _a = React.useState(!!propsIsCollapsed), isCollapsed = _a[0], setIsCollapsed = _a[1]; var setTimeout = (0, react_hooks_1.useSetTimeout)().setTimeout; // Rather than pushing out logic elsewhere to prevent openCoachmark from being called repeatedly, // we'll track it here and only invoke the logic once. We do this with a ref, rather than just the state, // because the openCoachmark callback can be captured in scope for an effect var hasCoachmarkBeenOpened = React.useRef(!isCollapsed); var openCoachmark = React.useCallback(function () { var _a, _b; if (!hasCoachmarkBeenOpened.current) { setIsCollapsed(false); onAnimationOpenStart === null || onAnimationOpenStart === void 0 ? void 0 : onAnimationOpenStart(); (_b = (_a = entityInnerHostElementRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener) === null || _b === void 0 ? void 0 : _b.call(_a, 'transitionend', function () { // Need setTimeout to trigger narrator setTimeout(function () { if (entityInnerHostElementRef.current) { (0, Utilities_1.focusFirstChild)(entityInnerHostElementRef.current); } }, 1000); onAnimationOpenEnd === null || onAnimationOpenEnd === void 0 ? void 0 : onAnimationOpenEnd(); }); hasCoachmarkBeenOpened.current = true; } }, [entityInnerHostElementRef, onAnimationOpenEnd, onAnimationOpenStart, setTimeout]); React.useEffect(function () { if (!propsIsCollapsed) { openCoachmark(); } // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run if isCollapsed changes }, [propsIsCollapsed]); return [isCollapsed, openCoachmark]; } function usePositionedData() { var async = (0, react_hooks_1.useAsync)(); /** * Alignment edge of callout in relation to target */ var _a = React.useState(), targetAlignment = _a[0], setTargetAlignment = _a[1]; /** * Position of Coachmark/TeachingBubble in relation to target */ var _b = React.useState(), targetPosition = _b[0], setTargetPosition = _b[1]; var onPositioned = function (_a) { var alignmentEdge = _a.alignmentEdge, targetEdge = _a.targetEdge; return async.requestAnimationFrame(function () { setTargetAlignment(alignmentEdge); setTargetPosition(targetEdge); }); }; return [targetAlignment, targetPosition, onPositioned]; } function useBeakPosition(props, targetAlignment, targetPosition) { var isRTL = (0, Utilities_1.getRTL)(props.theme); return React.useMemo(function () { var beakDirection = targetPosition === undefined ? Positioning_1.RectangleEdge.bottom : (0, Positioning_1.getOppositeEdge)(targetPosition); var beakPosition = { direction: beakDirection }; var transformOriginX; var transformOriginY; var distanceAdjustment = '3px'; // Adjustment distance for Beak to shift towards Coachmark bubble. switch (beakDirection) { // If Beak is pointing Up or Down case Positioning_1.RectangleEdge.top: case Positioning_1.RectangleEdge.bottom: // If there is no target alignment, then beak is X-axis centered in callout if (!targetAlignment) { beakPosition.left = "calc(50% - ".concat(Beak_1.BEAK_WIDTH / 2, "px)"); transformOriginX = 'center'; } else { // Beak is aligned to the left of target if (targetAlignment === Positioning_1.RectangleEdge.left) { beakPosition.left = "".concat(Coachmark_styles_1.COACHMARK_WIDTH / 2 - Beak_1.BEAK_WIDTH / 2, "px"); transformOriginX = 'left'; } else { // Beak is aligned to the right of target beakPosition.right = "".concat(Coachmark_styles_1.COACHMARK_WIDTH / 2 - Beak_1.BEAK_WIDTH / 2, "px"); transformOriginX = 'right'; } } if (beakDirection === Positioning_1.RectangleEdge.top) { beakPosition.top = distanceAdjustment; transformOriginY = 'top'; } else { beakPosition.bottom = distanceAdjustment; transformOriginY = 'bottom'; } break; // If Beak is pointing Left or Right case Positioning_1.RectangleEdge.left: case Positioning_1.RectangleEdge.right: // If there is no target alignment, then beak is Y-axis centered in callout if (!targetAlignment) { beakPosition.top = "calc(50% - ".concat(Beak_1.BEAK_WIDTH / 2, "px)"); transformOriginY = "center"; } else { // Beak is aligned to the top of target if (targetAlignment === Positioning_1.RectangleEdge.top) { beakPosition.top = "".concat(Coachmark_styles_1.COACHMARK_WIDTH / 2 - Beak_1.BEAK_WIDTH / 2, "px"); transformOriginY = "top"; } else { // Beak is aligned to the bottom of target beakPosition.bottom = "".concat(Coachmark_styles_1.COACHMARK_WIDTH / 2 - Beak_1.BEAK_WIDTH / 2, "px"); transformOriginY = "bottom"; } } if (beakDirection === Positioning_1.RectangleEdge.left) { if (isRTL) { beakPosition.right = distanceAdjustment; } else { beakPosition.left = distanceAdjustment; } transformOriginX = 'left'; } else { if (isRTL) { beakPosition.left = distanceAdjustment; } else { beakPosition.right = distanceAdjustment; } transformOriginX = 'right'; } break; } return [beakPosition, "".concat(transformOriginX, " ").concat(transformOriginY)]; }, [targetAlignment, targetPosition, isRTL]); } function useListeners(props, translateAnimationContainer, openCoachmark) { var _a; var document = (_a = (0, Utilities_1.getDocument)()) === null || _a === void 0 ? void 0 : _a.documentElement; (0, react_hooks_1.useOnEvent)(document, 'keydown', function (e) { var _a, _b; // Open coachmark if user presses ALT + C (arbitrary keypress for now) if ( // eslint-disable-next-line deprecation/deprecation (e.altKey && e.which === Utilities_1.KeyCodes.c) || // eslint-disable-next-line deprecation/deprecation (e.which === Utilities_1.KeyCodes.enter && ((_b = (_a = translateAnimationContainer.current) === null || _a === void 0 ? void 0 : _a.contains) === null || _b === void 0 ? void 0 : _b.call(_a, e.target)))) { openCoachmark(); } }, true); var dismissOnLostFocus = function (ev) { var _a; if (props.preventDismissOnLostFocus) { var clickTarget = ev.target; var clickedOutsideCallout = translateAnimationContainer.current && !(0, Utilities_1.elementContains)(translateAnimationContainer.current, clickTarget); var target = props.target; if (clickedOutsideCallout && clickTarget !== target && !(0, Utilities_1.elementContains)(target, clickTarget)) { (_a = props.onDismiss) === null || _a === void 0 ? void 0 : _a.call(props, ev); } } }; (0, react_hooks_1.useOnEvent)(document, 'click', dismissOnLostFocus, true); (0, react_hooks_1.useOnEvent)(document, 'focus', dismissOnLostFocus, true); } function useProximityHandlers(props, translateAnimationContainer, openCoachmark, setBounds) { var _a = (0, react_hooks_1.useSetTimeout)(), setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout; /** The target element the mouse would be in proximity to */ var targetElementRect = React.useRef(); React.useEffect(function () { var setTargetElementRect = function () { if (translateAnimationContainer.current) { targetElementRect.current = translateAnimationContainer.current.getBoundingClientRect(); } }; var events = new Utilities_1.EventGroup({}); // We don't want the user to immediately trigger the Coachmark when it's opened setTimeout(function () { var _a = props.mouseProximityOffset, mouseProximityOffset = _a === void 0 ? 0 : _a; /** Cached ids returned when setTimeout runs during the window resize event trigger. */ var timeoutIds = []; // Take the initial measure out of the initial render to prevent an unnecessary render. setTimeout(function () { setTargetElementRect(); // When the window resizes we want to async get the bounding client rectangle. // Every time the event is triggered we want to setTimeout and then clear any previous // instances of setTimeout. events.on(window, 'resize', function () { timeoutIds.forEach(function (value) { clearTimeout(value); }); timeoutIds.splice(0, timeoutIds.length); // clear array timeoutIds.push(setTimeout(function () { setTargetElementRect(); setBounds(getBounds(props.isPositionForced, props.positioningContainerProps)); }, 100)); }); }, 10); // Every time the document's mouse move is triggered, we want to check if inside of an element // and set the state with the result. events.on(document, 'mousemove', function (e) { var _a; var mouseY = e.clientY; var mouseX = e.clientX; setTargetElementRect(); if (isInsideElement(targetElementRect.current, mouseX, mouseY, mouseProximityOffset)) { openCoachmark(); } (_a = props.onMouseMove) === null || _a === void 0 ? void 0 : _a.call(props, e); }); }, props.delayBeforeMouseOpen); return function () { return events.dispose(); }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on mount }, []); } function useComponentRef(props) { var onDismiss = props.onDismiss; React.useImperativeHandle(props.componentRef, function (ev) { return ({ dismiss: function () { onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(ev); }, }); }, [onDismiss]); } function useAriaAlert(_a) { var ariaAlertText = _a.ariaAlertText; var async = (0, react_hooks_1.useAsync)(); /** ARIA alert text to read aloud with Narrator once the Coachmark is mounted */ var _b = React.useState(), alertText = _b[0], setAlertText = _b[1]; React.useEffect(function () { // Need to add RAF to have narrator read change in alert container async.requestAnimationFrame(function () { setAlertText(ariaAlertText); }); // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on mount }, []); return alertText; } function useAutoFocus(_a) { var preventFocusOnMount = _a.preventFocusOnMount; var setTimeout = (0, react_hooks_1.useSetTimeout)().setTimeout; /** * The cached HTMLElement reference to the Entity Inner Host * element. */ var entityHost = React.useRef(null); React.useEffect(function () { if (!preventFocusOnMount) { setTimeout(function () { var _a; return (_a = entityHost.current) === null || _a === void 0 ? void 0 : _a.focus(); }, 1000); } // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on mount }, []); return entityHost; } function useEntityHostMeasurements(props, entityInnerHostElementRef) { /** Is the teaching bubble currently retrieving the original dimensions of the hosted entity. */ var _a = React.useState(!!props.isCollapsed), isMeasuring = _a[0], setIsMeasuring = _a[1]; /** Cached width and height of _entityInnerHostElement */ var _b = React.useState(props.isCollapsed ? { width: 0, height: 0 } : {}), entityInnerHostRect = _b[0], setEntityInnerHostRect = _b[1]; var async = (0, react_hooks_1.useAsync)(); React.useEffect(function () { async.requestAnimationFrame(function () { if (entityInnerHostElementRef.current) { setEntityInnerHostRect({ width: entityInnerHostElementRef.current.offsetWidth, height: entityInnerHostElementRef.current.offsetHeight, }); setIsMeasuring(false); } }); // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on mount }, []); return [isMeasuring, entityInnerHostRect]; } function useDeprecationWarning(props) { if (true) { // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional (0, react_hooks_1.useWarnings)({ name: COMPONENT_NAME, props: props, deprecations: { teachingBubbleRef: undefined, collapsed: 'isCollapsed', beakWidth: undefined, beakHeight: undefined, width: undefined, height: undefined, }, }); } } var COMPONENT_NAME = 'CoachmarkBase'; exports.CoachmarkBase = React.forwardRef(function (propsWithoutDefaults, forwardedRef) { var props = (0, Utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); var entityInnerHostElementRef = React.useRef(null); var translateAnimationContainer = React.useRef(null); var _a = usePositionedData(), targetAlignment = _a[0], targetPosition = _a[1], onPositioned = _a[2]; var _b = useCollapsedState(props, entityInnerHostElementRef), isCollapsed = _b[0], openCoachmark = _b[1]; var _c = useBeakPosition(props, targetAlignment, targetPosition), beakPositioningProps = _c[0], transformOrigin = _c[1]; var _d = useEntityHostMeasurements(props, entityInnerHostElementRef), isMeasuring = _d[0], entityInnerHostRect = _d[1]; var _e = React.useState(getBounds(props.isPositionForced, props.positioningContainerProps)), bounds = _e[0], setBounds = _e[1]; var alertText = useAriaAlert(props); var entityHost = useAutoFocus(props); useListeners(props, translateAnimationContainer, openCoachmark); useComponentRef(props); useProximityHandlers(props, translateAnimationContainer, openCoachmark, setBounds); useDeprecationWarning(props); React.useEffect(function () { setBounds(getBounds(props.isPositionForced, props.positioningContainerProps)); }, [props.isPositionForced, props.positioningContainerProps]); var beaconColorOne = props.beaconColorOne, beaconColorTwo = props.beaconColorTwo, children = props.children, target = props.target, color = props.color, positioningContainerProps = props.positioningContainerProps, ariaDescribedBy = props.ariaDescribedBy, ariaDescribedByText = props.ariaDescribedByText, ariaLabelledBy = props.ariaLabelledBy, ariaLabelledByText = props.ariaLabelledByText, ariaAlertText = props.ariaAlertText, delayBeforeCoachmarkAnimation = props.delayBeforeCoachmarkAnimation, styles = props.styles, theme = props.theme, className = props.className, persistentBeak = props.persistentBeak; // Defaulting the main background before passing it to the styles because it is used for `Beak` too. var defaultColor = color; if (!defaultColor && theme) { defaultColor = theme.semanticColors.primaryButtonBackground; } var classNames = getClassNames(styles, { theme: theme, beaconColorOne: beaconColorOne, beaconColorTwo: beaconColorTwo, className: className, isCollapsed: isCollapsed, isMeasuring: isMeasuring, color: defaultColor, transformOrigin: transformOrigin, entityHostHeight: entityInnerHostRect.height === undefined ? undefined : "".concat(entityInnerHostRect.height, "px"), entityHostWidth: entityInnerHostRect.width === undefined ? undefined : "".concat(entityInnerHostRect.width, "px"), width: "".concat(Coachmark_styles_1.COACHMARK_WIDTH, "px"), height: "".concat(Coachmark_styles_1.COACHMARK_HEIGHT, "px"), delayBeforeCoachmarkAnimation: "".concat(delayBeforeCoachmarkAnimation, "ms"), }); var finalHeight = isCollapsed ? Coachmark_styles_1.COACHMARK_HEIGHT : entityInnerHostRect.height; return (React.createElement(index_1.PositioningContainer, tslib_1.__assign({ target: target, offsetFromTarget: Beak_1.BEAK_HEIGHT, finalHeight: finalHeight, ref: forwardedRef, onPositioned: onPositioned, bounds: bounds }, positioningContainerProps), React.createElement("div", { className: classNames.root }, ariaAlertText && (React.createElement("div", { className: classNames.ariaContainer, role: "alert", "aria-hidden": !isCollapsed }, alertText)), React.createElement("div", { className: classNames.pulsingBeacon }), React.createElement("div", { className: classNames.translateAnimationContainer, ref: translateAnimationContainer }, React.createElement("div", { className: classNames.scaleAnimationLayer }, React.createElement("div", { className: classNames.rotateAnimationLayer }, (isCollapsed || persistentBeak) && React.createElement(Beak_1.Beak, tslib_1.__assign({}, beakPositioningProps, { color: defaultColor })), React.createElement("div", { className: classNames.entityHost, ref: entityHost, tabIndex: -1, "data-is-focusable": true, role: "dialog", "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy }, isCollapsed && [ ariaLabelledBy && (React.createElement("p", { id: ariaLabelledBy, key: 0, className: classNames.ariaContainer }, ariaLabelledByText)), ariaDescribedBy && (React.createElement("p", { id: ariaDescribedBy, key: 1, className: classNames.ariaContainer }, ariaDescribedByText)), ], React.createElement(FocusTrapZone_1.FocusTrapZone, { isClickableOutsideFocusTrap: true, forceFocusInsideTrap: false }, React.createElement("div", { className: classNames.entityInnerHost, ref: entityInnerHostElementRef }, React.createElement("div", { className: classNames.childrenContainer, "aria-hidden": isCollapsed }, children)))))))))); }); exports.CoachmarkBase.displayName = COMPONENT_NAME; function getBounds(isPositionForced, positioningContainerProps) { if (isPositionForced) { // If directionalHint direction is the top or bottom auto edge, then we want to set the left/right bounds // to the window x-axis to have auto positioning work correctly. if (positioningContainerProps && (positioningContainerProps.directionalHint === DirectionalHint_1.DirectionalHint.topAutoEdge || positioningContainerProps.directionalHint === DirectionalHint_1.DirectionalHint.bottomAutoEdge)) { return { left: 0, top: -Infinity, bottom: Infinity, right: window.innerWidth, width: window.innerWidth, height: Infinity, }; } else { return { left: -Infinity, top: -Infinity, bottom: Infinity, right: Infinity, width: Infinity, height: Infinity, }; } } else { return undefined; } } function isInsideElement( // eslint-disable-next-line deprecation/deprecation targetElementRect, mouseX, mouseY, mouseProximityOffset) { if (mouseProximityOffset === void 0) { mouseProximityOffset = 0; } return (mouseX > targetElementRect.left - mouseProximityOffset && mouseX < targetElementRect.left + targetElementRect.width + mouseProximityOffset && mouseY > targetElementRect.top - mouseProximityOffset && mouseY < targetElementRect.top + targetElementRect.height + mouseProximityOffset); } //# sourceMappingURL=Coachmark.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Coachmark = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Coachmark_styles_1 = __webpack_require__(/*! ./Coachmark.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.styles.js"); var Coachmark_base_1 = __webpack_require__(/*! ./Coachmark.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.base.js"); exports.Coachmark = (0, Utilities_1.styled)(Coachmark_base_1.CoachmarkBase, Coachmark_styles_1.getStyles, undefined, { scope: 'Coachmark', }); //# sourceMappingURL=Coachmark.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.styles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.styles.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.rotateOne = exports.scaleOne = exports.translateOne = exports.COACHMARK_HEIGHT = exports.COACHMARK_WIDTH = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.COACHMARK_WIDTH = 32; exports.COACHMARK_HEIGHT = 32; exports.translateOne = (0, Utilities_1.memoizeFunction)(function () { return (0, Styling_1.keyframes)({ '0%': { transform: 'translate(0, 0)', animationTimingFunction: 'linear', }, '78.57%': { transform: 'translate(0, 0)', animationTimingFunction: 'cubic-bezier(0.62, 0, 0.56, 1)', }, '82.14%': { transform: 'translate(0, -5px)', animationTimingFunction: 'cubic-bezier(0.58, 0, 0, 1)', }, '84.88%': { transform: 'translate(0, 9px)', animationTimingFunction: 'cubic-bezier(1, 0, 0.56, 1)', }, '88.1%': { transform: 'translate(0, -2px)', animationTimingFunction: 'cubic-bezier(0.58, 0, 0.67, 1)', }, '90.12%': { transform: 'translate(0, 0)', animationTimingFunction: 'linear', }, '100%': { transform: 'translate(0, 0)', }, }); }); exports.scaleOne = (0, Utilities_1.memoizeFunction)(function () { return (0, Styling_1.keyframes)({ '0%': { transform: ' scale(0)', animationTimingFunction: 'linear', }, '14.29%': { transform: 'scale(0)', animationTimingFunction: 'cubic-bezier(0.84, 0, 0.52, 0.99)', }, '16.67%': { transform: 'scale(1.15)', animationTimingFunction: 'cubic-bezier(0.48, -0.01, 0.52, 1.01)', }, '19.05%': { transform: 'scale(0.95)', animationTimingFunction: 'cubic-bezier(0.48, 0.02, 0.52, 0.98)', }, '21.43%': { transform: 'scale(1)', animationTimingFunction: 'linear', }, '42.86%': { transform: 'scale(1)', animationTimingFunction: 'cubic-bezier(0.48, -0.02, 0.52, 1.02)', }, '45.71%': { transform: 'scale(0.8)', animationTimingFunction: 'cubic-bezier(0.48, 0.01, 0.52, 0.99)', }, '50%': { transform: 'scale(1)', animationTimingFunction: 'linear', }, '90.12%': { transform: 'scale(1)', animationTimingFunction: 'cubic-bezier(0.48, -0.02, 0.52, 1.02)', }, '92.98%': { transform: 'scale(0.8)', animationTimingFunction: 'cubic-bezier(0.48, 0.01, 0.52, 0.99)', }, '97.26%': { transform: 'scale(1)', animationTimingFunction: 'linear', }, '100%': { transform: 'scale(1)', }, }); }); exports.rotateOne = (0, Utilities_1.memoizeFunction)(function () { return (0, Styling_1.keyframes)({ '0%': { transform: 'rotate(0deg)', animationTimingFunction: 'linear', }, '83.33%': { transform: ' rotate(0deg)', animationTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)', }, '83.93%': { transform: 'rotate(15deg)', animationTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)', }, '84.52%': { transform: 'rotate(-15deg)', animationTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)', }, '85.12%': { transform: 'rotate(15deg)', animationTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)', }, '85.71%': { transform: 'rotate(-15deg)', animationTimingFunction: 'cubic-bezier(0.33, 0, 0.67, 1)', }, '86.31%': { transform: 'rotate(0deg)', animationTimingFunction: 'linear', }, '100%': { transform: 'rotate(0deg)', }, }); }); function getStyles(props) { var _a; var theme = props.theme, className = props.className, color = props.color, beaconColorOne = props.beaconColorOne, beaconColorTwo = props.beaconColorTwo, delayBeforeCoachmarkAnimation = props.delayBeforeCoachmarkAnimation, isCollapsed = props.isCollapsed, isMeasuring = props.isMeasuring, entityHostHeight = props.entityHostHeight, entityHostWidth = props.entityHostWidth, transformOrigin = props.transformOrigin; if (!theme) { throw new Error('theme is undefined or null in base Dropdown getStyles function.'); } var animationInnerDimension = '35px'; var animationOuterDimension = '150px'; var animationBorderWidth = '10px'; var ContinuousPulse = Styling_1.PulsingBeaconAnimationStyles.continuousPulseAnimationDouble(beaconColorOne ? beaconColorOne : theme.palette.themePrimary, beaconColorTwo ? beaconColorTwo : theme.palette.themeTertiary, animationInnerDimension, animationOuterDimension, animationBorderWidth); var ContinuousPulseAnimation = Styling_1.PulsingBeaconAnimationStyles.createDefaultAnimation(ContinuousPulse, delayBeforeCoachmarkAnimation); return { root: [ theme.fonts.medium, { position: 'relative', }, className, ], pulsingBeacon: [ { position: 'absolute', top: '50%', left: '50%', transform: (0, Utilities_1.getRTL)(theme) ? 'translate(50%, -50%)' : 'translate(-50%, -50%)', width: '0px', height: '0px', borderRadius: '225px', borderStyle: 'solid', opacity: '0', }, isCollapsed && ContinuousPulseAnimation, ], // Translate Animation Layer translateAnimationContainer: [ { width: '100%', height: '100%', }, isCollapsed && { animationDuration: '14s', animationTimingFunction: 'linear', animationDirection: 'normal', animationIterationCount: '1', animationDelay: '0s', animationFillMode: 'forwards', animationName: (0, exports.translateOne)(), transition: 'opacity 0.5s ease-in-out', }, !isCollapsed && { opacity: '1', }, ], // Scale Animation Layer scaleAnimationLayer: [ { width: '100%', height: '100%', }, isCollapsed && { animationDuration: '14s', animationTimingFunction: 'linear', animationDirection: 'normal', animationIterationCount: '1', animationDelay: '0s', animationFillMode: 'forwards', animationName: (0, exports.scaleOne)(), }, ], // Rotate Animation Layer rotateAnimationLayer: [ { width: '100%', height: '100%', }, isCollapsed && { animationDuration: '14s', animationTimingFunction: 'linear', animationDirection: 'normal', animationIterationCount: '1', animationDelay: '0s', animationFillMode: 'forwards', animationName: (0, exports.rotateOne)(), }, !isCollapsed && { opacity: '1', }, ], // Layer Host, defaults to collapsed entityHost: [ { position: 'relative', outline: 'none', overflow: 'hidden', backgroundColor: color, borderRadius: exports.COACHMARK_WIDTH, transition: 'border-radius 250ms, width 500ms, height 500ms cubic-bezier(0.5, 0, 0, 1)', visibility: 'hidden', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { backgroundColor: 'Window', border: '2px solid WindowText', }, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus")] = { outline: "1px solid ".concat(theme.palette.themeTertiary), }, _a), }, !isMeasuring && isCollapsed && { width: exports.COACHMARK_WIDTH, height: exports.COACHMARK_HEIGHT, }, !isMeasuring && { visibility: 'visible', }, !isCollapsed && { borderRadius: '1px', opacity: '1', width: entityHostWidth, height: entityHostHeight, }, ], entityInnerHost: [ { transition: 'transform 500ms cubic-bezier(0.5, 0, 0, 1)', transformOrigin: transformOrigin, transform: 'scale(0)', }, !isCollapsed && { width: entityHostWidth, height: entityHostHeight, transform: 'scale(1)', }, !isMeasuring && { visibility: 'visible', }, ], childrenContainer: [ { display: !isMeasuring && isCollapsed ? 'none' : 'block', }, ], ariaContainer: { position: 'fixed', opacity: 0, height: 0, width: 0, pointerEvents: 'none', }, }; } exports.getStyles = getStyles; //# sourceMappingURL=Coachmark.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.types.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.types.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Coachmark.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/PositioningContainer.js": /*!*********************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/PositioningContainer.js ***! \*********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _a; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.PositioningContainer = exports.useHeightOffset = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var PositioningContainer_styles_1 = __webpack_require__(/*! ./PositioningContainer.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/PositioningContainer.styles.js"); var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Layer_1 = __webpack_require__(/*! ../../../Layer */ "./node_modules/@fluentui/react/lib-commonjs/Layer.js"); // Utilites/Helpers var DirectionalHint_1 = __webpack_require__(/*! ../../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Positioning_1 = __webpack_require__(/*! ../../../Positioning */ "./node_modules/@fluentui/react/lib-commonjs/Positioning.js"); var Styling_2 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var OFF_SCREEN_STYLE = { opacity: 0 }; // In order for some of the max height logic to work properly we need to set the border. // The value is arbitrary. var BORDER_WIDTH = 1; var SLIDE_ANIMATIONS = (_a = {}, _a[Positioning_1.RectangleEdge.top] = 'slideUpIn20', _a[Positioning_1.RectangleEdge.bottom] = 'slideDownIn20', _a[Positioning_1.RectangleEdge.left] = 'slideLeftIn20', _a[Positioning_1.RectangleEdge.right] = 'slideRightIn20', _a); var DEFAULT_PROPS = { preventDismissOnScroll: false, offsetFromTarget: 0, minPagePadding: 8, directionalHint: DirectionalHint_1.DirectionalHint.bottomAutoEdge, }; function useBounds(props, targetWindow) { /** The bounds used when determining if and where the PositioningContainer should be placed. */ var getBounds = function () { var currentBounds = props.bounds; if (!currentBounds) { currentBounds = { top: 0 + props.minPagePadding, left: 0 + props.minPagePadding, right: targetWindow.innerWidth - props.minPagePadding, bottom: targetWindow.innerHeight - props.minPagePadding, width: targetWindow.innerWidth - props.minPagePadding * 2, height: targetWindow.innerHeight - props.minPagePadding * 2, }; } return currentBounds; }; return getBounds; } function usePositionState(props, positionedHost, contentHost, targetRef, getCachedBounds) { var async = (0, react_hooks_1.useAsync)(); /** * Current set of calculated positions for the outermost parent container. */ var _a = React.useState(), positions = _a[0], setPositions = _a[1]; var positionAttempts = React.useRef(0); var updateAsyncPosition = function () { async.requestAnimationFrame(function () { return updatePosition(); }); }; var updatePosition = function () { var offsetFromTarget = props.offsetFromTarget, onPositioned = props.onPositioned; var hostElement = positionedHost.current; var positioningContainerElement = contentHost.current; if (hostElement && positioningContainerElement) { var currentProps = tslib_1.__assign({}, props); currentProps.bounds = getCachedBounds(); currentProps.target = targetRef.current; var target = currentProps.target; if (target) { // Check if the target is an Element or a MouseEvent and the document contains it // or don't check anything else if the target is a Point or Rectangle if ((!target.getBoundingClientRect && !target.preventDefault) || document.body.contains(target)) { currentProps.gapSpace = offsetFromTarget; var newPositions = (0, Positioning_1.positionElement)(currentProps, hostElement, positioningContainerElement); // Set the new position only when the positions are not exists or one of the new positioningContainer // positions are different. The position should not change if the position is within 2 decimal places. if ((!positions && newPositions) || (positions && newPositions && !arePositionsEqual(positions, newPositions) && positionAttempts.current < 5)) { // We should not reposition the positioningContainer more than a few times, if it is then the content is // likely resizing and we should stop trying to reposition to prevent a stack overflow. positionAttempts.current++; setPositions(newPositions); onPositioned === null || onPositioned === void 0 ? void 0 : onPositioned(newPositions); } else { positionAttempts.current = 0; onPositioned === null || onPositioned === void 0 ? void 0 : onPositioned(newPositions); } } else if (positions !== undefined) { setPositions(undefined); } } else if (positions !== undefined) { setPositions(undefined); } } }; React.useEffect(updateAsyncPosition); return [positions, updateAsyncPosition]; } function useSetInitialFocus(_a, contentHost, positions) { var setInitialFocus = _a.setInitialFocus; var didSetInitialFocus = React.useRef(false); React.useEffect(function () { if (!didSetInitialFocus.current && contentHost.current && setInitialFocus && positions) { didSetInitialFocus.current = true; (0, Utilities_1.focusFirstChild)(contentHost.current); } }); } function useMaxHeight(_a, targetRef, getCachedBounds) { var directionalHintFixed = _a.directionalHintFixed, offsetFromTarget = _a.offsetFromTarget, directionalHint = _a.directionalHint, target = _a.target; /** * The maximum height the PositioningContainer can grow to * without going beyond the window or target bounds */ var maxHeight = React.useRef(); // If the target element changed, reset the max height. If we are tracking // target with class name, always reset because we do not know if // fabric has rendered a new element and disposed the old element. if (typeof target === 'string') { maxHeight.current = undefined; } React.useEffect(function () { maxHeight.current = undefined; }, [target, offsetFromTarget]); /** * Return the maximum height the container can grow to * without going out of the specified bounds */ var getCachedMaxHeight = function () { if (!maxHeight.current) { if (directionalHintFixed && targetRef.current) { var gapSpace = offsetFromTarget ? offsetFromTarget : 0; maxHeight.current = (0, Positioning_1.getMaxHeight)(targetRef.current, directionalHint, gapSpace, getCachedBounds()); } else { maxHeight.current = getCachedBounds().height - BORDER_WIDTH * 2; } } return maxHeight.current; }; return getCachedMaxHeight; } function useAutoDismissEvents(_a, positionedHost, targetWindow, targetRef, positions, updateAsyncPosition) { var onDismiss = _a.onDismiss, preventDismissOnScroll = _a.preventDismissOnScroll; var async = (0, react_hooks_1.useAsync)(); var onResize = React.useCallback(function (ev) { if (onDismiss) { onDismiss(ev); } else { updateAsyncPosition(); } }, [onDismiss, updateAsyncPosition]); var dismissOnLostFocus = React.useCallback(function (ev) { var target = ev.target; var clickedOutsideCallout = positionedHost.current && !(0, Utilities_1.elementContains)(positionedHost.current, target); if ((!targetRef.current && clickedOutsideCallout) || (ev.target !== targetWindow && clickedOutsideCallout && (targetRef.current.stopPropagation || !targetRef.current || (target !== targetRef.current && !(0, Utilities_1.elementContains)(targetRef.current, target))))) { onResize(ev); } }, [onResize, positionedHost, targetRef, targetWindow]); var dismissOnScroll = React.useCallback(function (ev) { if (positions && !preventDismissOnScroll) { dismissOnLostFocus(ev); } }, [dismissOnLostFocus, positions, preventDismissOnScroll]); React.useEffect(function () { var events = new Utilities_1.EventGroup({}); // This is added so the positioningContainer will dismiss when the window is scrolled // but not when something inside the positioningContainer is scrolled. The delay seems // to be required to avoid React firing an async focus event in IE from // the target changing focus quickly prior to rendering the positioningContainer. async.setTimeout(function () { var _a, _b; events.on(targetWindow, 'scroll', async.throttle(dismissOnScroll, 10), true); events.on(targetWindow, 'resize', async.throttle(onResize, 10), true); events.on((_a = targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document) === null || _a === void 0 ? void 0 : _a.body, 'focus', dismissOnLostFocus, true); events.on((_b = targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document) === null || _b === void 0 ? void 0 : _b.body, 'click', dismissOnLostFocus, true); }, 0); return function () { return events.dispose(); }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on mount }, [dismissOnScroll]); } function useHeightOffset(_a, contentHost) { var finalHeight = _a.finalHeight; /** * Tracks the current height offset and updates during * the height animation when props.finalHeight is specified. * State stored as object to ensure re-render even if the value does not change. * See https://github.com/microsoft/fluentui/issues/23545 */ var _b = React.useState({ value: 0 }), heightOffset = _b[0], setHeightOffset = _b[1]; var async = (0, react_hooks_1.useAsync)(); var setHeightOffsetTimer = React.useRef(0); /** Animates the height if finalHeight was given. */ var setHeightOffsetEveryFrame = function () { if (contentHost && finalHeight) { setHeightOffsetTimer.current = async.requestAnimationFrame(function () { if (!contentHost.current) { return; } var positioningContainerMainElem = contentHost.current.lastChild; var cardScrollHeight = positioningContainerMainElem.scrollHeight; var cardCurrHeight = positioningContainerMainElem.offsetHeight; var scrollDiff = cardScrollHeight - cardCurrHeight; setHeightOffset({ value: heightOffset.value + scrollDiff }); if (positioningContainerMainElem.offsetHeight < finalHeight) { setHeightOffsetEveryFrame(); } else { async.cancelAnimationFrame(setHeightOffsetTimer.current); } }); } }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should only re-run if finalHeight changes React.useEffect(setHeightOffsetEveryFrame, [finalHeight]); return heightOffset.value; } exports.useHeightOffset = useHeightOffset; exports.PositioningContainer = React.forwardRef(function (propsWithoutDefaults, forwardedRef) { var props = (0, Utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); // @TODO rename to reflect the name of this class var contentHost = React.useRef(null); /** * The primary positioned div. */ var positionedHost = React.useRef(null); var rootRef = (0, react_hooks_1.useMergedRefs)(forwardedRef, positionedHost); var _a = (0, react_hooks_1.useTarget)(props.target, positionedHost), targetRef = _a[0], targetWindow = _a[1]; var getCachedBounds = useBounds(props, targetWindow); var _b = usePositionState(props, positionedHost, contentHost, targetRef, getCachedBounds), positions = _b[0], updateAsyncPosition = _b[1]; var getCachedMaxHeight = useMaxHeight(props, targetRef, getCachedBounds); var heightOffset = useHeightOffset(props, contentHost); useSetInitialFocus(props, contentHost, positions); useAutoDismissEvents(props, positionedHost, targetWindow, targetRef, positions, updateAsyncPosition); // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run on initial render React.useEffect(function () { var _a; return (_a = props.onLayerMounted) === null || _a === void 0 ? void 0 : _a.call(props); }, []); // If there is no target window then we are likely in server side rendering and we should not render anything. if (!targetWindow) { return null; } var className = props.className, doNotLayer = props.doNotLayer, positioningContainerWidth = props.positioningContainerWidth, positioningContainerMaxHeight = props.positioningContainerMaxHeight, children = props.children; var styles = (0, PositioningContainer_styles_1.getClassNames)(); var directionalClassName = positions && positions.targetEdge ? Styling_2.AnimationClassNames[SLIDE_ANIMATIONS[positions.targetEdge]] : ''; var getContentMaxHeight = getCachedMaxHeight() + heightOffset; var contentMaxHeight = positioningContainerMaxHeight && positioningContainerMaxHeight > getContentMaxHeight ? getContentMaxHeight : positioningContainerMaxHeight; var content = (React.createElement("div", { ref: rootRef, className: (0, Utilities_1.css)('ms-PositioningContainer', styles.container) }, React.createElement("div", { className: (0, Styling_2.mergeStyles)('ms-PositioningContainer-layerHost', styles.root, className, directionalClassName, !!positioningContainerWidth && { width: positioningContainerWidth }, doNotLayer && { zIndex: Styling_1.ZIndexes.Layer }), style: positions ? positions.elementPosition : OFF_SCREEN_STYLE, // Safari and Firefox on Mac OS requires this to back-stop click events so focus remains in the Callout. // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Clicking_and_focus tabIndex: -1, ref: contentHost }, children, // @TODO apply to the content container contentMaxHeight))); return doNotLayer ? content : React.createElement(Layer_1.Layer, tslib_1.__assign({}, props.layerProps), content); }); exports.PositioningContainer.displayName = 'PositioningContainer'; function arePositionsEqual(positions, newPosition) { return comparePositions(positions.elementPosition, newPosition.elementPosition); } function comparePositions(oldPositions, newPositions) { for (var key in newPositions) { if (newPositions.hasOwnProperty(key)) { var oldPositionEdge = oldPositions[key]; var newPositionEdge = newPositions[key]; if (oldPositionEdge && newPositionEdge) { if (oldPositionEdge.toFixed(2) !== newPositionEdge.toFixed(2)) { return false; } } } } return true; } //# sourceMappingURL=PositioningContainer.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/PositioningContainer.styles.js": /*!****************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/PositioningContainer.styles.js ***! \****************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getClassNames = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); exports.getClassNames = (0, Utilities_1.memoizeFunction)(function () { var _a; return (0, Styling_1.mergeStyleSets)({ root: [ { position: 'absolute', boxSizing: 'border-box', border: '1px solid ${}', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { border: '1px solid WindowText', }, _a), }, (0, Styling_1.focusClear)(), ], container: { position: 'relative', }, main: { backgroundColor: '#ffffff', overflowX: 'hidden', overflowY: 'hidden', position: 'relative', }, overFlowYHidden: { overflowY: 'hidden', }, }); }); //# sourceMappingURL=PositioningContainer.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/PositioningContainer.types.js": /*!***************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/PositioningContainer.types.js ***! \***************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=PositioningContainer.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/index.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/index.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./PositioningContainer */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/PositioningContainer.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PositioningContainer.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/PositioningContainer/PositioningContainer.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/index.js": /*!*********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/index.js ***! \*********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Coachmark */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Coachmark.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Coachmark.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Coachmark/Coachmark.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.base.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ColorPickerBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var TextField_1 = __webpack_require__(/*! ../../TextField */ "./node_modules/@fluentui/react/lib-commonjs/TextField.js"); var Tooltip_1 = __webpack_require__(/*! ../../Tooltip */ "./node_modules/@fluentui/react/lib-commonjs/Tooltip.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var ColorRectangle_1 = __webpack_require__(/*! ./ColorRectangle/ColorRectangle */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.js"); var ColorSlider_1 = __webpack_require__(/*! ./ColorSlider/ColorSlider */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.js"); var consts_1 = __webpack_require__(/*! ../../utilities/color/consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); // These imports are separated to help with bundling var getColorFromString_1 = __webpack_require__(/*! ../../utilities/color/getColorFromString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromString.js"); var getColorFromRGBA_1 = __webpack_require__(/*! ../../utilities/color/getColorFromRGBA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getColorFromRGBA.js"); var clamp_1 = __webpack_require__(/*! ../../utilities/color/clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"); var updateA_1 = __webpack_require__(/*! ../../utilities/color/updateA */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateA.js"); var updateT_1 = __webpack_require__(/*! ../../utilities/color/updateT */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateT.js"); var updateH_1 = __webpack_require__(/*! ../../utilities/color/updateH */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateH.js"); var correctRGB_1 = __webpack_require__(/*! ../../utilities/color/correctRGB */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctRGB.js"); var correctHex_1 = __webpack_require__(/*! ../../utilities/color/correctHex */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/correctHex.js"); var ColorRectangle_base_1 = __webpack_require__(/*! ./ColorRectangle/ColorRectangle.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.base.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var allColorComponents = ['hex', 'r', 'g', 'b', 'a', 't']; var errorKeys = { hex: 'hexError', r: 'redError', g: 'greenError', b: 'blueError', a: 'alphaError', t: 'transparencyError', }; /** * {@docCategory ColorPicker} */ var ColorPickerBase = /** @class */ (function (_super) { tslib_1.__extends(ColorPickerBase, _super); function ColorPickerBase(props) { var _this = _super.call(this, props) || this; _this._onSVChanged = function (ev, color) { _this._updateColor(ev, color); }; _this._onHChanged = function (ev, h) { _this._updateColor(ev, (0, updateH_1.updateH)(_this.state.color, h)); }; /** Callback for when the alpha/transparency slider changes */ _this._onATChanged = function (ev, value) { var updater = _this.props.alphaType === 'transparency' ? updateT_1.updateT : updateA_1.updateA; _this._updateColor(ev, updater(_this.state.color, Math.round(value))); }; _this._onBlur = function (event) { var _a; var _b = _this.state, color = _b.color, editingColor = _b.editingColor; if (!editingColor) { return; } // If there was an intermediate incorrect value (such as too large or empty), correct it. var value = editingColor.value, component = editingColor.component; var isHex = component === 'hex'; var isAlpha = component === 'a'; var isTransparency = component === 't'; var minLength = isHex ? consts_1.MIN_HEX_LENGTH : consts_1.MIN_RGBA_LENGTH; if (value.length >= minLength && (isHex || !isNaN(Number(value)))) { // Real value. Clamp to appropriate length (hex) or range (rgba). var newColor = void 0; if (isHex) { newColor = (0, getColorFromString_1.getColorFromString)('#' + (0, correctHex_1.correctHex)(value)); } else if (isAlpha || isTransparency) { var updater = isAlpha ? updateA_1.updateA : updateT_1.updateT; newColor = updater(color, (0, clamp_1.clamp)(Number(value), consts_1.MAX_COLOR_ALPHA)); } else { newColor = (0, getColorFromRGBA_1.getColorFromRGBA)((0, correctRGB_1.correctRGB)(tslib_1.__assign(tslib_1.__assign({}, color), (_a = {}, _a[component] = Number(value), _a)))); } // Update state and call onChange _this._updateColor(event, newColor); } else { // Intermediate value was an empty string or too short (hex only). // Just clear the intermediate state and revert to the previous value. _this.setState({ editingColor: undefined }); } }; (0, Utilities_1.initializeComponentRef)(_this); var strings = props.strings; // always defined since it's in defaultProps (0, Utilities_1.warnDeprecations)('ColorPicker', props, { hexLabel: 'strings.hex', redLabel: 'strings.red', greenLabel: 'strings.green', blueLabel: 'strings.blue', alphaLabel: 'strings.alpha', alphaSliderHidden: 'alphaType', }); // eslint-disable-next-line deprecation/deprecation if (strings.hue) { // warnDeprecations can't handle nested deprecated props (0, Utilities_1.warn)("ColorPicker property 'strings.hue' was used but has been deprecated. Use 'strings.hueAriaLabel' instead."); } _this.state = { color: _getColorFromProps(props) || (0, getColorFromString_1.getColorFromString)('#ffffff'), }; _this._textChangeHandlers = {}; for (var _i = 0, allColorComponents_1 = allColorComponents; _i < allColorComponents_1.length; _i++) { var component = allColorComponents_1[_i]; _this._textChangeHandlers[component] = _this._onTextChange.bind(_this, component); } var defaultStrings = ColorPickerBase.defaultProps.strings; _this._textLabels = { /* eslint-disable deprecation/deprecation */ r: props.redLabel || strings.red || defaultStrings.red, g: props.greenLabel || strings.green || defaultStrings.green, b: props.blueLabel || strings.blue || defaultStrings.blue, a: props.alphaLabel || strings.alpha || defaultStrings.alpha, hex: props.hexLabel || strings.hex || defaultStrings.hex, t: strings.transparency || defaultStrings.transparency, /* eslint-enable deprecation/deprecation */ }; _this._strings = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, defaultStrings), { // these aria labels default to the visible labels alphaAriaLabel: _this._textLabels.a, transparencyAriaLabel: _this._textLabels.t }), strings); return _this; } Object.defineProperty(ColorPickerBase.prototype, "color", { get: function () { return this.state.color; }, enumerable: false, configurable: true }); ColorPickerBase.prototype.componentDidUpdate = function (prevProps, prevState) { // if props changed (as opposed to a state update), update the color if (prevProps !== this.props) { var color = _getColorFromProps(this.props); if (color) { this._updateColor(undefined, color); } } }; ColorPickerBase.prototype.render = function () { var _this = this; var props = this.props; var strings = this._strings; var textLabels = this._textLabels; var theme = props.theme, className = props.className, styles = props.styles, alphaType = props.alphaType, // eslint-disable-next-line deprecation/deprecation _a = props.alphaSliderHidden, // eslint-disable-next-line deprecation/deprecation alphaSliderHidden = _a === void 0 ? alphaType === 'none' : _a, tooltipProps = props.tooltipProps; var color = this.state.color; var useTransparency = alphaType === 'transparency'; var colorComponents = ['hex', 'r', 'g', 'b', useTransparency ? 't' : 'a']; var atValue = useTransparency ? color.t : color.a; var atLabel = useTransparency ? textLabels.t : textLabels.a; var classNames = getClassNames(styles, { theme: theme, className: className, alphaType: alphaType, }); var selectedColorAriaParts = [textLabels.r, color.r, textLabels.g, color.g, textLabels.b, color.b]; if (!alphaSliderHidden && typeof atValue === 'number') { selectedColorAriaParts.push(atLabel, "".concat(atValue, "%")); } var ariaLabel = strings.rootAriaLabelFormat.replace('{0}', selectedColorAriaParts.join(' ')); return (React.createElement("div", { className: classNames.root, role: "group", "aria-label": ariaLabel }, React.createElement("div", { className: classNames.panel }, React.createElement(ColorRectangle_1.ColorRectangle, { color: color, onChange: this._onSVChanged, ariaLabel: strings.svAriaLabel, ariaDescription: strings.svAriaDescription, ariaValueFormat: strings.svAriaValueFormat, className: classNames.colorRectangle }), React.createElement("div", { className: classNames.flexContainer }, React.createElement("div", { className: classNames.flexSlider }, React.createElement(ColorSlider_1.ColorSlider, { className: "is-hue", type: "hue", // eslint-disable-next-line deprecation/deprecation ariaLabel: strings.hue || strings.hueAriaLabel, value: color.h, onChange: this._onHChanged }), !alphaSliderHidden && (React.createElement(ColorSlider_1.ColorSlider, { className: "is-alpha", type: alphaType, ariaLabel: useTransparency ? strings.transparencyAriaLabel : strings.alphaAriaLabel, overlayColor: color.hex, value: atValue, onChange: this._onATChanged }))), props.showPreview && (React.createElement("div", { className: classNames.flexPreviewBox }, React.createElement("div", { className: classNames.colorSquare + ' is-preview', style: { backgroundColor: color.str, } })))), React.createElement("table", { className: classNames.table, role: "group", cellPadding: "0", cellSpacing: "0" }, React.createElement("thead", null, React.createElement("tr", { className: classNames.tableHeader }, React.createElement("td", { className: classNames.tableHexCell }, textLabels.hex), React.createElement("td", null, textLabels.r), React.createElement("td", null, textLabels.g), React.createElement("td", null, textLabels.b), !alphaSliderHidden && React.createElement("td", { className: classNames.tableAlphaCell }, atLabel))), React.createElement("tbody", null, React.createElement("tr", null, colorComponents.map(function (comp) { if ((comp === 'a' || comp === 't') && alphaSliderHidden) { return null; } var tooltipContent = _this._getTooltipValue(comp); return (React.createElement("td", { key: comp }, React.createElement(Tooltip_1.TooltipHost, tslib_1.__assign({ content: tooltipContent, directionalHint: DirectionalHint_1.DirectionalHint.bottomCenter, role: "alert" }, tooltipProps), React.createElement(TextField_1.TextField, { className: classNames.input, onChange: _this._textChangeHandlers[comp], onBlur: _this._onBlur, value: _this._getDisplayValue(comp), spellCheck: false, ariaLabel: textLabels[comp], autoComplete: "off", invalid: !!tooltipContent })))); }))))))); }; ColorPickerBase.prototype._getDisplayValue = function (component) { var _a = this.state, color = _a.color, editingColor = _a.editingColor; if (editingColor && editingColor.component === component) { return editingColor.value; } if (component === 'hex') { return color[component] || ''; } else if (typeof color[component] === 'number' && !isNaN(color[component])) { return String(color[component]); } return ''; }; /* Get the error tooltip value for a component if the component is in an invalid state */ ColorPickerBase.prototype._getTooltipValue = function (component) { var editingColor = this.state.editingColor; // if the component does not have an interim value, it is valid if (!editingColor || editingColor.component !== component) { return undefined; } var value = editingColor.value; // for hex, do not show a tooltip if the value is between 3-6 characters if (component === 'hex' && value.length >= consts_1.MIN_HEX_LENGTH && value.length <= consts_1.MAX_HEX_LENGTH) { return undefined; } var errorKey = errorKeys[component]; return this._strings[errorKey]; }; ColorPickerBase.prototype._onTextChange = function (component, event, newValue) { var _a; var color = this.state.color; var isHex = component === 'hex'; var isAlpha = component === 'a'; var isTransparency = component === 't'; // eslint-disable-next-line deprecation/deprecation newValue = (newValue || '').substr(0, isHex ? consts_1.MAX_HEX_LENGTH : consts_1.MAX_RGBA_LENGTH); // Ignore what the user typed if it contains invalid characters var validCharsRegex = isHex ? consts_1.HEX_REGEX : consts_1.RGBA_REGEX; if (!validCharsRegex.test(newValue)) { return; } // Determine if the entry is valid (different methods for hex, alpha, and RGB) var isValid; if (newValue === '') { // Empty string is obviously not valid isValid = false; } else if (isHex) { // Technically hex values of length 3 are also valid, but committing the value here would // cause it to be automatically converted to a value of length 6, which may not be what the // user wanted if they're not finished typing. (Values of length 3 will be committed on blur.) isValid = newValue.length === consts_1.MAX_HEX_LENGTH; } else if (isAlpha || isTransparency) { isValid = Number(newValue) <= consts_1.MAX_COLOR_ALPHA; } else { isValid = Number(newValue) <= consts_1.MAX_COLOR_RGB; } if (!isValid) { // If the new value is an empty string or other invalid value, save that to display. // (if the user still hasn't entered anything on blur, the last value is restored) this.setState({ editingColor: { component: component, value: newValue } }); } else if (String(color[component]) === newValue) { // If the new value is the same as the current value, mostly ignore it. // Exception is that if the user was previously editing the value (but hadn't yet entered // a new valid value), we should clear the intermediate value. if (this.state.editingColor) { this.setState({ editingColor: undefined }); } } else { // Should be a valid color. Update the value. var newColor = isHex ? (0, getColorFromString_1.getColorFromString)('#' + newValue) : isTransparency ? (0, updateT_1.updateT)(color, Number(newValue)) : (0, getColorFromRGBA_1.getColorFromRGBA)(tslib_1.__assign(tslib_1.__assign({}, color), (_a = {}, _a[component] = Number(newValue), _a))); this._updateColor(event, newColor); } }; /** * Update the displayed color and call change handlers if appropriate. * @param ev - Event if call was triggered by an event (undefined if triggered by props change) * @param newColor - Updated color */ ColorPickerBase.prototype._updateColor = function (ev, newColor) { if (!newColor) { return; } var _a = this.state, color = _a.color, editingColor = _a.editingColor; // For black or white, the hue can change without changing the string. var isDifferentColor = newColor.h !== color.h || newColor.str !== color.str; if (isDifferentColor || editingColor) { // If ev is undefined, it's an update from props (which should be unconditionally respected // and not call onChange). if (ev && this.props.onChange) { this.props.onChange(ev, newColor); if (ev.defaultPrevented) { return; } } this.setState({ color: newColor, editingColor: undefined }); } }; ColorPickerBase.defaultProps = { alphaType: 'alpha', strings: { rootAriaLabelFormat: 'Color picker, {0} selected.', hex: 'Hex', red: 'Red', green: 'Green', blue: 'Blue', alpha: 'Alpha', transparency: 'Transparency', hueAriaLabel: 'Hue', svAriaLabel: ColorRectangle_base_1.ColorRectangleBase.defaultProps.ariaLabel, svAriaValueFormat: ColorRectangle_base_1.ColorRectangleBase.defaultProps.ariaValueFormat, svAriaDescription: ColorRectangle_base_1.ColorRectangleBase.defaultProps.ariaDescription, hexError: 'Hex values must be between 3 and 6 characters long', alphaError: 'Alpha must be between 0 and 100', transparencyError: 'Transparency must be between 0 and 100', redError: 'Red must be between 0 and 255', greenError: 'Green must be between 0 and 255', blueError: 'Blue must be between 0 and 255', }, }; return ColorPickerBase; }(React.Component)); exports.ColorPickerBase = ColorPickerBase; function _getColorFromProps(props) { var color = props.color; return typeof color === 'string' ? (0, getColorFromString_1.getColorFromString)(color) : color; } //# sourceMappingURL=ColorPicker.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ColorPicker = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ColorPicker_base_1 = __webpack_require__(/*! ./ColorPicker.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.base.js"); var ColorPicker_styles_1 = __webpack_require__(/*! ./ColorPicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.styles.js"); exports.ColorPicker = (0, Utilities_1.styled)(ColorPicker_base_1.ColorPickerBase, ColorPicker_styles_1.getStyles, undefined, { scope: 'ColorPicker' }); //# sourceMappingURL=ColorPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.styles.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var getStyles = function (props) { var className = props.className, theme = props.theme, alphaType = props.alphaType; return { root: [ 'ms-ColorPicker', theme.fonts.medium, { position: 'relative', maxWidth: 300, }, className, ], panel: [ 'ms-ColorPicker-panel', { padding: '16px', }, ], table: [ 'ms-ColorPicker-table', { tableLayout: 'fixed', width: '100%', selectors: { 'tbody td:last-of-type .ms-ColorPicker-input': { paddingRight: 0, }, }, }, ], tableHeader: [ theme.fonts.small, { selectors: { td: { paddingBottom: 4, }, }, }, ], tableHexCell: { width: '25%', }, // Account for "Transparency" being a longer word tableAlphaCell: alphaType === 'transparency' && { width: '22%', }, colorSquare: [ 'ms-ColorPicker-colorSquare', { width: 48, height: 48, margin: '0 0 0 8px', border: '1px solid #c8c6c4', forcedColorAdjust: 'none', }, ], flexContainer: { display: 'flex', }, flexSlider: { flexGrow: '1', }, flexPreviewBox: { flexGrow: '0', }, input: [ 'ms-ColorPicker-input', { width: '100%', border: 'none', boxSizing: 'border-box', height: 30, selectors: { '&.ms-TextField': { paddingRight: 4, }, '& .ms-TextField-field': { minWidth: 'auto', padding: 5, textOverflow: 'clip', }, }, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=ColorPicker.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.types.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ColorPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.base.js": /*!****************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.base.js ***! \****************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports._getNewColor = exports.ColorRectangleBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); // These imports are separated to help with bundling var consts_1 = __webpack_require__(/*! ../../../utilities/color/consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var getFullColorString_1 = __webpack_require__(/*! ../../../utilities/color/getFullColorString */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/getFullColorString.js"); var updateSV_1 = __webpack_require__(/*! ../../../utilities/color/updateSV */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/updateSV.js"); var clamp_1 = __webpack_require__(/*! ../../../utilities/color/clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory ColorPicker} */ var ColorRectangleBase = /** @class */ (function (_super) { tslib_1.__extends(ColorRectangleBase, _super); function ColorRectangleBase(props) { var _this = _super.call(this, props) || this; _this._disposables = []; _this._root = React.createRef(); _this._isAdjustingSaturation = true; _this._descriptionId = (0, Utilities_1.getId)('ColorRectangle-description'); _this._onKeyDown = function (ev) { var color = _this.state.color; var s = color.s, v = color.v; var increment = ev.shiftKey ? 10 : 1; // Intentionally DO NOT flip the color picker in RTL: its orientation is not very meaningful, // and getting all the math and styles flipped correctly is tricky // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.up: { _this._isAdjustingSaturation = false; v += increment; // V = 100 (lightest) is at the top break; } case Utilities_1.KeyCodes.down: { _this._isAdjustingSaturation = false; v -= increment; // V = 0 (darkest) is at the bottom break; } case Utilities_1.KeyCodes.left: { _this._isAdjustingSaturation = true; s -= increment; break; } case Utilities_1.KeyCodes.right: { _this._isAdjustingSaturation = true; s += increment; break; } default: return; } _this._updateColor(ev, (0, updateSV_1.updateSV)(color, (0, clamp_1.clamp)(s, consts_1.MAX_COLOR_SATURATION), (0, clamp_1.clamp)(v, consts_1.MAX_COLOR_VALUE))); }; _this._onMouseDown = function (ev) { _this._disposables.push((0, Utilities_1.on)(window, 'mousemove', _this._onMouseMove, true), (0, Utilities_1.on)(window, 'mouseup', _this._disposeListeners, true)); _this._onMouseMove(ev); }; _this._onMouseMove = function (ev) { if (!_this._root.current) { return; } // Leaving the following commented code which is sometimes necessary for debugging: // If the primary button (1) isn't pressed, the user is no longer dragging, so turn off // the event handlers and exit. // if (!(ev.buttons & 1)) { // this._disposeListeners(); // return; // } var newColor = _getNewColor(ev, _this.state.color, _this._root.current); if (newColor) { _this._updateColor(ev, newColor); } }; _this._onTouchStart = function (ev) { if (!_this._root.current) { return; } // prevent touch from scrolling the page so that the touch can be dragged on the color rectangle. ev.stopPropagation(); }; _this._onTouchMove = function (ev) { if (!_this._root.current) { return; } var newColor = _getNewColor(ev, _this.state.color, _this._root.current); if (newColor) { _this._updateColor(ev, newColor); } ev.preventDefault(); ev.stopPropagation(); }; _this._disposeListeners = function () { _this._disposables.forEach(function (dispose) { return dispose(); }); _this._disposables = []; }; (0, Utilities_1.initializeComponentRef)(_this); _this.state = { color: props.color }; return _this; } Object.defineProperty(ColorRectangleBase.prototype, "color", { get: function () { return this.state.color; }, enumerable: false, configurable: true }); ColorRectangleBase.prototype.componentDidUpdate = function (prevProps, prevState) { // if props changed (as opposed to a state update), set the value // TODO: switch to strict controlled pattern instead if (prevProps !== this.props && this.props.color) { this.setState({ color: this.props.color }); } }; ColorRectangleBase.prototype.componentDidMount = function () { if (this._root.current) { // with Chrome's passive DOM listeners, stopPropagation and preventDefault only work if passive is false. this._root.current.addEventListener('touchstart', this._onTouchStart, { capture: true, passive: false }); this._root.current.addEventListener('touchmove', this._onTouchMove, { capture: true, passive: false }); } }; ColorRectangleBase.prototype.componentWillUnmount = function () { if (this._root.current) { this._root.current.removeEventListener('touchstart', this._onTouchStart); this._root.current.removeEventListener('touchmove', this._onTouchMove); } this._disposeListeners(); }; ColorRectangleBase.prototype.render = function () { var _a = this.props, minSize = _a.minSize, theme = _a.theme, className = _a.className, styles = _a.styles, ariaValueFormat = _a.ariaValueFormat, ariaLabel = _a.ariaLabel, ariaDescription = _a.ariaDescription; var color = this.state.color; var classNames = getClassNames(styles, { theme: theme, className: className, minSize: minSize, }); var valueText = ariaValueFormat.replace('{0}', String(color.s)).replace('{1}', String(color.v)); return (React.createElement("div", { ref: this._root, tabIndex: 0, className: classNames.root, style: { backgroundColor: (0, getFullColorString_1.getFullColorString)(color) }, onMouseDown: this._onMouseDown, onKeyDown: this._onKeyDown, role: "slider", "aria-valuetext": valueText, "aria-valuenow": this._isAdjustingSaturation ? color.s : color.v, "aria-valuemin": 0, "aria-valuemax": consts_1.MAX_COLOR_VALUE, "aria-label": ariaLabel, "aria-describedby": this._descriptionId, "data-is-focusable": true }, React.createElement("div", { className: classNames.description, id: this._descriptionId }, ariaDescription), React.createElement("div", { className: classNames.light }), React.createElement("div", { className: classNames.dark }), React.createElement("div", { className: classNames.thumb, style: { left: color.s + '%', top: consts_1.MAX_COLOR_VALUE - color.v + '%', backgroundColor: color.str } }))); }; ColorRectangleBase.prototype._updateColor = function (ev, color) { var onChange = this.props.onChange; var oldColor = this.state.color; if (color.s === oldColor.s && color.v === oldColor.v) { return; // no change } if (onChange) { onChange(ev, color); } if (!ev.defaultPrevented) { this.setState({ color: color }); ev.preventDefault(); } }; ColorRectangleBase.defaultProps = { minSize: 220, ariaLabel: 'Saturation and brightness', ariaValueFormat: 'Saturation {0} brightness {1}', ariaDescription: 'Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness.', }; return ColorRectangleBase; }(React.Component)); exports.ColorRectangleBase = ColorRectangleBase; /** * Exported for testing only. * @internal */ function _getNewColor(ev, prevColor, root) { var rectSize = root.getBoundingClientRect(); var coords = undefined; var touchEvent = ev; if (touchEvent.touches) { var lastTouch = touchEvent.touches[touchEvent.touches.length - 1]; if (lastTouch.clientX !== undefined && lastTouch.clientY !== undefined) { coords = { clientX: lastTouch.clientX, clientY: lastTouch.clientY, }; } } if (!coords) { var mouseEvent = ev; if (mouseEvent.clientX !== undefined && mouseEvent.clientY !== undefined) { coords = { clientX: mouseEvent.clientX, clientY: mouseEvent.clientY, }; } } if (coords) { var sPercentage = (coords.clientX - rectSize.left) / rectSize.width; var vPercentage = (coords.clientY - rectSize.top) / rectSize.height; return (0, updateSV_1.updateSV)(prevColor, (0, clamp_1.clamp)(Math.round(sPercentage * consts_1.MAX_COLOR_SATURATION), consts_1.MAX_COLOR_SATURATION), (0, clamp_1.clamp)(Math.round(consts_1.MAX_COLOR_VALUE - vPercentage * consts_1.MAX_COLOR_VALUE), consts_1.MAX_COLOR_VALUE)); } } exports._getNewColor = _getNewColor; //# sourceMappingURL=ColorRectangle.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ColorRectangle = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ColorRectangle_base_1 = __webpack_require__(/*! ./ColorRectangle.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.base.js"); var ColorRectangle_styles_1 = __webpack_require__(/*! ./ColorRectangle.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.styles.js"); exports.ColorRectangle = (0, Utilities_1.styled)(ColorRectangle_base_1.ColorRectangleBase, ColorRectangle_styles_1.getStyles, undefined, { scope: 'ColorRectangle' }); //# sourceMappingURL=ColorRectangle.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.styles.js": /*!******************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.styles.js ***! \******************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var getStyles = function (props) { var _a, _b; var className = props.className, theme = props.theme, minSize = props.minSize; var palette = theme.palette, effects = theme.effects; return { root: [ 'ms-ColorPicker-colorRect', { position: 'relative', marginBottom: 8, border: "1px solid ".concat(palette.neutralLighter), borderRadius: effects.roundedCorner2, minWidth: minSize, minHeight: minSize, outline: 'none', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({}, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus")] = (_b = { outline: "1px solid ".concat(palette.neutralSecondary) }, _b["".concat(Styling_1.HighContrastSelector)] = { outline: '2px solid CanvasText', }, _b), _a), }, className, ], light: [ 'ms-ColorPicker-light', { position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, // Intentionally DO NOT flip the color picker in RTL: its orientation is not very meaningful, // and getting all the math and styles flipped correctly is tricky background: 'linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/', }, ], dark: [ 'ms-ColorPicker-dark', { position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, background: 'linear-gradient(to bottom, transparent 0, #000 100%)', }, ], thumb: [ 'ms-ColorPicker-thumb', { position: 'absolute', width: 20, height: 20, background: 'white', border: "1px solid ".concat(palette.neutralSecondaryAlt), borderRadius: '50%', boxShadow: effects.elevation8, transform: 'translate(-50%, -50%)', selectors: { ':before': { position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, border: "2px solid ".concat(palette.white), borderRadius: '50%', boxSizing: 'border-box', content: '""', }, }, }, ], description: style_utilities_1.hiddenContentStyle, }; }; exports.getStyles = getStyles; //# sourceMappingURL=ColorRectangle.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.types.js": /*!*****************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.types.js ***! \*****************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ColorRectangle.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.base.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.base.js ***! \**********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ColorSliderBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var clamp_1 = __webpack_require__(/*! ../../../utilities/color/clamp */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/clamp.js"); var consts_1 = __webpack_require__(/*! ../../../utilities/color/consts */ "./node_modules/@fluentui/react/lib-commonjs/utilities/color/consts.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory ColorPicker} */ var ColorSliderBase = /** @class */ (function (_super) { tslib_1.__extends(ColorSliderBase, _super); function ColorSliderBase(props) { var _this = _super.call(this, props) || this; _this._disposables = []; _this._root = React.createRef(); _this._onKeyDown = function (ev) { var currentValue = _this.value; var maxValue = _this._maxValue; var increment = ev.shiftKey ? 10 : 1; // Intentionally DO NOT flip the color picker in RTL: its orientation is not very meaningful, // and getting all the math and styles flipped correctly is tricky // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.left: { currentValue -= increment; break; } case Utilities_1.KeyCodes.right: { currentValue += increment; break; } case Utilities_1.KeyCodes.home: { currentValue = 0; break; } case Utilities_1.KeyCodes.end: { currentValue = maxValue; break; } default: { return; } } _this._updateValue(ev, (0, clamp_1.clamp)(currentValue, maxValue)); }; _this._onMouseDown = function (ev) { var win = (0, Utilities_1.getWindow)(_this); if (win) { _this._disposables.push((0, Utilities_1.on)(win, 'mousemove', _this._onMouseMove, true), (0, Utilities_1.on)(win, 'mouseup', _this._disposeListeners, true)); } _this._onMouseMove(ev); }; _this._onMouseMove = function (ev) { if (!_this._root.current) { return; } var maxValue = _this._maxValue; var rectSize = _this._root.current.getBoundingClientRect(); var currentPercentage = (ev.clientX - rectSize.left) / rectSize.width; var newValue = (0, clamp_1.clamp)(Math.round(currentPercentage * maxValue), maxValue); _this._updateValue(ev, newValue); }; _this._onTouchStart = function (ev) { if (!_this._root.current) { return; } // prevent touch from scrolling the page so that the touch can be dragged on the color rectangle. ev.stopPropagation(); }; _this._onTouchMove = function (ev) { if (!_this._root.current) { return; } var lastTouch = ev.touches[ev.touches.length - 1]; if (lastTouch.clientX !== undefined) { var maxValue = _this._maxValue; var rectSize = _this._root.current.getBoundingClientRect(); var currentPercentage = (lastTouch.clientX - rectSize.left) / rectSize.width; var newValue = (0, clamp_1.clamp)(Math.round(currentPercentage * maxValue), maxValue); _this._updateValue(ev, newValue); } ev.preventDefault(); ev.stopPropagation(); }; _this._disposeListeners = function () { _this._disposables.forEach(function (dispose) { return dispose(); }); _this._disposables = []; }; (0, Utilities_1.initializeComponentRef)(_this); (0, Utilities_1.warnDeprecations)('ColorSlider', props, { thumbColor: 'styles.sliderThumb', overlayStyle: 'overlayColor', isAlpha: 'type', maxValue: 'type', minValue: 'type', }); // eslint-disable-next-line deprecation/deprecation if (_this._type !== 'hue' && !(props.overlayColor || props.overlayStyle)) { (0, Utilities_1.warn)("ColorSlider: 'overlayColor' is required when 'type' is \"alpha\" or \"transparency\""); } _this.state = { currentValue: props.value || 0, }; return _this; } Object.defineProperty(ColorSliderBase.prototype, "value", { get: function () { return this.state.currentValue; }, enumerable: false, configurable: true }); ColorSliderBase.prototype.componentDidUpdate = function (prevProps, prevState) { // if props changed (as opposed to a state update), set the value // TODO: switch to strict controlled pattern instead if (prevProps !== this.props && this.props.value !== undefined) { this.setState({ currentValue: this.props.value }); } }; ColorSliderBase.prototype.componentDidMount = function () { if (this._root.current) { // with Chrome's passive DOM listeners, stopPropagation and preventDefault only work if passive is false. this._root.current.addEventListener('touchstart', this._onTouchStart, { capture: true, passive: false }); this._root.current.addEventListener('touchmove', this._onTouchMove, { capture: true, passive: false }); } }; ColorSliderBase.prototype.componentWillUnmount = function () { if (this._root.current) { this._root.current.removeEventListener('touchstart', this._onTouchStart); this._root.current.removeEventListener('touchmove', this._onTouchMove); } this._disposeListeners(); }; ColorSliderBase.prototype.render = function () { var type = this._type; var maxValue = this._maxValue; var _a = this.props, // eslint-disable-next-line deprecation/deprecation overlayStyle = _a.overlayStyle, overlayColor = _a.overlayColor, theme = _a.theme, className = _a.className, styles = _a.styles, _b = _a.ariaLabel, ariaLabel = _b === void 0 ? type : _b; var currentValue = this.value; var classNames = getClassNames(styles, { theme: theme, className: className, type: type, }); var currentPercentage = (100 * currentValue) / maxValue; return (React.createElement("div", { ref: this._root, className: classNames.root, tabIndex: 0, onKeyDown: this._onKeyDown, onMouseDown: this._onMouseDown, role: "slider", "aria-valuenow": currentValue, "aria-valuetext": String(currentValue), "aria-valuemin": 0, "aria-valuemax": maxValue, "aria-label": ariaLabel, "data-is-focusable": true }, !!(overlayColor || overlayStyle) && (React.createElement("div", { className: classNames.sliderOverlay, // this isn't included in getStyles because it may change frequently style: overlayColor ? { background: type === 'transparency' ? "linear-gradient(to right, #".concat(overlayColor, ", transparent)") : "linear-gradient(to right, transparent, #".concat(overlayColor, ")"), } : overlayStyle })), React.createElement("div", { className: classNames.sliderThumb, style: { left: currentPercentage + '%' } }))); }; Object.defineProperty(ColorSliderBase.prototype, "_type", { get: function () { // eslint-disable-next-line deprecation/deprecation var _a = this.props, isAlpha = _a.isAlpha, _b = _a.type, type = _b === void 0 ? isAlpha ? 'alpha' : 'hue' : _b; return type; }, enumerable: false, configurable: true }); Object.defineProperty(ColorSliderBase.prototype, "_maxValue", { get: function () { return this._type === 'hue' ? consts_1.MAX_COLOR_HUE : consts_1.MAX_COLOR_ALPHA; }, enumerable: false, configurable: true }); ColorSliderBase.prototype._updateValue = function (ev, newValue) { if (newValue === this.value) { return; } var onChange = this.props.onChange; if (onChange) { onChange(ev, newValue); } if (!ev.defaultPrevented) { this.setState({ currentValue: newValue, }); ev.preventDefault(); } }; ColorSliderBase.defaultProps = { value: 0, }; return ColorSliderBase; }(React.Component)); exports.ColorSliderBase = ColorSliderBase; //# sourceMappingURL=ColorSlider.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ColorSlider = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ColorSlider_base_1 = __webpack_require__(/*! ./ColorSlider.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.base.js"); var ColorSlider_styles_1 = __webpack_require__(/*! ./ColorSlider.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.styles.js"); exports.ColorSlider = (0, Utilities_1.styled)(ColorSlider_base_1.ColorSliderBase, ColorSlider_styles_1.getStyles, undefined, { scope: 'ColorSlider' }); //# sourceMappingURL=ColorSlider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.styles.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.styles.js ***! \************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var hueStyle = { background: "linear-gradient(".concat([ 'to left', 'red 0', '#f09 10%', '#cd00ff 20%', '#3200ff 30%', '#06f 40%', '#00fffd 50%', '#0f6 60%', '#35ff00 70%', '#cdff00 80%', '#f90 90%', 'red 100%', ].join(','), ")"), }; var alphaStyle = { backgroundImage: 'url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)', }; var getStyles = function (props) { var _a, _b; // eslint-disable-next-line deprecation/deprecation var theme = props.theme, className = props.className, _c = props.type, type = _c === void 0 ? 'hue' : _c, _d = props.isAlpha, useAlphaBackground = _d === void 0 ? type !== 'hue' : _d; var palette = theme.palette, effects = theme.effects; return { root: [ 'ms-ColorPicker-slider', { position: 'relative', height: 20, marginBottom: 8, border: "1px solid ".concat(palette.neutralLight), borderRadius: effects.roundedCorner2, boxSizing: 'border-box', outline: 'none', forcedColorAdjust: 'none', selectors: (_a = {}, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus")] = (_b = { outline: "1px solid ".concat(palette.neutralSecondary) }, _b["".concat(Styling_1.HighContrastSelector)] = { outline: '2px solid CanvasText', }, _b), _a), }, useAlphaBackground ? alphaStyle : hueStyle, className, ], sliderOverlay: [ 'ms-ColorPicker-sliderOverlay', { content: '', position: 'absolute', left: 0, right: 0, top: 0, bottom: 0, }, ], sliderThumb: [ 'ms-ColorPicker-thumb', 'is-slider', { position: 'absolute', width: 20, height: 20, background: 'white', border: "1px solid ".concat(palette.neutralSecondaryAlt), borderRadius: '50%', boxShadow: effects.elevation8, transform: 'translate(-50%, -50%)', top: '50%', forcedColorAdjust: 'auto', }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=ColorSlider.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.types.js": /*!***********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.types.js ***! \***********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ColorSlider.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/index.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./ColorPicker */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ColorPicker.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ColorPicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorPicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ColorRectangle/ColorRectangle.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorRectangle/ColorRectangle.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ColorSlider/ColorSlider.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ColorPicker/ColorSlider/ColorSlider.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.classNames.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.classNames.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getComboBoxOptionClassNames = exports.getClassNames = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); exports.getClassNames = (0, Utilities_1.memoizeFunction)(function (styles, className, isOpen, disabled, required, focused, allowFreeForm, hasErrorMessage) { return { container: (0, Styling_1.mergeStyles)('ms-ComboBox-container', className, styles.container), label: (0, Styling_1.mergeStyles)(styles.label, disabled && styles.labelDisabled), root: (0, Styling_1.mergeStyles)('ms-ComboBox', hasErrorMessage ? styles.rootError : isOpen && 'is-open', required && 'is-required', styles.root, !allowFreeForm && styles.rootDisallowFreeForm, hasErrorMessage && !focused ? styles.rootError : !disabled && focused && styles.rootFocused, !disabled && { selectors: { ':hover': hasErrorMessage ? styles.rootError : !isOpen && !focused && styles.rootHovered, ':active': hasErrorMessage ? styles.rootError : styles.rootPressed, ':focus': hasErrorMessage ? styles.rootError : styles.rootFocused, }, }, disabled && ['is-disabled', styles.rootDisabled]), input: (0, Styling_1.mergeStyles)('ms-ComboBox-Input', styles.input, disabled && styles.inputDisabled), errorMessage: (0, Styling_1.mergeStyles)(styles.errorMessage), callout: (0, Styling_1.mergeStyles)('ms-ComboBox-callout', styles.callout), optionsContainerWrapper: (0, Styling_1.mergeStyles)('ms-ComboBox-optionsContainerWrapper', styles.optionsContainerWrapper), optionsContainer: (0, Styling_1.mergeStyles)('ms-ComboBox-optionsContainer', styles.optionsContainer), header: (0, Styling_1.mergeStyles)('ms-ComboBox-header', styles.header), divider: (0, Styling_1.mergeStyles)('ms-ComboBox-divider', styles.divider), screenReaderText: (0, Styling_1.mergeStyles)(styles.screenReaderText), }; }); exports.getComboBoxOptionClassNames = (0, Utilities_1.memoizeFunction)(function (styles) { return { optionText: (0, Styling_1.mergeStyles)('ms-ComboBox-optionText', styles.optionText), root: (0, Styling_1.mergeStyles)('ms-ComboBox-option', styles.root, { selectors: { ':hover': styles.rootHovered, ':focus': styles.rootFocused, ':active': styles.rootPressed, }, }), optionTextWrapper: (0, Styling_1.mergeStyles)(styles.optionTextWrapper), }; }); //# sourceMappingURL=ComboBox.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ComboBox = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Autofill_1 = __webpack_require__(/*! ../../Autofill */ "./node_modules/@fluentui/react/lib-commonjs/Autofill.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Callout_1 = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib-commonjs/Callout.js"); var Checkbox_1 = __webpack_require__(/*! ../../Checkbox */ "./node_modules/@fluentui/react/lib-commonjs/Checkbox.js"); var ComboBox_styles_1 = __webpack_require__(/*! ./ComboBox.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.styles.js"); var ComboBox_classNames_1 = __webpack_require__(/*! ./ComboBox.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.classNames.js"); var Label_1 = __webpack_require__(/*! ../../Label */ "./node_modules/@fluentui/react/lib-commonjs/Label.js"); var SelectableOption_1 = __webpack_require__(/*! ../../SelectableOption */ "./node_modules/@fluentui/react/lib-commonjs/SelectableOption.js"); var Button_1 = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var SearchDirection; (function (SearchDirection) { SearchDirection[SearchDirection["backward"] = -1] = "backward"; SearchDirection[SearchDirection["none"] = 0] = "none"; SearchDirection[SearchDirection["forward"] = 1] = "forward"; })(SearchDirection || (SearchDirection = {})); var HoverStatus; (function (HoverStatus) { /** Used when the user was hovering and has since moused out of the menu items */ HoverStatus[HoverStatus["clearAll"] = -2] = "clearAll"; /** Default "normal" state, when no hover has happened or a hover is in progress */ HoverStatus[HoverStatus["default"] = -1] = "default"; })(HoverStatus || (HoverStatus = {})); var ScrollIdleDelay = 250; /* ms */ var TouchIdleDelay = 500; /* ms */ /** * This is used to clear any pending autocomplete text (used when autocomplete is true and * allowFreeform is false) */ var ReadOnlyPendingAutoCompleteTimeout = 1000; /* ms */ /** * Internal component that is used to wrap all ComboBox options. * This is used to customize when we want to re-render components, * so we don't re-render every option every time render is executed. */ var ComboBoxOptionWrapper = React.memo(function (_a) { var render = _a.render; return render(); }, function (_a, _b) { var oldRender = _a.render, oldProps = tslib_1.__rest(_a, ["render"]); var newRender = _b.render, newProps = tslib_1.__rest(_b, ["render"]); // The render function will always be different, so we ignore that prop return (0, Utilities_1.shallowCompare)(oldProps, newProps); }); var COMPONENT_NAME = 'ComboBox'; var DEFAULT_PROPS = { options: [], allowFreeform: false, autoComplete: 'on', buttonIconProps: { iconName: 'ChevronDown' }, }; function useOptionsState(_a) { var options = _a.options, defaultSelectedKey = _a.defaultSelectedKey, selectedKey = _a.selectedKey; /** The currently selected indices */ var _b = React.useState(function () { return getSelectedIndices(options, buildDefaultSelectedKeys(defaultSelectedKey, selectedKey)); }), selectedIndices = _b[0], setSelectedIndices = _b[1]; /** The options currently available for the callout */ var _c = React.useState(options), currentOptions = _c[0], setCurrentOptions = _c[1]; /** This value is used for the autocomplete hint value */ var _d = React.useState(), suggestedDisplayValue = _d[0], setSuggestedDisplayValue = _d[1]; React.useEffect(function () { if (selectedKey !== undefined) { var selectedKeys = buildSelectedKeys(selectedKey); var indices = getSelectedIndices(options, selectedKeys); setSelectedIndices(indices); } setCurrentOptions(options); }, [options, selectedKey]); React.useEffect(function () { if (selectedKey === null) { setSuggestedDisplayValue(undefined); } }, [selectedKey]); return [ selectedIndices, setSelectedIndices, currentOptions, setCurrentOptions, suggestedDisplayValue, setSuggestedDisplayValue, ]; } exports.ComboBox = React.forwardRef(function (propsWithoutDefaults, forwardedRef) { var _a = (0, Utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults), ref = _a.ref, props = tslib_1.__rest(_a, ["ref"]); var rootRef = React.useRef(null); var mergedRootRef = (0, react_hooks_1.useMergedRefs)(rootRef, forwardedRef); var _b = useOptionsState(props), selectedIndices = _b[0], setSelectedIndices = _b[1], currentOptions = _b[2], setCurrentOptions = _b[3], suggestedDisplayValue = _b[4], setSuggestedDisplayValue = _b[5]; return (React.createElement(ComboBoxInternal, tslib_1.__assign({}, props, { hoisted: { mergedRootRef: mergedRootRef, rootRef: rootRef, selectedIndices: selectedIndices, setSelectedIndices: setSelectedIndices, currentOptions: currentOptions, setCurrentOptions: setCurrentOptions, suggestedDisplayValue: suggestedDisplayValue, setSuggestedDisplayValue: setSuggestedDisplayValue, } }))); }); exports.ComboBox.displayName = COMPONENT_NAME; /** * Depth-first search to find the first descendant element where the match function returns true. * @param element - element to start searching at * @param match - the function that determines if the element is a match * @returns the matched element or null no match was found */ function findFirstDescendant(element, match) { var children = (0, utilities_1.getChildren)(element); // For loop is used because forEach cannot be stopped. for (var index = 0; index < children.length; index++) { var child = children[index]; if (match(child)) { return child; } var candidate = findFirstDescendant(child, match); if (candidate) { return candidate; } } return null; } var ComboBoxInternal = /** @class */ (function (_super) { tslib_1.__extends(ComboBoxInternal, _super); function ComboBoxInternal(props) { var _this = _super.call(this, props) || this; /** The input aspect of the combo box */ _this._autofill = React.createRef(); /** The wrapping div of the input and button */ _this._comboBoxWrapper = React.createRef(); /** The callout element */ _this._comboBoxMenu = React.createRef(); /** The menu item element that is currently selected */ _this._selectedElement = React.createRef(); // props to prevent dismiss on scroll/resize immediately after opening _this._overrideScrollDismiss = false; /** * {@inheritdoc} */ _this.focus = function (shouldOpenOnFocus, useFocusAsync) { if (_this.props.disabled) { return; } if (_this._autofill.current) { if (useFocusAsync) { (0, Utilities_1.focusAsync)(_this._autofill.current); } else { _this._autofill.current.focus(); } if (shouldOpenOnFocus) { _this.setState({ isOpen: true, }); } } // Programmatically setting focus means that there is nothing else that needs to be done // Focus is now contained if (!_this._hasFocus()) { _this.setState({ focusState: 'focused' }); } }; /** * Close menu callout if it is open */ _this.dismissMenu = function () { var isOpen = _this.state.isOpen; isOpen && _this.setState({ isOpen: false }); }; /** * componentWillReceiveProps handler for the auto fill component * Checks/updates the input value to set, if needed * @param defaultVisibleValue - the defaultVisibleValue that got passed * in to the auto fill's componentWillReceiveProps * @returns - the updated value to set, if needed */ _this._onUpdateValueInAutofillWillReceiveProps = function () { var comboBox = _this._autofill.current; if (!comboBox) { return null; } if (comboBox.value === null || comboBox.value === undefined) { return null; } return normalizeToString(_this._currentVisibleValue); }; _this._renderComboBoxWrapper = function (multiselectAccessibleText, errorMessageId) { var _a = _this.props, label = _a.label, disabled = _a.disabled, ariaLabel = _a.ariaLabel, _b = _a.ariaDescribedBy, ariaDescribedBy = _b === void 0 ? _this.props['aria-describedby'] : _b, required = _a.required, errorMessage = _a.errorMessage, buttonIconProps = _a.buttonIconProps, isButtonAriaHidden = _a.isButtonAriaHidden, title = _a.title, placeholderProp = _a.placeholder, tabIndex = _a.tabIndex, autofill = _a.autofill, iconButtonProps = _a.iconButtonProps, suggestedDisplayValue = _a.hoisted.suggestedDisplayValue; var _c = _this.state, ariaActiveDescendantValue = _c.ariaActiveDescendantValue, isOpen = _c.isOpen; // If the combo box has focus, is multiselect, and has a display string, then use that placeholder // so that the selected items don't appear to vanish. This is not ideal but it's the only reasonable way // to correct the behavior where the input is cleared so the user can type. If a full refactor is done, then this // should be removed and the multiselect combo box should behave like a picker. var placeholder = _this._hasFocus() && _this.props.multiSelect && multiselectAccessibleText ? multiselectAccessibleText : placeholderProp; var labelledBy = [_this.props['aria-labelledby'], label && _this._id + '-label'].join(' ').trim(); var labelProps = { 'aria-labelledby': labelledBy ? labelledBy : undefined, 'aria-label': ariaLabel && !label ? ariaLabel : undefined, }; return (React.createElement("div", { "data-ktp-target": true, ref: _this._comboBoxWrapper, id: _this._id + 'wrapper', className: _this._classNames.root, "aria-owns": isOpen ? _this._id + '-list' : undefined }, React.createElement(Autofill_1.Autofill, tslib_1.__assign({ "data-ktp-execute-target": true, "data-is-interactable": !disabled, componentRef: _this._autofill, id: _this._id + '-input', className: _this._classNames.input, type: "text", onFocus: _this._onFocus, onBlur: _this._onBlur, onKeyDown: _this._onInputKeyDown, onKeyUp: _this._onInputKeyUp, onClick: _this._onAutofillClick, onTouchStart: _this._onTouchStart, onInputValueChange: _this._onInputChange, "aria-expanded": isOpen, "aria-autocomplete": _this._getAriaAutoCompleteValue(), role: "combobox", readOnly: disabled }, labelProps, { "aria-describedby": errorMessage !== undefined ? (0, Utilities_1.mergeAriaAttributeValues)(ariaDescribedBy, errorMessageId) : ariaDescribedBy, "aria-activedescendant": ariaActiveDescendantValue, "aria-required": required, "aria-disabled": disabled, "aria-controls": isOpen ? _this._id + '-list' : undefined, spellCheck: false, defaultVisibleValue: _this._currentVisibleValue, suggestedDisplayValue: suggestedDisplayValue, updateValueInWillReceiveProps: _this._onUpdateValueInAutofillWillReceiveProps, shouldSelectFullInputValueInComponentDidUpdate: _this._onShouldSelectFullInputValueInAutofillComponentDidUpdate, title: title, preventValueSelection: !_this._hasFocus(), placeholder: placeholder, tabIndex: disabled ? -1 : tabIndex }, autofill)), React.createElement(Button_1.IconButton, tslib_1.__assign({ className: 'ms-ComboBox-CaretDown-button', styles: _this._getCaretButtonStyles(), role: isButtonAriaHidden ? 'presentation' : undefined, "aria-hidden": isButtonAriaHidden }, (!isButtonAriaHidden ? labelProps : undefined), { "data-is-focusable": false, tabIndex: -1, onClick: _this._onComboBoxClick, onBlur: _this._onBlur, iconProps: buttonIconProps, disabled: disabled, checked: isOpen }, iconButtonProps)))); }; /** * componentDidUpdate handler for the auto fill component * * @param defaultVisibleValue - the current defaultVisibleValue in the auto fill's componentDidUpdate * @param suggestedDisplayValue - the current suggestedDisplayValue in the auto fill's componentDidUpdate * @returns - should the full value of the input be selected? * True if the defaultVisibleValue equals the suggestedDisplayValue, false otherwise */ _this._onShouldSelectFullInputValueInAutofillComponentDidUpdate = function () { return _this._currentVisibleValue === _this.props.hoisted.suggestedDisplayValue; }; /** * Get the correct value to pass to the input * to show to the user based off of the current props and state * @returns the value to pass to the input */ _this._getVisibleValue = function () { var _a = _this.props, text = _a.text, allowFreeform = _a.allowFreeform, allowFreeInput = _a.allowFreeInput, autoComplete = _a.autoComplete, _b = _a.hoisted, suggestedDisplayValue = _b.suggestedDisplayValue, selectedIndices = _b.selectedIndices, currentOptions = _b.currentOptions; var _c = _this.state, currentPendingValueValidIndex = _c.currentPendingValueValidIndex, currentPendingValue = _c.currentPendingValue, isOpen = _c.isOpen; var currentPendingIndexValid = indexWithinBounds(currentOptions, currentPendingValueValidIndex); // If the user passed is a value prop, use that // unless we are open and have a valid current pending index if (!(isOpen && currentPendingIndexValid) && (text || text === '') && (currentPendingValue === null || currentPendingValue === undefined)) { return text; } if (_this.props.multiSelect) { // Multi-select if (_this._hasFocus()) { var index = -1; if (autoComplete === 'on' && currentPendingIndexValid) { index = currentPendingValueValidIndex; } return _this._getPendingString(currentPendingValue, currentOptions, index); } else { return _this._getMultiselectDisplayString(selectedIndices, currentOptions, suggestedDisplayValue); } } else { // Single-select var index = _this._getFirstSelectedIndex(); if (allowFreeform || allowFreeInput) { // If we are allowing freeform/free input and autocomplete is also true // and we've got a pending value that matches an option, remember // the matched option's index if (autoComplete === 'on' && currentPendingIndexValid) { index = currentPendingValueValidIndex; } // Since we are allowing freeform, if there is currently a pending value, use that // otherwise use the index determined above (falling back to '' if we did not get a valid index) return _this._getPendingString(currentPendingValue, currentOptions, index); } else { // If we are not allowing freeform and have a valid index that matches the pending value, // we know we will need some version of the pending value if (currentPendingIndexValid && autoComplete === 'on') { // If autoComplete is on, return the raw pending value, otherwise remember // the matched option's index index = currentPendingValueValidIndex; return normalizeToString(currentPendingValue); } else if (!_this.state.isOpen && currentPendingValue) { return indexWithinBounds(currentOptions, index) ? currentPendingValue : normalizeToString(suggestedDisplayValue); } else { return indexWithinBounds(currentOptions, index) ? getPreviewText(currentOptions[index]) : normalizeToString(suggestedDisplayValue); } } } }; /** * Handler for typing changes on the input * @param updatedValue - the newly changed value */ _this._onInputChange = function (updatedValue) { if (_this.props.disabled) { _this._handleInputWhenDisabled(null /* event */); return; } if (_this.props.onInputValueChange) { _this.props.onInputValueChange(updatedValue); } _this.props.allowFreeform || _this.props.allowFreeInput ? _this._processInputChangeWithFreeform(updatedValue) : _this._processInputChangeWithoutFreeform(updatedValue); }; /** * Focus (and select) the content of the input * and set the focused state */ _this._onFocus = function () { var _a, _b; (_b = (_a = _this._autofill.current) === null || _a === void 0 ? void 0 : _a.inputElement) === null || _b === void 0 ? void 0 : _b.select(); if (!_this._hasFocus()) { _this.setState({ focusState: 'focusing' }); } }; /** * Callback issued when the options should be resolved, if they have been updated or * if they need to be passed in the first time. This only does work if an onResolveOptions * callback was passed in */ _this._onResolveOptions = function () { if (_this.props.onResolveOptions) { // get the options var newOptions_1 = _this.props.onResolveOptions(tslib_1.__spreadArray([], _this.props.hoisted.currentOptions, true)); // Check to see if the returned value is an array, if it is update the state // If the returned value is not an array then check to see if it's a promise or PromiseLike. // If it is then resolve it asynchronously. if (Array.isArray(newOptions_1)) { _this.props.hoisted.setCurrentOptions(newOptions_1); } else if (newOptions_1 && newOptions_1.then) { // Ensure that the promise will only use the callback if it was the most recent one // and update the state when the promise returns _this._currentPromise = newOptions_1; newOptions_1.then(function (newOptionsFromPromise) { if (newOptions_1 === _this._currentPromise) { _this.props.hoisted.setCurrentOptions(newOptionsFromPromise); } }); } } }; /** * OnBlur handler. Set the focused state to false * and submit any pending value */ // eslint-disable-next-line deprecation/deprecation _this._onBlur = function (event) { var _a, _b; // Do nothing if the blur is coming from something // inside the comboBox root or the comboBox menu since // it we are not really blurring from the whole comboBox var relatedTarget = event.relatedTarget; if (event.relatedTarget === null) { // In IE11, due to lack of support, event.relatedTarget is always // null making every onBlur call to be "outside" of the ComboBox // even when it's not. Using document.activeElement is another way // for us to be able to get what the relatedTarget without relying // on the event relatedTarget = document.activeElement; } if (relatedTarget) { var isBlurFromComboBoxTitle = (_a = _this.props.hoisted.rootRef.current) === null || _a === void 0 ? void 0 : _a.contains(relatedTarget); var isBlurFromComboBoxMenu = (_b = _this._comboBoxMenu.current) === null || _b === void 0 ? void 0 : _b.contains(relatedTarget); var isBlurFromComboBoxMenuAncestor = _this._comboBoxMenu.current && (0, Utilities_1.findElementRecursive)(_this._comboBoxMenu.current, function (element) { return element === relatedTarget; }); if (isBlurFromComboBoxTitle || isBlurFromComboBoxMenu || isBlurFromComboBoxMenuAncestor) { if (isBlurFromComboBoxMenuAncestor && _this._hasFocus() && (!_this.props.multiSelect || _this.props.allowFreeform)) { _this._submitPendingValue(event); } event.preventDefault(); event.stopPropagation(); return; } } if (_this._hasFocus()) { _this.setState({ focusState: 'none' }); if (!_this.props.multiSelect || _this.props.allowFreeform) { _this._submitPendingValue(event); } } }; // Render Callout container and pass in list _this._onRenderContainer = function (props, defaultRender) { var onRenderList = props.onRenderList, calloutProps = props.calloutProps, dropdownWidth = props.dropdownWidth, dropdownMaxWidth = props.dropdownMaxWidth, _a = props.onRenderUpperContent, onRenderUpperContent = _a === void 0 ? _this._onRenderUpperContent : _a, _b = props.onRenderLowerContent, onRenderLowerContent = _b === void 0 ? _this._onRenderLowerContent : _b, useComboBoxAsMenuWidth = props.useComboBoxAsMenuWidth, persistMenu = props.persistMenu, _c = props.shouldRestoreFocus, shouldRestoreFocus = _c === void 0 ? true : _c; var isOpen = _this.state.isOpen; var id = _this._id; var comboBoxMenuWidth = useComboBoxAsMenuWidth && _this._comboBoxWrapper.current ? _this._comboBoxWrapper.current.clientWidth + 2 : undefined; return (React.createElement(Callout_1.Callout, tslib_1.__assign({ isBeakVisible: false, gapSpace: 0, doNotLayer: false, directionalHint: Callout_1.DirectionalHint.bottomLeftEdge, directionalHintFixed: false }, calloutProps, { onLayerMounted: _this._onLayerMounted, className: (0, Utilities_1.css)(_this._classNames.callout, calloutProps === null || calloutProps === void 0 ? void 0 : calloutProps.className), target: _this._comboBoxWrapper.current, onDismiss: _this._onDismiss, onMouseDown: _this._onCalloutMouseDown, onScroll: _this._onScroll, setInitialFocus: false, calloutWidth: useComboBoxAsMenuWidth && _this._comboBoxWrapper.current ? comboBoxMenuWidth && comboBoxMenuWidth : dropdownWidth, calloutMaxWidth: dropdownMaxWidth ? dropdownMaxWidth : comboBoxMenuWidth, hidden: persistMenu ? !isOpen : undefined, shouldRestoreFocus: shouldRestoreFocus, // eslint-disable-next-line react/jsx-no-bind preventDismissOnEvent: function (ev) { return _this._preventDismissOnScrollOrResize(ev); } }), onRenderUpperContent(_this.props, _this._onRenderUpperContent), React.createElement("div", { className: _this._classNames.optionsContainerWrapper, ref: _this._comboBoxMenu }, onRenderList === null || onRenderList === void 0 ? void 0 : onRenderList(tslib_1.__assign(tslib_1.__assign({}, props), { id: id }), _this._onRenderList)), onRenderLowerContent(_this.props, _this._onRenderLowerContent))); }; _this._onLayerMounted = function () { _this._onCalloutLayerMounted(); // need to call this again here to get the correct scroll parent dimensions // when the callout is first opened _this._async.setTimeout(function () { _this._scrollIntoView(); }, 0); if (_this.props.calloutProps && _this.props.calloutProps.onLayerMounted) { _this.props.calloutProps.onLayerMounted(); } }; _this._onRenderLabel = function (onRenderLabelProps) { var _a = onRenderLabelProps.props, label = _a.label, disabled = _a.disabled, required = _a.required; if (label) { return (React.createElement(Label_1.Label, { id: _this._id + '-label', disabled: disabled, required: required, className: _this._classNames.label }, label, onRenderLabelProps.multiselectAccessibleText && (React.createElement("span", { className: _this._classNames.screenReaderText }, onRenderLabelProps.multiselectAccessibleText)))); } return null; }; // Render List of items _this._onRenderList = function (props) { var _a = props.onRenderItem, onRenderItem = _a === void 0 ? _this._onRenderItem : _a, label = props.label, ariaLabel = props.ariaLabel, multiSelect = props.multiSelect; var queue = { items: [] }; var renderedList = []; var emptyQueue = function () { var newGroup = queue.id ? [ React.createElement("div", { role: "group", key: queue.id, "aria-labelledby": queue.id }, queue.items), ] : queue.items; renderedList = tslib_1.__spreadArray(tslib_1.__spreadArray([], renderedList, true), newGroup, true); // Flush items and id queue = { items: [] }; }; var placeRenderedOptionIntoQueue = function (item, index) { /* Case Header empty queue if it's not already empty ensure unique ID for header and set queue ID push header into queue Case Divider push divider into queue if not first item empty queue if not already empty Default push item into queue */ switch (item.itemType) { case SelectableOption_1.SelectableOptionMenuItemType.Header: queue.items.length > 0 && emptyQueue(); var id_1 = _this._id + item.key; queue.items.push(onRenderItem(tslib_1.__assign(tslib_1.__assign({ id: id_1 }, item), { index: index }), _this._onRenderItem)); queue.id = id_1; break; case SelectableOption_1.SelectableOptionMenuItemType.Divider: index > 0 && queue.items.push(onRenderItem(tslib_1.__assign(tslib_1.__assign({}, item), { index: index }), _this._onRenderItem)); queue.items.length > 0 && emptyQueue(); break; default: queue.items.push(onRenderItem(tslib_1.__assign(tslib_1.__assign({}, item), { index: index }), _this._onRenderItem)); } }; // Place options into the queue. Queue will be emptied anytime a Header or Divider is encountered props.options.forEach(function (item, index) { placeRenderedOptionIntoQueue(item, index); }); // Push remaining items into all renderedList queue.items.length > 0 && emptyQueue(); var id = _this._id; return (React.createElement("div", { id: id + '-list', className: _this._classNames.optionsContainer, "aria-labelledby": label && id + '-label', "aria-label": ariaLabel && !label ? ariaLabel : undefined, "aria-multiselectable": multiSelect ? 'true' : undefined, role: "listbox" }, renderedList)); }; // Render items _this._onRenderItem = function (item) { switch (item.itemType) { case SelectableOption_1.SelectableOptionMenuItemType.Divider: return _this._renderSeparator(item); case SelectableOption_1.SelectableOptionMenuItemType.Header: return _this._renderHeader(item); default: return _this._renderOption(item); } }; // Default _onRenderLowerContent function returns nothing _this._onRenderLowerContent = function () { return null; }; // Default _onRenderUpperContent function returns nothing _this._onRenderUpperContent = function () { return null; }; _this._renderOption = function (item) { var _a; var _b = _this.props.onRenderOption, onRenderOption = _b === void 0 ? _this._onRenderOptionContent : _b; var id = (_a = item.id) !== null && _a !== void 0 ? _a : _this._id + '-list' + item.index; var isSelected = _this._isOptionSelected(item.index); var isChecked = _this._isOptionChecked(item.index); var isIndeterminate = _this._isOptionIndeterminate(item.index); var optionStyles = _this._getCurrentOptionStyles(item); var optionClassNames = (0, ComboBox_classNames_1.getComboBoxOptionClassNames)(_this._getCurrentOptionStyles(item)); var title = item.title; var getOptionComponent = function () { return !_this.props.multiSelect ? (React.createElement(Button_1.CommandButton, { id: id, key: item.key, "data-index": item.index, styles: optionStyles, checked: isSelected, className: 'ms-ComboBox-option', onClick: _this._onItemClick(item), // eslint-disable-next-line react/jsx-no-bind onMouseEnter: _this._onOptionMouseEnter.bind(_this, item.index), // eslint-disable-next-line react/jsx-no-bind onMouseMove: _this._onOptionMouseMove.bind(_this, item.index), onMouseLeave: _this._onOptionMouseLeave, role: "option", "aria-selected": isSelected ? 'true' : 'false', ariaLabel: item.ariaLabel, disabled: item.disabled, title: title }, React.createElement("span", { className: optionClassNames.optionTextWrapper, ref: isSelected ? _this._selectedElement : undefined }, onRenderOption(item, _this._onRenderOptionContent)))) : (React.createElement(Checkbox_1.Checkbox, { id: id, ariaLabel: item.ariaLabel, ariaLabelledBy: item.ariaLabel ? undefined : id + '-label', key: item.key, styles: optionStyles, className: 'ms-ComboBox-option', onChange: _this._onItemClick(item), label: item.text, checked: isChecked, indeterminate: isIndeterminate, title: title, disabled: item.disabled, // eslint-disable-next-line react/jsx-no-bind onRenderLabel: _this._renderCheckboxLabel.bind(_this, tslib_1.__assign(tslib_1.__assign({}, item), { id: id + '-label' })), inputProps: tslib_1.__assign({ // aria-selected should only be applied to checked items, not hovered items 'aria-selected': isChecked ? 'true' : 'false', role: 'option' }, { 'data-index': item.index, 'data-is-focusable': true, }) })); }; return (React.createElement(ComboBoxOptionWrapper, { key: item.key, index: item.index, disabled: item.disabled, isSelected: isSelected, isChecked: isChecked, isIndeterminate: isIndeterminate, text: item.text, // eslint-disable-next-line react/jsx-no-bind render: getOptionComponent, data: item.data })); }; /** * Mouse clicks to headers, dividers and scrollbar should not make input lose focus */ _this._onCalloutMouseDown = function (ev) { ev.preventDefault(); }; /** * Scroll handler for the callout to make sure the mouse events * for updating focus are not interacting during scroll */ _this._onScroll = function () { var _a; if (!_this._isScrollIdle && _this._scrollIdleTimeoutId !== undefined) { _this._async.clearTimeout(_this._scrollIdleTimeoutId); _this._scrollIdleTimeoutId = undefined; } else { _this._isScrollIdle = false; } if ((_a = _this.props.calloutProps) === null || _a === void 0 ? void 0 : _a.onScroll) { _this.props.calloutProps.onScroll(); } _this._scrollIdleTimeoutId = _this._async.setTimeout(function () { _this._isScrollIdle = true; }, ScrollIdleDelay); }; _this._onRenderOptionContent = function (item) { var optionClassNames = (0, ComboBox_classNames_1.getComboBoxOptionClassNames)(_this._getCurrentOptionStyles(item)); return React.createElement("span", { className: optionClassNames.optionText }, item.text); }; /* * Render content of a multiselect item label. * Text within the label is aria-hidden, to prevent duplicate input/label exposure */ _this._onRenderMultiselectOptionContent = function (item) { var optionClassNames = (0, ComboBox_classNames_1.getComboBoxOptionClassNames)(_this._getCurrentOptionStyles(item)); return (React.createElement("span", { id: item.id, "aria-hidden": "true", className: optionClassNames.optionText }, item.text)); }; /** * Handles dismissing (cancelling) the menu */ _this._onDismiss = function () { var onMenuDismiss = _this.props.onMenuDismiss; if (onMenuDismiss) { onMenuDismiss(); } // In persistMode we need to simulate callout layer mount // since that only happens once. We do it on dismiss since // it works either way. if (_this.props.persistMenu) { _this._onCalloutLayerMounted(); } // close the menu _this._setOpenStateAndFocusOnClose(false /* isOpen */, false /* focusInputAfterClose */); // reset the selected index // to the last value state _this._resetSelectedIndex(); }; _this._onAfterClearPendingInfo = function () { _this._processingClearPendingInfo = false; }; /** * Handle keydown on the input * @param ev - The keyboard event that was fired */ _this._onInputKeyDown = function (ev) { var _a = _this.props, disabled = _a.disabled, allowFreeform = _a.allowFreeform, allowFreeInput = _a.allowFreeInput, autoComplete = _a.autoComplete, currentOptions = _a.hoisted.currentOptions; var _b = _this.state, isOpen = _b.isOpen, currentPendingValueValidIndexOnHover = _b.currentPendingValueValidIndexOnHover; // Take note if we are processing an alt (option) or meta (command) keydown. // See comment in _onInputKeyUp for reasoning. _this._lastKeyDownWasAltOrMeta = isAltOrMeta(ev); if (disabled) { _this._handleInputWhenDisabled(ev); return; } var index = _this._getPendingSelectedIndex(false /* includeCurrentPendingValue */); // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.enter: if (_this._autofill.current && _this._autofill.current.inputElement) { _this._autofill.current.inputElement.select(); } _this._submitPendingValue(ev); if (_this.props.multiSelect && isOpen) { _this.setState({ currentPendingValueValidIndex: index, }); } else { // On enter submit the pending value if (isOpen || ((!allowFreeform || _this.state.currentPendingValue === undefined || _this.state.currentPendingValue === null || _this.state.currentPendingValue.length <= 0) && _this.state.currentPendingValueValidIndex < 0)) { // if we are open or // if we are not allowing freeform or // our we have no pending value // and no valid pending index // flip the open state _this.setState({ isOpen: !isOpen, }); } } break; case Utilities_1.KeyCodes.tab: // On enter submit the pending value if (!_this.props.multiSelect) { _this._submitPendingValue(ev); } // If we are not allowing freeform // or the combo box is open, flip the open state if (isOpen) { _this._setOpenStateAndFocusOnClose(!isOpen, false /* focusInputAfterClose */); } // Allow TAB to propagate return; case Utilities_1.KeyCodes.escape: // reset the selected index _this._resetSelectedIndex(); // Close the menu if opened if (isOpen) { _this.setState({ isOpen: false, }); } else { return; } break; case Utilities_1.KeyCodes.up: // if we are in clearAll state (e.g. the user as hovering // and has since mousedOut of the menu items), // go to the last index if (currentPendingValueValidIndexOnHover === HoverStatus.clearAll) { index = _this.props.hoisted.currentOptions.length; } if (ev.altKey || ev.metaKey) { // Close the menu if it is open and break so // that the event get stopPropagation and prevent default. // Otherwise, we need to let the event continue to propagate if (isOpen) { _this._setOpenStateAndFocusOnClose(!isOpen, true /* focusInputAfterClose */); break; } return; } // do not scroll page ev.preventDefault(); // Go to the previous option _this._setPendingInfoFromIndexAndDirection(index, SearchDirection.backward); break; case Utilities_1.KeyCodes.down: // Expand the combo box on ALT + DownArrow if (ev.altKey || ev.metaKey) { _this._setOpenStateAndFocusOnClose(true /* isOpen */, true /* focusInputAfterClose */); } else { // if we are in clearAll state (e.g. the user as hovering // and has since mousedOut of the menu items), // go to the first index if (currentPendingValueValidIndexOnHover === HoverStatus.clearAll) { index = -1; } // do not scroll page ev.preventDefault(); // Got to the next option _this._setPendingInfoFromIndexAndDirection(index, SearchDirection.forward); } break; case Utilities_1.KeyCodes.home: case Utilities_1.KeyCodes.end: if (allowFreeform || allowFreeInput) { return; } // Set the initial values to respond to HOME // which goes to the first selectable option index = -1; var directionToSearch = SearchDirection.forward; // If end, update the values to respond to END // which goes to the last selectable option // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.end) { index = currentOptions.length; directionToSearch = SearchDirection.backward; } _this._setPendingInfoFromIndexAndDirection(index, directionToSearch); break; /* eslint-disable no-fallthrough */ case Utilities_1.KeyCodes.space: // event handled in _onComboBoxKeyUp if (!allowFreeform && !allowFreeInput && autoComplete === 'off') { break; } default: /* eslint-enable no-fallthrough */ // are we processing a function key? if so bail out // eslint-disable-next-line deprecation/deprecation if (ev.which >= 112 /* F1 */ && ev.which <= 123 /* F12 */) { return; } // If we get here and we got either and ALT key // or meta key, let the event propagate // eslint-disable-next-line deprecation/deprecation if (ev.keyCode === Utilities_1.KeyCodes.alt || ev.key === 'Meta' /* && isOpen */) { return; } // If we are not allowing freeform or free input and // allowing autoComplete, handle the input here if (!allowFreeform && !allowFreeInput && autoComplete === 'on') { _this._onInputChange(ev.key); break; } // allow the key to propagate by default return; } ev.stopPropagation(); ev.preventDefault(); }; /** * Handle keyup on the input * @param ev - the keyboard event that was fired */ _this._onInputKeyUp = function (ev) { var _a = _this.props, disabled = _a.disabled, allowFreeform = _a.allowFreeform, allowFreeInput = _a.allowFreeInput, autoComplete = _a.autoComplete; var isOpen = _this.state.isOpen; // We close the menu on key up only if ALL of the following are true: // - Most recent key down was alt or meta (command) // - The alt/meta key down was NOT followed by some other key (such as down/up arrow to // expand/collapse the menu) // - We're not on a Mac (or iOS) // This is because on Windows, pressing alt moves focus to the application menu bar or similar, // closing any open context menus. There is not a similar behavior on Macs. var keyPressIsAltOrMetaAlone = _this._lastKeyDownWasAltOrMeta && isAltOrMeta(ev); _this._lastKeyDownWasAltOrMeta = false; var shouldHandleKey = keyPressIsAltOrMetaAlone && !((0, Utilities_1.isMac)() || (0, Utilities_1.isIOS)()); if (disabled) { _this._handleInputWhenDisabled(ev); return; } // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.space: // If we are not allowing freeform or free input, and autoComplete is off // make space expand/collapse the combo box // and allow the event to propagate if (!allowFreeform && !allowFreeInput && autoComplete === 'off') { _this._setOpenStateAndFocusOnClose(!isOpen, !!isOpen); } return; default: if (shouldHandleKey && isOpen) { _this._setOpenStateAndFocusOnClose(!isOpen, true /* focusInputAfterClose */); } else { if (_this.state.focusState === 'focusing' && _this.props.openOnKeyboardFocus) { _this.setState({ isOpen: true }); } if (_this.state.focusState !== 'focused') { _this.setState({ focusState: 'focused' }); } } return; } }; _this._onOptionMouseLeave = function () { if (_this._shouldIgnoreMouseEvent()) { return; } // Ignore the event in persistMenu mode if the callout has // closed. This is to avoid clearing the visuals on item click. if (_this.props.persistMenu && !_this.state.isOpen) { return; } _this.setState({ currentPendingValueValidIndexOnHover: HoverStatus.clearAll, }); }; /** * Click handler for the button of the combo box and the input when not allowing freeform. * This toggles the expand/collapse state of the combo box (if enabled). */ _this._onComboBoxClick = function () { var disabled = _this.props.disabled; var isOpen = _this.state.isOpen; if (!disabled) { _this._setOpenStateAndFocusOnClose(!isOpen, false /* focusInputAfterClose */); _this.setState({ focusState: 'focused' }); } }; /** * Click handler for the autofill. */ _this._onAutofillClick = function () { var _a = _this.props, disabled = _a.disabled, allowFreeform = _a.allowFreeform; if (allowFreeform && !disabled) { _this.focus(_this.state.isOpen || _this._processingTouch); } else { _this._onComboBoxClick(); } }; _this._onTouchStart = function () { if (_this._comboBoxWrapper.current && !('onpointerdown' in _this._comboBoxWrapper)) { _this._handleTouchAndPointerEvent(); } }; _this._onPointerDown = function (ev) { if (ev.pointerType === 'touch') { _this._handleTouchAndPointerEvent(); ev.preventDefault(); ev.stopImmediatePropagation(); } }; (0, Utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); _this._events = new Utilities_1.EventGroup(_this); (0, Utilities_1.warnMutuallyExclusive)(COMPONENT_NAME, props, { defaultSelectedKey: 'selectedKey', text: 'defaultSelectedKey', selectedKey: 'value', dropdownWidth: 'useComboBoxAsMenuWidth', ariaLabel: 'label', }); _this._id = props.id || (0, Utilities_1.getId)('ComboBox'); _this._isScrollIdle = true; _this._processingTouch = false; _this._gotMouseMove = false; _this._processingClearPendingInfo = false; _this.state = { isOpen: false, focusState: 'none', currentPendingValueValidIndex: -1, currentPendingValue: undefined, currentPendingValueValidIndexOnHover: HoverStatus.default, }; return _this; } Object.defineProperty(ComboBoxInternal.prototype, "selectedOptions", { /** * All selected options */ get: function () { var _a = this.props.hoisted, currentOptions = _a.currentOptions, selectedIndices = _a.selectedIndices; return (0, SelectableOption_1.getAllSelectedOptions)(currentOptions, selectedIndices); }, enumerable: false, configurable: true }); ComboBoxInternal.prototype.componentDidMount = function () { if (this._comboBoxWrapper.current && !this.props.disabled) { // hook up resolving the options if needed on focus this._events.on(this._comboBoxWrapper.current, 'focus', this._onResolveOptions, true); if ('onpointerdown' in this._comboBoxWrapper.current) { // For ComboBoxes, touching anywhere in the combo box should drop the dropdown, including the input element. // This gives more hit target space for touch environments. We're setting the onpointerdown here, because React // does not support Pointer events yet. this._events.on(this._comboBoxWrapper.current, 'pointerdown', this._onPointerDown, true); } } }; ComboBoxInternal.prototype.componentDidUpdate = function (prevProps, prevState) { var _this = this; var _a, _b, _c; var _d = this.props, allowFreeform = _d.allowFreeform, allowFreeInput = _d.allowFreeInput, text = _d.text, onMenuOpen = _d.onMenuOpen, onMenuDismissed = _d.onMenuDismissed, _e = _d.hoisted, currentOptions = _e.currentOptions, selectedIndices = _e.selectedIndices; var _f = this.state, currentPendingValue = _f.currentPendingValue, currentPendingValueValidIndex = _f.currentPendingValueValidIndex, isOpen = _f.isOpen; // If we are newly open or are open and the pending valid index changed, // make sure the currently selected/pending option is scrolled into view if (isOpen && (!prevState.isOpen || prevState.currentPendingValueValidIndex !== currentPendingValueValidIndex)) { // Need this timeout so that the selectedElement ref is correctly updated this._async.setTimeout(function () { return _this._scrollIntoView(); }, 0); } // if an action is taken that put focus in the ComboBox // and If we are open or we are just closed, shouldFocusAfterClose is set, // but we are not the activeElement set focus on the input if (this._hasFocus() && (isOpen || (prevState.isOpen && !isOpen && this._focusInputAfterClose && this._autofill.current && document.activeElement !== this._autofill.current.inputElement))) { this.focus(undefined /*shouldOpenOnFocus*/, true /*useFocusAsync*/); } // If we should focusAfterClose AND // just opened/closed the menu OR // are focused AND // updated the selectedIndex with the menu closed OR // are not allowing freeform or free input OR // the value changed // we need to set selection if (this._focusInputAfterClose && ((prevState.isOpen && !isOpen) || (this._hasFocus() && ((!isOpen && !this.props.multiSelect && prevProps.hoisted.selectedIndices && selectedIndices && prevProps.hoisted.selectedIndices[0] !== selectedIndices[0]) || (!allowFreeform && !allowFreeInput) || text !== prevProps.text)))) { this._onFocus(); } this._notifyPendingValueChanged(prevState); if (isOpen && !prevState.isOpen) { // handle dismiss buffer after suggestions are opened this._overrideScrollDismiss = true; this._async.clearTimeout(this._overrideScrollDimissTimeout); this._overrideScrollDimissTimeout = this._async.setTimeout(function () { _this._overrideScrollDismiss = false; }, 100); onMenuOpen === null || onMenuOpen === void 0 ? void 0 : onMenuOpen(); } if (!isOpen && prevState.isOpen && onMenuDismissed) { onMenuDismissed(); } var newCurrentPendingValueValidIndex = currentPendingValueValidIndex; var options = currentOptions.map(function (item, index) { return (tslib_1.__assign(tslib_1.__assign({}, item), { index: index })); }); // If currentOptions differs from the previous currentOptions we need to update the currentPendingValueValidIndex // otherwise, it will be out of sync with the currentOptions. This can happen when the options are filtered. if (!(0, Utilities_1.shallowCompare)(prevProps.hoisted.currentOptions, currentOptions) && currentPendingValue) { newCurrentPendingValueValidIndex = this.props.allowFreeform || this.props.allowFreeInput ? this._processInputChangeWithFreeform(currentPendingValue) : this._updateAutocompleteIndexWithoutFreeform(currentPendingValue); } var descendantText = undefined; if (isOpen && this._hasFocus() && newCurrentPendingValueValidIndex !== -1) { descendantText = (_a = options[newCurrentPendingValueValidIndex].id) !== null && _a !== void 0 ? _a : this._id + '-list' + newCurrentPendingValueValidIndex; } else if (isOpen && selectedIndices.length) { descendantText = (_c = (_b = options[selectedIndices[0]]) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : this._id + '-list' + selectedIndices[0]; } if (descendantText !== this.state.ariaActiveDescendantValue) { this.setState({ ariaActiveDescendantValue: descendantText, }); } }; ComboBoxInternal.prototype.componentWillUnmount = function () { this._async.dispose(); this._events.dispose(); }; // Primary Render ComboBoxInternal.prototype.render = function () { var id = this._id; var errorMessageId = id + '-error'; var _a = this.props, className = _a.className, disabled = _a.disabled, required = _a.required, errorMessage = _a.errorMessage, _b = _a.onRenderContainer, onRenderContainer = _b === void 0 ? this._onRenderContainer : _b, _c = _a.onRenderLabel, onRenderLabel = _c === void 0 ? this._onRenderLabel : _c, _d = _a.onRenderList, onRenderList = _d === void 0 ? this._onRenderList : _d, _e = _a.onRenderItem, onRenderItem = _e === void 0 ? this._onRenderItem : _e, _f = _a.onRenderOption, onRenderOption = _f === void 0 ? this._onRenderOptionContent : _f, allowFreeform = _a.allowFreeform, customStyles = _a.styles, theme = _a.theme, persistMenu = _a.persistMenu, multiSelect = _a.multiSelect, _g = _a.hoisted, suggestedDisplayValue = _g.suggestedDisplayValue, selectedIndices = _g.selectedIndices, currentOptions = _g.currentOptions; var isOpen = this.state.isOpen; this._currentVisibleValue = this._getVisibleValue(); // Single select is already accessible since the whole text is selected // when focus enters the input. Since multiselect appears to clear the input // it needs special accessible text var multiselectAccessibleText = multiSelect ? this._getMultiselectDisplayString(selectedIndices, currentOptions, suggestedDisplayValue) : undefined; var divProps = (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties, [ 'onChange', 'value', 'aria-describedby', 'aria-labelledby', ]); var hasErrorMessage = errorMessage && errorMessage.length > 0 ? true : false; this._classNames = this.props.getClassNames ? this.props.getClassNames(theme, !!isOpen, !!disabled, !!required, !!this._hasFocus(), !!allowFreeform, !!hasErrorMessage, className) : (0, ComboBox_classNames_1.getClassNames)((0, ComboBox_styles_1.getStyles)(theme, customStyles), className, !!isOpen, !!disabled, !!required, !!this._hasFocus(), !!allowFreeform, !!hasErrorMessage); var comboBoxWrapper = this._renderComboBoxWrapper(multiselectAccessibleText, errorMessageId); return (React.createElement("div", tslib_1.__assign({}, divProps, { ref: this.props.hoisted.mergedRootRef, className: this._classNames.container }), onRenderLabel({ props: this.props, multiselectAccessibleText: multiselectAccessibleText }, this._onRenderLabel), comboBoxWrapper, (persistMenu || isOpen) && onRenderContainer(tslib_1.__assign(tslib_1.__assign({}, this.props), { onRenderList: onRenderList, onRenderItem: onRenderItem, onRenderOption: onRenderOption, options: currentOptions.map(function (item, index) { return (tslib_1.__assign(tslib_1.__assign({}, item), { index: index })); }), onDismiss: this._onDismiss }), this._onRenderContainer), hasErrorMessage && (React.createElement("div", { role: "alert", id: errorMessageId, className: this._classNames.errorMessage }, errorMessage)))); }; ComboBoxInternal.prototype._getPendingString = function (currentPendingValue, currentOptions, index) { return currentPendingValue !== null && currentPendingValue !== undefined ? currentPendingValue : indexWithinBounds(currentOptions, index) ? getPreviewText(currentOptions[index]) : ''; }; /** * Returns a string that concatenates all of the selected values * for multiselect combo box. */ ComboBoxInternal.prototype._getMultiselectDisplayString = function (selectedIndices, currentOptions, suggestedDisplayValue) { var displayValues = []; for (var idx = 0; selectedIndices && idx < selectedIndices.length; idx++) { var index = selectedIndices[idx]; if (currentOptions[index].itemType !== SelectableOption_1.SelectableOptionMenuItemType.SelectAll) { displayValues.push(indexWithinBounds(currentOptions, index) ? currentOptions[index].text : normalizeToString(suggestedDisplayValue)); } } var _a = this.props.multiSelectDelimiter, multiSelectDelimiter = _a === void 0 ? ', ' : _a; return displayValues.join(multiSelectDelimiter); }; /** * Do not dismiss if the window resizes or scrolls within 100ms of opening * This prevents the Android issue where pickers immediately dismiss on open, because the keyboard appears * @param ev - the event triggering the dismiss check * @returns a boolean indicating whether the callout dismissal should be prevented */ ComboBoxInternal.prototype._preventDismissOnScrollOrResize = function (ev) { if (this._overrideScrollDismiss && (ev.type === 'scroll' || ev.type === 'resize')) { return true; } return false; }; /** * Process the new input's new value when the combo box allows freeform entry * @param updatedValue - the input's newly changed value * @returns the index of the matched option, -1 if no match was found */ ComboBoxInternal.prototype._processInputChangeWithFreeform = function (updatedValue) { var currentOptions = this.props.hoisted.currentOptions; var newCurrentPendingValueValidIndex = -1; // if the new value is empty, see if we have an exact match and then set the pending info if (updatedValue === '') { var items = currentOptions .map(function (item, index) { return (tslib_1.__assign(tslib_1.__assign({}, item), { index: index })); }) .filter(function (option) { return isNormalOption(option) && !option.disabled && getPreviewText(option) === updatedValue; }); // if we found a match remember the index if (items.length === 1) { newCurrentPendingValueValidIndex = items[0].index; } this._setPendingInfo(updatedValue, newCurrentPendingValueValidIndex, updatedValue); return newCurrentPendingValueValidIndex; } // Remember the original value and then make the value lowercase for comparison var originalUpdatedValue = updatedValue; updatedValue = updatedValue.toLocaleLowerCase(); var newSuggestedDisplayValue = ''; // If autoComplete is on, attempt to find a match from the available options if (this.props.autoComplete === 'on') { // If autoComplete is on, attempt to find a match where the text of an option starts with the updated value var items = currentOptions .map(function (item, index) { return (tslib_1.__assign(tslib_1.__assign({}, item), { index: index })); }) .filter(function (option) { return isNormalOption(option) && !option.disabled && getPreviewText(option).toLocaleLowerCase().indexOf(updatedValue) === 0; }); if (items.length > 0) { // use ariaLabel as the value when the option is set var text = getPreviewText(items[0]); // If the user typed out the complete option text, we don't need any suggested display text anymore newSuggestedDisplayValue = text.toLocaleLowerCase() !== updatedValue ? text : ''; // remember the index of the match we found newCurrentPendingValueValidIndex = items[0].index; } } else { // If autoComplete is off, attempt to find a match only when the value is exactly equal to the text of an option var items = currentOptions .map(function (item, index) { return (tslib_1.__assign(tslib_1.__assign({}, item), { index: index })); }) .filter(function (option) { return isNormalOption(option) && !option.disabled && getPreviewText(option).toLocaleLowerCase() === updatedValue; }); // if we found a match remember the index if (items.length === 1) { newCurrentPendingValueValidIndex = items[0].index; } } // Set the updated state this._setPendingInfo(originalUpdatedValue, newCurrentPendingValueValidIndex, newSuggestedDisplayValue); return newCurrentPendingValueValidIndex; }; /** * Process the new input's new value when the combo box does not allow freeform entry * @param updatedValue - the input's newly changed value * @returns the index of the matched option */ ComboBoxInternal.prototype._processInputChangeWithoutFreeform = function (updatedValue) { var _this = this; var _a = this.state, currentPendingValue = _a.currentPendingValue, currentPendingValueValidIndex = _a.currentPendingValueValidIndex; if (this.props.autoComplete === 'on') { // If autoComplete is on while allow freeform is off, // we will remember the key press and build up a string to attempt to match // as long as characters are typed within a the timeout span of each other, // otherwise we will clear the string and start building a new one on the next keypress. // Also, only do this processing if we have a non-empty value if (updatedValue !== '') { // If we have a pending autocomplete clearing task, // we know that the user is typing with key press happening // within the timeout of each other so remove the clearing task // and continue building the pending value with the updated value if (this._autoCompleteTimeout) { this._async.clearTimeout(this._autoCompleteTimeout); this._autoCompleteTimeout = undefined; updatedValue = normalizeToString(currentPendingValue) + updatedValue; } var matchingIndex = this._updateAutocompleteIndexWithoutFreeform(updatedValue); // Schedule a timeout to clear the pending value after the timeout span this._autoCompleteTimeout = this._async.setTimeout(function () { _this._autoCompleteTimeout = undefined; }, ReadOnlyPendingAutoCompleteTimeout); return matchingIndex; } } // If we get here, autoComplete is off. // Remember we are not allowing freeform, so at this point, if we have a pending valid value index // use that; otherwise use the selectedIndex var index = currentPendingValueValidIndex >= 0 ? currentPendingValueValidIndex : this._getFirstSelectedIndex(); // Since we are not allowing freeform, we need to // set both the pending and suggested values/index // to allow us to select all content in the input to // give the illusion that we are readonly (e.g. freeform off) this._setPendingInfoFromIndex(index); return index; }; ComboBoxInternal.prototype._updateAutocompleteIndexWithoutFreeform = function (updatedValue) { var currentOptions = this.props.hoisted.currentOptions; var originalUpdatedValue = updatedValue; updatedValue = updatedValue.toLocaleLowerCase(); // If autoComplete is on, attempt to find a match where the text of an option starts with the updated value var items = currentOptions .map(function (item, i) { return (tslib_1.__assign(tslib_1.__assign({}, item), { index: i })); }) .filter(function (option) { return isNormalOption(option) && !option.disabled && option.text.toLocaleLowerCase().indexOf(updatedValue) === 0; }); // If we found a match, update the state if (items.length > 0) { this._setPendingInfo(originalUpdatedValue, items[0].index, getPreviewText(items[0])); return items[0].index; } return -1; }; ComboBoxInternal.prototype._getFirstSelectedIndex = function () { var selectedIndices = this.props.hoisted.selectedIndices; return (selectedIndices === null || selectedIndices === void 0 ? void 0 : selectedIndices.length) ? selectedIndices[0] : -1; }; /** * Walk along the options starting at the index, stepping by the delta (positive or negative) * looking for the next valid selectable index (e.g. skipping headings and dividers) * @param index - the index to get the next selectable index from * @param delta - optional delta to step by when finding the next index, defaults to 0 * @returns - the next valid selectable index. If the new index is outside of the bounds, * it will snap to the edge of the options array. If delta == 0 and the given index is not selectable */ ComboBoxInternal.prototype._getNextSelectableIndex = function (index, searchDirection) { var currentOptions = this.props.hoisted.currentOptions; var newIndex = index + searchDirection; newIndex = Math.max(0, Math.min(currentOptions.length - 1, newIndex)); if (!indexWithinBounds(currentOptions, newIndex)) { return -1; } var option = currentOptions[newIndex]; if (!isSelectableOption(option) || option.hidden === true) { // Should we continue looking for an index to select? if (searchDirection !== SearchDirection.none && ((newIndex > 0 && searchDirection < SearchDirection.none) || (newIndex >= 0 && newIndex < currentOptions.length && searchDirection > SearchDirection.none))) { newIndex = this._getNextSelectableIndex(newIndex, searchDirection); } else { // If we cannot perform a useful search just return the index we were given return index; } } // We have the next valid selectable index, return it return newIndex; }; /** * Set the selected index. Note, this is * the "real" selected index, not the pending selected index * @param index - the index to set (or the index to set from if a search direction is provided) * @param searchDirection - the direction to search along the options from the given index */ ComboBoxInternal.prototype._setSelectedIndex = function (index, submitPendingValueEvent, searchDirection) { if (searchDirection === void 0) { searchDirection = SearchDirection.none; } var _a = this.props, onChange = _a.onChange, onPendingValueChanged = _a.onPendingValueChanged, _b = _a.hoisted, initialIndices = _b.selectedIndices, currentOptions = _b.currentOptions; // Clone currentOptions and selectedIndices so we don't mutate state var selectedIndices = initialIndices ? initialIndices.slice() : []; var changedOptions = currentOptions.slice(); // Find the next selectable index, if searchDirection is none // we will get our starting index back index = this._getNextSelectableIndex(index, searchDirection); if (!indexWithinBounds(currentOptions, index)) { return; } // Are we at a new index? If so, update the state, otherwise // there is nothing to do if (this.props.multiSelect || selectedIndices.length < 1 || (selectedIndices.length === 1 && selectedIndices[0] !== index)) { var option = tslib_1.__assign({}, currentOptions[index]); // if option doesn't existing, or option is disabled, we noop if (!option || option.disabled) { return; } if (this.props.multiSelect) { // Setting the initial state of option.selected in Multi-select combo box by checking the // selectedIndices array and overriding the undefined issue option.selected = option.selected !== undefined ? !option.selected : selectedIndices.indexOf(index) < 0; // handle changing all options if SelectAll is changed if (option.itemType === SelectableOption_1.SelectableOptionMenuItemType.SelectAll) { selectedIndices = []; // if select all is set to checked, push all selectable option indices if (option.selected) { currentOptions.forEach(function (currentOption, i) { if (!currentOption.disabled && isSelectableOption(currentOption)) { selectedIndices.push(i); changedOptions[i] = tslib_1.__assign(tslib_1.__assign({}, currentOption), { selected: true }); } }); } // otherwise un-check all options else { changedOptions = currentOptions.map(function (currentOption) { return (tslib_1.__assign(tslib_1.__assign({}, currentOption), { selected: false })); }); } } // otherwise update the individual option else { if (option.selected && selectedIndices.indexOf(index) < 0) { selectedIndices.push(index); } else if (!option.selected && selectedIndices.indexOf(index) >= 0) { selectedIndices = selectedIndices.filter(function (value) { return value !== index; }); } changedOptions[index] = option; // If SelectAll exists and another option was toggled, update the SelectAll option's state var selectAllOption = changedOptions.filter(function (o) { return o.itemType === SelectableOption_1.SelectableOptionMenuItemType.SelectAll; })[0]; if (selectAllOption) { var selectAllState = this._isSelectAllChecked(selectedIndices); var selectAllIndex_1 = changedOptions.indexOf(selectAllOption); if (selectAllState) { selectedIndices.push(selectAllIndex_1); changedOptions[selectAllIndex_1] = tslib_1.__assign(tslib_1.__assign({}, selectAllOption), { selected: true }); } else { selectedIndices = selectedIndices.filter(function (value) { return value !== selectAllIndex_1; }); changedOptions[selectAllIndex_1] = tslib_1.__assign(tslib_1.__assign({}, selectAllOption), { selected: false }); } } } } else { selectedIndices[0] = index; } submitPendingValueEvent.persist(); // Only setState if combo box is uncontrolled. if (this.props.selectedKey || this.props.selectedKey === null) { // If combo box value is changed, revert preview first if (this._hasPendingValue && onPendingValueChanged) { onPendingValueChanged(); this._hasPendingValue = false; } } else { this.props.hoisted.setSelectedIndices(selectedIndices); this.props.hoisted.setCurrentOptions(changedOptions); // If ComboBox value is changed, revert preview first if (this._hasPendingValue && onPendingValueChanged) { onPendingValueChanged(); this._hasPendingValue = false; } } // Call onChange after state is updated if (onChange) { onChange(submitPendingValueEvent, option, index, getPreviewText(option)); } } if (this.props.multiSelect && this.state.isOpen) { return; } // clear all of the pending info this._clearPendingInfo(); }; /** * Submit a pending value if there is one */ ComboBoxInternal.prototype._submitPendingValue = function (submitPendingValueEvent) { var _a; var _b = this.props, onChange = _b.onChange, allowFreeform = _b.allowFreeform, autoComplete = _b.autoComplete, multiSelect = _b.multiSelect, hoisted = _b.hoisted; var currentOptions = hoisted.currentOptions; var _c = this.state, currentPendingValue = _c.currentPendingValue, currentPendingValueValidIndex = _c.currentPendingValueValidIndex, currentPendingValueValidIndexOnHover = _c.currentPendingValueValidIndexOnHover; var selectedIndices = this.props.hoisted.selectedIndices; // Do not submit any pending value if we // have already initiated clearing the pending info if (this._processingClearPendingInfo) { return; } // If we allow freeform we need to handle that if (allowFreeform) { // if currentPendingValue is null or undefined the user did not submit anything // (not even empty because we would have stored that as the pending value) if (currentPendingValue === null || currentPendingValue === undefined) { // if a user did not type anything they may just hovered over an item if (currentPendingValueValidIndexOnHover >= 0) { this._setSelectedIndex(currentPendingValueValidIndexOnHover, submitPendingValueEvent); this._clearPendingInfo(); } return; } // Check to see if the user typed an exact match if (indexWithinBounds(currentOptions, currentPendingValueValidIndex)) { var pendingOptionText = getPreviewText(currentOptions[currentPendingValueValidIndex]).toLocaleLowerCase(); var autofill = this._autofill.current; // By exact match, that means: our pending value is the same as the pending option text OR // the pending option starts with the pending value and we have an "autoComplete" selection // where the total length is equal to pending option length OR // the live value in the underlying input matches the pending option; update the state if (currentPendingValue.toLocaleLowerCase() === pendingOptionText || (autoComplete && pendingOptionText.indexOf(currentPendingValue.toLocaleLowerCase()) === 0 && (autofill === null || autofill === void 0 ? void 0 : autofill.isValueSelected) && currentPendingValue.length + (autofill.selectionEnd - autofill.selectionStart) === pendingOptionText.length) || ((_a = autofill === null || autofill === void 0 ? void 0 : autofill.inputElement) === null || _a === void 0 ? void 0 : _a.value.toLocaleLowerCase()) === pendingOptionText) { this._setSelectedIndex(currentPendingValueValidIndex, submitPendingValueEvent); if (multiSelect && this.state.isOpen) { return; } this._clearPendingInfo(); return; } } if (onChange) { if (onChange) { // trigger onChange to clear value onChange(submitPendingValueEvent, undefined, undefined, currentPendingValue); } } else { // If we are not controlled, create a new selected option var newOption = { key: currentPendingValue || (0, Utilities_1.getId)(), text: normalizeToString(currentPendingValue), }; // If it's multiselect, set selected state to true if (multiSelect) { newOption.selected = true; } var newOptions = currentOptions.concat([newOption]); if (selectedIndices) { if (!multiSelect) { selectedIndices = []; } selectedIndices.push(newOptions.length - 1); } hoisted.setCurrentOptions(newOptions); hoisted.setSelectedIndices(selectedIndices); } } else if (currentPendingValueValidIndex >= 0) { // Since we are not allowing freeform, we must have a matching // to be able to update state this._setSelectedIndex(currentPendingValueValidIndex, submitPendingValueEvent); } else if (currentPendingValueValidIndexOnHover >= 0) { // If all else failed and we were hovering over an item, select it this._setSelectedIndex(currentPendingValueValidIndexOnHover, submitPendingValueEvent); } // Finally, clear the pending info this._clearPendingInfo(); }; ComboBoxInternal.prototype._onCalloutLayerMounted = function () { // In persistMenu mode _onLayerMounted is only called once for the lifetime // of the component. Any functionality required for callout "on mount" can // go here so that we can also call it again during callout dismissal to reset // object state. this._gotMouseMove = false; }; // Render separator ComboBoxInternal.prototype._renderSeparator = function (item) { var index = item.index, key = item.key; if (index && index > 0) { return React.createElement("div", { role: "presentation", key: key, className: this._classNames.divider }); } return null; }; ComboBoxInternal.prototype._renderHeader = function (item) { var _a = this.props.onRenderOption, onRenderOption = _a === void 0 ? this._onRenderOptionContent : _a; return (React.createElement("div", { id: item.id, key: item.key, className: this._classNames.header }, onRenderOption(item, this._onRenderOptionContent))); }; ComboBoxInternal.prototype._renderCheckboxLabel = function (item) { var _a = this.props.onRenderOption, onRenderOption = _a === void 0 ? this._onRenderMultiselectOptionContent : _a; return onRenderOption(item, this._onRenderMultiselectOptionContent); }; /** * If we are coming from a mouseOut: * there is no visible selected option. * * Else if We are hovering over an item: * that gets the selected look. * * Else: * Use the current valid pending index if it exists OR * we do not have a valid index and we currently have a pending input value, * otherwise use the selected index * */ ComboBoxInternal.prototype._isOptionHighlighted = function (index) { var currentPendingValueValidIndexOnHover = this.state.currentPendingValueValidIndexOnHover; // If the hover state is set to clearAll, don't show a selected index. // Note, this happens when the user moused out of the menu items if (currentPendingValueValidIndexOnHover === HoverStatus.clearAll) { return false; } return currentPendingValueValidIndexOnHover >= 0 ? currentPendingValueValidIndexOnHover === index : this._isOptionSelected(index); }; ComboBoxInternal.prototype._isOptionSelected = function (index) { return this._getPendingSelectedIndex(true /* includePendingValue */) === index; }; ComboBoxInternal.prototype._isOptionChecked = function (index) { if (this.props.multiSelect && index !== undefined && this.props.hoisted.selectedIndices) { var idxOfSelectedIndex = -1; idxOfSelectedIndex = this.props.hoisted.selectedIndices.indexOf(index); return idxOfSelectedIndex >= 0; } return false; }; ComboBoxInternal.prototype._isOptionIndeterminate = function (index) { var _a = this.props, multiSelect = _a.multiSelect, hoisted = _a.hoisted; if (multiSelect && index !== undefined && hoisted.selectedIndices && hoisted.currentOptions) { var option = hoisted.currentOptions[index]; if (option && option.itemType === SelectableOption_1.SelectableOptionMenuItemType.SelectAll) { return hoisted.selectedIndices.length > 0 && !this._isSelectAllChecked(); } } return false; }; ComboBoxInternal.prototype._isSelectAllChecked = function (testIndices) { var _a = this.props, multiSelect = _a.multiSelect, hoisted = _a.hoisted; var selectAllOption = hoisted.currentOptions.find(function (option) { return option.itemType === SelectableOption_1.SelectableOptionMenuItemType.SelectAll; }); var selectedIndices = testIndices || hoisted.selectedIndices; if (!multiSelect || !selectedIndices || !selectAllOption) { return false; } // start by not including the select all option itself var selectAllIndex = hoisted.currentOptions.indexOf(selectAllOption); var compareSelectedIndices = selectedIndices.filter(function (value) { return value !== selectAllIndex; }); // get array of selectable options, excluding disabled options, headers, and dividers var selectableOptions = hoisted.currentOptions.filter(function (option) { return !option.disabled && option.itemType !== SelectableOption_1.SelectableOptionMenuItemType.SelectAll && isSelectableOption(option); }); return compareSelectedIndices.length === selectableOptions.length; }; /** * Gets the pending selected index taking into account valueValidIndex and selectedIndex * @param includeCurrentPendingValue - Should we include the currentPendingValue when * finding the index */ ComboBoxInternal.prototype._getPendingSelectedIndex = function (includeCurrentPendingValue) { var _a = this.state, currentPendingValueValidIndex = _a.currentPendingValueValidIndex, currentPendingValue = _a.currentPendingValue; return currentPendingValueValidIndex >= 0 || (includeCurrentPendingValue && currentPendingValue !== null && currentPendingValue !== undefined) ? currentPendingValueValidIndex : this.props.multiSelect ? -1 : this._getFirstSelectedIndex(); }; /** * Scroll the selected element into view */ ComboBoxInternal.prototype._scrollIntoView = function () { var _a = this.props, onScrollToItem = _a.onScrollToItem, scrollSelectedToTop = _a.scrollSelectedToTop; var currentPendingSelectedIndex = this._getPendingSelectedIndex(true); if (onScrollToItem) { // Use the custom scroll handler onScrollToItem(currentPendingSelectedIndex >= 0 ? currentPendingSelectedIndex : this._getFirstSelectedIndex()); return; } var scrollToElement = this._selectedElement.current; // in multi-select there are multiple selected elements, so we use the pending select index // to locate the option to scroll to. if (this.props.multiSelect && this._comboBoxMenu.current) { scrollToElement = findFirstDescendant(this._comboBoxMenu.current, function (element) { var _a; return ((_a = element.dataset) === null || _a === void 0 ? void 0 : _a.index) === currentPendingSelectedIndex.toString(); }); } if (scrollToElement && scrollToElement.offsetParent) { var alignToTop = true; // We are using refs, scroll the ref into view if (this._comboBoxMenu.current && this._comboBoxMenu.current.offsetParent) { var scrollableParent = this._comboBoxMenu.current.offsetParent; var selectedElement = scrollToElement.offsetParent; var _b = selectedElement, offsetHeight = _b.offsetHeight, offsetTop = _b.offsetTop; var _c = scrollableParent, parentOffsetHeight = _c.offsetHeight, scrollTop = _c.scrollTop; var isAbove = offsetTop < scrollTop; var isBelow = offsetTop + offsetHeight > scrollTop + parentOffsetHeight; if (isAbove || scrollSelectedToTop) { alignToTop = false; scrollableParent.scrollTo(0, offsetTop); } else if (isBelow) { scrollableParent.scrollTo(0, offsetTop - parentOffsetHeight + offsetHeight); } } // if _comboboxMenu doesn't exist, fall back to scrollIntoView else { scrollToElement.offsetParent.scrollIntoView(alignToTop); } } }; /** * Click handler for the menu items * to select the item and also close the menu * @param index - the index of the item that was clicked */ ComboBoxInternal.prototype._onItemClick = function (item) { var _this = this; var onItemClick = this.props.onItemClick; var index = item.index; return function (ev) { // only close the callout when it's in single-select mode if (!_this.props.multiSelect) { // ensure that focus returns to the input, not the button _this._autofill.current && _this._autofill.current.focus(); _this.setState({ isOpen: false, }); } // Continue processing the click only after // performing menu close / control focus(inner working) onItemClick && onItemClick(ev, item, index); _this._setSelectedIndex(index, ev); }; }; /** * Reset the selected index by clearing the * input (of any pending text), clearing the pending state, * and setting the suggested display value to the last * selected state text */ ComboBoxInternal.prototype._resetSelectedIndex = function () { var currentOptions = this.props.hoisted.currentOptions; this._clearPendingInfo(); var selectedIndex = this._getFirstSelectedIndex(); if (selectedIndex > 0 && selectedIndex < currentOptions.length) { this.props.hoisted.setSuggestedDisplayValue(currentOptions[selectedIndex].text); } else if (this.props.text) { // If we had a value initially, restore it this.props.hoisted.setSuggestedDisplayValue(this.props.text); } }; /** * Clears the pending info state */ ComboBoxInternal.prototype._clearPendingInfo = function () { this._processingClearPendingInfo = true; this.props.hoisted.setSuggestedDisplayValue(undefined); this.setState({ currentPendingValue: undefined, currentPendingValueValidIndex: -1, currentPendingValueValidIndexOnHover: HoverStatus.default, }, this._onAfterClearPendingInfo); }; /** * Set the pending info * @param currentPendingValue - new pending value to set * @param currentPendingValueValidIndex - new pending value index to set * @param suggestedDisplayValue - new suggest display value to set */ ComboBoxInternal.prototype._setPendingInfo = function (currentPendingValue, currentPendingValueValidIndex, suggestedDisplayValue) { if (currentPendingValueValidIndex === void 0) { currentPendingValueValidIndex = -1; } if (this._processingClearPendingInfo) { return; } this.props.hoisted.setSuggestedDisplayValue(suggestedDisplayValue); this.setState({ currentPendingValue: normalizeToString(currentPendingValue), currentPendingValueValidIndex: currentPendingValueValidIndex, currentPendingValueValidIndexOnHover: HoverStatus.default, }); }; /** * Set the pending info from the given index * @param index - the index to set the pending info from */ ComboBoxInternal.prototype._setPendingInfoFromIndex = function (index) { var currentOptions = this.props.hoisted.currentOptions; if (index >= 0 && index < currentOptions.length) { var option = currentOptions[index]; this._setPendingInfo(getPreviewText(option), index, getPreviewText(option)); } else { this._clearPendingInfo(); } }; /** * Sets the pending info for the combo box * @param index - the index to search from * @param searchDirection - the direction to search */ ComboBoxInternal.prototype._setPendingInfoFromIndexAndDirection = function (index, searchDirection) { var currentOptions = this.props.hoisted.currentOptions; // update index to allow content to wrap if (searchDirection === SearchDirection.forward && index >= currentOptions.length - 1) { index = -1; } else if (searchDirection === SearchDirection.backward && index <= 0) { index = currentOptions.length; } // get the next "valid" index var indexUpdate = this._getNextSelectableIndex(index, searchDirection); // if the two indices are equal we didn't move and // we should attempt to get get the first/last "valid" index to use // (Note, this takes care of the potential cases where the first/last // item is not focusable), otherwise use the updated index if (index === indexUpdate) { if (searchDirection === SearchDirection.forward) { index = this._getNextSelectableIndex(-1, searchDirection); } else if (searchDirection === SearchDirection.backward) { index = this._getNextSelectableIndex(currentOptions.length, searchDirection); } } else { index = indexUpdate; } if (indexWithinBounds(currentOptions, index)) { this._setPendingInfoFromIndex(index); } }; ComboBoxInternal.prototype._notifyPendingValueChanged = function (prevState) { var onPendingValueChanged = this.props.onPendingValueChanged; if (!onPendingValueChanged) { return; } var currentOptions = this.props.hoisted.currentOptions; var _a = this.state, currentPendingValue = _a.currentPendingValue, currentPendingValueValidIndex = _a.currentPendingValueValidIndex, currentPendingValueValidIndexOnHover = _a.currentPendingValueValidIndexOnHover; var newPendingIndex = undefined; var newPendingValue = undefined; if (currentPendingValueValidIndexOnHover !== prevState.currentPendingValueValidIndexOnHover && indexWithinBounds(currentOptions, currentPendingValueValidIndexOnHover)) { // Set new pending index if hover index was changed newPendingIndex = currentPendingValueValidIndexOnHover; } else if (currentPendingValueValidIndex !== prevState.currentPendingValueValidIndex && indexWithinBounds(currentOptions, currentPendingValueValidIndex)) { // Set new pending index if currentPendingValueValidIndex was changed newPendingIndex = currentPendingValueValidIndex; } else if (currentPendingValue !== prevState.currentPendingValue) { // Set pendingValue in the case it was changed and no index was changed newPendingValue = currentPendingValue; } // Notify when there is a new pending index/value. Also, if there is a pending value, it needs to send undefined. if (newPendingIndex !== undefined || newPendingValue !== undefined || this._hasPendingValue) { onPendingValueChanged(newPendingIndex !== undefined ? currentOptions[newPendingIndex] : undefined, newPendingIndex, newPendingValue); this._hasPendingValue = newPendingIndex !== undefined || newPendingValue !== undefined; } }; /** * Sets the isOpen state and updates focusInputAfterClose */ ComboBoxInternal.prototype._setOpenStateAndFocusOnClose = function (isOpen, focusInputAfterClose) { this._focusInputAfterClose = focusInputAfterClose; this.setState({ isOpen: isOpen }); }; ComboBoxInternal.prototype._onOptionMouseEnter = function (index) { if (this._shouldIgnoreMouseEvent()) { return; } this.setState({ currentPendingValueValidIndexOnHover: index, }); }; ComboBoxInternal.prototype._onOptionMouseMove = function (index) { this._gotMouseMove = true; if (!this._isScrollIdle || this.state.currentPendingValueValidIndexOnHover === index) { return; } this.setState({ currentPendingValueValidIndexOnHover: index, }); }; ComboBoxInternal.prototype._shouldIgnoreMouseEvent = function () { return !this._isScrollIdle || !this._gotMouseMove; }; /** * Handle dismissing the menu and eating the required key event when disabled * @param ev - the keyboard event that was fired */ ComboBoxInternal.prototype._handleInputWhenDisabled = function (ev) { // If we are disabled, close the menu (if needed) // and eat all keystrokes other than TAB or ESC if (this.props.disabled) { if (this.state.isOpen) { this.setState({ isOpen: false }); } // When disabled stop propagation and prevent default // of the event unless we have a tab, escape, or function key if (ev !== null && // eslint-disable-next-line deprecation/deprecation ev.which !== Utilities_1.KeyCodes.tab && // eslint-disable-next-line deprecation/deprecation ev.which !== Utilities_1.KeyCodes.escape && // eslint-disable-next-line deprecation/deprecation (ev.which < 112 /* F1 */ || ev.which > 123) /* F12 */) { ev.stopPropagation(); ev.preventDefault(); } } }; ComboBoxInternal.prototype._handleTouchAndPointerEvent = function () { var _this = this; // If we already have an existing timeout from a previous touch and pointer event // cancel that timeout so we can set a nwe one. if (this._lastTouchTimeoutId !== undefined) { this._async.clearTimeout(this._lastTouchTimeoutId); this._lastTouchTimeoutId = undefined; } this._processingTouch = true; this._lastTouchTimeoutId = this._async.setTimeout(function () { _this._processingTouch = false; _this._lastTouchTimeoutId = undefined; }, TouchIdleDelay); }; /** * Get the styles for the current option. * @param item - Item props for the current option */ ComboBoxInternal.prototype._getCaretButtonStyles = function () { var customCaretDownButtonStyles = this.props.caretDownButtonStyles; return (0, ComboBox_styles_1.getCaretDownButtonStyles)(this.props.theme, customCaretDownButtonStyles); }; /** * Get the styles for the current option. * @param item - Item props for the current option */ ComboBoxInternal.prototype._getCurrentOptionStyles = function (item) { var customStylesForAllOptions = this.props.comboBoxOptionStyles; var customStylesForCurrentOption = item.styles; return (0, ComboBox_styles_1.getOptionStyles)(this.props.theme, customStylesForAllOptions, customStylesForCurrentOption, this._isPendingOption(item), item.hidden, this._isOptionHighlighted(item.index)); }; /** * Get the aria autocomplete value for the combo box * @returns 'inline' if auto-complete automatically dynamic, 'both' if we have a list of possible values to pick from * and can dynamically populate input, and 'list' if auto-complete is not enabled as selection is the only option. * Ideally, this should be 'none' if auto-complete is not enabled, but there is a known bug in Edge * where the callout may appear over the combo box if this attribute is set to 'none' */ ComboBoxInternal.prototype._getAriaAutoCompleteValue = function () { var autoComplete = !this.props.disabled && this.props.autoComplete === 'on'; return autoComplete ? (this.props.allowFreeform ? 'inline' : 'both') : 'list'; }; ComboBoxInternal.prototype._isPendingOption = function (item) { return item && item.index === this.state.currentPendingValueValidIndex; }; /** * Returns true if the component has some kind of focus. If it's either focusing or if it's focused */ ComboBoxInternal.prototype._hasFocus = function () { return this.state.focusState !== 'none'; }; ComboBoxInternal = tslib_1.__decorate([ (0, Utilities_1.customizable)('ComboBox', ['theme', 'styles'], true) ], ComboBoxInternal); return ComboBoxInternal; }(React.Component)); /** * Get the indices of the options that are marked as selected * @param options - the combo box options * @param selectedKeys - the known selected keys to find * @returns - an array of the indices of the selected options, empty array if nothing is selected */ function getSelectedIndices(options, selectedKeys) { if (!options || !selectedKeys) { return []; } var selectedIndices = {}; options.forEach(function (option, index) { if (option.selected) { selectedIndices[index] = true; } }); var _loop_1 = function (selectedKey) { var index = (0, Utilities_1.findIndex)(options, function (option) { return option.key === selectedKey; }); if (index > -1) { selectedIndices[index] = true; } }; for (var _i = 0, selectedKeys_1 = selectedKeys; _i < selectedKeys_1.length; _i++) { var selectedKey = selectedKeys_1[_i]; _loop_1(selectedKey); } return Object.keys(selectedIndices).map(Number).sort(); } /** * Given default selected key(s) and selected key(s), return the selected keys(s). * When default selected key(s) are available, they take precedence and return them instead of selected key(s). * * @returns No matter what specific types the input parameters are, always return an array of * either strings or numbers instead of primitive type. This normalization makes caller's logic easier. */ function buildDefaultSelectedKeys(defaultSelectedKey, selectedKey) { var selectedKeys = buildSelectedKeys(defaultSelectedKey); if (selectedKeys.length) { return selectedKeys; } return buildSelectedKeys(selectedKey); } function buildSelectedKeys(selectedKey) { if (selectedKey === undefined) { return []; } // need to cast here so typescript does not complain return (selectedKey instanceof Array ? selectedKey : [selectedKey]); } function normalizeToString(value) { return value || ''; } /** * Is the index within the bounds of the array? * @param options - options to check if the index is valid for * @param index - the index to check * @returns - true if the index is valid for the given options, false otherwise */ function indexWithinBounds(options, index) { return !!options && index >= 0 && index < options.length; } /** Whether this is a normal option, not a header or divider or select all. */ function isNormalOption(option) { return (option.itemType !== SelectableOption_1.SelectableOptionMenuItemType.Header && option.itemType !== SelectableOption_1.SelectableOptionMenuItemType.Divider && option.itemType !== SelectableOption_1.SelectableOptionMenuItemType.SelectAll); } /** Whether this is a selectable option, not a header or divider. */ function isSelectableOption(option) { return (option.itemType !== SelectableOption_1.SelectableOptionMenuItemType.Header && option.itemType !== SelectableOption_1.SelectableOptionMenuItemType.Divider); } /** * For scenarios where the option's `text` prop contains embedded styles, we use the option's * `ariaLabel` value as the text in the input and for autocomplete matching. We know to use this * when the `useAriaLabelAsText` prop is set to true. */ function getPreviewText(item) { return item.useAriaLabelAsText && item.ariaLabel ? item.ariaLabel : item.text; } /** * Returns true if the key for the event is alt (Mac option) or meta (Mac command). */ function isAltOrMeta(ev) { // eslint-disable-next-line deprecation/deprecation return ev.which === Utilities_1.KeyCodes.alt || ev.key === 'Meta'; } //# sourceMappingURL=ComboBox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.styles.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.styles.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _a, _b; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.getCaretDownButtonStyles = exports.getOptionStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ComboBoxHeight = 32; var ComboBoxLineHeight = 30; var ComboBoxCaretDownWidth = 32; var ComboBoxOptionHeight = 36; var getDisabledStyles = (0, Utilities_1.memoizeFunction)(function (theme) { var _a; var semanticColors = theme.semanticColors; return { backgroundColor: semanticColors.disabledBackground, color: semanticColors.disabledText, cursor: 'default', selectors: (_a = { ':after': { borderColor: semanticColors.disabledBackground, } }, _a[Styling_1.HighContrastSelector] = { color: 'GrayText', selectors: { ':after': { borderColor: 'GrayText', }, }, }, _a), }; }); var listOptionHighContrastStyles = { selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a), }; var inputHighContrastStyles = { selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'WindowText', backgroundColor: 'Window' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _b), }; exports.getOptionStyles = (0, Utilities_1.memoizeFunction)(function (theme, customStylesForAllOptions, customOptionStylesForCurrentOption, isPending, isHidden, isSelected) { var _a; var palette = theme.palette, semanticColors = theme.semanticColors; var option = { textHoveredColor: semanticColors.menuItemTextHovered, textSelectedColor: palette.neutralDark, textDisabledColor: semanticColors.disabledText, backgroundHoveredColor: semanticColors.menuItemBackgroundHovered, backgroundPressedColor: semanticColors.menuItemBackgroundPressed, }; var optionStyles = { root: [ theme.fonts.medium, { backgroundColor: isPending ? option.backgroundHoveredColor : 'transparent', boxSizing: 'border-box', cursor: 'pointer', display: isHidden ? 'none' : 'block', width: '100%', height: 'auto', minHeight: ComboBoxOptionHeight, lineHeight: '20px', padding: '0 8px', position: 'relative', borderWidth: '1px', borderStyle: 'solid', borderColor: 'transparent', borderRadius: 0, wordWrap: 'break-word', overflowWrap: 'break-word', textAlign: 'left', selectors: tslib_1.__assign(tslib_1.__assign((_a = {}, _a[Styling_1.HighContrastSelector] = { border: 'none', borderColor: 'Background', }, _a), (!isHidden && { '&.ms-Checkbox': { display: 'flex', alignItems: 'center', }, })), { '&.ms-Button--command:hover:active': { backgroundColor: option.backgroundPressedColor, }, '.ms-Checkbox-label': { width: '100%', } }), }, isSelected ? [ { backgroundColor: 'transparent', color: option.textSelectedColor, selectors: { ':hover': [ { backgroundColor: option.backgroundHoveredColor, }, listOptionHighContrastStyles, ], }, }, (0, Styling_1.getFocusStyle)(theme, { inset: -1, isFocusedOnly: false }), listOptionHighContrastStyles, ] : [], ], rootHovered: { backgroundColor: option.backgroundHoveredColor, color: option.textHoveredColor, }, rootFocused: { backgroundColor: option.backgroundHoveredColor, }, rootDisabled: { color: option.textDisabledColor, cursor: 'default', }, optionText: { overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis', minWidth: '0px', maxWidth: '100%', wordWrap: 'break-word', overflowWrap: 'break-word', display: 'inline-block', }, optionTextWrapper: { maxWidth: '100%', display: 'flex', alignItems: 'center', }, }; return (0, Styling_1.concatStyleSets)(optionStyles, customStylesForAllOptions, customOptionStylesForCurrentOption); }); exports.getCaretDownButtonStyles = (0, Utilities_1.memoizeFunction)(function (theme, customStyles) { var _a, _b; var semanticColors = theme.semanticColors, fonts = theme.fonts; var caret = { buttonTextColor: semanticColors.bodySubtext, buttonTextHoveredCheckedColor: semanticColors.buttonTextChecked, buttonBackgroundHoveredColor: semanticColors.listItemBackgroundHovered, buttonBackgroundCheckedColor: semanticColors.listItemBackgroundChecked, buttonBackgroundCheckedHoveredColor: semanticColors.listItemBackgroundCheckedHovered, }; var buttonHighContrastStyles = { selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a), }; var styles = { root: { color: caret.buttonTextColor, fontSize: fonts.small.fontSize, position: 'absolute', top: 0, height: '100%', lineHeight: ComboBoxLineHeight, width: ComboBoxCaretDownWidth, textAlign: 'center', cursor: 'default', selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = tslib_1.__assign({ backgroundColor: 'ButtonFace', borderColor: 'ButtonText', color: 'ButtonText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _b), }, icon: { fontSize: fonts.small.fontSize, }, rootHovered: [ { backgroundColor: caret.buttonBackgroundHoveredColor, color: caret.buttonTextHoveredCheckedColor, cursor: 'pointer', }, buttonHighContrastStyles, ], rootPressed: [ { backgroundColor: caret.buttonBackgroundCheckedColor, color: caret.buttonTextHoveredCheckedColor, }, buttonHighContrastStyles, ], rootChecked: [ { backgroundColor: caret.buttonBackgroundCheckedColor, color: caret.buttonTextHoveredCheckedColor, }, buttonHighContrastStyles, ], rootCheckedHovered: [ { backgroundColor: caret.buttonBackgroundCheckedHoveredColor, color: caret.buttonTextHoveredCheckedColor, }, buttonHighContrastStyles, ], rootDisabled: [ getDisabledStyles(theme), { position: 'absolute', }, ], }; return (0, Styling_1.concatStyleSets)(styles, customStyles); }); exports.getStyles = (0, Utilities_1.memoizeFunction)(function (theme, customStyles, comboBoxOptionWidth) { var _a, _b, _c, _d, _e, _f; var semanticColors = theme.semanticColors, fonts = theme.fonts, effects = theme.effects; var root = { textColor: semanticColors.inputText, borderColor: semanticColors.inputBorder, borderHoveredColor: semanticColors.inputBorderHovered, borderPressedColor: semanticColors.inputFocusBorderAlt, borderFocusedColor: semanticColors.inputFocusBorderAlt, backgroundColor: semanticColors.inputBackground, erroredColor: semanticColors.errorText, }; var option = { headerTextColor: semanticColors.menuHeader, dividerBorderColor: semanticColors.bodyDivider, }; // placeholder style variables var placeholderHighContrastStyles = { selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { color: 'GrayText', }, _a), }; var placeholderStyles = [ { color: semanticColors.inputPlaceholderText, }, placeholderHighContrastStyles, ]; var placeholderStylesHovered = [ { color: semanticColors.inputTextHovered, }, placeholderHighContrastStyles, ]; var disabledPlaceholderStyles = [ { color: semanticColors.disabledText, }, placeholderHighContrastStyles, ]; var ComboBoxRootHighContrastFocused = tslib_1.__assign(tslib_1.__assign({ color: 'HighlightText', backgroundColor: 'Window' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), { selectors: { ':after': { borderColor: 'Highlight', }, } }); var focusBorderStyles = (0, Styling_1.getInputFocusStyle)(root.borderPressedColor, effects.roundedCorner2, 'border', 0); var styles = { container: {}, label: {}, labelDisabled: {}, root: [ theme.fonts.medium, { boxShadow: 'none', marginLeft: '0', paddingRight: ComboBoxCaretDownWidth, paddingLeft: 9, color: root.textColor, position: 'relative', outline: '0', userSelect: 'none', backgroundColor: root.backgroundColor, cursor: 'text', display: 'block', height: ComboBoxHeight, whiteSpace: 'nowrap', textOverflow: 'ellipsis', boxSizing: 'border-box', selectors: { '.ms-Label': { display: 'inline-block', marginBottom: '8px', }, '&.is-open': { selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = ComboBoxRootHighContrastFocused, _b), }, // setting border using pseudo-element here in order to // prevent chevron button to overlap ComboBox border under certain resolutions ':after': { pointerEvents: 'none', content: "''", position: 'absolute', left: 0, top: 0, bottom: 0, right: 0, borderWidth: '1px', borderStyle: 'solid', borderColor: root.borderColor, borderRadius: effects.roundedCorner2, }, }, }, ], rootHovered: { selectors: (_c = { ':after': { borderColor: root.borderHoveredColor, }, '.ms-ComboBox-Input': [ { color: semanticColors.inputTextHovered, }, (0, Styling_1.getPlaceholderStyles)(placeholderStylesHovered), inputHighContrastStyles, ] }, _c[Styling_1.HighContrastSelector] = tslib_1.__assign(tslib_1.__assign({ color: 'HighlightText', backgroundColor: 'Window' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), { selectors: { ':after': { borderColor: 'Highlight', }, } }), _c), }, rootPressed: [ { position: 'relative', selectors: (_d = {}, _d[Styling_1.HighContrastSelector] = ComboBoxRootHighContrastFocused, _d), }, ], rootFocused: [ { selectors: (_e = { '.ms-ComboBox-Input': [ { color: semanticColors.inputTextHovered, }, inputHighContrastStyles, ] }, _e[Styling_1.HighContrastSelector] = ComboBoxRootHighContrastFocused, _e), }, focusBorderStyles, ], rootDisabled: getDisabledStyles(theme), rootError: { selectors: { ':after': { borderColor: root.erroredColor, }, ':hover:after': { borderColor: semanticColors.inputBorderHovered, }, }, }, rootDisallowFreeForm: {}, input: [ (0, Styling_1.getPlaceholderStyles)(placeholderStyles), { backgroundColor: root.backgroundColor, color: root.textColor, boxSizing: 'border-box', width: '100%', height: '100%', borderStyle: 'none', outline: 'none', font: 'inherit', textOverflow: 'ellipsis', padding: '0', selectors: { '::-ms-clear': { display: 'none', }, }, }, inputHighContrastStyles, ], inputDisabled: [getDisabledStyles(theme), (0, Styling_1.getPlaceholderStyles)(disabledPlaceholderStyles)], errorMessage: [ theme.fonts.small, { color: root.erroredColor, marginTop: '5px', }, ], callout: { boxShadow: effects.elevation8, }, optionsContainerWrapper: { width: comboBoxOptionWidth, }, optionsContainer: { display: 'block', }, screenReaderText: Styling_1.hiddenContentStyle, header: [ fonts.medium, { fontWeight: Styling_1.FontWeights.semibold, color: option.headerTextColor, backgroundColor: 'none', borderStyle: 'none', height: ComboBoxOptionHeight, lineHeight: ComboBoxOptionHeight, cursor: 'default', padding: '0 8px', userSelect: 'none', textAlign: 'left', selectors: (_f = {}, _f[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'GrayText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _f), }, ], divider: { height: 1, backgroundColor: option.dividerBorderColor, }, }; return (0, Styling_1.concatStyleSets)(styles, customStyles); }); //# sourceMappingURL=ComboBox.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.types.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.types.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ComboBox.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/VirtualizedComboBox.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/VirtualizedComboBox.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.VirtualizedComboBox = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var ComboBox_1 = __webpack_require__(/*! ./ComboBox */ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.js"); var List_1 = __webpack_require__(/*! ../../List */ "./node_modules/@fluentui/react/lib-commonjs/List.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var VirtualizedComboBox = /** @class */ (function (_super) { tslib_1.__extends(VirtualizedComboBox, _super); function VirtualizedComboBox(props) { var _this = _super.call(this, props) || this; /** The combo box element */ _this._comboBox = React.createRef(); /** The virtualized list element */ _this._list = React.createRef(); _this._onRenderList = function (props) { var id = props.id, onRenderItem = props.onRenderItem; // Render virtualized list return (React.createElement(List_1.List, { componentRef: _this._list, role: "listbox", id: "".concat(id, "-list"), "aria-labelledby": "".concat(id, "-label"), items: props.options, // eslint-disable-next-line react/jsx-no-bind onRenderCell: onRenderItem ? function (item) { return onRenderItem(item); } : function () { return null; } })); }; _this._onScrollToItem = function (itemIndex) { // We are using the List component, call scrollToIndex _this._list.current && _this._list.current.scrollToIndex(itemIndex); }; (0, Utilities_1.initializeComponentRef)(_this); return _this; } Object.defineProperty(VirtualizedComboBox.prototype, "selectedOptions", { /** * All selected options */ get: function () { if (this._comboBox.current) { return this._comboBox.current.selectedOptions; } return []; }, enumerable: false, configurable: true }); VirtualizedComboBox.prototype.dismissMenu = function () { if (this._comboBox.current) { return this._comboBox.current.dismissMenu(); } }; VirtualizedComboBox.prototype.focus = function (shouldOpenOnFocus, useFocusAsync) { if (this._comboBox.current) { this._comboBox.current.focus(shouldOpenOnFocus, useFocusAsync); return true; } return false; }; VirtualizedComboBox.prototype.render = function () { return (React.createElement(ComboBox_1.ComboBox, tslib_1.__assign({}, this.props, { componentRef: this._comboBox, onRenderList: this._onRenderList, onScrollToItem: this._onScrollToItem }))); }; return VirtualizedComboBox; }(React.Component)); exports.VirtualizedComboBox = VirtualizedComboBox; //# sourceMappingURL=VirtualizedComboBox.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/index.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./ComboBox */ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ComboBox.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/ComboBox.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./VirtualizedComboBox */ "./node_modules/@fluentui/react/lib-commonjs/components/ComboBox/VirtualizedComboBox.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.base.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.base.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CommandBarBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var OverflowSet_1 = __webpack_require__(/*! ../../OverflowSet */ "./node_modules/@fluentui/react/lib-commonjs/OverflowSet.js"); var ResizeGroup_1 = __webpack_require__(/*! ../../ResizeGroup */ "./node_modules/@fluentui/react/lib-commonjs/ResizeGroup.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var Button_1 = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var Tooltip_1 = __webpack_require__(/*! ../../Tooltip */ "./node_modules/@fluentui/react/lib-commonjs/Tooltip.js"); var CommandBar_styles_1 = __webpack_require__(/*! ./CommandBar.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.styles.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var CommandBarBase = /** @class */ (function (_super) { tslib_1.__extends(CommandBarBase, _super); function CommandBarBase(props) { var _this = _super.call(this, props) || this; _this._overflowSet = React.createRef(); _this._resizeGroup = React.createRef(); _this._onRenderData = function (data) { var _a = _this.props, ariaLabel = _a.ariaLabel, primaryGroupAriaLabel = _a.primaryGroupAriaLabel, farItemsGroupAriaLabel = _a.farItemsGroupAriaLabel; var hasSecondSet = data.farItems && data.farItems.length > 0; return (React.createElement(FocusZone_1.FocusZone, { className: (0, Utilities_1.css)(_this._classNames.root), direction: FocusZone_1.FocusZoneDirection.horizontal, role: 'menubar', "aria-label": ariaLabel }, React.createElement(OverflowSet_1.OverflowSet, { role: hasSecondSet ? 'group' : 'none', "aria-label": hasSecondSet ? primaryGroupAriaLabel : undefined, componentRef: _this._overflowSet, className: (0, Utilities_1.css)(_this._classNames.primarySet), items: data.primaryItems, overflowItems: data.overflowItems.length ? data.overflowItems : undefined, onRenderItem: _this._onRenderItem, onRenderOverflowButton: _this._onRenderOverflowButton }), hasSecondSet && (React.createElement(OverflowSet_1.OverflowSet, { role: "group", "aria-label": farItemsGroupAriaLabel, className: (0, Utilities_1.css)(_this._classNames.secondarySet), items: data.farItems, onRenderItem: _this._onRenderItem, onRenderOverflowButton: Utilities_1.nullRender })))); }; _this._onRenderItem = function (item) { if (item.onRender) { // These are the top level items, there is no relevant menu dismissing function to // provide for the IContextualMenuItem onRender function. Pass in a no op function instead. return item.onRender(item, function () { return undefined; }); } // eslint-disable-next-line deprecation/deprecation var itemText = item.text || item.name; var commandButtonProps = tslib_1.__assign(tslib_1.__assign({ allowDisabledFocus: true, role: 'menuitem' }, item), { styles: (0, CommandBar_styles_1.getCommandButtonStyles)(item.buttonStyles), className: (0, Utilities_1.css)('ms-CommandBarItem-link', item.className), text: !item.iconOnly ? itemText : undefined, menuProps: item.subMenuProps, onClick: _this._onButtonClick(item) }); if (item.iconOnly && (itemText !== undefined || item.tooltipHostProps)) { return (React.createElement(Tooltip_1.TooltipHost, tslib_1.__assign({ role: "none", content: itemText, setAriaDescribedBy: false }, item.tooltipHostProps), _this._commandButton(item, commandButtonProps))); } return _this._commandButton(item, commandButtonProps); }; _this._commandButton = function (item, props) { var ButtonAs = _this.props.buttonAs; var CommandBarButtonAs = item.commandBarButtonAs; var DefaultButtonAs = Button_1.CommandBarButton; // The prop types between these three possible implementations overlap enough that a force-cast is safe. var Type = DefaultButtonAs; if (CommandBarButtonAs) { Type = (0, Utilities_1.composeComponentAs)(CommandBarButtonAs, Type); } if (ButtonAs) { Type = (0, Utilities_1.composeComponentAs)(ButtonAs, Type); } // Always pass the default implementation to the override so it may be composed. return React.createElement(Type, tslib_1.__assign({}, props)); }; _this._onRenderOverflowButton = function (overflowItems) { var _a = _this.props.overflowButtonProps, overflowButtonProps = _a === void 0 ? {} : _a; var combinedOverflowItems = tslib_1.__spreadArray(tslib_1.__spreadArray([], (overflowButtonProps.menuProps ? overflowButtonProps.menuProps.items : []), true), overflowItems, true); var overflowProps = tslib_1.__assign(tslib_1.__assign({ role: 'menuitem' }, overflowButtonProps), { styles: tslib_1.__assign({ menuIcon: { fontSize: '17px' } }, overflowButtonProps.styles), className: (0, Utilities_1.css)('ms-CommandBar-overflowButton', overflowButtonProps.className), menuProps: tslib_1.__assign(tslib_1.__assign({}, overflowButtonProps.menuProps), { items: combinedOverflowItems }), menuIconProps: tslib_1.__assign({ iconName: 'More' }, overflowButtonProps.menuIconProps) }); var OverflowButtonType = _this.props.overflowButtonAs ? (0, Utilities_1.composeComponentAs)(_this.props.overflowButtonAs, Button_1.CommandBarButton) : Button_1.CommandBarButton; return React.createElement(OverflowButtonType, tslib_1.__assign({}, overflowProps)); }; _this._onReduceData = function (data) { var _a = _this.props, shiftOnReduce = _a.shiftOnReduce, onDataReduced = _a.onDataReduced; var primaryItems = data.primaryItems, overflowItems = data.overflowItems, cacheKey = data.cacheKey; var farItems = data.farItems; // Use first item if shiftOnReduce, otherwise use last item var movedItem = primaryItems[shiftOnReduce ? 0 : primaryItems.length - 1]; if (movedItem !== undefined) { movedItem.renderedInOverflow = true; overflowItems = tslib_1.__spreadArray([movedItem], overflowItems, true); primaryItems = shiftOnReduce ? primaryItems.slice(1) : primaryItems.slice(0, -1); var newData = tslib_1.__assign(tslib_1.__assign({}, data), { primaryItems: primaryItems, overflowItems: overflowItems }); cacheKey = _this._computeCacheKey({ primaryItems: primaryItems, overflow: overflowItems.length > 0, farItems: farItems }); if (onDataReduced) { onDataReduced(movedItem); } newData.cacheKey = cacheKey; return newData; } return undefined; }; _this._onGrowData = function (data) { var _a = _this.props, shiftOnReduce = _a.shiftOnReduce, onDataGrown = _a.onDataGrown; var minimumOverflowItems = data.minimumOverflowItems; var primaryItems = data.primaryItems, overflowItems = data.overflowItems, cacheKey = data.cacheKey; var farItems = data.farItems; var movedItem = overflowItems[0]; // Make sure that moved item exists and is not one of the original overflow items if (movedItem !== undefined && overflowItems.length > minimumOverflowItems) { movedItem.renderedInOverflow = false; overflowItems = overflowItems.slice(1); // if shiftOnReduce, movedItem goes first, otherwise, last. primaryItems = shiftOnReduce ? tslib_1.__spreadArray([movedItem], primaryItems, true) : tslib_1.__spreadArray(tslib_1.__spreadArray([], primaryItems, true), [movedItem], false); var newData = tslib_1.__assign(tslib_1.__assign({}, data), { primaryItems: primaryItems, overflowItems: overflowItems }); cacheKey = _this._computeCacheKey({ primaryItems: primaryItems, overflow: overflowItems.length > 0, farItems: farItems }); if (onDataGrown) { onDataGrown(movedItem); } newData.cacheKey = cacheKey; return newData; } return undefined; }; (0, Utilities_1.initializeComponentRef)(_this); return _this; } CommandBarBase.prototype.render = function () { var _a = this.props, items = _a.items, overflowItems = _a.overflowItems, farItems = _a.farItems, styles = _a.styles, theme = _a.theme, dataDidRender = _a.dataDidRender, _b = _a.onReduceData, onReduceData = _b === void 0 ? this._onReduceData : _b, _c = _a.onGrowData, onGrowData = _c === void 0 ? this._onGrowData : _c, _d = _a.resizeGroupAs, ResizeGroupAs = _d === void 0 ? ResizeGroup_1.ResizeGroup : _d; var commandBarData = { primaryItems: tslib_1.__spreadArray([], items, true), overflowItems: tslib_1.__spreadArray([], overflowItems, true), minimumOverflowItems: tslib_1.__spreadArray([], overflowItems, true).length, farItems: farItems, cacheKey: this._computeCacheKey({ primaryItems: tslib_1.__spreadArray([], items, true), overflow: overflowItems && overflowItems.length > 0, farItems: farItems, }), }; this._classNames = getClassNames(styles, { theme: theme }); // ResizeGroup will render these attributes to the root
. // TODO We may need to elevate classNames from into ? var nativeProps = (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties); return (React.createElement(ResizeGroupAs, tslib_1.__assign({}, nativeProps, { componentRef: this._resizeGroup, data: commandBarData, onReduceData: onReduceData, onGrowData: onGrowData, onRenderData: this._onRenderData, dataDidRender: dataDidRender }))); }; CommandBarBase.prototype.focus = function () { var overflowSet = this._overflowSet.current; overflowSet && overflowSet.focus(); }; CommandBarBase.prototype.remeasure = function () { this._resizeGroup.current && this._resizeGroup.current.remeasure(); }; CommandBarBase.prototype._onButtonClick = function (item) { return function (ev) { // inactive is deprecated. remove check in 7.0 // eslint-disable-next-line deprecation/deprecation if (item.inactive) { return; } if (item.onClick) { item.onClick(ev, item); } }; }; CommandBarBase.prototype._computeCacheKey = function (data) { var primaryItems = data.primaryItems, overflow = data.overflow, farItems = data.farItems; var returnKey = function (acc, current) { var _a = current.cacheKey, cacheKey = _a === void 0 ? current.key : _a; return acc + cacheKey; }; var primaryKey = primaryItems && primaryItems.reduce(returnKey, ''); var overflowKey = overflow ? 'overflow' : ''; var farKey = farItems && farItems.reduce(returnKey, ''); return [primaryKey, overflowKey, farKey].join(''); }; CommandBarBase.defaultProps = { items: [], overflowItems: [], }; return CommandBarBase; }(React.Component)); exports.CommandBarBase = CommandBarBase; //# sourceMappingURL=CommandBar.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CommandBar = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var CommandBar_base_1 = __webpack_require__(/*! ./CommandBar.base */ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.base.js"); var CommandBar_styles_1 = __webpack_require__(/*! ./CommandBar.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.styles.js"); // Create a CommandBar variant which uses these default styles and this styled subcomponent. exports.CommandBar = (0, Utilities_1.styled)(CommandBar_base_1.CommandBarBase, CommandBar_styles_1.getStyles, undefined, { scope: 'CommandBar', }); //# sourceMappingURL=CommandBar.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.styles.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.styles.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getCommandButtonStyles = exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var COMMAND_BAR_HEIGHT = 44; var getStyles = function (props) { var className = props.className, theme = props.theme; var semanticColors = theme.semanticColors; return { root: [ theme.fonts.medium, 'ms-CommandBar', { display: 'flex', backgroundColor: semanticColors.bodyBackground, padding: '0 14px 0 24px', height: COMMAND_BAR_HEIGHT, }, className, ], primarySet: [ 'ms-CommandBar-primaryCommand', { flexGrow: '1', display: 'flex', alignItems: 'stretch', }, ], secondarySet: [ 'ms-CommandBar-secondaryCommand', { flexShrink: '0', display: 'flex', alignItems: 'stretch', }, ], }; }; exports.getStyles = getStyles; exports.getCommandButtonStyles = (0, Utilities_1.memoizeFunction)(function (customStyles) { var rootStyles = { height: '100%', }; var labelStyles = { whiteSpace: 'nowrap', }; var _a = customStyles || {}, root = _a.root, label = _a.label, restCustomStyles = tslib_1.__rest(_a, ["root", "label"]); return tslib_1.__assign(tslib_1.__assign({}, restCustomStyles), { root: root ? [rootStyles, root] : rootStyles, label: label ? [labelStyles, label] : labelStyles }); }); //# sourceMappingURL=CommandBar.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.types.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.types.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=CommandBar.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/index.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getCommandButtonStyles = exports.getCommandBarStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var CommandBar_styles_1 = __webpack_require__(/*! ./CommandBar.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.styles.js"); Object.defineProperty(exports, "getCommandBarStyles", ({ enumerable: true, get: function () { return CommandBar_styles_1.getStyles; } })); Object.defineProperty(exports, "getCommandButtonStyles", ({ enumerable: true, get: function () { return CommandBar_styles_1.getCommandButtonStyles; } })); tslib_1.__exportStar(__webpack_require__(/*! ./CommandBar */ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./CommandBar.base */ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./CommandBar.types */ "./node_modules/@fluentui/react/lib-commonjs/components/CommandBar/CommandBar.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.base.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.base.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ContextualMenuBase = exports.canAnyMenuItemsCheck = exports.getSubmenuItems = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var ContextualMenu_types_1 = __webpack_require__(/*! ./ContextualMenu.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.types.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var index_1 = __webpack_require__(/*! ../../utilities/contextualMenu/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/index.js"); var Callout_1 = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib-commonjs/Callout.js"); var ContextualMenuItem_1 = __webpack_require__(/*! ./ContextualMenuItem */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.js"); var index_2 = __webpack_require__(/*! ./ContextualMenuItemWrapper/index */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/index.js"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var ContextualMenu_classNames_1 = __webpack_require__(/*! ./ContextualMenu.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.classNames.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var ResponsiveMode_1 = __webpack_require__(/*! ../../ResponsiveMode */ "./node_modules/@fluentui/react/lib-commonjs/ResponsiveMode.js"); var index_3 = __webpack_require__(/*! ../../utilities/MenuContext/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/MenuContext/index.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var getContextualMenuItemClassNames = (0, Utilities_1.classNamesFunction)(); // The default ContextualMenu properties have no items and beak, the default submenu direction is right and top. var DEFAULT_PROPS = { items: [], shouldFocusOnMount: true, gapSpace: 0, directionalHint: DirectionalHint_1.DirectionalHint.bottomAutoEdge, beakWidth: 16, }; /* return number of menu items, excluding headers and dividers */ function getItemCount(items) { var totalItemCount = 0; for (var _i = 0, items_1 = items; _i < items_1.length; _i++) { var item = items_1[_i]; if (item.itemType !== ContextualMenu_types_1.ContextualMenuItemType.Divider && item.itemType !== ContextualMenu_types_1.ContextualMenuItemType.Header) { var itemCount = item.customOnRenderListLength ? item.customOnRenderListLength : 1; totalItemCount += itemCount; } } return totalItemCount; } function getSubmenuItems(item, options) { var target = options === null || options === void 0 ? void 0 : options.target; // eslint-disable-next-line deprecation/deprecation var items = item.subMenuProps ? item.subMenuProps.items : item.items; if (items) { var overrideItems = []; for (var _i = 0, items_2 = items; _i < items_2.length; _i++) { var subItem = items_2[_i]; if (subItem.preferMenuTargetAsEventTarget) { // For sub-items which need an overridden target, intercept `onClick` var onClick = subItem.onClick, contextItem = tslib_1.__rest(subItem, ["onClick"]); overrideItems.push(tslib_1.__assign(tslib_1.__assign({}, contextItem), { onClick: getOnClickWithOverrideTarget(onClick, target) })); } else { overrideItems.push(subItem); } } return overrideItems; } } exports.getSubmenuItems = getSubmenuItems; /** * Returns true if a list of menu items can contain a checkbox */ function canAnyMenuItemsCheck(items) { return items.some(function (item) { if (item.canCheck) { return true; } // If the item is a section, check if any of the items in the section can check. if (item.sectionProps && item.sectionProps.items.some(function (submenuItem) { return submenuItem.canCheck === true; })) { return true; } return false; }); } exports.canAnyMenuItemsCheck = canAnyMenuItemsCheck; var NavigationIdleDelay = 250; /* ms */ var COMPONENT_NAME = 'ContextualMenu'; var _getMenuItemStylesFunction = (0, Utilities_1.memoizeFunction)(function () { var styles = []; for (var _i = 0; _i < arguments.length; _i++) { styles[_i] = arguments[_i]; } return function (styleProps) { return Styling_1.concatStyleSetsWithProps.apply(void 0, tslib_1.__spreadArray([styleProps, ContextualMenu_classNames_1.getItemStyles], styles, false)); }; }); //#region Custom hooks function useVisibility(props, targetWindow) { var _a = props.hidden, hidden = _a === void 0 ? false : _a, onMenuDismissed = props.onMenuDismissed, onMenuOpened = props.onMenuOpened; var previousHidden = (0, react_hooks_1.usePrevious)(hidden); var onMenuOpenedRef = React.useRef(onMenuOpened); var onMenuClosedRef = React.useRef(onMenuDismissed); var propsRef = React.useRef(props); onMenuOpenedRef.current = onMenuOpened; onMenuClosedRef.current = onMenuDismissed; propsRef.current = props; React.useEffect(function () { var _a, _b; // Don't issue dismissed callbacks on initial mount if (hidden && previousHidden === false) { (_a = onMenuClosedRef.current) === null || _a === void 0 ? void 0 : _a.call(onMenuClosedRef, propsRef.current); } else if (!hidden && previousHidden !== false) { (_b = onMenuOpenedRef.current) === null || _b === void 0 ? void 0 : _b.call(onMenuOpenedRef, propsRef.current); } }, [hidden, previousHidden]); // Issue onDismissedCallback on unmount React.useEffect(function () { return function () { var _a; return (_a = onMenuClosedRef.current) === null || _a === void 0 ? void 0 : _a.call(onMenuClosedRef, propsRef.current); }; }, []); } function useSubMenuState(_a, dismiss) { var hidden = _a.hidden, items = _a.items, theme = _a.theme, className = _a.className, id = _a.id, menuTarget = _a.target; var _b = React.useState(), expandedMenuItemKey = _b[0], setExpandedMenuItemKey = _b[1]; var _c = React.useState(), submenuTarget = _c[0], setSubmenuTarget = _c[1]; /** True if the menu was expanded by mouse click OR hover (as opposed to by keyboard) */ var _d = React.useState(), shouldFocusOnContainer = _d[0], setShouldFocusOnContainer = _d[1]; var subMenuId = (0, react_hooks_1.useId)(COMPONENT_NAME, id); var closeSubMenu = React.useCallback(function () { setShouldFocusOnContainer(undefined); setExpandedMenuItemKey(undefined); setSubmenuTarget(undefined); }, []); var openSubMenu = React.useCallback(function (_a, target, focusContainer) { var submenuItemKey = _a.key; if (expandedMenuItemKey === submenuItemKey) { return; } target.focus(); setShouldFocusOnContainer(focusContainer); setExpandedMenuItemKey(submenuItemKey); setSubmenuTarget(target); }, [expandedMenuItemKey]); React.useEffect(function () { if (hidden) { closeSubMenu(); } }, [hidden, closeSubMenu]); var onSubMenuDismiss = useOnSubmenuDismiss(dismiss, closeSubMenu); var getSubmenuProps = function () { var item = findItemByKeyFromItems(expandedMenuItemKey, items); var submenuProps = null; if (item) { submenuProps = { items: getSubmenuItems(item, { target: menuTarget }), target: submenuTarget, onDismiss: onSubMenuDismiss, isSubMenu: true, id: subMenuId, shouldFocusOnMount: true, shouldFocusOnContainer: shouldFocusOnContainer, directionalHint: (0, Utilities_1.getRTL)(theme) ? DirectionalHint_1.DirectionalHint.leftTopEdge : DirectionalHint_1.DirectionalHint.rightTopEdge, className: className, gapSpace: 0, isBeakVisible: false, }; if (item.subMenuProps) { (0, Utilities_1.assign)(submenuProps, item.subMenuProps); } if (item.preferMenuTargetAsEventTarget) { var onItemClick = item.onItemClick; submenuProps.onItemClick = getOnClickWithOverrideTarget(onItemClick, menuTarget); } } return submenuProps; }; return [expandedMenuItemKey, openSubMenu, getSubmenuProps, onSubMenuDismiss]; } function useShouldUpdateFocusOnMouseMove(_a) { var delayUpdateFocusOnHover = _a.delayUpdateFocusOnHover, hidden = _a.hidden; var shouldUpdateFocusOnMouseEvent = React.useRef(!delayUpdateFocusOnHover); var gotMouseMove = React.useRef(false); React.useEffect(function () { shouldUpdateFocusOnMouseEvent.current = !delayUpdateFocusOnHover; gotMouseMove.current = hidden ? false : !delayUpdateFocusOnHover && gotMouseMove.current; }, [delayUpdateFocusOnHover, hidden]); var onMenuFocusCapture = React.useCallback(function () { if (delayUpdateFocusOnHover) { shouldUpdateFocusOnMouseEvent.current = false; } }, [delayUpdateFocusOnHover]); return [shouldUpdateFocusOnMouseEvent, gotMouseMove, onMenuFocusCapture]; } function usePreviousActiveElement(_a, targetWindow, hostElement) { var hidden = _a.hidden, onRestoreFocus = _a.onRestoreFocus; var previousActiveElement = React.useRef(); var tryFocusPreviousActiveElement = React.useCallback(function (options) { var _a, _b; if (onRestoreFocus) { onRestoreFocus(options); } else if (options === null || options === void 0 ? void 0 : options.documentContainsFocus) { // Make sure that the focus method actually exists // In some cases the object might exist but not be a real element. // This is primarily for IE 11 and should be removed once IE 11 is no longer in use. (_b = (_a = previousActiveElement.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); } }, [onRestoreFocus]); (0, react_hooks_1.useIsomorphicLayoutEffect)(function () { var _a, _b; if (!hidden) { var newElement = targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document.activeElement; if (!((_a = hostElement.current) === null || _a === void 0 ? void 0 : _a.contains(newElement)) && newElement.tagName !== 'BODY') { previousActiveElement.current = newElement; } } else if (previousActiveElement.current) { tryFocusPreviousActiveElement({ originalElement: previousActiveElement.current, containsFocus: true, documentContainsFocus: ((_b = (0, Utilities_1.getDocument)()) === null || _b === void 0 ? void 0 : _b.hasFocus()) || false, }); previousActiveElement.current = undefined; } }, [hidden, targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document.activeElement, tryFocusPreviousActiveElement, hostElement]); return [tryFocusPreviousActiveElement]; } function useKeyHandlers(_a, dismiss, hostElement, openSubMenu) { var theme = _a.theme, isSubMenu = _a.isSubMenu, _b = _a.focusZoneProps, _c = _b === void 0 ? {} : _b, checkForNoWrap = _c.checkForNoWrap, _d = _c.direction, focusZoneDirection = _d === void 0 ? FocusZone_1.FocusZoneDirection.vertical : _d; /** True if the most recent keydown event was for alt (option) or meta (command). */ var lastKeyDownWasAltOrMeta = React.useRef(); /** * Calls `shouldHandleKey` to determine whether the keyboard event should be handled; * if so, stops event propagation and dismisses menu(s). * @param ev - The keyboard event. * @param shouldHandleKey - Returns whether we should handle this keyboard event. * @param dismissAllMenus - If true, dismiss all menus. Otherwise, dismiss only the current menu. * Only does anything if `shouldHandleKey` returns true. * @returns Whether the event was handled. */ var keyHandler = function (ev, shouldHandleKey, dismissAllMenus) { var handled = false; if (shouldHandleKey(ev)) { dismiss(ev, dismissAllMenus); ev.preventDefault(); ev.stopPropagation(); handled = true; } return handled; }; /** * Checks if the submenu should be closed */ var shouldCloseSubMenu = function (ev) { var submenuCloseKey = (0, Utilities_1.getRTL)(theme) ? Utilities_1.KeyCodes.right : Utilities_1.KeyCodes.left; // eslint-disable-next-line deprecation/deprecation if (ev.which !== submenuCloseKey || !isSubMenu) { return false; } return !!(focusZoneDirection === FocusZone_1.FocusZoneDirection.vertical || (checkForNoWrap && !(0, Utilities_1.shouldWrapFocus)(ev.target, 'data-no-horizontal-wrap'))); }; var shouldHandleKeyDown = function (ev) { return ( // eslint-disable-next-line deprecation/deprecation ev.which === Utilities_1.KeyCodes.escape || shouldCloseSubMenu(ev) || // eslint-disable-next-line deprecation/deprecation (ev.which === Utilities_1.KeyCodes.up && (ev.altKey || ev.metaKey))); }; var onKeyDown = function (ev) { // Take note if we are processing an alt (option) or meta (command) keydown. // See comment in shouldHandleKeyUp for reasoning. lastKeyDownWasAltOrMeta.current = isAltOrMeta(ev); // On Mac, pressing escape dismisses all levels of native context menus // eslint-disable-next-line deprecation/deprecation var dismissAllMenus = ev.which === Utilities_1.KeyCodes.escape && ((0, Utilities_1.isMac)() || (0, Utilities_1.isIOS)()); return keyHandler(ev, shouldHandleKeyDown, dismissAllMenus); }; /** * We close the menu on key up only if ALL of the following are true: * - Most recent key down was alt or meta (command) * - The alt/meta key down was NOT followed by some other key (such as down/up arrow to * expand/collapse the menu) * - We're not on a Mac (or iOS) * * This is because on Windows, pressing alt moves focus to the application menu bar or similar, * closing any open context menus. There is not a similar behavior on Macs. */ var shouldHandleKeyUp = function (ev) { var keyPressIsAltOrMetaAlone = lastKeyDownWasAltOrMeta.current && isAltOrMeta(ev); lastKeyDownWasAltOrMeta.current = false; return !!keyPressIsAltOrMetaAlone && !((0, Utilities_1.isIOS)() || (0, Utilities_1.isMac)()); }; var onKeyUp = function (ev) { return keyHandler(ev, shouldHandleKeyUp, true /* dismissAllMenus */); }; var onMenuKeyDown = function (ev) { // Mark as handled if onKeyDown returns true (for handling collapse cases) // or if we are attempting to expand a submenu var handled = onKeyDown(ev); if (handled || !hostElement.current) { return; } // If we have a modifier key being pressed, we do not want to move focus. // Otherwise, handle up and down keys. var hasModifier = !!(ev.altKey || ev.metaKey); // eslint-disable-next-line deprecation/deprecation var isUp = ev.which === Utilities_1.KeyCodes.up; // eslint-disable-next-line deprecation/deprecation var isDown = ev.which === Utilities_1.KeyCodes.down; if (!hasModifier && (isUp || isDown)) { var elementToFocus = isUp ? (0, Utilities_1.getLastFocusable)(hostElement.current, hostElement.current.lastChild, true) : (0, Utilities_1.getFirstFocusable)(hostElement.current, hostElement.current.firstChild, true); if (elementToFocus) { elementToFocus.focus(); ev.preventDefault(); ev.stopPropagation(); } } }; var onItemKeyDown = function (item, ev) { var openKey = (0, Utilities_1.getRTL)(theme) ? Utilities_1.KeyCodes.left : Utilities_1.KeyCodes.right; if (!item.disabled && // eslint-disable-next-line deprecation/deprecation (ev.which === openKey || ev.which === Utilities_1.KeyCodes.enter || (ev.which === Utilities_1.KeyCodes.down && (ev.altKey || ev.metaKey)))) { openSubMenu(item, ev.currentTarget); ev.preventDefault(); } }; return [onKeyDown, onKeyUp, onMenuKeyDown, onItemKeyDown]; } function useScrollHandler(asyncTracker) { var isScrollIdle = React.useRef(true); var scrollIdleTimeoutId = React.useRef(); /** * Scroll handler for the callout to make sure the mouse events * for updating focus are not interacting during scroll */ var onScroll = function () { if (!isScrollIdle.current && scrollIdleTimeoutId.current !== undefined) { asyncTracker.clearTimeout(scrollIdleTimeoutId.current); scrollIdleTimeoutId.current = undefined; } else { isScrollIdle.current = false; } scrollIdleTimeoutId.current = asyncTracker.setTimeout(function () { isScrollIdle.current = true; }, NavigationIdleDelay); }; return [onScroll, isScrollIdle]; } function useOnSubmenuDismiss(dismiss, closeSubMenu) { var isMountedRef = React.useRef(false); React.useEffect(function () { isMountedRef.current = true; return function () { isMountedRef.current = false; }; }, []); /** * This function is called ASYNCHRONOUSLY, and so there is a chance it is called * after the component is unmounted. The isMountedRef is added to prevent * from calling setState() after unmount. Do NOT copy this pattern in synchronous * code. */ var onSubMenuDismiss = function (ev, dismissAll) { if (dismissAll) { dismiss(ev, dismissAll); } else if (isMountedRef.current) { closeSubMenu(); } }; return onSubMenuDismiss; } function useSubmenuEnterTimer(_a, asyncTracker) { var _b = _a.subMenuHoverDelay, subMenuHoverDelay = _b === void 0 ? NavigationIdleDelay : _b; var enterTimerRef = React.useRef(undefined); var cancelSubMenuTimer = function () { if (enterTimerRef.current !== undefined) { asyncTracker.clearTimeout(enterTimerRef.current); enterTimerRef.current = undefined; } }; var startSubmenuTimer = function (onTimerExpired) { enterTimerRef.current = asyncTracker.setTimeout(function () { onTimerExpired(); cancelSubMenuTimer(); }, subMenuHoverDelay); }; return [cancelSubMenuTimer, startSubmenuTimer, enterTimerRef]; } function useMouseHandlers(props, isScrollIdle, subMenuEntryTimer, targetWindow, shouldUpdateFocusOnMouseEvent, gotMouseMove, expandedMenuItemKey, hostElement, startSubmenuTimer, cancelSubMenuTimer, openSubMenu, onSubMenuDismiss, dismiss) { var menuTarget = props.target; var onItemMouseEnterBase = function (item, ev, target) { if (shouldUpdateFocusOnMouseEvent.current) { gotMouseMove.current = true; } if (shouldIgnoreMouseEvent()) { return; } updateFocusOnMouseEvent(item, ev, target); }; var onItemMouseMoveBase = function (item, ev, target) { var targetElement = ev.currentTarget; // Always do this check to make sure we record a mouseMove if needed (even if we are timed out) if (shouldUpdateFocusOnMouseEvent.current) { gotMouseMove.current = true; } else { return; } if (!isScrollIdle.current || subMenuEntryTimer.current !== undefined || targetElement === (targetWindow === null || targetWindow === void 0 ? void 0 : targetWindow.document.activeElement)) { return; } updateFocusOnMouseEvent(item, ev, target); }; var shouldIgnoreMouseEvent = function () { return !isScrollIdle.current || !gotMouseMove.current; }; var onMouseItemLeave = function (item, ev) { var _a; if (shouldIgnoreMouseEvent()) { return; } cancelSubMenuTimer(); if (expandedMenuItemKey !== undefined) { return; } /** * IE11 focus() method forces parents to scroll to top of element. * Edge and IE expose a setActive() function for focusable divs that * sets the page focus but does not scroll the parent element. */ if (hostElement.current.setActive) { try { hostElement.current.setActive(); } catch (e) { /* no-op */ } } else { (_a = hostElement.current) === null || _a === void 0 ? void 0 : _a.focus(); } }; /** * Handles updating focus when mouseEnter or mouseMove fire. * As part of updating focus, This function will also update * the expand/collapse state accordingly. */ var updateFocusOnMouseEvent = function (item, ev, target) { var targetElement = target ? target : ev.currentTarget; if (item.key === expandedMenuItemKey) { return; } cancelSubMenuTimer(); // If the menu is not expanded we can update focus without any delay if (expandedMenuItemKey === undefined) { targetElement.focus(); } // Delay updating expanding/dismissing the submenu // and only set focus if we have not already done so if ((0, index_1.hasSubmenu)(item)) { ev.stopPropagation(); startSubmenuTimer(function () { targetElement.focus(); openSubMenu(item, targetElement, true); }); } else { startSubmenuTimer(function () { onSubMenuDismiss(ev); targetElement.focus(); }); } }; var onItemClick = function (item, ev) { onItemClickBase(item, ev, ev.currentTarget); }; var onItemClickBase = function (item, ev, target) { var items = getSubmenuItems(item, { target: menuTarget }); // Cancel an async menu item hover timeout action from being taken and instead // just trigger the click event instead. cancelSubMenuTimer(); if (!(0, index_1.hasSubmenu)(item) && (!items || !items.length)) { // This is an item without a menu. Click it. executeItemClick(item, ev); } else { if (item.key !== expandedMenuItemKey) { // This has a collapsed sub menu. Expand it. // focus on the container by default when the menu is opened with a click event // this differentiates from a keyboard interaction triggering the click event var shouldFocusOnContainer = typeof props.shouldFocusOnContainer === 'boolean' ? props.shouldFocusOnContainer : ev.nativeEvent.pointerType === 'mouse'; openSubMenu(item, target, shouldFocusOnContainer); } } ev.stopPropagation(); ev.preventDefault(); }; var onAnchorClick = function (item, ev) { executeItemClick(item, ev); ev.stopPropagation(); }; var executeItemClick = function (item, ev) { if (item.disabled || item.isDisabled) { return; } if (item.preferMenuTargetAsEventTarget) { overrideTarget(ev, menuTarget); } var shouldDismiss = false; if (item.onClick) { shouldDismiss = !!item.onClick(ev, item); } else if (props.onItemClick) { shouldDismiss = !!props.onItemClick(ev, item); } if (shouldDismiss || !ev.defaultPrevented) { dismiss(ev, true); } }; return [ onItemMouseEnterBase, onItemMouseMoveBase, onMouseItemLeave, onItemClick, onAnchorClick, executeItemClick, onItemClickBase, ]; } //#endregion exports.ContextualMenuBase = React.memo(React.forwardRef(function (propsWithoutDefaults, forwardedRef) { var _a; var _b = (0, Utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults), ref = _b.ref, props = tslib_1.__rest(_b, ["ref"]); var hostElement = React.useRef(null); var asyncTracker = (0, react_hooks_1.useAsync)(); var menuId = (0, react_hooks_1.useId)(COMPONENT_NAME, props.id); (0, react_hooks_1.useWarnings)({ name: COMPONENT_NAME, props: props, deprecations: { getMenuClassNames: 'styles', }, }); var dismiss = function (ev, dismissAll) { var _a; return (_a = props.onDismiss) === null || _a === void 0 ? void 0 : _a.call(props, ev, dismissAll); }; var _c = (0, react_hooks_1.useTarget)(props.target, hostElement), targetRef = _c[0], targetWindow = _c[1]; var tryFocusPreviousActiveElement = usePreviousActiveElement(props, targetWindow, hostElement)[0]; var _d = useSubMenuState(props, dismiss), expandedMenuItemKey = _d[0], openSubMenu = _d[1], getSubmenuProps = _d[2], onSubMenuDismiss = _d[3]; var _e = useShouldUpdateFocusOnMouseMove(props), shouldUpdateFocusOnMouseEvent = _e[0], gotMouseMove = _e[1], onMenuFocusCapture = _e[2]; var _f = useScrollHandler(asyncTracker), onScroll = _f[0], isScrollIdle = _f[1]; var _g = useSubmenuEnterTimer(props, asyncTracker), cancelSubMenuTimer = _g[0], startSubmenuTimer = _g[1], subMenuEntryTimer = _g[2]; var responsiveMode = (0, ResponsiveMode_1.useResponsiveMode)(hostElement, props.responsiveMode); useVisibility(props, targetWindow); var _h = useKeyHandlers(props, dismiss, hostElement, openSubMenu), onKeyDown = _h[0], onKeyUp = _h[1], onMenuKeyDown = _h[2], onItemKeyDown = _h[3]; var _j = useMouseHandlers(props, isScrollIdle, subMenuEntryTimer, targetWindow, shouldUpdateFocusOnMouseEvent, gotMouseMove, expandedMenuItemKey, hostElement, startSubmenuTimer, cancelSubMenuTimer, openSubMenu, onSubMenuDismiss, dismiss), onItemMouseEnterBase = _j[0], onItemMouseMoveBase = _j[1], onMouseItemLeave = _j[2], onItemClick = _j[3], onAnchorClick = _j[4], executeItemClick = _j[5], onItemClickBase = _j[6]; //#region Render helpers var onDefaultRenderMenuList = function (menuListProps, // eslint-disable-next-line deprecation/deprecation menuClassNames, defaultRender) { var indexCorrection = 0; var items = menuListProps.items, totalItemCount = menuListProps.totalItemCount, hasCheckmarks = menuListProps.hasCheckmarks, hasIcons = menuListProps.hasIcons; return (React.createElement("ul", { className: menuClassNames.list, onKeyDown: onKeyDown, onKeyUp: onKeyUp, role: 'presentation' }, items.map(function (item, index) { var menuItem = renderMenuItem(item, index, indexCorrection, totalItemCount, hasCheckmarks, hasIcons, menuClassNames); if (item.itemType !== ContextualMenu_types_1.ContextualMenuItemType.Divider && item.itemType !== ContextualMenu_types_1.ContextualMenuItemType.Header) { var indexIncrease = item.customOnRenderListLength ? item.customOnRenderListLength : 1; indexCorrection += indexIncrease; } return menuItem; }))); }; var renderFocusZone = function (children, adjustedFocusZoneProps) { var _a = props.focusZoneAs, ChildrenRenderer = _a === void 0 ? FocusZone_1.FocusZone : _a; return React.createElement(ChildrenRenderer, tslib_1.__assign({}, adjustedFocusZoneProps), children); }; /** * !!!IMPORTANT!!! Avoid mutating `item: IContextualMenuItem` argument. It will * cause the menu items to always re-render because the component update is based on shallow comparison. */ var renderMenuItem = function (item, index, focusableElementIndex, totalItemCount, hasCheckmarks, hasIcons, // eslint-disable-next-line deprecation/deprecation menuClassNames) { var _a; var renderedItems = []; var iconProps = item.iconProps || { iconName: 'None' }; var getItemClassNames = item.getItemClassNames, // eslint-disable-line deprecation/deprecation itemProps = item.itemProps; var styles = itemProps ? itemProps.styles : undefined; // We only send a dividerClassName when the item to be rendered is a divider. // For all other cases, the default divider style is used. var dividerClassName = item.itemType === ContextualMenu_types_1.ContextualMenuItemType.Divider ? item.className : undefined; var subMenuIconClassName = item.submenuIconProps ? item.submenuIconProps.className : ''; // eslint-disable-next-line deprecation/deprecation var itemClassNames; // IContextualMenuItem#getItemClassNames for backwards compatibility // otherwise uses mergeStyles for class names. if (getItemClassNames) { itemClassNames = getItemClassNames(props.theme, (0, index_1.isItemDisabled)(item), expandedMenuItemKey === item.key, !!(0, index_1.getIsChecked)(item), !!item.href, iconProps.iconName !== 'None', item.className, dividerClassName, iconProps.className, subMenuIconClassName, item.primaryDisabled); } else { var itemStyleProps = { theme: props.theme, disabled: (0, index_1.isItemDisabled)(item), expanded: expandedMenuItemKey === item.key, checked: !!(0, index_1.getIsChecked)(item), isAnchorLink: !!item.href, knownIcon: iconProps.iconName !== 'None', itemClassName: item.className, dividerClassName: dividerClassName, iconClassName: iconProps.className, subMenuClassName: subMenuIconClassName, primaryDisabled: item.primaryDisabled, }; // We need to generate default styles then override if styles are provided // since the ContextualMenu currently handles item classNames. itemClassNames = getContextualMenuItemClassNames(_getMenuItemStylesFunction((_a = menuClassNames.subComponentStyles) === null || _a === void 0 ? void 0 : _a.menuItem, styles), itemStyleProps); } // eslint-disable-next-line deprecation/deprecation if (item.text === '-' || item.name === '-') { item.itemType = ContextualMenu_types_1.ContextualMenuItemType.Divider; } switch (item.itemType) { case ContextualMenu_types_1.ContextualMenuItemType.Divider: renderedItems.push(renderSeparator(index, itemClassNames)); break; case ContextualMenu_types_1.ContextualMenuItemType.Header: renderedItems.push(renderSeparator(index, itemClassNames)); var headerItem = renderHeaderMenuItem(item, itemClassNames, menuClassNames, index, hasCheckmarks, hasIcons); renderedItems.push(renderListItem(headerItem, item.key || index, itemClassNames, item.title)); break; case ContextualMenu_types_1.ContextualMenuItemType.Section: renderedItems.push(renderSectionItem(item, itemClassNames, menuClassNames, index, hasCheckmarks, hasIcons)); break; default: var defaultRenderNormalItem = function () { return renderNormalItem(item, itemClassNames, index, focusableElementIndex, totalItemCount, hasCheckmarks, hasIcons); }; var menuItem = props.onRenderContextualMenuItem ? props.onRenderContextualMenuItem(item, defaultRenderNormalItem) : defaultRenderNormalItem(); renderedItems.push(renderListItem(menuItem, item.key || index, itemClassNames, item.title)); break; } // Since multiple nodes *could* be rendered, wrap them all in a fragment with this item's key. // This ensures the reconciler handles multi-item output per-node correctly and does not re-mount content. return React.createElement(React.Fragment, { key: item.key }, renderedItems); }; var defaultMenuItemRenderer = function (item, // eslint-disable-next-line deprecation/deprecation menuClassNames) { var index = item.index, focusableElementIndex = item.focusableElementIndex, totalItemCount = item.totalItemCount, hasCheckmarks = item.hasCheckmarks, hasIcons = item.hasIcons; return renderMenuItem(item, index, focusableElementIndex, totalItemCount, hasCheckmarks, hasIcons, menuClassNames); }; var renderSectionItem = function (sectionItem, // eslint-disable-next-line deprecation/deprecation itemClassNames, // eslint-disable-next-line deprecation/deprecation menuClassNames, index, hasCheckmarks, hasIcons) { var sectionProps = sectionItem.sectionProps; if (!sectionProps) { return; } var headerItem; var groupProps; if (sectionProps.title) { var headerContextualMenuItem = undefined; var ariaLabelledby = ''; if (typeof sectionProps.title === 'string') { // Since title is a user-facing string, it needs to be stripped // of whitespace in order to build a valid element ID var id_1 = menuId + sectionProps.title.replace(/\s/g, ''); headerContextualMenuItem = { key: "section-".concat(sectionProps.title, "-title"), itemType: ContextualMenu_types_1.ContextualMenuItemType.Header, text: sectionProps.title, id: id_1, }; ariaLabelledby = id_1; } else { var id_2 = sectionProps.title.id || menuId + sectionProps.title.key.replace(/\s/g, ''); headerContextualMenuItem = tslib_1.__assign(tslib_1.__assign({}, sectionProps.title), { id: id_2 }); ariaLabelledby = id_2; } if (headerContextualMenuItem) { groupProps = { role: 'group', 'aria-labelledby': ariaLabelledby, }; headerItem = renderHeaderMenuItem(headerContextualMenuItem, itemClassNames, menuClassNames, index, hasCheckmarks, hasIcons); } } if (sectionProps.items && sectionProps.items.length > 0) { var correctedIndex_1 = 0; return (React.createElement("li", { role: "presentation", key: sectionProps.key || sectionItem.key || "section-".concat(index) }, React.createElement("div", tslib_1.__assign({}, groupProps), React.createElement("ul", { className: menuClassNames.list, role: "presentation" }, sectionProps.topDivider && renderSeparator(index, itemClassNames, true, true), headerItem && renderListItem(headerItem, sectionItem.key || index, itemClassNames, sectionItem.title), sectionProps.items.map(function (contextualMenuItem, itemsIndex) { var menuItem = renderMenuItem(contextualMenuItem, itemsIndex, correctedIndex_1, getItemCount(sectionProps.items), hasCheckmarks, hasIcons, menuClassNames); if (contextualMenuItem.itemType !== ContextualMenu_types_1.ContextualMenuItemType.Divider && contextualMenuItem.itemType !== ContextualMenu_types_1.ContextualMenuItemType.Header) { var indexIncrease = contextualMenuItem.customOnRenderListLength ? contextualMenuItem.customOnRenderListLength : 1; correctedIndex_1 += indexIncrease; } return menuItem; }), sectionProps.bottomDivider && renderSeparator(index, itemClassNames, false, true))))); } }; var renderListItem = function (content, key, classNames, // eslint-disable-line deprecation/deprecation title) { return (React.createElement("li", { role: "presentation", title: title, key: key, className: classNames.item }, content)); }; var renderSeparator = function (index, classNames, // eslint-disable-line deprecation/deprecation top, fromSection) { if (fromSection || index > 0) { return (React.createElement("li", { role: "separator", key: 'separator-' + index + (top === undefined ? '' : top ? '-top' : '-bottom'), className: classNames.divider, "aria-hidden": "true" })); } return null; }; var renderNormalItem = function (item, classNames, // eslint-disable-line deprecation/deprecation index, focusableElementIndex, totalItemCount, hasCheckmarks, hasIcons) { if (item.onRender) { return item.onRender(tslib_1.__assign({ 'aria-posinset': focusableElementIndex + 1, 'aria-setsize': totalItemCount }, item), dismiss); } var contextualMenuItemAs = props.contextualMenuItemAs; var commonProps = { item: item, classNames: classNames, index: index, focusableElementIndex: focusableElementIndex, totalItemCount: totalItemCount, hasCheckmarks: hasCheckmarks, hasIcons: hasIcons, contextualMenuItemAs: contextualMenuItemAs, onItemMouseEnter: onItemMouseEnterBase, onItemMouseLeave: onMouseItemLeave, onItemMouseMove: onItemMouseMoveBase, onItemMouseDown: onItemMouseDown, executeItemClick: executeItemClick, onItemKeyDown: onItemKeyDown, expandedMenuItemKey: expandedMenuItemKey, openSubMenu: openSubMenu, dismissSubMenu: onSubMenuDismiss, dismissMenu: dismiss, }; if (item.href) { return React.createElement(index_2.ContextualMenuAnchor, tslib_1.__assign({}, commonProps, { onItemClick: onAnchorClick })); } if (item.split && (0, index_1.hasSubmenu)(item)) { return (React.createElement(index_2.ContextualMenuSplitButton, tslib_1.__assign({}, commonProps, { onItemClick: onItemClick, onItemClickBase: onItemClickBase, onTap: cancelSubMenuTimer }))); } return React.createElement(index_2.ContextualMenuButton, tslib_1.__assign({}, commonProps, { onItemClick: onItemClick, onItemClickBase: onItemClickBase })); }; var renderHeaderMenuItem = function (item, // eslint-disable-next-line deprecation/deprecation itemClassNames, // eslint-disable-next-line deprecation/deprecation menuClassNames, index, hasCheckmarks, hasIcons) { var _a = props.contextualMenuItemAs, ChildrenRenderer = _a === void 0 ? ContextualMenuItem_1.ContextualMenuItem : _a; var itemProps = item.itemProps, id = item.id; var divHtmlProperties = itemProps && (0, Utilities_1.getNativeProps)(itemProps, Utilities_1.divProperties); return ( // eslint-disable-next-line deprecation/deprecation React.createElement("div", tslib_1.__assign({ id: id, className: menuClassNames.header }, divHtmlProperties, { style: item.style }), React.createElement(ChildrenRenderer, tslib_1.__assign({ item: item, classNames: itemClassNames, index: index, onCheckmarkClick: hasCheckmarks ? onItemClick : undefined, hasIcons: hasIcons }, itemProps)))); }; //#endregion //#region Main render var isBeakVisible = props.isBeakVisible; var items = props.items, labelElementId = props.labelElementId, id = props.id, className = props.className, beakWidth = props.beakWidth, directionalHint = props.directionalHint, directionalHintForRTL = props.directionalHintForRTL, alignTargetEdge = props.alignTargetEdge, gapSpace = props.gapSpace, coverTarget = props.coverTarget, ariaLabel = props.ariaLabel, doNotLayer = props.doNotLayer, target = props.target, bounds = props.bounds, useTargetWidth = props.useTargetWidth, useTargetAsMinWidth = props.useTargetAsMinWidth, directionalHintFixed = props.directionalHintFixed, shouldFocusOnMount = props.shouldFocusOnMount, shouldFocusOnContainer = props.shouldFocusOnContainer, title = props.title, styles = props.styles, theme = props.theme, calloutProps = props.calloutProps, _k = props.onRenderSubMenu, onRenderSubMenu = _k === void 0 ? onDefaultRenderSubMenu : _k, _l = props.onRenderMenuList, onRenderMenuList = _l === void 0 ? function (menuListProps, defaultRender) { return onDefaultRenderMenuList(menuListProps, classNames, defaultRender); } : _l, focusZoneProps = props.focusZoneProps, // eslint-disable-next-line deprecation/deprecation getMenuClassNames = props.getMenuClassNames; var classNames = getMenuClassNames ? getMenuClassNames(theme, className) : getClassNames(styles, { theme: theme, className: className, }); var hasIcons = itemsHaveIcons(items); function itemsHaveIcons(contextualMenuItems) { for (var _i = 0, contextualMenuItems_1 = contextualMenuItems; _i < contextualMenuItems_1.length; _i++) { var item = contextualMenuItems_1[_i]; if (item.iconProps) { return true; } if (item.itemType === ContextualMenu_types_1.ContextualMenuItemType.Section && item.sectionProps && itemsHaveIcons(item.sectionProps.items)) { return true; } } return false; } var adjustedFocusZoneProps = tslib_1.__assign(tslib_1.__assign({ direction: FocusZone_1.FocusZoneDirection.vertical, handleTabKey: FocusZone_1.FocusZoneTabbableElements.all, isCircularNavigation: true }, focusZoneProps), { className: (0, Utilities_1.css)(classNames.root, (_a = props.focusZoneProps) === null || _a === void 0 ? void 0 : _a.className) }); var hasCheckmarks = canAnyMenuItemsCheck(items); var submenuProps = expandedMenuItemKey && props.hidden !== true ? getSubmenuProps() : null; isBeakVisible = isBeakVisible === undefined ? responsiveMode <= ResponsiveMode_1.ResponsiveMode.medium : isBeakVisible; /** * When useTargetWidth is true, get the width of the target element and apply it for the context menu container */ var contextMenuStyle; var targetAsHtmlElement = targetRef.current; if ((useTargetWidth || useTargetAsMinWidth) && targetAsHtmlElement && targetAsHtmlElement.offsetWidth) { var targetBoundingRect = targetAsHtmlElement.getBoundingClientRect(); var targetWidth = targetBoundingRect.width - 2; /* Accounts for 1px border */ if (useTargetWidth) { contextMenuStyle = { width: targetWidth, }; } else if (useTargetAsMinWidth) { contextMenuStyle = { minWidth: targetWidth, }; } } // The menu should only return if items were provided, if no items were provided then it should not appear. if (items && items.length > 0) { var totalItemCount_1 = getItemCount(items); var calloutStyles_1 = classNames.subComponentStyles ? classNames.subComponentStyles.callout : undefined; return (React.createElement(index_3.MenuContext.Consumer, null, function (menuContext) { return (React.createElement(Callout_1.Callout, tslib_1.__assign({ styles: calloutStyles_1, onRestoreFocus: tryFocusPreviousActiveElement }, calloutProps, { target: target || menuContext.target, isBeakVisible: isBeakVisible, beakWidth: beakWidth, directionalHint: directionalHint, directionalHintForRTL: directionalHintForRTL, gapSpace: gapSpace, coverTarget: coverTarget, doNotLayer: doNotLayer, className: (0, Utilities_1.css)('ms-ContextualMenu-Callout', calloutProps && calloutProps.className), setInitialFocus: shouldFocusOnMount, onDismiss: props.onDismiss || menuContext.onDismiss, onScroll: onScroll, bounds: bounds, directionalHintFixed: directionalHintFixed, alignTargetEdge: alignTargetEdge, hidden: props.hidden || menuContext.hidden, ref: forwardedRef }), React.createElement("div", { style: contextMenuStyle, ref: hostElement, id: id, className: classNames.container, tabIndex: shouldFocusOnContainer ? 0 : -1, onKeyDown: onMenuKeyDown, onKeyUp: onKeyUp, onFocusCapture: onMenuFocusCapture, "aria-label": ariaLabel, "aria-labelledby": labelElementId, role: 'menu' }, title && React.createElement("div", { className: classNames.title }, " ", title, " "), items && items.length ? renderFocusZone(onRenderMenuList({ ariaLabel: ariaLabel, items: items, totalItemCount: totalItemCount_1, hasCheckmarks: hasCheckmarks, hasIcons: hasIcons, defaultMenuItemRenderer: function (item) { return defaultMenuItemRenderer(item, classNames); }, labelElementId: labelElementId, }, function (menuListProps, defaultRender) { return onDefaultRenderMenuList(menuListProps, classNames, defaultRender); }), adjustedFocusZoneProps) : null, submenuProps && onRenderSubMenu(submenuProps, onDefaultRenderSubMenu)), React.createElement(Utilities_1.FocusRects, null))); })); } else { return null; } //#endregion }), function (prevProps, newProps) { if (!newProps.shouldUpdateWhenHidden && prevProps.hidden && newProps.hidden) { // Do not update when hidden. return true; } return (0, Utilities_1.shallowCompare)(prevProps, newProps); }); exports.ContextualMenuBase.displayName = 'ContextualMenuBase'; /** * Returns true if the key for the event is alt (Mac option) or meta (Mac command). */ function isAltOrMeta(ev) { // eslint-disable-next-line deprecation/deprecation return ev.which === Utilities_1.KeyCodes.alt || ev.key === 'Meta'; } function onItemMouseDown(item, ev) { var _a; (_a = item.onMouseDown) === null || _a === void 0 ? void 0 : _a.call(item, item, ev); } function onDefaultRenderSubMenu(subMenuProps, defaultRender) { throw Error('ContextualMenuBase: onRenderSubMenu callback is null or undefined. ' + 'Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.'); } /** * Returns the item that matches a given key if any. * @param key - The key of the item to match * @param items - The items to look for the key */ function findItemByKeyFromItems(key, items) { for (var _i = 0, items_3 = items; _i < items_3.length; _i++) { var item = items_3[_i]; if (item.itemType === ContextualMenu_types_1.ContextualMenuItemType.Section && item.sectionProps) { var match = findItemByKeyFromItems(key, item.sectionProps.items); if (match) { return match; } } else if (item.key && item.key === key) { return item; } } } function getOnClickWithOverrideTarget(onClick, target) { return onClick ? function (ev, item) { overrideTarget(ev, target); return onClick(ev, item); } : onClick; } function overrideTarget(ev, target) { if (ev && target) { ev.persist(); if (target instanceof Event) { ev.target = target.target; } else if (target instanceof Element) { ev.target = target; } } } //# sourceMappingURL=ContextualMenu.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.classNames.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.classNames.js ***! \**********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getItemStyles = exports.getItemClassNames = exports.getSplitButtonVerticalDividerClassNames = void 0; var VerticalDivider_classNames_1 = __webpack_require__(/*! ../Divider/VerticalDivider.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.classNames.js"); var ContextualMenu_cnstyles_1 = __webpack_require__(/*! ./ContextualMenu.cnstyles */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.cnstyles.js"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var CONTEXTUAL_SPLIT_MENU_MINWIDTH = '28px'; var MediumScreenSelector = (0, Styling_1.getScreenSelector)(0, Styling_1.ScreenWidthMaxMedium); exports.getSplitButtonVerticalDividerClassNames = (0, Utilities_1.memoizeFunction)( /* eslint-disable deprecation/deprecation */ function (theme) { var _a; return (0, Styling_1.mergeStyleSets)((0, VerticalDivider_classNames_1.getDividerClassNames)(theme), { /* eslint-enable deprecation/deprecation */ wrapper: { position: 'absolute', right: 28, selectors: (_a = {}, _a[MediumScreenSelector] = { right: 32, // fontSize of the icon increased from 12px to 16px }, _a), }, divider: { height: 16, width: 1, }, }); }); var GlobalClassNames = { item: 'ms-ContextualMenu-item', divider: 'ms-ContextualMenu-divider', root: 'ms-ContextualMenu-link', isChecked: 'is-checked', isExpanded: 'is-expanded', isDisabled: 'is-disabled', linkContent: 'ms-ContextualMenu-linkContent', linkContentMenu: 'ms-ContextualMenu-linkContent', icon: 'ms-ContextualMenu-icon', iconColor: 'ms-ContextualMenu-iconColor', checkmarkIcon: 'ms-ContextualMenu-checkmarkIcon', subMenuIcon: 'ms-ContextualMenu-submenuIcon', label: 'ms-ContextualMenu-itemText', secondaryText: 'ms-ContextualMenu-secondaryText', splitMenu: 'ms-ContextualMenu-splitMenu', screenReaderText: 'ms-ContextualMenu-screenReaderText', }; /** * @deprecated Will be removed in \>= 7.0. * This is a package-internal method that has been depended on. * It is being kept in this form for backwards compatibility. * @internal */ // TODO: Audit perf. impact of and potentially remove memoizeFunction. // https://github.com/microsoft/fluentui/issues/5534 exports.getItemClassNames = (0, Utilities_1.memoizeFunction)(function (theme, disabled, expanded, checked, isAnchorLink, knownIcon, itemClassName, dividerClassName, iconClassName, subMenuClassName, primaryDisabled, className) { var _a, _b, _c, _d; var styles = (0, ContextualMenu_cnstyles_1.getMenuItemStyles)(theme); var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return (0, Styling_1.mergeStyleSets)({ item: [classNames.item, styles.item, itemClassName], divider: [classNames.divider, styles.divider, dividerClassName], root: [ classNames.root, styles.root, checked && [classNames.isChecked, styles.rootChecked], isAnchorLink && styles.anchorLink, expanded && [classNames.isExpanded, styles.rootExpanded], disabled && [classNames.isDisabled, styles.rootDisabled], !disabled && !expanded && [ { selectors: (_a = { ':hover': styles.rootHovered, ':active': styles.rootPressed }, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus, .").concat(Utilities_1.IsFocusVisibleClassName, " &:focus:hover")] = styles.rootFocused, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:hover")] = { background: 'inherit;' }, _a), }, ], className, ], splitPrimary: [ styles.root, { width: "calc(100% - ".concat(CONTEXTUAL_SPLIT_MENU_MINWIDTH, ")"), }, checked && ['is-checked', styles.rootChecked], (disabled || primaryDisabled) && ['is-disabled', styles.rootDisabled], !(disabled || primaryDisabled) && !checked && [ { selectors: (_b = { ':hover': styles.rootHovered }, // when hovering over the splitPrimary also affect the splitMenu _b[":hover ~ .".concat(classNames.splitMenu)] = styles.rootHovered, _b[':active'] = styles.rootPressed, _b[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus, .").concat(Utilities_1.IsFocusVisibleClassName, " &:focus:hover")] = styles.rootFocused, _b[".".concat(Utilities_1.IsFocusVisibleClassName, " &:hover")] = { background: 'inherit;' }, _b), }, ], ], splitMenu: [ classNames.splitMenu, styles.root, { flexBasis: '0', padding: '0 8px', minWidth: CONTEXTUAL_SPLIT_MENU_MINWIDTH, }, expanded && ['is-expanded', styles.rootExpanded], disabled && ['is-disabled', styles.rootDisabled], !disabled && !expanded && [ { selectors: (_c = { ':hover': styles.rootHovered, ':active': styles.rootPressed }, _c[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus, .").concat(Utilities_1.IsFocusVisibleClassName, " &:focus:hover")] = styles.rootFocused, _c[".".concat(Utilities_1.IsFocusVisibleClassName, " &:hover")] = { background: 'inherit;' }, _c), }, ], ], anchorLink: styles.anchorLink, linkContent: [classNames.linkContent, styles.linkContent], linkContentMenu: [ classNames.linkContentMenu, styles.linkContent, { justifyContent: 'center', }, ], icon: [ classNames.icon, knownIcon && styles.iconColor, styles.icon, iconClassName, disabled && [classNames.isDisabled, styles.iconDisabled], ], iconColor: styles.iconColor, checkmarkIcon: [classNames.checkmarkIcon, knownIcon && styles.checkmarkIcon, styles.icon, iconClassName], subMenuIcon: [ classNames.subMenuIcon, styles.subMenuIcon, subMenuClassName, expanded && { color: theme.palette.neutralPrimary }, disabled && [styles.iconDisabled], ], label: [classNames.label, styles.label], secondaryText: [classNames.secondaryText, styles.secondaryText], splitContainer: [ styles.splitButtonFlexContainer, !disabled && !checked && [ { selectors: (_d = {}, _d[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus, .").concat(Utilities_1.IsFocusVisibleClassName, " &:focus:hover")] = styles.rootFocused, _d), }, ], ], screenReaderText: [ classNames.screenReaderText, styles.screenReaderText, Styling_1.hiddenContentStyle, { visibility: 'hidden' }, ], }); }); /** * Wrapper function for generating ContextualMenuItem classNames which adheres to * the getStyles API, but invokes memoized className generator function with * primitive values. * * @param props - the ContextualMenuItem style props used to generate its styles. */ var getItemStyles = function (props) { var theme = props.theme, disabled = props.disabled, expanded = props.expanded, checked = props.checked, isAnchorLink = props.isAnchorLink, knownIcon = props.knownIcon, itemClassName = props.itemClassName, dividerClassName = props.dividerClassName, iconClassName = props.iconClassName, subMenuClassName = props.subMenuClassName, primaryDisabled = props.primaryDisabled, className = props.className; // eslint-disable-next-line deprecation/deprecation return (0, exports.getItemClassNames)(theme, disabled, expanded, checked, isAnchorLink, knownIcon, itemClassName, dividerClassName, iconClassName, subMenuClassName, primaryDisabled, className); }; exports.getItemStyles = getItemStyles; //# sourceMappingURL=ContextualMenu.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.cnstyles.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.cnstyles.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getMenuItemStyles = exports.CONTEXTUAL_MENU_ITEM_HEIGHT = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.CONTEXTUAL_MENU_ITEM_HEIGHT = 36; var MediumScreenSelector = (0, Styling_1.getScreenSelector)(0, Styling_1.ScreenWidthMaxMedium); exports.getMenuItemStyles = (0, Utilities_1.memoizeFunction)(function (theme) { var _a, _b, _c, _d, _e; var semanticColors = theme.semanticColors, fonts = theme.fonts, palette = theme.palette; var ContextualMenuItemBackgroundHoverColor = semanticColors.menuItemBackgroundHovered; var ContextualMenuItemTextHoverColor = semanticColors.menuItemTextHovered; var ContextualMenuItemBackgroundSelectedColor = semanticColors.menuItemBackgroundPressed; var ContextualMenuItemDividerColor = semanticColors.bodyDivider; var menuItemStyles = { item: [ fonts.medium, { color: semanticColors.bodyText, position: 'relative', boxSizing: 'border-box', }, ], divider: { display: 'block', height: '1px', backgroundColor: ContextualMenuItemDividerColor, position: 'relative', }, root: [ (0, Styling_1.getFocusStyle)(theme), fonts.medium, { color: semanticColors.bodyText, backgroundColor: 'transparent', border: 'none', width: '100%', height: exports.CONTEXTUAL_MENU_ITEM_HEIGHT, lineHeight: exports.CONTEXTUAL_MENU_ITEM_HEIGHT, display: 'block', cursor: 'pointer', padding: '0px 8px 0 4px', textAlign: 'left', }, ], rootDisabled: { color: semanticColors.disabledBodyText, cursor: 'default', pointerEvents: 'none', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { // ensure disabled text looks different than enabled color: 'GrayText', opacity: 1, }, _a), }, rootHovered: { backgroundColor: ContextualMenuItemBackgroundHoverColor, color: ContextualMenuItemTextHoverColor, selectors: { '.ms-ContextualMenu-icon': { color: palette.themeDarkAlt, }, '.ms-ContextualMenu-submenuIcon': { color: palette.neutralPrimary, }, }, }, rootFocused: { backgroundColor: palette.white, }, rootChecked: { selectors: { '.ms-ContextualMenu-checkmarkIcon': { color: palette.neutralPrimary, }, }, }, rootPressed: { backgroundColor: ContextualMenuItemBackgroundSelectedColor, selectors: { '.ms-ContextualMenu-icon': { color: palette.themeDark, }, '.ms-ContextualMenu-submenuIcon': { color: palette.neutralPrimary, }, }, }, rootExpanded: { backgroundColor: ContextualMenuItemBackgroundSelectedColor, color: semanticColors.bodyTextChecked, selectors: (_b = { '.ms-ContextualMenu-submenuIcon': (_c = {}, _c[Styling_1.HighContrastSelector] = { // icons inside of anchor tags are not properly inheriting color in high contrast color: 'inherit', }, _c) }, _b[Styling_1.HighContrastSelector] = tslib_1.__assign({}, (0, Styling_1.getHighContrastNoAdjustStyle)()), _b), }, linkContent: { whiteSpace: 'nowrap', height: 'inherit', display: 'flex', alignItems: 'center', maxWidth: '100%', }, anchorLink: { padding: '0px 8px 0 4px', textRendering: 'auto', color: 'inherit', letterSpacing: 'normal', wordSpacing: 'normal', textTransform: 'none', textIndent: '0px', textShadow: 'none', textDecoration: 'none', boxSizing: 'border-box', }, label: { margin: '0 4px', verticalAlign: 'middle', display: 'inline-block', flexGrow: '1', textOverflow: 'ellipsis', whiteSpace: 'nowrap', overflow: 'hidden', }, secondaryText: { color: theme.palette.neutralSecondary, paddingLeft: '20px', textAlign: 'right', }, icon: { display: 'inline-block', minHeight: '1px', maxHeight: exports.CONTEXTUAL_MENU_ITEM_HEIGHT, fontSize: Styling_1.IconFontSizes.medium, width: Styling_1.IconFontSizes.medium, margin: '0 4px', verticalAlign: 'middle', flexShrink: '0', selectors: (_d = {}, _d[MediumScreenSelector] = { fontSize: Styling_1.IconFontSizes.large, width: Styling_1.IconFontSizes.large, }, _d), }, iconColor: { color: semanticColors.menuIcon, }, iconDisabled: { color: semanticColors.disabledBodyText, }, checkmarkIcon: { color: semanticColors.bodySubtext, }, subMenuIcon: { height: exports.CONTEXTUAL_MENU_ITEM_HEIGHT, lineHeight: exports.CONTEXTUAL_MENU_ITEM_HEIGHT, color: palette.neutralSecondary, textAlign: 'center', display: 'inline-block', verticalAlign: 'middle', flexShrink: '0', fontSize: Styling_1.IconFontSizes.small, selectors: (_e = { ':hover': { color: palette.neutralPrimary, }, ':active': { color: palette.neutralPrimary, } }, _e[MediumScreenSelector] = { fontSize: Styling_1.IconFontSizes.medium, // 16px }, _e), }, splitButtonFlexContainer: [ (0, Styling_1.getFocusStyle)(theme), { display: 'flex', height: exports.CONTEXTUAL_MENU_ITEM_HEIGHT, flexWrap: 'nowrap', justifyContent: 'center', alignItems: 'flex-start', }, ], }; return (0, Styling_1.concatStyleSets)(menuItemStyles); }); //# sourceMappingURL=ContextualMenu.cnstyles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ContextualMenu = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ContextualMenu_base_1 = __webpack_require__(/*! ./ContextualMenu.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.base.js"); var ContextualMenu_styles_1 = __webpack_require__(/*! ./ContextualMenu.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.styles.js"); function onRenderSubMenu(subMenuProps) { return React.createElement(LocalContextualMenu, tslib_1.__assign({}, subMenuProps)); } // This is to prevent cyclic import with ContextualMenu.base.tsx. var LocalContextualMenu = (0, Utilities_1.styled)(ContextualMenu_base_1.ContextualMenuBase, ContextualMenu_styles_1.getStyles, function (props) { return ({ onRenderSubMenu: props.onRenderSubMenu ? (0, Utilities_1.composeRenderFunction)(props.onRenderSubMenu, onRenderSubMenu) : onRenderSubMenu, }); }, { scope: 'ContextualMenu' }); /** * ContextualMenu description */ exports.ContextualMenu = LocalContextualMenu; exports.ContextualMenu.displayName = 'ContextualMenu'; //# sourceMappingURL=ContextualMenu.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.styles.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.styles.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var ContextualMenu_cnstyles_1 = __webpack_require__(/*! ./ContextualMenu.cnstyles */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.cnstyles.js"); var GlobalClassNames = { root: 'ms-ContextualMenu', container: 'ms-ContextualMenu-container', list: 'ms-ContextualMenu-list', header: 'ms-ContextualMenu-header', title: 'ms-ContextualMenu-title', isopen: 'is-open', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var fonts = theme.fonts, semanticColors = theme.semanticColors, effects = theme.effects; return { root: [ theme.fonts.medium, classNames.root, classNames.isopen, { backgroundColor: semanticColors.menuBackground, minWidth: '180px', }, className, ], container: [ classNames.container, { selectors: { ':focus': { outline: 0 }, }, }, ], list: [ classNames.list, classNames.isopen, { listStyleType: 'none', margin: '0', padding: '0', }, ], header: [ classNames.header, fonts.small, { fontWeight: Styling_1.FontWeights.semibold, color: semanticColors.menuHeader, background: 'none', backgroundColor: 'transparent', border: 'none', height: ContextualMenu_cnstyles_1.CONTEXTUAL_MENU_ITEM_HEIGHT, lineHeight: ContextualMenu_cnstyles_1.CONTEXTUAL_MENU_ITEM_HEIGHT, cursor: 'default', padding: '0px 6px', userSelect: 'none', textAlign: 'left', }, ], title: [ classNames.title, { fontSize: fonts.mediumPlus.fontSize, paddingRight: '14px', paddingLeft: '14px', paddingBottom: '5px', paddingTop: '5px', backgroundColor: semanticColors.menuItemBackgroundPressed, }, ], subComponentStyles: { callout: { root: { boxShadow: effects.elevation8, }, }, menuItem: {}, }, }; }; exports.getStyles = getStyles; //# sourceMappingURL=ContextualMenu.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.types.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.types.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ContextualMenuItemType = exports.DirectionalHint = void 0; var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); Object.defineProperty(exports, "DirectionalHint", ({ enumerable: true, get: function () { return DirectionalHint_1.DirectionalHint; } })); /** * {@docCategory ContextualMenu} */ var ContextualMenuItemType; (function (ContextualMenuItemType) { ContextualMenuItemType[ContextualMenuItemType["Normal"] = 0] = "Normal"; ContextualMenuItemType[ContextualMenuItemType["Divider"] = 1] = "Divider"; ContextualMenuItemType[ContextualMenuItemType["Header"] = 2] = "Header"; ContextualMenuItemType[ContextualMenuItemType["Section"] = 3] = "Section"; })(ContextualMenuItemType = exports.ContextualMenuItemType || (exports.ContextualMenuItemType = {})); //# sourceMappingURL=ContextualMenu.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.base.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.base.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ContextualMenuItemBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var index_1 = __webpack_require__(/*! ../../utilities/contextualMenu/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var defaultIconRenderer = function (props) { var item = props.item, classNames = props.classNames; var iconProps = item.iconProps; return React.createElement(Icon_1.Icon, tslib_1.__assign({}, iconProps, { className: classNames.icon })); }; var renderItemIcon = function (props) { var item = props.item, hasIcons = props.hasIcons; if (!hasIcons) { return null; } if (item.onRenderIcon) { return item.onRenderIcon(props, defaultIconRenderer); } return defaultIconRenderer(props); }; var renderCheckMarkIcon = function (_a) { var onCheckmarkClick = _a.onCheckmarkClick, item = _a.item, classNames = _a.classNames; var isItemChecked = (0, index_1.getIsChecked)(item); if (onCheckmarkClick) { // Ensures that the item is passed as the first argument to the checkmark click callback. var onClick = function (e) { return onCheckmarkClick(item, e); }; return (React.createElement(Icon_1.Icon, { iconName: item.canCheck !== false && isItemChecked ? 'CheckMark' : '', className: classNames.checkmarkIcon, // eslint-disable-next-line react/jsx-no-bind onClick: onClick })); } return null; }; var renderItemName = function (_a) { var item = _a.item, classNames = _a.classNames; /* eslint-disable deprecation/deprecation */ if (item.text || item.name) { return React.createElement("span", { className: classNames.label }, item.text || item.name); } /* eslint-enable deprecation/deprecation */ return null; }; var renderSecondaryText = function (_a) { var item = _a.item, classNames = _a.classNames; if (item.secondaryText) { return React.createElement("span", { className: classNames.secondaryText }, item.secondaryText); } return null; }; var renderSubMenuIcon = function (_a) { var item = _a.item, classNames = _a.classNames, theme = _a.theme; if ((0, index_1.hasSubmenu)(item)) { return (React.createElement(Icon_1.Icon, tslib_1.__assign({ iconName: (0, Utilities_1.getRTL)(theme) ? 'ChevronLeft' : 'ChevronRight' }, item.submenuIconProps, { className: classNames.subMenuIcon }))); } return null; }; var ContextualMenuItemBase = /** @class */ (function (_super) { tslib_1.__extends(ContextualMenuItemBase, _super); function ContextualMenuItemBase(props) { var _this = _super.call(this, props) || this; _this.openSubMenu = function () { var _a = _this.props, item = _a.item, openSubMenu = _a.openSubMenu, getSubmenuTarget = _a.getSubmenuTarget; if (getSubmenuTarget) { var submenuTarget = getSubmenuTarget(); if ((0, index_1.hasSubmenu)(item) && openSubMenu && submenuTarget) { openSubMenu(item, submenuTarget); } } }; _this.dismissSubMenu = function () { var _a = _this.props, item = _a.item, dismissSubMenu = _a.dismissSubMenu; if ((0, index_1.hasSubmenu)(item) && dismissSubMenu) { dismissSubMenu(); } }; _this.dismissMenu = function (dismissAll) { var dismissMenu = _this.props.dismissMenu; if (dismissMenu) { dismissMenu(undefined /* ev */, dismissAll); } }; (0, Utilities_1.initializeComponentRef)(_this); return _this; } ContextualMenuItemBase.prototype.render = function () { var _a = this.props, item = _a.item, classNames = _a.classNames; var renderContent = item.onRenderContent || this._renderLayout; return (React.createElement("div", { className: item.split ? classNames.linkContentMenu : classNames.linkContent }, renderContent(this.props, { renderCheckMarkIcon: renderCheckMarkIcon, renderItemIcon: renderItemIcon, renderItemName: renderItemName, renderSecondaryText: renderSecondaryText, renderSubMenuIcon: renderSubMenuIcon, }))); }; ContextualMenuItemBase.prototype._renderLayout = function (props, defaultRenders) { return (React.createElement(React.Fragment, null, defaultRenders.renderCheckMarkIcon(props), defaultRenders.renderItemIcon(props), defaultRenders.renderItemName(props), defaultRenders.renderSecondaryText(props), defaultRenders.renderSubMenuIcon(props))); }; return ContextualMenuItemBase; }(React.Component)); exports.ContextualMenuItemBase = ContextualMenuItemBase; //# sourceMappingURL=ContextualMenuItem.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ContextualMenuItem = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ContextualMenuItem_base_1 = __webpack_require__(/*! ./ContextualMenuItem.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.base.js"); var ContextualMenu_classNames_1 = __webpack_require__(/*! ./ContextualMenu.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.classNames.js"); /** * ContextualMenuItem description */ exports.ContextualMenuItem = (0, Utilities_1.styled)(ContextualMenuItem_base_1.ContextualMenuItemBase, ContextualMenu_classNames_1.getItemStyles, undefined, { scope: 'ContextualMenuItem' }); //# sourceMappingURL=ContextualMenuItem.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.types.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.types.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ContextualMenuItem.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuAnchor.js": /*!*******************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuAnchor.js ***! \*******************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ContextualMenuAnchor = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ContextualMenuItemWrapper_1 = __webpack_require__(/*! ./ContextualMenuItemWrapper */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js"); var KeytipData_1 = __webpack_require__(/*! ../../../KeytipData */ "./node_modules/@fluentui/react/lib-commonjs/KeytipData.js"); var index_1 = __webpack_require__(/*! ../../../utilities/contextualMenu/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/index.js"); var ContextualMenuItem_1 = __webpack_require__(/*! ../ContextualMenuItem */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.js"); var ContextualMenuAnchor = /** @class */ (function (_super) { tslib_1.__extends(ContextualMenuAnchor, _super); function ContextualMenuAnchor() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._anchor = React.createRef(); _this._getMemoizedMenuButtonKeytipProps = (0, Utilities_1.memoizeFunction)(function (keytipProps) { return tslib_1.__assign(tslib_1.__assign({}, keytipProps), { hasMenu: true }); }); _this._getSubmenuTarget = function () { return _this._anchor.current ? _this._anchor.current : undefined; }; _this._onItemClick = function (ev) { var _a = _this.props, item = _a.item, onItemClick = _a.onItemClick; if (onItemClick) { onItemClick(item, ev); } }; _this._renderAriaDescription = function (ariaDescription, className) { // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan return ariaDescription ? (React.createElement("span", { id: _this._ariaDescriptionId, className: className }, ariaDescription)) : null; }; return _this; } ContextualMenuAnchor.prototype.render = function () { var _this = this; var _a = this.props, item = _a.item, classNames = _a.classNames, index = _a.index, focusableElementIndex = _a.focusableElementIndex, totalItemCount = _a.totalItemCount, hasCheckmarks = _a.hasCheckmarks, hasIcons = _a.hasIcons, _b = _a.contextualMenuItemAs, ChildrenRenderer = _b === void 0 ? ContextualMenuItem_1.ContextualMenuItem : _b, expandedMenuItemKey = _a.expandedMenuItemKey, onItemClick = _a.onItemClick, openSubMenu = _a.openSubMenu, dismissSubMenu = _a.dismissSubMenu, dismissMenu = _a.dismissMenu; var anchorRel = item.rel; if (item.target && item.target.toLowerCase() === '_blank') { anchorRel = anchorRel ? anchorRel : 'nofollow noopener noreferrer'; // Safe default to prevent tabjacking } var itemHasSubmenu = (0, index_1.hasSubmenu)(item); var nativeProps = (0, Utilities_1.getNativeProps)(item, Utilities_1.anchorProperties); var disabled = (0, index_1.isItemDisabled)(item); var itemProps = item.itemProps, ariaDescription = item.ariaDescription; var keytipProps = item.keytipProps; if (keytipProps && itemHasSubmenu) { keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps); } // Check for ariaDescription to set the _ariaDescriptionId and render a hidden span with // the description in it to be added to ariaDescribedBy if (ariaDescription) { this._ariaDescriptionId = (0, Utilities_1.getId)(); } var ariaDescribedByIds = (0, Utilities_1.mergeAriaAttributeValues)(item.ariaDescribedBy, ariaDescription ? this._ariaDescriptionId : undefined, nativeProps['aria-describedby']); var additionalItemProperties = { 'aria-describedby': ariaDescribedByIds, }; return (React.createElement("div", null, React.createElement(KeytipData_1.KeytipData, { keytipProps: item.keytipProps, ariaDescribedBy: ariaDescribedByIds, disabled: disabled }, function (keytipAttributes) { return (React.createElement("a", tslib_1.__assign({}, additionalItemProperties, nativeProps, keytipAttributes, { ref: _this._anchor, href: item.href, target: item.target, rel: anchorRel, className: classNames.root, role: "menuitem", "aria-haspopup": itemHasSubmenu || undefined, "aria-expanded": itemHasSubmenu ? item.key === expandedMenuItemKey : undefined, "aria-posinset": focusableElementIndex + 1, "aria-setsize": totalItemCount, "aria-disabled": (0, index_1.isItemDisabled)(item), // eslint-disable-next-line deprecation/deprecation style: item.style, onClick: _this._onItemClick, onMouseEnter: _this._onItemMouseEnter, onMouseLeave: _this._onItemMouseLeave, onMouseMove: _this._onItemMouseMove, onKeyDown: itemHasSubmenu ? _this._onItemKeyDown : undefined }), React.createElement(ChildrenRenderer, tslib_1.__assign({ componentRef: item.componentRef, item: item, classNames: classNames, index: index, onCheckmarkClick: hasCheckmarks && onItemClick ? onItemClick : undefined, hasIcons: hasIcons, openSubMenu: openSubMenu, dismissSubMenu: dismissSubMenu, dismissMenu: dismissMenu, getSubmenuTarget: _this._getSubmenuTarget }, itemProps)), _this._renderAriaDescription(ariaDescription, classNames.screenReaderText))); }))); }; return ContextualMenuAnchor; }(ContextualMenuItemWrapper_1.ContextualMenuItemWrapper)); exports.ContextualMenuAnchor = ContextualMenuAnchor; //# sourceMappingURL=ContextualMenuAnchor.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuButton.js": /*!*******************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuButton.js ***! \*******************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ContextualMenuButton = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ContextualMenuItemWrapper_1 = __webpack_require__(/*! ./ContextualMenuItemWrapper */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js"); var KeytipData_1 = __webpack_require__(/*! ../../../KeytipData */ "./node_modules/@fluentui/react/lib-commonjs/KeytipData.js"); var index_1 = __webpack_require__(/*! ../../../utilities/contextualMenu/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/index.js"); var ContextualMenuItem_1 = __webpack_require__(/*! ../ContextualMenuItem */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.js"); var ContextualMenuButton = /** @class */ (function (_super) { tslib_1.__extends(ContextualMenuButton, _super); function ContextualMenuButton() { var _this = _super !== null && _super.apply(this, arguments) || this; _this._btn = React.createRef(); _this._getMemoizedMenuButtonKeytipProps = (0, Utilities_1.memoizeFunction)(function (keytipProps) { return tslib_1.__assign(tslib_1.__assign({}, keytipProps), { hasMenu: true }); }); _this._renderAriaDescription = function (ariaDescription, className) { // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan return ariaDescription ? (React.createElement("span", { id: _this._ariaDescriptionId, className: className }, ariaDescription)) : null; }; _this._getSubmenuTarget = function () { return _this._btn.current ? _this._btn.current : undefined; }; return _this; } ContextualMenuButton.prototype.render = function () { var _this = this; var _a = this.props, item = _a.item, classNames = _a.classNames, index = _a.index, focusableElementIndex = _a.focusableElementIndex, totalItemCount = _a.totalItemCount, hasCheckmarks = _a.hasCheckmarks, hasIcons = _a.hasIcons, _b = _a.contextualMenuItemAs, ChildrenRenderer = _b === void 0 ? ContextualMenuItem_1.ContextualMenuItem : _b, expandedMenuItemKey = _a.expandedMenuItemKey, onItemMouseDown = _a.onItemMouseDown, onItemClick = _a.onItemClick, openSubMenu = _a.openSubMenu, dismissSubMenu = _a.dismissSubMenu, dismissMenu = _a.dismissMenu; var isChecked = (0, index_1.getIsChecked)(item); var canCheck = isChecked !== null; var defaultRole = (0, index_1.getMenuItemAriaRole)(item); var itemHasSubmenu = (0, index_1.hasSubmenu)(item); var itemProps = item.itemProps, ariaLabel = item.ariaLabel, ariaDescription = item.ariaDescription; var buttonNativeProperties = (0, Utilities_1.getNativeProps)(item, Utilities_1.buttonProperties); // Do not add the disabled attribute to the button so that it is focusable delete buttonNativeProperties.disabled; var itemRole = item.role || defaultRole; // Check for ariaDescription to set the _ariaDescriptionId and render a hidden span with // the description in it to be added to ariaDescribedBy if (ariaDescription) { this._ariaDescriptionId = (0, Utilities_1.getId)(); } var ariaDescribedByIds = (0, Utilities_1.mergeAriaAttributeValues)(item.ariaDescribedBy, ariaDescription ? this._ariaDescriptionId : undefined, buttonNativeProperties['aria-describedby']); var itemButtonProperties = { className: classNames.root, onClick: this._onItemClick, onKeyDown: itemHasSubmenu ? this._onItemKeyDown : undefined, onMouseEnter: this._onItemMouseEnter, onMouseLeave: this._onItemMouseLeave, onMouseDown: function (ev) { return onItemMouseDown ? onItemMouseDown(item, ev) : undefined; }, onMouseMove: this._onItemMouseMove, href: item.href, title: item.title, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedByIds, 'aria-haspopup': itemHasSubmenu || undefined, 'aria-expanded': itemHasSubmenu ? item.key === expandedMenuItemKey : undefined, 'aria-posinset': focusableElementIndex + 1, 'aria-setsize': totalItemCount, 'aria-disabled': (0, index_1.isItemDisabled)(item), 'aria-checked': (itemRole === 'menuitemcheckbox' || itemRole === 'menuitemradio') && canCheck ? !!isChecked : undefined, 'aria-selected': itemRole === 'menuitem' && canCheck ? !!isChecked : undefined, role: itemRole, // eslint-disable-next-line deprecation/deprecation style: item.style, }; var keytipProps = item.keytipProps; if (keytipProps && itemHasSubmenu) { keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps); } return (React.createElement(KeytipData_1.KeytipData, { keytipProps: keytipProps, ariaDescribedBy: ariaDescribedByIds, disabled: (0, index_1.isItemDisabled)(item) }, function (keytipAttributes) { return (React.createElement("button", tslib_1.__assign({ ref: _this._btn }, buttonNativeProperties, itemButtonProperties, keytipAttributes), React.createElement(ChildrenRenderer, tslib_1.__assign({ componentRef: item.componentRef, item: item, classNames: classNames, index: index, onCheckmarkClick: hasCheckmarks && onItemClick ? onItemClick : undefined, hasIcons: hasIcons, openSubMenu: openSubMenu, dismissSubMenu: dismissSubMenu, dismissMenu: dismissMenu, getSubmenuTarget: _this._getSubmenuTarget }, itemProps)), _this._renderAriaDescription(ariaDescription, classNames.screenReaderText))); })); }; return ContextualMenuButton; }(ContextualMenuItemWrapper_1.ContextualMenuItemWrapper)); exports.ContextualMenuButton = ContextualMenuButton; //# sourceMappingURL=ContextualMenuButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js": /*!************************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js ***! \************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ContextualMenuItemWrapper = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ContextualMenuItemWrapper = /** @class */ (function (_super) { tslib_1.__extends(ContextualMenuItemWrapper, _super); function ContextualMenuItemWrapper(props) { var _this = _super.call(this, props) || this; _this._onItemMouseEnter = function (ev) { var _a = _this.props, item = _a.item, onItemMouseEnter = _a.onItemMouseEnter; if (onItemMouseEnter) { onItemMouseEnter(item, ev, ev.currentTarget); } }; _this._onItemClick = function (ev) { var _a = _this.props, item = _a.item, onItemClickBase = _a.onItemClickBase; if (onItemClickBase) { onItemClickBase(item, ev, ev.currentTarget); } }; _this._onItemMouseLeave = function (ev) { var _a = _this.props, item = _a.item, onItemMouseLeave = _a.onItemMouseLeave; if (onItemMouseLeave) { onItemMouseLeave(item, ev); } }; _this._onItemKeyDown = function (ev) { var _a = _this.props, item = _a.item, onItemKeyDown = _a.onItemKeyDown; if (onItemKeyDown) { onItemKeyDown(item, ev); } }; _this._onItemMouseMove = function (ev) { var _a = _this.props, item = _a.item, onItemMouseMove = _a.onItemMouseMove; if (onItemMouseMove) { onItemMouseMove(item, ev, ev.currentTarget); } }; _this._getSubmenuTarget = function () { return undefined; }; (0, Utilities_1.initializeComponentRef)(_this); return _this; } ContextualMenuItemWrapper.prototype.shouldComponentUpdate = function (newProps) { return !(0, Utilities_1.shallowCompare)(newProps, this.props); }; return ContextualMenuItemWrapper; }(React.Component)); exports.ContextualMenuItemWrapper = ContextualMenuItemWrapper; //# sourceMappingURL=ContextualMenuItemWrapper.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.types.js": /*!******************************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.types.js ***! \******************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ContextualMenuItemWrapper.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuSplitButton.js": /*!************************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuSplitButton.js ***! \************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ContextualMenuSplitButton = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ContextualMenuItem_1 = __webpack_require__(/*! ../ContextualMenuItem */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.js"); var ContextualMenu_classNames_1 = __webpack_require__(/*! ../ContextualMenu.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.classNames.js"); var KeytipData_1 = __webpack_require__(/*! ../../../KeytipData */ "./node_modules/@fluentui/react/lib-commonjs/KeytipData.js"); var index_1 = __webpack_require__(/*! ../../../utilities/contextualMenu/index */ "./node_modules/@fluentui/react/lib-commonjs/utilities/contextualMenu/index.js"); var Divider_1 = __webpack_require__(/*! ../../../Divider */ "./node_modules/@fluentui/react/lib-commonjs/Divider.js"); var ContextualMenuItemWrapper_1 = __webpack_require__(/*! ./ContextualMenuItemWrapper */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js"); var TouchIdleDelay = 500; /* ms */ var ContextualMenuSplitButton = /** @class */ (function (_super) { tslib_1.__extends(ContextualMenuSplitButton, _super); function ContextualMenuSplitButton(props) { var _this = _super.call(this, props) || this; _this._getMemoizedMenuButtonKeytipProps = (0, Utilities_1.memoizeFunction)(function (keytipProps) { return tslib_1.__assign(tslib_1.__assign({}, keytipProps), { hasMenu: true }); }); _this._onItemKeyDown = function (ev) { var _a = _this.props, item = _a.item, onItemKeyDown = _a.onItemKeyDown; // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter) { _this._executeItemClick(ev); ev.preventDefault(); ev.stopPropagation(); } else if (onItemKeyDown) { onItemKeyDown(item, ev); } }; _this._getSubmenuTarget = function () { return _this._splitButton; }; _this._renderAriaDescription = function (ariaDescription, className) { // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan return ariaDescription ? (React.createElement("span", { id: _this._ariaDescriptionId, className: className }, ariaDescription)) : null; }; _this._onItemMouseEnterPrimary = function (ev) { var _a = _this.props, item = _a.item, onItemMouseEnter = _a.onItemMouseEnter; if (onItemMouseEnter) { onItemMouseEnter(tslib_1.__assign(tslib_1.__assign({}, item), { subMenuProps: undefined, items: undefined }), ev, _this._splitButton); } }; _this._onItemMouseEnterIcon = function (ev) { var _a = _this.props, item = _a.item, onItemMouseEnter = _a.onItemMouseEnter; if (onItemMouseEnter) { onItemMouseEnter(item, ev, _this._splitButton); } }; _this._onItemMouseMovePrimary = function (ev) { var _a = _this.props, item = _a.item, onItemMouseMove = _a.onItemMouseMove; if (onItemMouseMove) { onItemMouseMove(tslib_1.__assign(tslib_1.__assign({}, item), { subMenuProps: undefined, items: undefined }), ev, _this._splitButton); } }; _this._onItemMouseMoveIcon = function (ev) { var _a = _this.props, item = _a.item, onItemMouseMove = _a.onItemMouseMove; if (onItemMouseMove) { onItemMouseMove(item, ev, _this._splitButton); } }; _this._onIconItemClick = function (ev) { var _a = _this.props, item = _a.item, onItemClickBase = _a.onItemClickBase; if (onItemClickBase) { onItemClickBase(item, ev, (_this._splitButton ? _this._splitButton : ev.currentTarget)); } }; _this._executeItemClick = function (ev) { var _a = _this.props, item = _a.item, executeItemClick = _a.executeItemClick, onItemClick = _a.onItemClick; if (item.disabled || item.isDisabled) { return; } if (_this._processingTouch && !item.canCheck && onItemClick) { return onItemClick(item, ev); } if (executeItemClick) { executeItemClick(item, ev); } }; _this._onTouchStart = function (ev) { if (_this._splitButton && !('onpointerdown' in _this._splitButton)) { _this._handleTouchAndPointerEvent(ev); } }; _this._onPointerDown = function (ev) { if (ev.pointerType === 'touch') { _this._handleTouchAndPointerEvent(ev); ev.preventDefault(); ev.stopImmediatePropagation(); } }; _this._async = new Utilities_1.Async(_this); _this._events = new Utilities_1.EventGroup(_this); _this._dismissLabelId = (0, Utilities_1.getId)(); return _this; } ContextualMenuSplitButton.prototype.componentDidMount = function () { if (this._splitButton && 'onpointerdown' in this._splitButton) { this._events.on(this._splitButton, 'pointerdown', this._onPointerDown, true); } }; ContextualMenuSplitButton.prototype.componentWillUnmount = function () { this._async.dispose(); this._events.dispose(); }; ContextualMenuSplitButton.prototype.render = function () { var _this = this; var _a; var _b = this.props, item = _b.item, classNames = _b.classNames, index = _b.index, focusableElementIndex = _b.focusableElementIndex, totalItemCount = _b.totalItemCount, hasCheckmarks = _b.hasCheckmarks, hasIcons = _b.hasIcons, onItemMouseLeave = _b.onItemMouseLeave, expandedMenuItemKey = _b.expandedMenuItemKey; var itemHasSubmenu = (0, index_1.hasSubmenu)(item); var keytipProps = item.keytipProps; if (keytipProps) { keytipProps = this._getMemoizedMenuButtonKeytipProps(keytipProps); } // Check for ariaDescription to set the _ariaDescriptionId and render a hidden span with // the description in it to be added to ariaDescribedBy var ariaDescription = item.ariaDescription; if (ariaDescription) { this._ariaDescriptionId = (0, Utilities_1.getId)(); } var ariaChecked = (_a = (0, index_1.getIsChecked)(item)) !== null && _a !== void 0 ? _a : undefined; return (React.createElement(KeytipData_1.KeytipData, { keytipProps: keytipProps, disabled: (0, index_1.isItemDisabled)(item) }, function (keytipAttributes) { return (React.createElement("div", { "data-ktp-target": keytipAttributes['data-ktp-target'], ref: function (splitButton) { return (_this._splitButton = splitButton); }, role: (0, index_1.getMenuItemAriaRole)(item), "aria-label": item.ariaLabel, className: classNames.splitContainer, "aria-disabled": (0, index_1.isItemDisabled)(item), "aria-expanded": itemHasSubmenu ? item.key === expandedMenuItemKey : undefined, "aria-haspopup": true, "aria-describedby": (0, Utilities_1.mergeAriaAttributeValues)(item.ariaDescribedBy, ariaDescription ? _this._ariaDescriptionId : undefined, keytipAttributes['aria-describedby']), "aria-checked": ariaChecked, "aria-posinset": focusableElementIndex + 1, "aria-setsize": totalItemCount, onMouseEnter: _this._onItemMouseEnterPrimary, onMouseLeave: onItemMouseLeave ? onItemMouseLeave.bind(_this, tslib_1.__assign(tslib_1.__assign({}, item), { subMenuProps: null, items: null })) : undefined, onMouseMove: _this._onItemMouseMovePrimary, onKeyDown: _this._onItemKeyDown, onClick: _this._executeItemClick, onTouchStart: _this._onTouchStart, tabIndex: 0, "data-is-focusable": true, "aria-roledescription": item['aria-roledescription'] }, _this._renderSplitPrimaryButton(item, classNames, index, hasCheckmarks, hasIcons), _this._renderSplitDivider(item), _this._renderSplitIconButton(item, classNames, index, keytipAttributes), _this._renderAriaDescription(ariaDescription, classNames.screenReaderText))); })); }; ContextualMenuSplitButton.prototype._renderSplitPrimaryButton = function (item, // eslint-disable-next-line deprecation/deprecation classNames, index, hasCheckmarks, hasIcons) { var _a = this.props, _b = _a.contextualMenuItemAs, ChildrenRenderer = _b === void 0 ? ContextualMenuItem_1.ContextualMenuItem : _b, onItemClick = _a.onItemClick; var itemProps = { key: item.key, disabled: (0, index_1.isItemDisabled)(item) || item.primaryDisabled, /* eslint-disable deprecation/deprecation */ name: item.name, text: item.text || item.name, secondaryText: item.secondaryText, /* eslint-enable deprecation/deprecation */ className: classNames.splitPrimary, canCheck: item.canCheck, isChecked: item.isChecked, checked: item.checked, iconProps: item.iconProps, id: this._dismissLabelId, onRenderIcon: item.onRenderIcon, data: item.data, 'data-is-focusable': false, }; var itemComponentProps = item.itemProps; return (React.createElement("button", tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(itemProps, Utilities_1.buttonProperties)), React.createElement(ChildrenRenderer, tslib_1.__assign({ "data-is-focusable": false, item: itemProps, classNames: classNames, index: index, onCheckmarkClick: hasCheckmarks && onItemClick ? onItemClick : undefined, hasIcons: hasIcons }, itemComponentProps)))); }; ContextualMenuSplitButton.prototype._renderSplitDivider = function (item) { var getDividerClassNames = item.getSplitButtonVerticalDividerClassNames || ContextualMenu_classNames_1.getSplitButtonVerticalDividerClassNames; return React.createElement(Divider_1.VerticalDivider, { getClassNames: getDividerClassNames }); }; ContextualMenuSplitButton.prototype._renderSplitIconButton = function (item, classNames, // eslint-disable-line deprecation/deprecation index, keytipAttributes) { var _a = this.props, _b = _a.contextualMenuItemAs, ChildrenRenderer = _b === void 0 ? ContextualMenuItem_1.ContextualMenuItem : _b, onItemMouseLeave = _a.onItemMouseLeave, onItemMouseDown = _a.onItemMouseDown, openSubMenu = _a.openSubMenu, dismissSubMenu = _a.dismissSubMenu, dismissMenu = _a.dismissMenu; var itemProps = { onClick: this._onIconItemClick, disabled: (0, index_1.isItemDisabled)(item), className: classNames.splitMenu, subMenuProps: item.subMenuProps, submenuIconProps: item.submenuIconProps, split: true, key: item.key, 'aria-labelledby': this._dismissLabelId, }; var buttonProps = tslib_1.__assign(tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(itemProps, Utilities_1.buttonProperties)), { onMouseEnter: this._onItemMouseEnterIcon, onMouseLeave: onItemMouseLeave ? onItemMouseLeave.bind(this, item) : undefined, onMouseDown: function (ev) { return onItemMouseDown ? onItemMouseDown(item, ev) : undefined; }, onMouseMove: this._onItemMouseMoveIcon, 'data-is-focusable': false, 'data-ktp-execute-target': keytipAttributes['data-ktp-execute-target'], 'aria-haspopup': true, }); var itemComponentProps = item.itemProps; return (React.createElement("button", tslib_1.__assign({}, buttonProps), React.createElement(ChildrenRenderer, tslib_1.__assign({ componentRef: item.componentRef, item: itemProps, classNames: classNames, index: index, hasIcons: false, openSubMenu: openSubMenu, dismissSubMenu: dismissSubMenu, dismissMenu: dismissMenu, getSubmenuTarget: this._getSubmenuTarget }, itemComponentProps)))); }; ContextualMenuSplitButton.prototype._handleTouchAndPointerEvent = function (ev) { var _this = this; var onTap = this.props.onTap; if (onTap) { onTap(ev); } // If we already have an existing timeout from a previous touch/pointer event // cancel that timeout so we can set a new one. if (this._lastTouchTimeoutId) { this._async.clearTimeout(this._lastTouchTimeoutId); this._lastTouchTimeoutId = undefined; } this._processingTouch = true; this._lastTouchTimeoutId = this._async.setTimeout(function () { _this._processingTouch = false; _this._lastTouchTimeoutId = undefined; }, TouchIdleDelay); }; return ContextualMenuSplitButton; }(ContextualMenuItemWrapper_1.ContextualMenuItemWrapper)); exports.ContextualMenuSplitButton = ContextualMenuSplitButton; //# sourceMappingURL=ContextualMenuSplitButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/index.js": /*!****************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/index.js ***! \****************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./ContextualMenuAnchor */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuAnchor.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ContextualMenuButton */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ContextualMenuSplitButton */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuSplitButton.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ContextualMenuItemWrapper */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ContextualMenuItemWrapper.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItemWrapper/ContextualMenuItemWrapper.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/index.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/index.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getContextualMenuItemStyles = exports.getContextualMenuItemClassNames = exports.getMenuItemStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./ContextualMenu */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ContextualMenu.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ContextualMenu.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ContextualMenuItem */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ContextualMenuItem.base */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./ContextualMenuItem.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenuItem.types.js"), exports); var ContextualMenu_cnstyles_1 = __webpack_require__(/*! ./ContextualMenu.cnstyles */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.cnstyles.js"); Object.defineProperty(exports, "getMenuItemStyles", ({ enumerable: true, get: function () { return ContextualMenu_cnstyles_1.getMenuItemStyles; } })); var ContextualMenu_classNames_1 = __webpack_require__(/*! ./ContextualMenu.classNames */ "./node_modules/@fluentui/react/lib-commonjs/components/ContextualMenu/ContextualMenu.classNames.js"); // eslint-disable-next-line deprecation/deprecation Object.defineProperty(exports, "getContextualMenuItemClassNames", ({ enumerable: true, get: function () { return ContextualMenu_classNames_1.getItemClassNames; } })); Object.defineProperty(exports, "getContextualMenuItemStyles", ({ enumerable: true, get: function () { return ContextualMenu_classNames_1.getItemStyles; } })); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.base.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.base.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DatePickerBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var Calendar_1 = __webpack_require__(/*! ../../Calendar */ "./node_modules/@fluentui/react/lib-commonjs/Calendar.js"); var date_time_utilities_1 = __webpack_require__(/*! @fluentui/date-time-utilities */ "./node_modules/@fluentui/date-time-utilities/lib-commonjs/index.js"); var Callout_1 = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib-commonjs/Callout.js"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var TextField_1 = __webpack_require__(/*! ../../TextField */ "./node_modules/@fluentui/react/lib-commonjs/TextField.js"); var FocusTrapZone_1 = __webpack_require__(/*! ../../FocusTrapZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusTrapZone.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var defaults_1 = __webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/defaults.js"); var getClassNames = (0, utilities_1.classNamesFunction)(); var DEFAULT_PROPS = { allowTextInput: false, formatDate: function (date) { return (date ? date.toDateString() : ''); }, parseDateFromString: function (dateStr) { //if dateStr is DATE ONLY ISO 8601 -> add time so Date.parse() won't convert it to UTC //See here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse#date_time_string_format if (dateStr.match(/^\d{4}(-\d{2}){2}$/)) { dateStr += 'T12:00'; } var date = Date.parse(dateStr); return date ? new Date(date) : null; }, firstDayOfWeek: date_time_utilities_1.DayOfWeek.Sunday, initialPickerDate: new Date(), isRequired: false, isMonthPickerVisible: true, showMonthPickerAsOverlay: false, strings: defaults_1.defaultDatePickerStrings, highlightCurrentMonth: false, highlightSelectedMonth: false, borderless: false, pickerAriaLabel: 'Calendar', showWeekNumbers: false, firstWeekOfYear: date_time_utilities_1.FirstWeekOfYear.FirstDay, showGoToToday: true, showCloseButton: false, underlined: false, allFocusable: false, }; function useFocusLogic() { var textFieldRef = React.useRef(null); var preventFocusOpeningPicker = React.useRef(false); var focus = function () { var _a, _b; (_b = (_a = textFieldRef.current) === null || _a === void 0 ? void 0 : _a.focus) === null || _b === void 0 ? void 0 : _b.call(_a); }; var preventNextFocusOpeningPicker = function () { preventFocusOpeningPicker.current = true; }; return [textFieldRef, focus, preventFocusOpeningPicker, preventNextFocusOpeningPicker]; } function useCalendarVisibility(_a, focus) { var allowTextInput = _a.allowTextInput, onAfterMenuDismiss = _a.onAfterMenuDismiss; var _b = React.useState(false), isCalendarShown = _b[0], setIsCalendarShown = _b[1]; var isMounted = React.useRef(false); var async = (0, react_hooks_1.useAsync)(); React.useEffect(function () { if (isMounted.current && !isCalendarShown) { // In browsers like IE, textfield gets unfocused when datepicker is collapsed if (allowTextInput) { async.requestAnimationFrame(focus); } // If DatePicker's menu (Calendar) is closed, run onAfterMenuDismiss onAfterMenuDismiss === null || onAfterMenuDismiss === void 0 ? void 0 : onAfterMenuDismiss(); } isMounted.current = true; // eslint-disable-next-line react-hooks/exhaustive-deps }, [isCalendarShown]); return [isCalendarShown, setIsCalendarShown]; } function useSelectedDate(_a) { var formatDate = _a.formatDate, value = _a.value, onSelectDate = _a.onSelectDate; var _b = (0, react_hooks_1.useControllableValue)(value, undefined, function (ev, newValue) { return onSelectDate === null || onSelectDate === void 0 ? void 0 : onSelectDate(newValue); }), selectedDate = _b[0], setSelectedDateState = _b[1]; var _c = React.useState(function () { return (value && formatDate ? formatDate(value) : ''); }), formattedDate = _c[0], setFormattedDate = _c[1]; var setSelectedDate = function (newDate) { setSelectedDateState(newDate); setFormattedDate(newDate && formatDate ? formatDate(newDate) : ''); }; React.useEffect(function () { setFormattedDate(value && formatDate ? formatDate(value) : ''); }, [formatDate, value]); return [selectedDate, formattedDate, setSelectedDate, setFormattedDate]; } function useErrorMessage(_a, selectedDate, setSelectedDate, inputValue, isCalendarShown) { var _b; var isRequired = _a.isRequired, allowTextInput = _a.allowTextInput, strings = _a.strings, parseDateFromString = _a.parseDateFromString, onSelectDate = _a.onSelectDate, formatDate = _a.formatDate, minDate = _a.minDate, maxDate = _a.maxDate, textField = _a.textField; var _c = React.useState(), errorMessage = _c[0], setErrorMessage = _c[1]; var _d = React.useState(), statusMessage = _d[0], setStatusMessage = _d[1]; var isFirstLoadRef = React.useRef(true); var validateOnLoad = (_b = textField === null || textField === void 0 ? void 0 : textField.validateOnLoad) !== null && _b !== void 0 ? _b : true; var validateTextInput = function (date) { if (date === void 0) { date = null; } if (allowTextInput) { if (inputValue || date) { // Don't parse if the selected date has the same formatted string as what we're about to parse. // The formatted string might be ambiguous (ex: "1/2/3" or "New Year Eve") and the parser might // not be able to come up with the exact same date. if (selectedDate && !errorMessage && formatDate && formatDate(date !== null && date !== void 0 ? date : selectedDate) === inputValue) { return; } date = date || parseDateFromString(inputValue); // Check if date is null, or date is Invalid Date if (!date || isNaN(date.getTime())) { // Reset invalid input field, if formatting is available setSelectedDate(selectedDate); // default the newer isResetStatusMessage string to invalidInputErrorMessage for legacy support var selectedText = formatDate ? formatDate(selectedDate) : ''; var statusText = strings.isResetStatusMessage ? (0, utilities_1.format)(strings.isResetStatusMessage, inputValue, selectedText) : strings.invalidInputErrorMessage || ''; setStatusMessage(statusText); } else { // Check against optional date boundaries if (isDateOutOfBounds(date, minDate, maxDate)) { setErrorMessage(strings.isOutOfBoundsErrorMessage || ' '); } else { setSelectedDate(date); setErrorMessage(undefined); setStatusMessage(undefined); } } } else { // Only show error for empty inputValue if it is a required field setErrorMessage(isRequired ? strings.isRequiredErrorMessage || ' ' : undefined); // If no input date string or input date string is invalid // date variable will be null, callback should expect null value for this case onSelectDate === null || onSelectDate === void 0 ? void 0 : onSelectDate(date); } } else if (isRequired && !inputValue) { // Check when DatePicker is a required field but has NO input value setErrorMessage(strings.isRequiredErrorMessage || ' '); } else { // Cleanup the error message and status message setErrorMessage(undefined); setStatusMessage(undefined); } }; React.useEffect(function () { if (isFirstLoadRef.current) { isFirstLoadRef.current = false; if (!validateOnLoad) { return; } } if (isRequired && !selectedDate) { setErrorMessage(strings.isRequiredErrorMessage || ' '); } else if (selectedDate && isDateOutOfBounds(selectedDate, minDate, maxDate)) { setErrorMessage(strings.isOutOfBoundsErrorMessage || ' '); } else { setErrorMessage(undefined); } // eslint-disable-next-line react-hooks/exhaustive-deps }, [ // We don't want to compare the date itself, since two instances of date at the same time are not equal // eslint-disable-next-line react-hooks/exhaustive-deps minDate && (0, date_time_utilities_1.getDatePartHashValue)(minDate), // eslint-disable-next-line react-hooks/exhaustive-deps maxDate && (0, date_time_utilities_1.getDatePartHashValue)(maxDate), // eslint-disable-next-line react-hooks/exhaustive-deps selectedDate && (0, date_time_utilities_1.getDatePartHashValue)(selectedDate), isRequired, validateOnLoad, ]); return [ isCalendarShown ? undefined : errorMessage, validateTextInput, setErrorMessage, isCalendarShown ? undefined : statusMessage, setStatusMessage, ]; } exports.DatePickerBase = React.forwardRef(function (propsWithoutDefaults, forwardedRef) { var _a, _b; var props = (0, utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); var firstDayOfWeek = props.firstDayOfWeek, strings = props.strings, label = props.label, theme = props.theme, className = props.className, styles = props.styles, initialPickerDate = props.initialPickerDate, isRequired = props.isRequired, disabled = props.disabled, ariaLabel = props.ariaLabel, pickerAriaLabel = props.pickerAriaLabel, placeholder = props.placeholder, allowTextInput = props.allowTextInput, borderless = props.borderless, minDate = props.minDate, maxDate = props.maxDate, showCloseButton = props.showCloseButton, calendarProps = props.calendarProps, calloutProps = props.calloutProps, textFieldProps = props.textField, underlined = props.underlined, allFocusable = props.allFocusable, _c = props.calendarAs, CalendarType = _c === void 0 ? Calendar_1.Calendar : _c, tabIndex = props.tabIndex, _d = props.disableAutoFocus, disableAutoFocus = _d === void 0 ? true : _d; var id = (0, react_hooks_1.useId)('DatePicker', props.id); var calloutId = (0, react_hooks_1.useId)('DatePicker-Callout'); var calendar = React.useRef(null); var datePickerDiv = React.useRef(null); var _e = useFocusLogic(), textFieldRef = _e[0], focus = _e[1], preventFocusOpeningPicker = _e[2], preventNextFocusOpeningPicker = _e[3]; var _f = useCalendarVisibility(props, focus), isCalendarShown = _f[0], setIsCalendarShown = _f[1]; var _g = useSelectedDate(props), selectedDate = _g[0], formattedDate = _g[1], setSelectedDate = _g[2], setFormattedDate = _g[3]; var _h = useErrorMessage(props, selectedDate, setSelectedDate, formattedDate, isCalendarShown), errorMessage = _h[0], validateTextInput = _h[1], setErrorMessage = _h[2], statusMessage = _h[3], setStatusMessage = _h[4]; var showDatePickerPopup = React.useCallback(function () { if (!isCalendarShown) { preventNextFocusOpeningPicker(); setIsCalendarShown(true); } }, [isCalendarShown, preventNextFocusOpeningPicker, setIsCalendarShown]); React.useImperativeHandle(props.componentRef, function () { return ({ focus: focus, reset: function () { setIsCalendarShown(false); setSelectedDate(undefined); setErrorMessage(undefined); setStatusMessage(undefined); }, showDatePickerPopup: showDatePickerPopup, }); }, [focus, setErrorMessage, setIsCalendarShown, setSelectedDate, setStatusMessage, showDatePickerPopup]); var onTextFieldFocus = function () { if (disableAutoFocus) { return; } if (!allowTextInput) { if (!preventFocusOpeningPicker.current) { showDatePickerPopup(); } preventFocusOpeningPicker.current = false; } }; var onSelectDate = function (date) { if (props.calendarProps && props.calendarProps.onSelectDate) { props.calendarProps.onSelectDate(date); } calendarDismissed(date); }; var onCalloutPositioned = function () { var shouldFocus = true; // If the user has specified that the callout shouldn't use initial focus, then respect // that and don't attempt to set focus. That will default to true within the callout // so we need to check if it's undefined here. if (props.calloutProps && props.calloutProps.setInitialFocus !== undefined) { shouldFocus = props.calloutProps.setInitialFocus; } if (calendar.current && shouldFocus) { calendar.current.focus(); } }; var onTextFieldBlur = function (ev) { validateTextInput(); }; var onTextFieldChanged = function (ev, newValue) { var _a; var textField = props.textField; if (allowTextInput) { if (isCalendarShown) { dismissDatePickerPopup(); } setFormattedDate(newValue); } (_a = textField === null || textField === void 0 ? void 0 : textField.onChange) === null || _a === void 0 ? void 0 : _a.call(textField, ev, newValue); }; var onTextFieldKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case utilities_1.KeyCodes.enter: ev.preventDefault(); ev.stopPropagation(); if (!isCalendarShown) { validateTextInput(); showDatePickerPopup(); } else { // When DatePicker allows input date string directly, // it is expected to hit another enter to close the popup if (props.allowTextInput) { dismissDatePickerPopup(); } } break; case utilities_1.KeyCodes.escape: handleEscKey(ev); break; case utilities_1.KeyCodes.down: if (ev.altKey && !isCalendarShown) { showDatePickerPopup(); } break; default: break; } }; var onTextFieldClick = function (ev) { // default openOnClick to !props.disableAutoFocus for legacy support of disableAutoFocus behavior var openOnClick = props.openOnClick || !props.disableAutoFocus; if (openOnClick && !isCalendarShown && !props.disabled) { showDatePickerPopup(); return; } if (props.allowTextInput) { dismissDatePickerPopup(); } }; var onIconClick = function (ev) { ev.stopPropagation(); if (!isCalendarShown && !props.disabled) { showDatePickerPopup(); } else if (props.allowTextInput) { dismissDatePickerPopup(); } }; var dismissDatePickerPopup = function (newlySelectedDate) { if (isCalendarShown) { setIsCalendarShown(false); validateTextInput(newlySelectedDate); if (!allowTextInput && newlySelectedDate) { setSelectedDate(newlySelectedDate); } } }; var renderTextfieldDescription = function (inputProps, defaultRender) { return (React.createElement(React.Fragment, null, inputProps.description || inputProps.onRenderDescription ? defaultRender(inputProps) : null, React.createElement("div", { "aria-live": "assertive", className: classNames.statusMessage }, statusMessage))); }; var renderReadOnlyInput = function (inputProps) { var divProps = (0, utilities_1.getNativeProps)(inputProps, utilities_1.divProperties); // Need to merge styles so the provided styles win over the default ones. This is due to the classnames having the // same specificity. var readOnlyTextFieldClassName = (0, Styling_1.mergeStyles)(divProps.className, classNames.readOnlyTextField); // Talkback on Android treats readonly inputs as disabled, so swipe gestures to open the Calendar // don't register. Workaround is rendering a div with role="combobox" (passed in via TextField props). return (React.createElement("div", tslib_1.__assign({}, divProps, { className: readOnlyTextFieldClassName, tabIndex: tabIndex || 0 }), formattedDate || ( // Putting the placeholder in a separate span fixes specificity issues for the text color React.createElement("span", { className: classNames.readOnlyPlaceholder }, placeholder)))); }; /** * Callback for closing the calendar callout */ var calendarDismissed = function (newlySelectedDate) { preventNextFocusOpeningPicker(); dismissDatePickerPopup(newlySelectedDate); // don't need to focus the text box, if necessary the focusTrapZone will do it }; var calloutDismissed = function (ev) { calendarDismissed(); }; var handleEscKey = function (ev) { if (isCalendarShown) { ev.stopPropagation(); calendarDismissed(); } }; var onCalendarDismissed = function (ev) { calendarDismissed(); }; var classNames = getClassNames(styles, { theme: theme, className: className, disabled: disabled, underlined: underlined, label: !!label, isDatePickerShown: isCalendarShown, }); var nativeProps = (0, utilities_1.getNativeProps)(props, utilities_1.divProperties, ['value']); var iconProps = textFieldProps && textFieldProps.iconProps; var textFieldId = textFieldProps && textFieldProps.id && textFieldProps.id !== id ? textFieldProps.id : id + '-label'; var readOnly = !allowTextInput && !disabled; var dataIsFocusable = (_b = (_a = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps['data-is-focusable']) !== null && _a !== void 0 ? _a : props['data-is-focusable']) !== null && _b !== void 0 ? _b : true; return (React.createElement("div", tslib_1.__assign({}, nativeProps, { className: classNames.root, ref: forwardedRef }), React.createElement("div", { ref: datePickerDiv, "aria-owns": isCalendarShown ? calloutId : undefined, className: classNames.wrapper }, React.createElement(TextField_1.TextField, tslib_1.__assign({ role: "combobox", label: label, "aria-expanded": isCalendarShown, ariaLabel: ariaLabel, "aria-haspopup": "dialog", "aria-controls": isCalendarShown ? calloutId : undefined, required: isRequired, disabled: disabled, errorMessage: errorMessage, placeholder: placeholder, borderless: borderless, value: formattedDate, componentRef: textFieldRef, underlined: underlined, tabIndex: tabIndex, readOnly: !allowTextInput }, textFieldProps, { "data-is-focusable": dataIsFocusable, id: textFieldId, className: (0, utilities_1.css)(classNames.textField, textFieldProps && textFieldProps.className), iconProps: tslib_1.__assign(tslib_1.__assign({ iconName: 'Calendar' }, iconProps), { className: (0, utilities_1.css)(classNames.icon, iconProps && iconProps.className), onClick: onIconClick }), // eslint-disable-next-line react/jsx-no-bind onRenderDescription: renderTextfieldDescription, // eslint-disable-next-line react/jsx-no-bind onKeyDown: onTextFieldKeyDown, // eslint-disable-next-line react/jsx-no-bind onFocus: onTextFieldFocus, // eslint-disable-next-line react/jsx-no-bind onBlur: onTextFieldBlur, // eslint-disable-next-line react/jsx-no-bind onClick: onTextFieldClick, // eslint-disable-next-line react/jsx-no-bind onChange: onTextFieldChanged, onRenderInput: readOnly ? renderReadOnlyInput : undefined }))), isCalendarShown && (React.createElement(Callout_1.Callout, tslib_1.__assign({ id: calloutId, role: "dialog", ariaLabel: pickerAriaLabel, isBeakVisible: false, gapSpace: 0, doNotLayer: false, target: datePickerDiv.current, directionalHint: Callout_1.DirectionalHint.bottomLeftEdge }, calloutProps, { className: (0, utilities_1.css)(classNames.callout, calloutProps && calloutProps.className), // eslint-disable-next-line react/jsx-no-bind onDismiss: calloutDismissed, // eslint-disable-next-line react/jsx-no-bind onPositioned: onCalloutPositioned }), React.createElement(FocusTrapZone_1.FocusTrapZone, { isClickableOutsideFocusTrap: true, disableFirstFocus: disableAutoFocus }, React.createElement(CalendarType, tslib_1.__assign({}, calendarProps, { // eslint-disable-next-line react/jsx-no-bind onSelectDate: onSelectDate, // eslint-disable-next-line react/jsx-no-bind onDismiss: onCalendarDismissed, isMonthPickerVisible: props.isMonthPickerVisible, showMonthPickerAsOverlay: props.showMonthPickerAsOverlay, today: props.today, value: selectedDate || initialPickerDate, firstDayOfWeek: firstDayOfWeek, strings: strings, highlightCurrentMonth: props.highlightCurrentMonth, highlightSelectedMonth: props.highlightSelectedMonth, showWeekNumbers: props.showWeekNumbers, firstWeekOfYear: props.firstWeekOfYear, showGoToToday: props.showGoToToday, dateTimeFormatter: props.dateTimeFormatter, minDate: minDate, maxDate: maxDate, componentRef: calendar, showCloseButton: showCloseButton, allFocusable: allFocusable }))))))); }); exports.DatePickerBase.displayName = 'DatePickerBase'; function isDateOutOfBounds(date, minDate, maxDate) { return (!!minDate && (0, date_time_utilities_1.compareDatePart)(minDate, date) > 0) || (!!maxDate && (0, date_time_utilities_1.compareDatePart)(maxDate, date) < 0); } //# sourceMappingURL=DatePicker.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.js": /*!***************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.js ***! \***************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DatePicker = void 0; var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var DatePicker_base_1 = __webpack_require__(/*! ./DatePicker.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.base.js"); var DatePicker_styles_1 = __webpack_require__(/*! ./DatePicker.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.styles.js"); exports.DatePicker = (0, utilities_1.styled)(DatePicker_base_1.DatePickerBase, DatePicker_styles_1.styles, undefined, { scope: 'DatePicker', }); //# sourceMappingURL=DatePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.styles.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.styles.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.styles = void 0; var style_utilities_1 = __webpack_require__(/*! @fluentui/style-utilities */ "./node_modules/@fluentui/style-utilities/lib-commonjs/index.js"); var GlobalClassNames = { root: 'ms-DatePicker', callout: 'ms-DatePicker-callout', withLabel: 'ms-DatePicker-event--with-label', withoutLabel: 'ms-DatePicker-event--without-label', disabled: 'msDatePickerDisabled ', }; var TEXTFIELD_HEIGHT = 32; var styles = function (props) { var _a; var className = props.className, theme = props.theme, disabled = props.disabled, underlined = props.underlined, label = props.label, isDatePickerShown = props.isDatePickerShown; var palette = theme.palette, semanticColors = theme.semanticColors, fonts = theme.fonts; var classNames = (0, style_utilities_1.getGlobalClassNames)(GlobalClassNames, theme); var DatePickerIcon = { color: palette.neutralSecondary, fontSize: style_utilities_1.FontSizes.icon, lineHeight: '18px', pointerEvents: 'none', position: 'absolute', right: '4px', padding: '5px', }; return { root: [classNames.root, theme.fonts.large, isDatePickerShown && 'is-open', style_utilities_1.normalize, className], textField: [ { position: 'relative', selectors: { '& input[readonly]': { cursor: 'pointer', }, input: { selectors: { '::-ms-clear': { display: 'none', }, }, }, }, }, disabled && { selectors: { '& input[readonly]': { cursor: 'default', }, }, }, ], callout: [classNames.callout], icon: [ DatePickerIcon, label ? classNames.withLabel : classNames.withoutLabel, { paddingTop: '7px' }, !disabled && [ classNames.disabled, { pointerEvents: 'initial', cursor: 'pointer', }, ], disabled && { color: semanticColors.disabledText, cursor: 'default', }, ], statusMessage: [ fonts.small, { color: semanticColors.errorText, marginTop: 5, }, ], readOnlyTextField: [ { cursor: 'pointer', height: TEXTFIELD_HEIGHT, lineHeight: TEXTFIELD_HEIGHT - 2, overflow: 'hidden', textOverflow: 'ellipsis', }, underlined && { lineHeight: TEXTFIELD_HEIGHT + 2, }, ], readOnlyPlaceholder: (_a = { color: semanticColors.inputPlaceholderText }, _a[style_utilities_1.HighContrastSelector] = { color: 'GrayText', }, _a), }; }; exports.styles = styles; //# sourceMappingURL=DatePicker.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.types.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.types.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DatePicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/defaults.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/defaults.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.defaultDatePickerStrings = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Calendar_1 = __webpack_require__(/*! ../../Calendar */ "./node_modules/@fluentui/react/lib-commonjs/Calendar.js"); exports.defaultDatePickerStrings = tslib_1.__assign(tslib_1.__assign({}, Calendar_1.defaultCalendarStrings), { prevMonthAriaLabel: 'Go to previous month', nextMonthAriaLabel: 'Go to next month', prevYearAriaLabel: 'Go to previous year', nextYearAriaLabel: 'Go to next year', closeButtonAriaLabel: 'Close date picker', isRequiredErrorMessage: 'Field is required', invalidInputErrorMessage: 'Invalid date format', isResetStatusMessage: 'Invalid entry "{0}", date reset to "{1}"' }); //# sourceMappingURL=defaults.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/index.js": /*!**********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/index.js ***! \**********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./DatePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DatePicker.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DatePicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/DatePicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ../Calendar/Calendar.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Calendar/Calendar.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./defaults */ "./node_modules/@fluentui/react/lib-commonjs/components/DatePicker/defaults.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.base.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.base.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DetailsColumnBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DetailsList_types_1 = __webpack_require__(/*! ./DetailsList.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.types.js"); var DetailsRow_styles_1 = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js"); var MOUSEDOWN_PRIMARY_BUTTON = 0; // for mouse down event we are using ev.button property, 0 means left button var getClassNames = (0, Utilities_1.classNamesFunction)(); var TRANSITION_DURATION_DRAG = 200; // ms var TRANSITION_DURATION_DROP = 1500; // ms var CLASSNAME_ADD_INTERVAL = 20; // ms var defaultOnRenderHeader = function (classNames) { return function (props) { if (!props) { return null; } if (props.column.isIconOnly) { return React.createElement("span", { className: classNames.accessibleLabel }, props.column.name); } return React.createElement(React.Fragment, null, props.column.name); }; }; /** * Component for rendering columns in a `DetailsList`. * * {@docCategory DetailsList} */ var DetailsColumnBase = /** @class */ (function (_super) { tslib_1.__extends(DetailsColumnBase, _super); function DetailsColumnBase(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); _this._tooltipRef = React.createRef(); _this._onRenderFilterIcon = function (classNames) { return function (props) { var columnProps = props.columnProps, iconProps = tslib_1.__rest(props, ["columnProps"]); var IconComponent = (columnProps === null || columnProps === void 0 ? void 0 : columnProps.useFastIcons) ? Icon_1.FontIcon : Icon_1.Icon; return React.createElement(IconComponent, tslib_1.__assign({}, iconProps)); }; }; _this._onRenderColumnHeaderTooltip = function (tooltipHostProps) { return React.createElement("span", { className: tooltipHostProps.hostClassName }, tooltipHostProps.children); }; _this._onColumnClick = function (ev) { var _a = _this.props, onColumnClick = _a.onColumnClick, column = _a.column; if (column.columnActionsMode === DetailsList_types_1.ColumnActionsMode.disabled) { return; } if (column.onColumnClick) { column.onColumnClick(ev, column); } if (onColumnClick) { onColumnClick(ev, column); } }; _this._onColumnBlur = function () { _this._tooltipRef.current && _this._tooltipRef.current.dismiss(); }; _this._onColumnFocus = function () { _this._tooltipRef.current && _this._tooltipRef.current.show(); }; _this._onDragStart = function (item, itemIndex, selectedItems, event) { var classNames = _this._classNames; if (itemIndex) { _this._updateHeaderDragInfo(itemIndex); _this._root.current.classList.add(classNames.borderWhileDragging); _this._async.setTimeout(function () { if (_this._root.current) { _this._root.current.classList.add(classNames.noBorderWhileDragging); } }, CLASSNAME_ADD_INTERVAL); } }; _this._onDragEnd = function (item, event) { var classNames = _this._classNames; if (event) { _this._updateHeaderDragInfo(-1, event); } _this._root.current.classList.remove(classNames.borderWhileDragging); _this._root.current.classList.remove(classNames.noBorderWhileDragging); }; _this._updateHeaderDragInfo = function (itemIndex, event) { /* eslint-disable deprecation/deprecation */ if (_this.props.setDraggedItemIndex) { _this.props.setDraggedItemIndex(itemIndex); } /* eslint-enable deprecation/deprecation */ if (_this.props.updateDragInfo) { _this.props.updateDragInfo({ itemIndex: itemIndex }, event); } }; _this._onColumnContextMenu = function (ev) { var _a = _this.props, onColumnContextMenu = _a.onColumnContextMenu, column = _a.column; if (column.onColumnContextMenu) { column.onColumnContextMenu(column, ev); ev.preventDefault(); } if (onColumnContextMenu) { onColumnContextMenu(column, ev); ev.preventDefault(); } }; _this._onRootMouseDown = function (ev) { var isDraggable = _this.props.isDraggable; // Ignore anything except the primary button. if (isDraggable && ev.button === MOUSEDOWN_PRIMARY_BUTTON) { ev.stopPropagation(); } }; (0, Utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); _this._events = new Utilities_1.EventGroup(_this); return _this; } DetailsColumnBase.prototype.render = function () { var _a = this.props, column = _a.column, parentId = _a.parentId, isDraggable = _a.isDraggable, styles = _a.styles, theme = _a.theme, _b = _a.cellStyleProps, cellStyleProps = _b === void 0 ? DetailsRow_styles_1.DEFAULT_CELL_STYLE_PROPS : _b, _c = _a.useFastIcons, useFastIcons = _c === void 0 ? true : _c; var _d = this.props.onRenderColumnHeaderTooltip, onRenderColumnHeaderTooltip = _d === void 0 ? this._onRenderColumnHeaderTooltip : _d; this._classNames = getClassNames(styles, { theme: theme, headerClassName: column.headerClassName, iconClassName: column.iconClassName, isActionable: column.columnActionsMode !== DetailsList_types_1.ColumnActionsMode.disabled, isEmpty: !column.name, isIconVisible: column.isSorted || column.isGrouped || column.isFiltered, isPadded: column.isPadded, isIconOnly: column.isIconOnly, cellStyleProps: cellStyleProps, transitionDurationDrag: TRANSITION_DURATION_DRAG, transitionDurationDrop: TRANSITION_DURATION_DROP, }); var classNames = this._classNames; var IconComponent = useFastIcons ? Icon_1.FontIcon : Icon_1.Icon; var onRenderFilterIcon = column.onRenderFilterIcon ? (0, Utilities_1.composeRenderFunction)(column.onRenderFilterIcon, this._onRenderFilterIcon(this._classNames)) : this._onRenderFilterIcon(this._classNames); var onRenderHeader = column.onRenderHeader ? (0, Utilities_1.composeRenderFunction)(column.onRenderHeader, defaultOnRenderHeader(this._classNames)) : defaultOnRenderHeader(this._classNames); var hasInnerButton = column.columnActionsMode !== DetailsList_types_1.ColumnActionsMode.disabled && (column.onColumnClick !== undefined || this.props.onColumnClick !== undefined); // use aria-describedby to point to the tooltip if the tooltip is not using the ariaLabel string var shouldAssociateTooltip = this.props.onRenderColumnHeaderTooltip ? !column.ariaLabel : this._hasAccessibleDescription(); var accNameDescription = { 'aria-label': column.ariaLabel ? column.ariaLabel : column.isIconOnly ? column.name : undefined, 'aria-labelledby': column.ariaLabel || column.isIconOnly ? undefined : "".concat(parentId, "-").concat(column.key, "-name"), 'aria-describedby': shouldAssociateTooltip ? "".concat(parentId, "-").concat(column.key, "-tooltip") : undefined, }; return (React.createElement(React.Fragment, null, React.createElement("div", tslib_1.__assign({ key: column.key, ref: this._root, role: 'columnheader' }, (!hasInnerButton && accNameDescription), { "aria-sort": column.isSorted ? (column.isSortedDescending ? 'descending' : 'ascending') : 'none', "data-is-focusable": !hasInnerButton && column.columnActionsMode !== DetailsList_types_1.ColumnActionsMode.disabled ? 'true' : undefined, className: classNames.root, "data-is-draggable": isDraggable, draggable: isDraggable, style: { width: column.calculatedWidth + cellStyleProps.cellLeftPadding + cellStyleProps.cellRightPadding + (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0), }, "data-automationid": 'ColumnsHeaderColumn', "data-item-key": column.key, onBlur: this._onColumnBlur, onFocus: this._onColumnFocus }), isDraggable && (React.createElement(IconComponent, { iconName: "GripperBarVertical", className: classNames.gripperBarVerticalStyle })), onRenderColumnHeaderTooltip({ hostClassName: classNames.cellTooltip, id: "".concat(parentId, "-").concat(column.key, "-tooltip"), setAriaDescribedBy: false, column: column, componentRef: this._tooltipRef, content: column.columnActionsMode !== DetailsList_types_1.ColumnActionsMode.disabled ? column.ariaLabel : '', children: (React.createElement("span", tslib_1.__assign({ id: "".concat(parentId, "-").concat(column.key), className: classNames.cellTitle, "data-is-focusable": hasInnerButton && column.columnActionsMode !== DetailsList_types_1.ColumnActionsMode.disabled ? 'true' : undefined, role: hasInnerButton ? 'button' : undefined }, (hasInnerButton && accNameDescription), { onContextMenu: this._onColumnContextMenu, onClick: this._onColumnClick, "aria-haspopup": column.columnActionsMode === DetailsList_types_1.ColumnActionsMode.hasDropdown ? 'menu' : undefined, "aria-expanded": column.columnActionsMode === DetailsList_types_1.ColumnActionsMode.hasDropdown ? !!column.isMenuOpen : undefined }), React.createElement("span", { id: "".concat(parentId, "-").concat(column.key, "-name"), className: classNames.cellName }, (column.iconName || column.iconClassName) && (React.createElement(IconComponent, { className: classNames.iconClassName, iconName: column.iconName })), onRenderHeader(this.props)), column.isFiltered && React.createElement(IconComponent, { className: classNames.nearIcon, iconName: "Filter" }), (column.isSorted || column.showSortIconWhenUnsorted) && (React.createElement(IconComponent, { className: classNames.sortIcon, iconName: column.isSorted ? (column.isSortedDescending ? 'SortDown' : 'SortUp') : 'Sort' })), column.isGrouped && React.createElement(IconComponent, { className: classNames.nearIcon, iconName: "GroupedDescending" }), column.columnActionsMode === DetailsList_types_1.ColumnActionsMode.hasDropdown && !column.isIconOnly && onRenderFilterIcon({ 'aria-hidden': true, columnProps: this.props, className: classNames.filterChevron, iconName: 'ChevronDown', }))), }, this._onRenderColumnHeaderTooltip)), !this.props.onRenderColumnHeaderTooltip ? this._renderAccessibleDescription() : null)); }; DetailsColumnBase.prototype.componentDidMount = function () { var _this = this; if (this.props.dragDropHelper && this.props.isDraggable) { this._addDragDropHandling(); } var classNames = this._classNames; if (this.props.isDropped) { if (this._root.current) { this._root.current.classList.add(classNames.borderAfterDropping); this._async.setTimeout(function () { if (_this._root.current) { _this._root.current.classList.add(classNames.noBorderAfterDropping); } }, CLASSNAME_ADD_INTERVAL); } this._async.setTimeout(function () { if (_this._root.current) { _this._root.current.classList.remove(classNames.borderAfterDropping); _this._root.current.classList.remove(classNames.noBorderAfterDropping); } }, TRANSITION_DURATION_DROP + CLASSNAME_ADD_INTERVAL); } }; DetailsColumnBase.prototype.componentWillUnmount = function () { if (this._dragDropSubscription) { this._dragDropSubscription.dispose(); delete this._dragDropSubscription; } this._async.dispose(); this._events.dispose(); }; DetailsColumnBase.prototype.componentDidUpdate = function () { if (!this._dragDropSubscription && this.props.dragDropHelper && this.props.isDraggable) { this._addDragDropHandling(); } if (this._dragDropSubscription && !this.props.isDraggable) { this._dragDropSubscription.dispose(); this._events.off(this._root.current, 'mousedown'); delete this._dragDropSubscription; } }; DetailsColumnBase.prototype._getColumnDragDropOptions = function () { var _this = this; var columnIndex = this.props.columnIndex; var options = { selectionIndex: columnIndex, context: { data: columnIndex, index: columnIndex }, canDrag: function () { return _this.props.isDraggable; }, canDrop: function () { return false; }, onDragStart: this._onDragStart, updateDropState: function () { return undefined; }, onDrop: function () { return undefined; }, onDragEnd: this._onDragEnd, }; return options; }; DetailsColumnBase.prototype._hasAccessibleDescription = function () { var column = this.props.column; return !!(column.filterAriaLabel || column.sortAscendingAriaLabel || column.sortDescendingAriaLabel || column.groupAriaLabel || column.sortableAriaLabel); }; DetailsColumnBase.prototype._renderAccessibleDescription = function () { var _a = this.props, column = _a.column, parentId = _a.parentId; var classNames = this._classNames; return this._hasAccessibleDescription() && !this.props.onRenderColumnHeaderTooltip ? (React.createElement("label", { key: "".concat(column.key, "_label"), id: "".concat(parentId, "-").concat(column.key, "-tooltip"), className: classNames.accessibleLabel, hidden: true }, (column.isFiltered && column.filterAriaLabel) || null, ((column.isSorted || column.showSortIconWhenUnsorted) && (column.isSorted ? column.isSortedDescending ? column.sortDescendingAriaLabel : column.sortAscendingAriaLabel : column.sortableAriaLabel)) || null, (column.isGrouped && column.groupAriaLabel) || null)) : null; }; DetailsColumnBase.prototype._addDragDropHandling = function () { this._dragDropSubscription = this.props.dragDropHelper.subscribe(this._root.current, this._events, this._getColumnDragDropOptions()); // We need to use native on this to prevent MarqueeSelection from handling the event before us. this._events.on(this._root.current, 'mousedown', this._onRootMouseDown); }; return DetailsColumnBase; }(React.Component)); exports.DetailsColumnBase = DetailsColumnBase; //# sourceMappingURL=DetailsColumn.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DetailsColumn = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DetailsColumn_base_1 = __webpack_require__(/*! ./DetailsColumn.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.base.js"); var DetailsColumn_styles_1 = __webpack_require__(/*! ./DetailsColumn.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.styles.js"); exports.DetailsColumn = (0, Utilities_1.styled)(DetailsColumn_base_1.DetailsColumnBase, DetailsColumn_styles_1.getDetailsColumnStyles, undefined, { scope: 'DetailsColumn' }); //# sourceMappingURL=DetailsColumn.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.styles.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.styles.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDetailsColumnStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var DetailsRow_styles_1 = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js"); var DetailsHeader_styles_1 = __webpack_require__(/*! ./DetailsHeader.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.styles.js"); var GlobalClassNames = { isActionable: 'is-actionable', cellIsCheck: 'ms-DetailsHeader-cellIsCheck', collapseButton: 'ms-DetailsHeader-collapseButton', isCollapsed: 'is-collapsed', isAllSelected: 'is-allSelected', isSelectAllHidden: 'is-selectAllHidden', isResizingColumn: 'is-resizingColumn', isEmpty: 'is-empty', isIconVisible: 'is-icon-visible', cellSizer: 'ms-DetailsHeader-cellSizer', isResizing: 'is-resizing', dropHintCircleStyle: 'ms-DetailsHeader-dropHintCircleStyle', dropHintLineStyle: 'ms-DetailsHeader-dropHintLineStyle', cellTitle: 'ms-DetailsHeader-cellTitle', cellName: 'ms-DetailsHeader-cellName', filterChevron: 'ms-DetailsHeader-filterChevron', gripperBarVerticalStyle: 'ms-DetailsColumn-gripperBar', nearIcon: 'ms-DetailsColumn-nearIcon', }; var getDetailsColumnStyles = function (props) { var _a; var theme = props.theme, headerClassName = props.headerClassName, iconClassName = props.iconClassName, isActionable = props.isActionable, isEmpty = props.isEmpty, isIconVisible = props.isIconVisible, isPadded = props.isPadded, isIconOnly = props.isIconOnly, _b = props.cellStyleProps, cellStyleProps = _b === void 0 ? DetailsRow_styles_1.DEFAULT_CELL_STYLE_PROPS : _b, transitionDurationDrag = props.transitionDurationDrag, transitionDurationDrop = props.transitionDurationDrop; var semanticColors = theme.semanticColors, palette = theme.palette, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var colors = { iconForegroundColor: semanticColors.bodySubtext, headerForegroundColor: semanticColors.bodyText, headerBackgroundColor: semanticColors.bodyBackground, dropdownChevronForegroundColor: palette.neutralSecondary, resizerColor: palette.neutralTertiaryAlt, }; var nearIconStyle = { color: colors.iconForegroundColor, opacity: 1, paddingLeft: 8, }; var borderWhileDragging = { outline: "1px solid ".concat(palette.themePrimary), }; var borderAfterDragOrDrop = { outlineColor: 'transparent', }; return { root: [ (0, DetailsHeader_styles_1.getCellStyles)(props), fonts.small, isActionable && [ classNames.isActionable, { selectors: { ':hover': { color: semanticColors.bodyText, background: semanticColors.listHeaderBackgroundHovered, }, ':active': { background: semanticColors.listHeaderBackgroundPressed, }, }, }, ], isEmpty && [ classNames.isEmpty, { textOverflow: 'clip', }, ], isIconVisible && classNames.isIconVisible, isPadded && { paddingRight: cellStyleProps.cellExtraRightPadding + cellStyleProps.cellRightPadding, }, { selectors: { ':hover i[data-icon-name="GripperBarVertical"]': { display: 'block', }, }, }, headerClassName, ], gripperBarVerticalStyle: { display: 'none', position: 'absolute', textAlign: 'left', color: palette.neutralTertiary, left: 1, }, nearIcon: [classNames.nearIcon, nearIconStyle], sortIcon: [ nearIconStyle, { paddingLeft: 4, position: 'relative', top: 1, }, ], iconClassName: [ { color: colors.iconForegroundColor, opacity: 1, }, iconClassName, ], filterChevron: [ classNames.filterChevron, { color: colors.dropdownChevronForegroundColor, paddingLeft: 6, verticalAlign: 'middle', fontSize: fonts.small.fontSize, }, ], cellTitle: [ classNames.cellTitle, (0, Styling_1.getFocusStyle)(theme), tslib_1.__assign({ display: 'flex', flexDirection: 'row', justifyContent: 'flex-start', alignItems: 'stretch', boxSizing: 'border-box', overflow: 'hidden', padding: "0 ".concat(cellStyleProps.cellRightPadding, "px 0 ").concat(cellStyleProps.cellLeftPadding, "px") }, (isIconOnly ? { alignContent: 'flex-end', maxHeight: '100%', flexWrap: 'wrap-reverse', } : {})), ], cellName: [ classNames.cellName, { flex: '0 1 auto', overflow: 'hidden', textOverflow: 'ellipsis', fontWeight: Styling_1.FontWeights.semibold, fontSize: fonts.medium.fontSize, }, isIconOnly && { selectors: (_a = {}, _a[".".concat(classNames.nearIcon)] = { paddingLeft: 0, }, _a), }, ], cellTooltip: { display: 'block', position: 'absolute', top: 0, left: 0, bottom: 0, right: 0, }, accessibleLabel: Styling_1.hiddenContentStyle, borderWhileDragging: borderWhileDragging, noBorderWhileDragging: [borderAfterDragOrDrop, { transition: "outline ".concat(transitionDurationDrag, "ms ease") }], borderAfterDropping: borderWhileDragging, noBorderAfterDropping: [borderAfterDragOrDrop, { transition: "outline ".concat(transitionDurationDrop, "ms ease") }], }; }; exports.getDetailsColumnStyles = getDetailsColumnStyles; //# sourceMappingURL=DetailsColumn.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.types.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.types.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DetailsColumn.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsFooter.types.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsFooter.types.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DetailsFooter.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.base.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.base.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DetailsHeaderBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DetailsList_types_1 = __webpack_require__(/*! ./DetailsList.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.types.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Layer_1 = __webpack_require__(/*! ../../Layer */ "./node_modules/@fluentui/react/lib-commonjs/Layer.js"); var GroupSpacer_1 = __webpack_require__(/*! ../GroupedList/GroupSpacer */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.js"); var GroupedList_1 = __webpack_require__(/*! ../../GroupedList */ "./node_modules/@fluentui/react/lib-commonjs/GroupedList.js"); var DetailsRowCheck_1 = __webpack_require__(/*! ./DetailsRowCheck */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.js"); var Selection_1 = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib-commonjs/Selection.js"); var DragDrop_1 = __webpack_require__(/*! ../../DragDrop */ "./node_modules/@fluentui/react/lib-commonjs/DragDrop.js"); var DetailsColumn_1 = __webpack_require__(/*! ../../components/DetailsList/DetailsColumn */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.js"); var DetailsHeader_types_1 = __webpack_require__(/*! ./DetailsHeader.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.types.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var MOUSEDOWN_PRIMARY_BUTTON = 0; // for mouse down event we are using ev.button property, 0 means left button var MOUSEMOVE_PRIMARY_BUTTON = 1; // for mouse move event we are using ev.buttons property, 1 means left button var NO_COLUMNS = []; var DetailsHeaderBase = /** @class */ (function (_super) { tslib_1.__extends(DetailsHeaderBase, _super); function DetailsHeaderBase(props) { var _this = _super.call(this, props) || this; _this._rootElement = React.createRef(); _this._rootComponent = React.createRef(); _this._draggedColumnIndex = -1; _this._dropHintDetails = {}; _this._updateDroppingState = function (newValue, event) { if (_this._draggedColumnIndex >= 0 && event.type !== 'drop' && !newValue) { _this._resetDropHints(); } }; _this._onDragOver = function (item, event) { if (_this._draggedColumnIndex >= 0) { event.stopPropagation(); _this._computeDropHintToBeShown(event.clientX); } }; _this._onDrop = function (item, event) { // Safe to assume this is defined since we're handling a drop event var columnReorderProps = _this._getColumnReorderProps(); // Target index will not get changed if draggeditem is after target item. if (_this._draggedColumnIndex >= 0 && event) { var targetIndex = _this._draggedColumnIndex > _this._currentDropHintIndex ? _this._currentDropHintIndex : _this._currentDropHintIndex - 1; var isValidDrop = _this._isValidCurrentDropHintIndex(); event.stopPropagation(); if (isValidDrop) { _this._onDropIndexInfo.sourceIndex = _this._draggedColumnIndex; _this._onDropIndexInfo.targetIndex = targetIndex; if (columnReorderProps.onColumnDrop) { var dragDropDetails = { draggedIndex: _this._draggedColumnIndex, targetIndex: targetIndex, }; columnReorderProps.onColumnDrop(dragDropDetails); /* eslint-disable deprecation/deprecation */ } else if (columnReorderProps.handleColumnReorder) { columnReorderProps.handleColumnReorder(_this._draggedColumnIndex, targetIndex); /* eslint-enable deprecation/deprecation */ } } } _this._resetDropHints(); _this._dropHintDetails = {}; _this._draggedColumnIndex = -1; }; _this._computeColumnIndexOffset = function (showCheckbox) { var hasGroupExpander = _this.props.groupNestingDepth && _this.props.groupNestingDepth > 0; var offset = 1; if (showCheckbox) { offset += 1; } if (hasGroupExpander) { offset += 1; } return offset; }; _this._updateDragInfo = function (props, event) { // Safe to assume this is defined since we're handling a drag event var columnReorderProps = _this._getColumnReorderProps(); var itemIndex = props.itemIndex; if (itemIndex >= 0) { // Column index is set based on the checkbox _this._draggedColumnIndex = itemIndex - _this._computeColumnIndexOffset(!_this._isCheckboxColumnHidden()); _this._getDropHintPositions(); if (columnReorderProps.onColumnDragStart) { columnReorderProps.onColumnDragStart(true); } } else if (event && _this._draggedColumnIndex >= 0) { _this._resetDropHints(); _this._draggedColumnIndex = -1; _this._dropHintDetails = {}; if (columnReorderProps.onColumnDragEnd) { var columnDragEndLocation = _this._isEventOnHeader(event); columnReorderProps.onColumnDragEnd({ dropLocation: columnDragEndLocation }, event); } } }; _this._getDropHintPositions = function () { var _a = _this.props.columns, columns = _a === void 0 ? NO_COLUMNS : _a; // Safe to assume this is defined since we're handling a drag/drop event var columnReorderProps = _this._getColumnReorderProps(); var prevX = 0; var prevMid = 0; var prevRef; var frozenColumnCountFromStart = columnReorderProps.frozenColumnCountFromStart || 0; var frozenColumnCountFromEnd = columnReorderProps.frozenColumnCountFromEnd || 0; for (var i = frozenColumnCountFromStart; i < columns.length - frozenColumnCountFromEnd + 1; i++) { if (_this._rootElement.current) { var dropHintElement = _this._rootElement.current.querySelectorAll('#columnDropHint_' + i)[0]; if (dropHintElement) { if (i === frozenColumnCountFromStart) { prevX = dropHintElement.offsetLeft; prevMid = dropHintElement.offsetLeft; prevRef = dropHintElement; } else { var newMid = (dropHintElement.offsetLeft + prevX) / 2; _this._dropHintDetails[i - 1] = { originX: prevX, startX: prevMid, endX: newMid, dropHintElementRef: prevRef, }; prevMid = newMid; prevRef = dropHintElement; prevX = dropHintElement.offsetLeft; if (i === columns.length - frozenColumnCountFromEnd) { _this._dropHintDetails[i] = { originX: prevX, startX: prevMid, endX: dropHintElement.offsetLeft, dropHintElementRef: prevRef, }; } } } } } }; /** * Based on the given cursor position, finds the nearest drop hint and updates the state to make it visible */ _this._computeDropHintToBeShown = function (clientX) { var isRtl = (0, Utilities_1.getRTL)(_this.props.theme); if (_this._rootElement.current) { var clientRect = _this._rootElement.current.getBoundingClientRect(); var headerOriginX = clientRect.left; var eventXRelativePosition = clientX - headerOriginX; var currentDropHintIndex = _this._currentDropHintIndex; if (_this._isValidCurrentDropHintIndex()) { if (_liesBetween(isRtl, eventXRelativePosition, _this._dropHintDetails[currentDropHintIndex].startX, _this._dropHintDetails[currentDropHintIndex].endX)) { return; } } var _a = _this.props.columns, columns = _a === void 0 ? NO_COLUMNS : _a; // Safe to assume this is defined since we're handling a drag/drop event var columnReorderProps = _this._getColumnReorderProps(); var frozenColumnCountFromStart = columnReorderProps.frozenColumnCountFromStart || 0; var frozenColumnCountFromEnd = columnReorderProps.frozenColumnCountFromEnd || 0; var currentIndex = frozenColumnCountFromStart; var lastValidColumn = columns.length - frozenColumnCountFromEnd; var indexToUpdate = -1; if (_isBefore(isRtl, eventXRelativePosition, _this._dropHintDetails[currentIndex].endX)) { indexToUpdate = currentIndex; } else if (_isAfter(isRtl, eventXRelativePosition, _this._dropHintDetails[lastValidColumn].startX)) { indexToUpdate = lastValidColumn; } else if (_this._isValidCurrentDropHintIndex()) { if (_this._dropHintDetails[currentDropHintIndex + 1] && _liesBetween(isRtl, eventXRelativePosition, _this._dropHintDetails[currentDropHintIndex + 1].startX, _this._dropHintDetails[currentDropHintIndex + 1].endX)) { indexToUpdate = currentDropHintIndex + 1; } else if (_this._dropHintDetails[currentDropHintIndex - 1] && _liesBetween(isRtl, eventXRelativePosition, _this._dropHintDetails[currentDropHintIndex - 1].startX, _this._dropHintDetails[currentDropHintIndex - 1].endX)) { indexToUpdate = currentDropHintIndex - 1; } } if (indexToUpdate === -1) { var startIndex = frozenColumnCountFromStart; var endIndex = lastValidColumn; while (startIndex < endIndex) { var middleIndex = Math.ceil((endIndex + startIndex) / 2); if (_liesBetween(isRtl, eventXRelativePosition, _this._dropHintDetails[middleIndex].startX, _this._dropHintDetails[middleIndex].endX)) { indexToUpdate = middleIndex; break; } else if (_isBefore(isRtl, eventXRelativePosition, _this._dropHintDetails[middleIndex].originX)) { endIndex = middleIndex; } else if (_isAfter(isRtl, eventXRelativePosition, _this._dropHintDetails[middleIndex].originX)) { startIndex = middleIndex; } } } if (indexToUpdate === _this._draggedColumnIndex || indexToUpdate === _this._draggedColumnIndex + 1) { if (_this._isValidCurrentDropHintIndex()) { _this._resetDropHints(); } } else if (currentDropHintIndex !== indexToUpdate && indexToUpdate >= 0) { _this._resetDropHints(); _this._updateDropHintElement(_this._dropHintDetails[indexToUpdate].dropHintElementRef, 'inline-block'); _this._currentDropHintIndex = indexToUpdate; } } }; _this._renderColumnSizer = function (_a) { var _b; var columnIndex = _a.columnIndex; var _c = _this.props.columns, columns = _c === void 0 ? NO_COLUMNS : _c; var column = columns[columnIndex]; var columnResizeDetails = _this.state.columnResizeDetails; var classNames = _this._classNames; return column.isResizable ? (React.createElement("div", { key: "".concat(column.key, "_sizer"), "aria-hidden": true, role: "button", "data-is-focusable": false, onClick: _stopPropagation, "data-sizer-index": columnIndex, onBlur: _this._onSizerBlur, className: (0, Utilities_1.css)(classNames.cellSizer, columnIndex < columns.length - 1 ? classNames.cellSizerStart : classNames.cellSizerEnd, (_b = {}, _b[classNames.cellIsResizing] = columnResizeDetails && columnResizeDetails.columnIndex === columnIndex, _b)), onDoubleClick: _this._onSizerDoubleClick.bind(_this, columnIndex) })) : null; }; _this._onRenderColumnHeaderTooltip = function (tooltipHostProps) { return React.createElement("span", { className: tooltipHostProps.hostClassName }, tooltipHostProps.children); }; /** * Called when the select all toggle is clicked. */ _this._onSelectAllClicked = function () { var selection = _this.props.selection; if (selection) { selection.toggleAllSelected(); } }; _this._onRootMouseDown = function (ev) { var columnIndexAttr = ev.target.getAttribute('data-sizer-index'); var columnIndex = Number(columnIndexAttr); var _a = _this.props.columns, columns = _a === void 0 ? NO_COLUMNS : _a; if (columnIndexAttr === null || ev.button !== MOUSEDOWN_PRIMARY_BUTTON) { // Ignore anything except the primary button. return; } _this.setState({ columnResizeDetails: { columnIndex: columnIndex, columnMinWidth: columns[columnIndex].calculatedWidth, originX: ev.clientX, }, }); ev.preventDefault(); ev.stopPropagation(); }; _this._onRootMouseMove = function (ev) { var _a = _this.state, columnResizeDetails = _a.columnResizeDetails, isSizing = _a.isSizing; if (columnResizeDetails && !isSizing && ev.clientX !== columnResizeDetails.originX) { _this.setState({ isSizing: true }); } }; _this._onRootKeyDown = function (ev) { var _a = _this.state, columnResizeDetails = _a.columnResizeDetails, isSizing = _a.isSizing; var _b = _this.props, _c = _b.columns, columns = _c === void 0 ? NO_COLUMNS : _c, onColumnResized = _b.onColumnResized; var columnIndexAttr = ev.target.getAttribute('data-sizer-index'); if (!columnIndexAttr || isSizing) { return; } var columnIndex = Number(columnIndexAttr); if (!columnResizeDetails) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter) { _this.setState({ columnResizeDetails: { columnIndex: columnIndex, columnMinWidth: columns[columnIndex].calculatedWidth, }, }); ev.preventDefault(); ev.stopPropagation(); } } else { var increment = void 0; // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter) { _this.setState({ columnResizeDetails: undefined, }); ev.preventDefault(); ev.stopPropagation(); // eslint-disable-next-line deprecation/deprecation } else if (ev.which === Utilities_1.KeyCodes.left) { increment = (0, Utilities_1.getRTL)(_this.props.theme) ? 1 : -1; // eslint-disable-next-line deprecation/deprecation } else if (ev.which === Utilities_1.KeyCodes.right) { increment = (0, Utilities_1.getRTL)(_this.props.theme) ? -1 : 1; } if (increment) { if (!ev.shiftKey) { increment *= 10; } _this.setState({ columnResizeDetails: tslib_1.__assign(tslib_1.__assign({}, columnResizeDetails), { columnMinWidth: columnResizeDetails.columnMinWidth + increment }), }); if (onColumnResized) { onColumnResized(columns[columnIndex], columnResizeDetails.columnMinWidth + increment, columnIndex); } ev.preventDefault(); ev.stopPropagation(); } } }; /** * mouse move event handler in the header * it will set isSizing state to true when user clicked on the sizer and move the mouse. * * @param ev - mouse move event */ _this._onSizerMouseMove = function (ev) { var // use buttons property here since ev.button in some edge case is not upding well during the move. // but firefox doesn't support it, so we set the default value when it is not defined. buttons = ev.buttons; var _a = _this.props, onColumnIsSizingChanged = _a.onColumnIsSizingChanged, onColumnResized = _a.onColumnResized, _b = _a.columns, columns = _b === void 0 ? NO_COLUMNS : _b; var columnResizeDetails = _this.state.columnResizeDetails; if (buttons !== undefined && buttons !== MOUSEMOVE_PRIMARY_BUTTON) { // cancel mouse down event and return early when the primary button is not pressed _this._onSizerMouseUp(ev); return; } if (ev.clientX !== columnResizeDetails.originX) { if (onColumnIsSizingChanged) { onColumnIsSizingChanged(columns[columnResizeDetails.columnIndex], true); } } if (onColumnResized) { var movement = ev.clientX - columnResizeDetails.originX; if ((0, Utilities_1.getRTL)(_this.props.theme)) { movement = -movement; } onColumnResized(columns[columnResizeDetails.columnIndex], columnResizeDetails.columnMinWidth + movement, columnResizeDetails.columnIndex); } }; _this._onSizerBlur = function (ev) { var columnResizeDetails = _this.state.columnResizeDetails; if (columnResizeDetails) { _this.setState({ columnResizeDetails: undefined, isSizing: false, }); } }; /** * mouse up event handler in the header * clear the resize related state. * This is to ensure we can catch double click event * * @param ev - mouse up event */ _this._onSizerMouseUp = function (ev) { var _a = _this.props, _b = _a.columns, columns = _b === void 0 ? NO_COLUMNS : _b, onColumnIsSizingChanged = _a.onColumnIsSizingChanged; var columnResizeDetails = _this.state.columnResizeDetails; _this.setState({ columnResizeDetails: undefined, isSizing: false, }); if (onColumnIsSizingChanged) { onColumnIsSizingChanged(columns[columnResizeDetails.columnIndex], false); } }; _this._onToggleCollapseAll = function () { var onToggleCollapseAll = _this.props.onToggleCollapseAll; var newCollapsed = !_this.state.isAllCollapsed; _this.setState({ isAllCollapsed: newCollapsed, }); if (onToggleCollapseAll) { onToggleCollapseAll(newCollapsed); } }; (0, Utilities_1.initializeComponentRef)(_this); _this._events = new Utilities_1.EventGroup(_this); _this.state = { columnResizeDetails: undefined, isAllCollapsed: _this.props.isAllCollapsed, isAllSelected: !!_this.props.selection && _this.props.selection.isAllSelected(), }; _this._onDropIndexInfo = { sourceIndex: -1, targetIndex: -1, }; _this._id = (0, Utilities_1.getId)('header'); _this._currentDropHintIndex = -1; // The drag drop handler won't do any work until subscribe() is called, // so always set it up for convenience _this._dragDropHelper = new DragDrop_1.DragDropHelper({ selection: { getSelection: function () { return; }, }, minimumPixelsForDrag: _this.props.minimumPixelsForDrag, }); return _this; } DetailsHeaderBase.prototype.componentDidMount = function () { var selection = this.props.selection; this._events.on(selection, Selection_1.SELECTION_CHANGE, this._onSelectionChanged); // this._rootElement.current will be null in tests using react-test-renderer if (this._rootElement.current) { // We need to use native on this to prevent MarqueeSelection from handling the event before us. this._events.on(this._rootElement.current, 'mousedown', this._onRootMouseDown); this._events.on(this._rootElement.current, 'keydown', this._onRootKeyDown); if (this._getColumnReorderProps()) { this._subscriptionObject = this._dragDropHelper.subscribe(this._rootElement.current, this._events, this._getHeaderDragDropOptions()); } } }; DetailsHeaderBase.prototype.componentDidUpdate = function (prevProps) { if (this._getColumnReorderProps()) { if (!this._subscriptionObject && this._rootElement.current) { this._subscriptionObject = this._dragDropHelper.subscribe(this._rootElement.current, this._events, this._getHeaderDragDropOptions()); } } else if (this._subscriptionObject) { this._subscriptionObject.dispose(); delete this._subscriptionObject; } if (this.props !== prevProps && this._onDropIndexInfo.sourceIndex >= 0 && this._onDropIndexInfo.targetIndex >= 0) { var _a = prevProps.columns, previousColumns = _a === void 0 ? NO_COLUMNS : _a; var _b = this.props.columns, columns = _b === void 0 ? NO_COLUMNS : _b; if (previousColumns[this._onDropIndexInfo.sourceIndex].key === columns[this._onDropIndexInfo.targetIndex].key) { this._onDropIndexInfo = { sourceIndex: -1, targetIndex: -1, }; } } if (this.props.isAllCollapsed !== prevProps.isAllCollapsed) { this.setState({ isAllCollapsed: this.props.isAllCollapsed }); } }; DetailsHeaderBase.prototype.componentWillUnmount = function () { if (this._subscriptionObject) { this._subscriptionObject.dispose(); delete this._subscriptionObject; } this._dragDropHelper.dispose(); this._events.dispose(); }; DetailsHeaderBase.prototype.render = function () { var _this = this; var _a = this.props, _b = _a.columns, columns = _b === void 0 ? NO_COLUMNS : _b, ariaLabel = _a.ariaLabel, ariaLabelForToggleAllGroupsButton = _a.ariaLabelForToggleAllGroupsButton, ariaLabelForSelectAllCheckbox = _a.ariaLabelForSelectAllCheckbox, selectAllVisibility = _a.selectAllVisibility, ariaLabelForSelectionColumn = _a.ariaLabelForSelectionColumn, indentWidth = _a.indentWidth, onColumnClick = _a.onColumnClick, onColumnContextMenu = _a.onColumnContextMenu, _c = _a.onRenderColumnHeaderTooltip, onRenderColumnHeaderTooltip = _c === void 0 ? this._onRenderColumnHeaderTooltip : _c, styles = _a.styles, selectionMode = _a.selectionMode, theme = _a.theme, onRenderDetailsCheckbox = _a.onRenderDetailsCheckbox, groupNestingDepth = _a.groupNestingDepth, useFastIcons = _a.useFastIcons, checkboxVisibility = _a.checkboxVisibility, className = _a.className; var _d = this.state, isAllSelected = _d.isAllSelected, columnResizeDetails = _d.columnResizeDetails, isSizing = _d.isSizing, isAllCollapsed = _d.isAllCollapsed; var showCheckbox = selectAllVisibility !== DetailsHeader_types_1.SelectAllVisibility.none; var isCheckboxHidden = selectAllVisibility === DetailsHeader_types_1.SelectAllVisibility.hidden; var isCheckboxAlwaysVisible = checkboxVisibility === DetailsList_types_1.CheckboxVisibility.always; var columnReorderProps = this._getColumnReorderProps(); var frozenColumnCountFromStart = columnReorderProps && columnReorderProps.frozenColumnCountFromStart ? columnReorderProps.frozenColumnCountFromStart : 0; var frozenColumnCountFromEnd = columnReorderProps && columnReorderProps.frozenColumnCountFromEnd ? columnReorderProps.frozenColumnCountFromEnd : 0; this._classNames = getClassNames(styles, { theme: theme, isAllSelected: isAllSelected, isSelectAllHidden: selectAllVisibility === DetailsHeader_types_1.SelectAllVisibility.hidden, isResizingColumn: !!columnResizeDetails && isSizing, isSizing: isSizing, isAllCollapsed: isAllCollapsed, isCheckboxHidden: isCheckboxHidden, className: className, }); var classNames = this._classNames; var IconComponent = useFastIcons ? Icon_1.FontIcon : Icon_1.Icon; var hasGroupExpander = groupNestingDepth > 0; var showGroupExpander = hasGroupExpander && this.props.collapseAllVisibility === GroupedList_1.CollapseAllVisibility.visible; var columnIndexOffset = this._computeColumnIndexOffset(showCheckbox); var isRTL = (0, Utilities_1.getRTL)(theme); return (React.createElement(FocusZone_1.FocusZone, { role: "row", "aria-label": ariaLabel, className: classNames.root, componentRef: this._rootComponent, elementRef: this._rootElement, onMouseMove: this._onRootMouseMove, "data-automationid": "DetailsHeader", direction: FocusZone_1.FocusZoneDirection.horizontal }, showCheckbox ? [ React.createElement("div", { key: "__checkbox", className: classNames.cellIsCheck, "aria-labelledby": "".concat(this._id, "-checkTooltip"), onClick: !isCheckboxHidden ? this._onSelectAllClicked : undefined, role: 'columnheader' }, onRenderColumnHeaderTooltip({ hostClassName: classNames.checkTooltip, id: "".concat(this._id, "-checkTooltip"), setAriaDescribedBy: false, content: ariaLabelForSelectAllCheckbox, children: (React.createElement(DetailsRowCheck_1.DetailsRowCheck, { id: "".concat(this._id, "-check"), "aria-label": selectionMode === Selection_1.SelectionMode.multiple ? ariaLabelForSelectAllCheckbox : ariaLabelForSelectionColumn, "data-is-focusable": !isCheckboxHidden || undefined, isHeader: true, selected: isAllSelected, anySelected: false, canSelect: !isCheckboxHidden, className: classNames.check, onRenderDetailsCheckbox: onRenderDetailsCheckbox, useFastIcons: useFastIcons, isVisible: isCheckboxAlwaysVisible })), }, this._onRenderColumnHeaderTooltip)), !this.props.onRenderColumnHeaderTooltip ? (ariaLabelForSelectAllCheckbox && !isCheckboxHidden ? (React.createElement("label", { key: "__checkboxLabel", id: "".concat(this._id, "-checkTooltip"), className: classNames.accessibleLabel, "aria-hidden": true }, ariaLabelForSelectAllCheckbox)) : ariaLabelForSelectionColumn && isCheckboxHidden ? (React.createElement("label", { key: "__checkboxLabel", id: "".concat(this._id, "-checkTooltip"), className: classNames.accessibleLabel, "aria-hidden": true }, ariaLabelForSelectionColumn)) : null) : null, ] : null, showGroupExpander ? (React.createElement("div", { className: classNames.cellIsGroupExpander, onClick: this._onToggleCollapseAll, "data-is-focusable": true, "aria-label": ariaLabelForToggleAllGroupsButton, "aria-expanded": !isAllCollapsed, role: "columnheader" }, React.createElement(IconComponent, { className: classNames.collapseButton, iconName: isRTL ? 'ChevronLeftMed' : 'ChevronRightMed' }), React.createElement("span", { className: classNames.accessibleLabel }, ariaLabelForToggleAllGroupsButton))) : hasGroupExpander ? (React.createElement("div", { className: classNames.cellIsGroupExpander, "data-is-focusable": false, role: "columnheader" })) : null, React.createElement(GroupSpacer_1.GroupSpacer, { indentWidth: indentWidth, role: "gridcell", count: groupNestingDepth - 1 }), columns.map(function (column, columnIndex) { var _isDraggable = columnReorderProps ? columnIndex >= frozenColumnCountFromStart && columnIndex < columns.length - frozenColumnCountFromEnd : false; return [ columnReorderProps && (_isDraggable || columnIndex === columns.length - frozenColumnCountFromEnd) && _this._renderDropHint(columnIndex), React.createElement(DetailsColumn_1.DetailsColumn, { column: column, styles: column.styles, key: column.key, columnIndex: columnIndexOffset + columnIndex, parentId: _this._id, isDraggable: _isDraggable, updateDragInfo: _this._updateDragInfo, dragDropHelper: _this._dragDropHelper, onColumnClick: onColumnClick, onColumnContextMenu: onColumnContextMenu, // Do not render tooltips by default, but allow for override via props. onRenderColumnHeaderTooltip: _this.props.onRenderColumnHeaderTooltip, isDropped: _this._onDropIndexInfo.targetIndex === columnIndex, cellStyleProps: _this.props.cellStyleProps, useFastIcons: useFastIcons }), _this._renderColumnDivider(columnIndex), ]; }), columnReorderProps && frozenColumnCountFromEnd === 0 && this._renderDropHint(columns.length), isSizing && (React.createElement(Layer_1.Layer, null, React.createElement("div", { className: classNames.sizingOverlay, onMouseMove: this._onSizerMouseMove, onMouseUp: this._onSizerMouseUp }))))); }; /** Set focus to the active thing in the focus area. */ DetailsHeaderBase.prototype.focus = function () { var _a; return !!((_a = this._rootComponent.current) === null || _a === void 0 ? void 0 : _a.focus()); }; /** * Gets column reorder props from this.props. If the calling code is part of setting up or * handling drag/drop events, it's safe to assume that this method's return value is defined * (because drag/drop handling will only be set up if reorder props are given). */ DetailsHeaderBase.prototype._getColumnReorderProps = function () { var _a = this.props, columnReorderOptions = _a.columnReorderOptions, columnReorderProps = _a.columnReorderProps; return columnReorderProps || (columnReorderOptions && tslib_1.__assign(tslib_1.__assign({}, columnReorderOptions), { onColumnDragEnd: undefined })); }; DetailsHeaderBase.prototype._getHeaderDragDropOptions = function () { var options = { selectionIndex: 1, context: { data: this, index: 0 }, canDrag: function () { return false; }, canDrop: function () { return true; }, onDragStart: function () { return undefined; }, updateDropState: this._updateDroppingState, onDrop: this._onDrop, onDragEnd: function () { return undefined; }, onDragOver: this._onDragOver, }; return options; }; DetailsHeaderBase.prototype._isValidCurrentDropHintIndex = function () { return this._currentDropHintIndex >= 0; }; /** * @returns whether or not the "Select All" checkbox column is hidden. */ DetailsHeaderBase.prototype._isCheckboxColumnHidden = function () { var _a = this.props, selectionMode = _a.selectionMode, checkboxVisibility = _a.checkboxVisibility; return selectionMode === Selection_1.SelectionMode.none || checkboxVisibility === DetailsList_types_1.CheckboxVisibility.hidden; }; DetailsHeaderBase.prototype._resetDropHints = function () { if (this._currentDropHintIndex >= 0) { this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef, 'none'); this._currentDropHintIndex = -1; } }; DetailsHeaderBase.prototype._updateDropHintElement = function (element, displayProperty) { element.childNodes[1].style.display = displayProperty; element.childNodes[0].style.display = displayProperty; }; DetailsHeaderBase.prototype._isEventOnHeader = function (event) { if (this._rootElement.current) { var clientRect = this._rootElement.current.getBoundingClientRect(); if (event.clientX > clientRect.left && event.clientX < clientRect.right && event.clientY > clientRect.top && event.clientY < clientRect.bottom) { return DetailsList_types_1.ColumnDragEndLocation.header; } } }; DetailsHeaderBase.prototype._renderColumnDivider = function (columnIndex) { var _a = this.props.columns, columns = _a === void 0 ? NO_COLUMNS : _a; var column = columns[columnIndex]; var onRenderDivider = column.onRenderDivider; return onRenderDivider ? onRenderDivider({ column: column, columnIndex: columnIndex }, this._renderColumnSizer) : this._renderColumnSizer({ column: column, columnIndex: columnIndex }); }; DetailsHeaderBase.prototype._renderDropHint = function (dropHintIndex) { var classNames = this._classNames; var IconComponent = this.props.useFastIcons ? Icon_1.FontIcon : Icon_1.Icon; return (React.createElement("div", { key: 'dropHintKey', className: classNames.dropHintStyle, id: "columnDropHint_".concat(dropHintIndex) }, React.createElement("div", { role: "presentation", key: "dropHintCircleKey", className: classNames.dropHintCaretStyle, "data-is-focusable": false, "data-sizer-index": dropHintIndex, "aria-hidden": true }, React.createElement(IconComponent, { iconName: 'CircleShapeSolid' })), React.createElement("div", { key: "dropHintLineKey", "aria-hidden": true, "data-is-focusable": false, "data-sizer-index": dropHintIndex, className: classNames.dropHintLineStyle }))); }; /** * double click on the column sizer will auto ajust column width * to fit the longest content among current rendered rows. * * @param columnIndex - index of the column user double clicked * @param ev - mouse double click event */ DetailsHeaderBase.prototype._onSizerDoubleClick = function (columnIndex, ev) { var _a = this.props, onColumnAutoResized = _a.onColumnAutoResized, _b = _a.columns, columns = _b === void 0 ? NO_COLUMNS : _b; if (onColumnAutoResized) { onColumnAutoResized(columns[columnIndex], columnIndex); } }; DetailsHeaderBase.prototype._onSelectionChanged = function () { var isAllSelected = !!this.props.selection && this.props.selection.isAllSelected(); if (this.state.isAllSelected !== isAllSelected) { this.setState({ isAllSelected: isAllSelected, }); } }; DetailsHeaderBase.defaultProps = { selectAllVisibility: DetailsHeader_types_1.SelectAllVisibility.visible, collapseAllVisibility: GroupedList_1.CollapseAllVisibility.visible, useFastIcons: true, }; return DetailsHeaderBase; }(React.Component)); exports.DetailsHeaderBase = DetailsHeaderBase; function _liesBetween(rtl, target, left, right) { return rtl ? target <= left && target >= right : target >= left && target <= right; } function _isBefore(rtl, a, b) { return rtl ? a >= b : a <= b; } function _isAfter(rtl, a, b) { return rtl ? a <= b : a >= b; } function _stopPropagation(ev) { ev.stopPropagation(); } //# sourceMappingURL=DetailsHeader.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DetailsHeader = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DetailsHeader_base_1 = __webpack_require__(/*! ./DetailsHeader.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.base.js"); var DetailsHeader_styles_1 = __webpack_require__(/*! ./DetailsHeader.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.styles.js"); exports.DetailsHeader = (0, Utilities_1.styled)(DetailsHeader_base_1.DetailsHeaderBase, DetailsHeader_styles_1.getDetailsHeaderStyles, undefined, { scope: 'DetailsHeader' }); //# sourceMappingURL=DetailsHeader.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.styles.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.styles.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDetailsHeaderStyles = exports.getCellStyles = exports.HEADER_HEIGHT = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DetailsRow_styles_1 = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js"); // For every group level there is a GroupSpacer added. Importing this const to have the source value in one place. var GroupSpacer_1 = __webpack_require__(/*! ../GroupedList/GroupSpacer */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.js"); var GlobalClassNames = { tooltipHost: 'ms-TooltipHost', root: 'ms-DetailsHeader', cell: 'ms-DetailsHeader-cell', cellIsCheck: 'ms-DetailsHeader-cellIsCheck', collapseButton: 'ms-DetailsHeader-collapseButton', isCollapsed: 'is-collapsed', isAllSelected: 'is-allSelected', isSelectAllHidden: 'is-selectAllHidden', isResizingColumn: 'is-resizingColumn', cellSizer: 'ms-DetailsHeader-cellSizer', isResizing: 'is-resizing', dropHintCircleStyle: 'ms-DetailsHeader-dropHintCircleStyle', dropHintCaretStyle: 'ms-DetailsHeader-dropHintCaretStyle', dropHintLineStyle: 'ms-DetailsHeader-dropHintLineStyle', cellTitle: 'ms-DetailsHeader-cellTitle', cellName: 'ms-DetailsHeader-cellName', filterChevron: 'ms-DetailsHeader-filterChevron', gripperBarVertical: 'ms-DetailsColumn-gripperBarVertical', checkTooltip: 'ms-DetailsHeader-checkTooltip', check: 'ms-DetailsHeader-check', }; exports.HEADER_HEIGHT = 42; var getCellStyles = function (props) { var theme = props.theme, _a = props.cellStyleProps, cellStyleProps = _a === void 0 ? DetailsRow_styles_1.DEFAULT_CELL_STYLE_PROPS : _a; var semanticColors = theme.semanticColors; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return [ classNames.cell, (0, Styling_1.getFocusStyle)(theme), { color: semanticColors.bodyText, position: 'relative', display: 'inline-block', boxSizing: 'border-box', padding: "0 ".concat(cellStyleProps.cellRightPadding, "px 0 ").concat(cellStyleProps.cellLeftPadding, "px"), lineHeight: 'inherit', margin: '0', height: exports.HEADER_HEIGHT, verticalAlign: 'top', whiteSpace: 'nowrap', textOverflow: 'ellipsis', textAlign: 'left', }, ]; }; exports.getCellStyles = getCellStyles; var getDetailsHeaderStyles = function (props) { var _a, _b, _c, _d; var theme = props.theme, className = props.className, isAllSelected = props.isAllSelected, isResizingColumn = props.isResizingColumn, isSizing = props.isSizing, isAllCollapsed = props.isAllCollapsed, _e = props.cellStyleProps, cellStyleProps = _e === void 0 ? DetailsRow_styles_1.DEFAULT_CELL_STYLE_PROPS : _e; var semanticColors = theme.semanticColors, palette = theme.palette, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var colors = { iconForegroundColor: semanticColors.bodySubtext, headerForegroundColor: semanticColors.bodyText, headerBackgroundColor: semanticColors.bodyBackground, resizerColor: palette.neutralTertiaryAlt, }; var cellSizerFadeInStyles = { opacity: 1, transition: 'opacity 0.3s linear', }; var cellStyles = (0, exports.getCellStyles)(props); return { root: [ classNames.root, fonts.small, { display: 'inline-block', background: colors.headerBackgroundColor, position: 'relative', minWidth: '100%', verticalAlign: 'top', height: exports.HEADER_HEIGHT, lineHeight: exports.HEADER_HEIGHT, whiteSpace: 'nowrap', boxSizing: 'content-box', paddingBottom: '1px', paddingTop: '16px', borderBottom: "1px solid ".concat(semanticColors.bodyDivider), cursor: 'default', userSelect: 'none', selectors: (_a = {}, _a["&:hover .".concat(classNames.check)] = { opacity: 1, }, _a["& .".concat(classNames.tooltipHost, " .").concat(classNames.checkTooltip)] = { display: 'block', }, _a), }, isAllSelected && classNames.isAllSelected, isResizingColumn && classNames.isResizingColumn, className, ], check: [ classNames.check, { height: exports.HEADER_HEIGHT, }, { selectors: (_b = {}, _b[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus")] = { opacity: 1, }, _b), }, ], cellWrapperPadded: { paddingRight: cellStyleProps.cellExtraRightPadding + cellStyleProps.cellRightPadding, }, cellIsCheck: [ cellStyles, classNames.cellIsCheck, { position: 'relative', padding: 0, margin: 0, display: 'inline-flex', alignItems: 'center', border: 'none', }, isAllSelected && { opacity: 1, }, ], cellIsGroupExpander: [ cellStyles, { display: 'inline-flex', alignItems: 'center', justifyContent: 'center', fontSize: fonts.small.fontSize, padding: 0, border: 'none', width: GroupSpacer_1.SPACER_WIDTH, color: palette.neutralSecondary, selectors: { ':hover': { backgroundColor: palette.neutralLighter, }, ':active': { backgroundColor: palette.neutralLight, }, }, }, ], cellIsActionable: { selectors: { ':hover': { color: semanticColors.bodyText, background: semanticColors.listHeaderBackgroundHovered, }, ':active': { background: semanticColors.listHeaderBackgroundPressed, }, }, }, cellIsEmpty: { textOverflow: 'clip', }, cellSizer: [ classNames.cellSizer, (0, Styling_1.focusClear)(), { display: 'inline-block', position: 'relative', cursor: 'ew-resize', bottom: 0, top: 0, overflow: 'hidden', height: 'inherit', background: 'transparent', zIndex: 1, width: 16, selectors: (_c = { ':after': { content: '""', position: 'absolute', top: 0, bottom: 0, width: 1, background: colors.resizerColor, opacity: 0, left: '50%', }, ':focus:after': cellSizerFadeInStyles, ':hover:after': cellSizerFadeInStyles }, _c["&.".concat(classNames.isResizing, ":after")] = [ cellSizerFadeInStyles, { boxShadow: '0 0 5px 0 rgba(0, 0, 0, 0.4)', }, ], _c), }, ], cellIsResizing: classNames.isResizing, cellSizerStart: { margin: '0 -8px', }, cellSizerEnd: { margin: 0, marginLeft: -16, }, collapseButton: [ classNames.collapseButton, { transformOrigin: '50% 50%', transition: 'transform .1s linear', }, isAllCollapsed ? [ classNames.isCollapsed, { transform: 'rotate(0deg)', }, ] : { transform: (0, Utilities_1.getRTL)(theme) ? 'rotate(-90deg)' : 'rotate(90deg)', }, ], checkTooltip: classNames.checkTooltip, sizingOverlay: isSizing && { position: 'absolute', left: 0, top: 0, right: 0, bottom: 0, cursor: 'ew-resize', background: 'rgba(255, 255, 255, 0)', selectors: (_d = {}, _d[Styling_1.HighContrastSelector] = tslib_1.__assign({ background: 'transparent' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _d), }, accessibleLabel: Styling_1.hiddenContentStyle, dropHintCircleStyle: [ classNames.dropHintCircleStyle, { display: 'inline-block', visibility: 'hidden', position: 'absolute', bottom: 0, height: 9, width: 9, borderRadius: '50%', marginLeft: -5, top: 34, overflow: 'visible', zIndex: 10, border: "1px solid ".concat(palette.themePrimary), background: palette.white, }, ], dropHintCaretStyle: [ classNames.dropHintCaretStyle, { display: 'none', position: 'absolute', top: -28, left: -6.5, fontSize: fonts.medium.fontSize, color: palette.themePrimary, overflow: 'visible', zIndex: 10, }, ], dropHintLineStyle: [ classNames.dropHintLineStyle, { display: 'none', position: 'absolute', bottom: 0, top: 0, overflow: 'hidden', height: 42, width: 1, background: palette.themePrimary, zIndex: 10, }, ], dropHintStyle: { display: 'inline-block', position: 'absolute', }, }; }; exports.getDetailsHeaderStyles = getDetailsHeaderStyles; //# sourceMappingURL=DetailsHeader.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.types.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.types.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SelectAllVisibility = void 0; /** * {@docCategory DetailsList} */ var SelectAllVisibility; (function (SelectAllVisibility) { SelectAllVisibility[SelectAllVisibility["none"] = 0] = "none"; SelectAllVisibility[SelectAllVisibility["hidden"] = 1] = "hidden"; SelectAllVisibility[SelectAllVisibility["visible"] = 2] = "visible"; })(SelectAllVisibility = exports.SelectAllVisibility || (exports.SelectAllVisibility = {})); //# sourceMappingURL=DetailsHeader.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.base.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.buildColumns = exports.DetailsListBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DetailsList_types_1 = __webpack_require__(/*! ../DetailsList/DetailsList.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.types.js"); var DetailsHeader_1 = __webpack_require__(/*! ../DetailsList/DetailsHeader */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.js"); var DetailsHeader_types_1 = __webpack_require__(/*! ../DetailsList/DetailsHeader.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.types.js"); var DetailsRow_1 = __webpack_require__(/*! ../DetailsList/DetailsRow */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var Selection_1 = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib-commonjs/Selection.js"); var DragDrop_1 = __webpack_require__(/*! ../../DragDrop */ "./node_modules/@fluentui/react/lib-commonjs/DragDrop.js"); var GroupedList_1 = __webpack_require__(/*! ../../GroupedList */ "./node_modules/@fluentui/react/lib-commonjs/GroupedList.js"); var List_1 = __webpack_require__(/*! ../../List */ "./node_modules/@fluentui/react/lib-commonjs/List.js"); var withViewport_1 = __webpack_require__(/*! ../../utilities/decorators/withViewport */ "./node_modules/@fluentui/react/lib-commonjs/utilities/decorators/withViewport.js"); var GroupedListUtility_1 = __webpack_require__(/*! ../../utilities/groupedList/GroupedListUtility */ "./node_modules/@fluentui/react/lib-commonjs/utilities/groupedList/GroupedListUtility.js"); var DetailsRow_styles_1 = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js"); var DetailsRowCheck_styles_1 = __webpack_require__(/*! ./DetailsRowCheck.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.styles.js"); // For every group level there is a GroupSpacer added. Importing this const to have the source value in one place. var GroupSpacer_1 = __webpack_require__(/*! ../GroupedList/GroupSpacer */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var COMPONENT_NAME = 'DetailsList'; var MIN_COLUMN_WIDTH = 100; // this is the global min width var DEFAULT_RENDERED_WINDOWS_AHEAD = 2; var DEFAULT_RENDERED_WINDOWS_BEHIND = 2; var rowFocusZoneAddTabIndexProps = { tabIndex: 0 }; var rowFocusZoneNoTabIndexProps = {}; /** * Hooks-based implementation of DetailsList. * Since many existing consumers of DetailsList expect `ref` to return a `DetailsList`, * this inner component handles rendering while the outer maintains compatibility. */ var DetailsListInner = function (props) { var selection = props.selection; var ariaLabelForListHeader = props.ariaLabelForListHeader, ariaLabelForSelectAllCheckbox = props.ariaLabelForSelectAllCheckbox, ariaLabelForSelectionColumn = props.ariaLabelForSelectionColumn, className = props.className, checkboxVisibility = props.checkboxVisibility, compact = props.compact, constrainMode = props.constrainMode, dragDropEvents = props.dragDropEvents, groups = props.groups, groupProps = props.groupProps, indentWidth = props.indentWidth, items = props.items, isPlaceholderData = props.isPlaceholderData, isHeaderVisible = props.isHeaderVisible, layoutMode = props.layoutMode, onItemInvoked = props.onItemInvoked, onItemContextMenu = props.onItemContextMenu, onColumnHeaderClick = props.onColumnHeaderClick, onColumnHeaderContextMenu = props.onColumnHeaderContextMenu, _a = props.selectionMode, selectionMode = _a === void 0 ? selection.mode : _a, selectionPreservedOnEmptyClick = props.selectionPreservedOnEmptyClick, selectionZoneProps = props.selectionZoneProps, // eslint-disable-next-line deprecation/deprecation ariaLabel = props.ariaLabel, ariaLabelForGrid = props.ariaLabelForGrid, rowElementEventMap = props.rowElementEventMap, // eslint-disable-next-line deprecation/deprecation _b = props.shouldApplyApplicationRole, // eslint-disable-next-line deprecation/deprecation shouldApplyApplicationRole = _b === void 0 ? false : _b, getKey = props.getKey, listProps = props.listProps, usePageCache = props.usePageCache, onShouldVirtualize = props.onShouldVirtualize, viewport = props.viewport, minimumPixelsForDrag = props.minimumPixelsForDrag, getGroupHeight = props.getGroupHeight, styles = props.styles, theme = props.theme, _c = props.cellStyleProps, cellStyleProps = _c === void 0 ? DetailsRow_styles_1.DEFAULT_CELL_STYLE_PROPS : _c, onRenderCheckbox = props.onRenderCheckbox, useFastIcons = props.useFastIcons, dragDropHelper = props.dragDropHelper, adjustedColumns = props.adjustedColumns, isCollapsed = props.isCollapsed, isSizing = props.isSizing, isSomeGroupExpanded = props.isSomeGroupExpanded, version = props.version, rootRef = props.rootRef, listRef = props.listRef, focusZoneRef = props.focusZoneRef, columnReorderOptions = props.columnReorderOptions, groupedListRef = props.groupedListRef, headerRef = props.headerRef, onGroupExpandStateChanged = props.onGroupExpandStateChanged, onColumnIsSizingChanged = props.onColumnIsSizingChanged, onRowDidMount = props.onRowDidMount, onRowWillUnmount = props.onRowWillUnmount, disableSelectionZone = props.disableSelectionZone, _d = props.isSelectedOnFocus, isSelectedOnFocus = _d === void 0 ? true : _d, onColumnResized = props.onColumnResized, onColumnAutoResized = props.onColumnAutoResized, onToggleCollapse = props.onToggleCollapse, onActiveRowChanged = props.onActiveRowChanged, onBlur = props.onBlur, eventsToRegister = props.rowElementEventMap, onRenderMissingItem = props.onRenderMissingItem, onRenderItemColumn = props.onRenderItemColumn, onRenderField = props.onRenderField, getCellValueKey = props.getCellValueKey, getRowAriaLabel = props.getRowAriaLabel, getRowAriaDescribedBy = props.getRowAriaDescribedBy, checkButtonAriaLabel = props.checkButtonAriaLabel, checkButtonGroupAriaLabel = props.checkButtonGroupAriaLabel, checkboxCellClassName = props.checkboxCellClassName, useReducedRowRenderer = props.useReducedRowRenderer, enableUpdateAnimations = props.enableUpdateAnimations, enterModalSelectionOnTouch = props.enterModalSelectionOnTouch, onRenderDefaultRow = props.onRenderDefaultRow, selectionZoneRef = props.selectionZoneRef, focusZoneProps = props.focusZoneProps; var defaultRole = 'grid'; var role = props.role ? props.role : defaultRole; var rowId = (0, utilities_1.getId)('row'); var groupNestingDepth = getGroupNestingDepth(groups); var groupedDetailsListIndexMap = useGroupedDetailsListIndexMap(groups); var additionalListProps = React.useMemo(function () { return tslib_1.__assign({ renderedWindowsAhead: isSizing ? 0 : DEFAULT_RENDERED_WINDOWS_AHEAD, renderedWindowsBehind: isSizing ? 0 : DEFAULT_RENDERED_WINDOWS_BEHIND, getKey: getKey, version: version }, listProps); }, [isSizing, getKey, version, listProps]); var selectAllVisibility = DetailsHeader_types_1.SelectAllVisibility.none; // for SelectionMode.none if (selectionMode === Selection_1.SelectionMode.single) { selectAllVisibility = DetailsHeader_types_1.SelectAllVisibility.hidden; } if (selectionMode === Selection_1.SelectionMode.multiple) { // if isCollapsedGroupSelectVisible is false, disable select all when the list has all collapsed groups var isCollapsedGroupSelectVisible = groupProps && groupProps.headerProps && groupProps.headerProps.isCollapsedGroupSelectVisible; if (isCollapsedGroupSelectVisible === undefined) { isCollapsedGroupSelectVisible = true; } var isSelectAllVisible = isCollapsedGroupSelectVisible || !groups || isSomeGroupExpanded; selectAllVisibility = isSelectAllVisible ? DetailsHeader_types_1.SelectAllVisibility.visible : DetailsHeader_types_1.SelectAllVisibility.hidden; } if (checkboxVisibility === DetailsList_types_1.CheckboxVisibility.hidden) { selectAllVisibility = DetailsHeader_types_1.SelectAllVisibility.none; } var defaultOnRenderDetailsHeader = React.useCallback(function (detailsHeaderProps) { return React.createElement(DetailsHeader_1.DetailsHeader, tslib_1.__assign({}, detailsHeaderProps)); }, []); var defaultOnRenderDetailsFooter = React.useCallback(function () { return null; }, []); var propsOnRenderDetailsHeader = props.onRenderDetailsHeader; var onRenderDetailsHeader = React.useMemo(function () { return propsOnRenderDetailsHeader ? (0, utilities_1.composeRenderFunction)(propsOnRenderDetailsHeader, defaultOnRenderDetailsHeader) : defaultOnRenderDetailsHeader; }, [propsOnRenderDetailsHeader, defaultOnRenderDetailsHeader]); var propsOnRenderDetailsFooter = props.onRenderDetailsFooter; var onRenderDetailsFooter = React.useMemo(function () { return propsOnRenderDetailsFooter ? (0, utilities_1.composeRenderFunction)(propsOnRenderDetailsFooter, defaultOnRenderDetailsFooter) : defaultOnRenderDetailsFooter; }, [propsOnRenderDetailsFooter, defaultOnRenderDetailsFooter]); var detailsFooterProps = React.useMemo(function () { return { columns: adjustedColumns, groupNestingDepth: groupNestingDepth, selection: selection, selectionMode: selectionMode, viewport: viewport, checkboxVisibility: checkboxVisibility, indentWidth: indentWidth, cellStyleProps: cellStyleProps, }; }, [ adjustedColumns, groupNestingDepth, selection, selectionMode, viewport, checkboxVisibility, indentWidth, cellStyleProps, ]); var columnReorderOnDragEnd = columnReorderOptions && columnReorderOptions.onDragEnd; var onColumnDragEnd = React.useCallback(function (_a, event) { var dropLocation = _a.dropLocation; var finalDropLocation = DetailsList_types_1.ColumnDragEndLocation.outside; if (columnReorderOnDragEnd) { if (dropLocation && dropLocation !== DetailsList_types_1.ColumnDragEndLocation.header) { finalDropLocation = dropLocation; } else if (rootRef.current) { var clientRect = rootRef.current.getBoundingClientRect(); if (event.clientX > clientRect.left && event.clientX < clientRect.right && event.clientY > clientRect.top && event.clientY < clientRect.bottom) { finalDropLocation = DetailsList_types_1.ColumnDragEndLocation.surface; } } columnReorderOnDragEnd(finalDropLocation); } }, [columnReorderOnDragEnd, rootRef]); var columnReorderProps = React.useMemo(function () { if (columnReorderOptions) { return tslib_1.__assign(tslib_1.__assign({}, columnReorderOptions), { onColumnDragEnd: onColumnDragEnd }); } }, [columnReorderOptions, onColumnDragEnd]); var rowCount = (isHeaderVisible ? 1 : 0) + (props.onRenderDetailsFooter ? 1 : 0) + (0, GroupedListUtility_1.GetGroupCount)(groups) + (items ? items.length : 0); var colCount = (selectAllVisibility !== DetailsHeader_types_1.SelectAllVisibility.none ? 1 : 0) + (adjustedColumns ? adjustedColumns.length : 0) + (groups ? 1 : 0); var classNames = React.useMemo(function () { return getClassNames(styles, { theme: theme, compact: compact, isFixed: layoutMode === DetailsList_types_1.DetailsListLayoutMode.fixedColumns, isHorizontalConstrained: constrainMode === DetailsList_types_1.ConstrainMode.horizontalConstrained, className: className, }); }, [styles, theme, compact, layoutMode, constrainMode, className]); var onRenderDetailsGroupFooter = groupProps && groupProps.onRenderFooter; var finalOnRenderDetailsGroupFooter = React.useMemo(function () { return onRenderDetailsGroupFooter ? function (groupFooterProps, defaultRender) { return onRenderDetailsGroupFooter(tslib_1.__assign(tslib_1.__assign({}, groupFooterProps), { columns: adjustedColumns, groupNestingDepth: groupNestingDepth, indentWidth: indentWidth, selection: selection, selectionMode: selectionMode, viewport: viewport, checkboxVisibility: checkboxVisibility, cellStyleProps: cellStyleProps }), defaultRender); } : undefined; }, [ onRenderDetailsGroupFooter, adjustedColumns, groupNestingDepth, indentWidth, selection, selectionMode, viewport, checkboxVisibility, cellStyleProps, ]); var onRenderDetailsGroupHeader = groupProps && groupProps.onRenderHeader; var finalOnRenderDetailsGroupHeader = React.useMemo(function () { return onRenderDetailsGroupHeader ? function (groupHeaderProps, defaultRender) { var _a, _b; var groupIndex = groupHeaderProps.groupIndex; var groupKey = groupIndex !== undefined ? (_b = (_a = groupHeaderProps.groups) === null || _a === void 0 ? void 0 : _a[groupIndex]) === null || _b === void 0 ? void 0 : _b.key : undefined; var totalRowCount = groupKey !== undefined && groupedDetailsListIndexMap[groupKey] ? groupedDetailsListIndexMap[groupKey].totalRowCount : 0; return onRenderDetailsGroupHeader(tslib_1.__assign(tslib_1.__assign({}, groupHeaderProps), { columns: adjustedColumns, groupNestingDepth: groupNestingDepth, indentWidth: indentWidth, selection: selection, selectionMode: checkboxVisibility !== DetailsList_types_1.CheckboxVisibility.hidden ? selectionMode : Selection_1.SelectionMode.none, viewport: viewport, checkboxVisibility: checkboxVisibility, cellStyleProps: cellStyleProps, ariaColSpan: adjustedColumns.length, ariaLevel: undefined, ariaPosInSet: undefined, ariaSetSize: undefined, ariaRowCount: undefined, ariaRowIndex: groupIndex !== undefined ? totalRowCount + (isHeaderVisible ? 1 : 0) : undefined }), defaultRender); } : function (groupHeaderProps, defaultRender) { var _a, _b; var groupIndex = groupHeaderProps.groupIndex; var groupKey = groupIndex !== undefined ? (_b = (_a = groupHeaderProps.groups) === null || _a === void 0 ? void 0 : _a[groupIndex]) === null || _b === void 0 ? void 0 : _b.key : undefined; var totalRowCount = groupKey !== undefined && groupedDetailsListIndexMap[groupKey] ? groupedDetailsListIndexMap[groupKey].totalRowCount : 0; return defaultRender(tslib_1.__assign(tslib_1.__assign({}, groupHeaderProps), { ariaColSpan: adjustedColumns.length, ariaLevel: undefined, ariaPosInSet: undefined, ariaSetSize: undefined, ariaRowCount: undefined, ariaRowIndex: groupIndex !== undefined ? totalRowCount + (isHeaderVisible ? 1 : 0) : undefined })); }; }, [ onRenderDetailsGroupHeader, adjustedColumns, groupNestingDepth, indentWidth, isHeaderVisible, selection, selectionMode, viewport, checkboxVisibility, cellStyleProps, groupedDetailsListIndexMap, ]); var finalGroupProps = React.useMemo(function () { var _a; return tslib_1.__assign(tslib_1.__assign({}, groupProps), { role: role === defaultRole ? 'rowgroup' : 'presentation', onRenderFooter: finalOnRenderDetailsGroupFooter, onRenderHeader: finalOnRenderDetailsGroupHeader, // pass through custom group header checkbox label headerProps: tslib_1.__assign(tslib_1.__assign({}, groupProps === null || groupProps === void 0 ? void 0 : groupProps.headerProps), { selectAllButtonProps: tslib_1.__assign({ 'aria-label': checkButtonGroupAriaLabel }, (_a = groupProps === null || groupProps === void 0 ? void 0 : groupProps.headerProps) === null || _a === void 0 ? void 0 : _a.selectAllButtonProps) }) }); }, [groupProps, finalOnRenderDetailsGroupFooter, finalOnRenderDetailsGroupHeader, checkButtonGroupAriaLabel, role]); var sumColumnWidths = (0, react_hooks_1.useConst)(function () { return (0, Utilities_1.memoizeFunction)(function (columns) { var totalWidth = 0; columns.forEach(function (column) { return (totalWidth += column.calculatedWidth || column.minWidth); }); return totalWidth; }); }); var collapseAllVisibility = groupProps && groupProps.collapseAllVisibility; var rowWidth = React.useMemo(function () { return sumColumnWidths(adjustedColumns); }, [adjustedColumns, sumColumnWidths]); var onRenderCell = React.useCallback(function (nestingDepth, item, index, group) { var finalOnRenderRow = props.onRenderRow ? (0, utilities_1.composeRenderFunction)(props.onRenderRow, onRenderDefaultRow) : onRenderDefaultRow; var groupKey = group ? group.key : undefined; var numOfGroupHeadersBeforeItem = groupKey && groupedDetailsListIndexMap[groupKey] ? groupedDetailsListIndexMap[groupKey].numOfGroupHeadersBeforeItem : 0; var rowRole = role === defaultRole ? undefined : 'presentation'; // add tabindex="0" to first row if no header exists, to ensure the focuszone is in the tab order var rowFocusZoneProps = isHeaderVisible || index > 0 ? rowFocusZoneNoTabIndexProps : rowFocusZoneAddTabIndexProps; var rowProps = { item: item, itemIndex: index, flatIndexOffset: (isHeaderVisible ? 2 : 1) + numOfGroupHeadersBeforeItem, compact: compact, columns: adjustedColumns, groupNestingDepth: nestingDepth, id: "".concat(rowId, "-").concat(index), selectionMode: selectionMode, selection: selection, onDidMount: onRowDidMount, onWillUnmount: onRowWillUnmount, onRenderItemColumn: onRenderItemColumn, onRenderField: onRenderField, getCellValueKey: getCellValueKey, eventsToRegister: eventsToRegister, dragDropEvents: dragDropEvents, dragDropHelper: dragDropHelper, viewport: viewport, checkboxVisibility: checkboxVisibility, collapseAllVisibility: collapseAllVisibility, getRowAriaLabel: getRowAriaLabel, getRowAriaDescribedBy: getRowAriaDescribedBy, checkButtonAriaLabel: checkButtonAriaLabel, checkboxCellClassName: checkboxCellClassName, useReducedRowRenderer: useReducedRowRenderer, indentWidth: indentWidth, cellStyleProps: cellStyleProps, onRenderDetailsCheckbox: onRenderCheckbox, enableUpdateAnimations: enableUpdateAnimations, rowWidth: rowWidth, useFastIcons: useFastIcons, role: rowRole, isGridRow: true, focusZoneProps: rowFocusZoneProps, }; if (!item) { if (onRenderMissingItem) { return onRenderMissingItem(index, rowProps); } return null; } return finalOnRenderRow(rowProps); }, [ compact, adjustedColumns, selectionMode, selection, rowId, onRowDidMount, onRowWillUnmount, onRenderItemColumn, onRenderField, getCellValueKey, eventsToRegister, dragDropEvents, dragDropHelper, viewport, checkboxVisibility, collapseAllVisibility, getRowAriaLabel, getRowAriaDescribedBy, isHeaderVisible, checkButtonAriaLabel, checkboxCellClassName, useReducedRowRenderer, indentWidth, cellStyleProps, onRenderCheckbox, enableUpdateAnimations, useFastIcons, onRenderDefaultRow, onRenderMissingItem, props.onRenderRow, rowWidth, role, groupedDetailsListIndexMap, ]); var onRenderListCell = React.useCallback(function (nestingDepth) { return function (item, itemIndex) { return onRenderCell(nestingDepth, item, itemIndex); }; }, [onRenderCell]); var isRightArrow = React.useCallback(function (event) { // eslint-disable-next-line deprecation/deprecation return event.which === (0, Utilities_1.getRTLSafeKeyCode)(Utilities_1.KeyCodes.right, theme); }, [theme]); var focusZoneInnerProps = tslib_1.__assign(tslib_1.__assign({}, focusZoneProps), { componentRef: focusZoneProps && focusZoneProps.componentRef ? focusZoneProps.componentRef : focusZoneRef, className: focusZoneProps && focusZoneProps.className ? (0, Utilities_1.css)(classNames.focusZone, focusZoneProps.className) : classNames.focusZone, direction: focusZoneProps ? focusZoneProps.direction : FocusZone_1.FocusZoneDirection.vertical, shouldEnterInnerZone: focusZoneProps && focusZoneProps.shouldEnterInnerZone ? focusZoneProps.shouldEnterInnerZone : isRightArrow, onActiveElementChanged: focusZoneProps && focusZoneProps.onActiveElementChanged ? focusZoneProps.onActiveElementChanged : onActiveRowChanged, shouldRaiseClicksOnEnter: false, onBlur: focusZoneProps && focusZoneProps.onBlur ? focusZoneProps.onBlur : onBlur }); var FinalGroupedList = groups && (groupProps === null || groupProps === void 0 ? void 0 : groupProps.groupedListAs) ? (0, utilities_1.composeComponentAs)(groupProps.groupedListAs, GroupedList_1.GroupedList) : GroupedList_1.GroupedList; var list = groups ? (React.createElement(FinalGroupedList, { focusZoneProps: focusZoneInnerProps, componentRef: groupedListRef, groups: groups, groupProps: finalGroupProps, items: items, onRenderCell: onRenderCell, role: "presentation", selection: selection, selectionMode: checkboxVisibility !== DetailsList_types_1.CheckboxVisibility.hidden ? selectionMode : Selection_1.SelectionMode.none, dragDropEvents: dragDropEvents, dragDropHelper: dragDropHelper, eventsToRegister: rowElementEventMap, listProps: additionalListProps, onGroupExpandStateChanged: onGroupExpandStateChanged, usePageCache: usePageCache, onShouldVirtualize: onShouldVirtualize, getGroupHeight: getGroupHeight, compact: compact })) : (React.createElement(FocusZone_1.FocusZone, tslib_1.__assign({}, focusZoneInnerProps), React.createElement(List_1.List, tslib_1.__assign({ ref: listRef, role: "presentation", items: items, onRenderCell: onRenderListCell(0), usePageCache: usePageCache, onShouldVirtualize: onShouldVirtualize }, additionalListProps)))); var onHeaderKeyDown = React.useCallback(function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.down) { if (focusZoneRef.current && focusZoneRef.current.focus()) { // select the first item in list after down arrow key event // only if nothing was selected; otherwise start with the already-selected item if (isSelectedOnFocus && selection.getSelectedIndices().length === 0) { selection.setIndexSelected(0, true, false); } ev.preventDefault(); ev.stopPropagation(); } } }, [selection, focusZoneRef, isSelectedOnFocus]); var onContentKeyDown = React.useCallback(function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.up && !ev.altKey) { if (headerRef.current && headerRef.current.focus()) { ev.preventDefault(); ev.stopPropagation(); } } }, [headerRef]); return (React.createElement("div", tslib_1.__assign({ ref: rootRef, className: classNames.root, "data-automationid": "DetailsList", "data-is-scrollable": "false" }, (shouldApplyApplicationRole ? { role: 'application' } : {})), React.createElement(Utilities_1.FocusRects, null), React.createElement("div", { role: role, "aria-label": ariaLabelForGrid || ariaLabel, "aria-rowcount": isPlaceholderData ? 0 : rowCount, "aria-colcount": colCount, "aria-busy": isPlaceholderData }, React.createElement("div", { onKeyDown: onHeaderKeyDown, role: "presentation", className: classNames.headerWrapper }, isHeaderVisible && onRenderDetailsHeader({ componentRef: headerRef, selectionMode: selectionMode, layoutMode: layoutMode, selection: selection, columns: adjustedColumns, onColumnClick: onColumnHeaderClick, onColumnContextMenu: onColumnHeaderContextMenu, onColumnResized: onColumnResized, onColumnIsSizingChanged: onColumnIsSizingChanged, onColumnAutoResized: onColumnAutoResized, groupNestingDepth: groupNestingDepth, isAllCollapsed: isCollapsed, onToggleCollapseAll: onToggleCollapse, ariaLabel: ariaLabelForListHeader, ariaLabelForSelectAllCheckbox: ariaLabelForSelectAllCheckbox, ariaLabelForSelectionColumn: ariaLabelForSelectionColumn, selectAllVisibility: selectAllVisibility, collapseAllVisibility: groupProps && groupProps.collapseAllVisibility, viewport: viewport, columnReorderProps: columnReorderProps, minimumPixelsForDrag: minimumPixelsForDrag, cellStyleProps: cellStyleProps, checkboxVisibility: checkboxVisibility, indentWidth: indentWidth, onRenderDetailsCheckbox: onRenderCheckbox, rowWidth: sumColumnWidths(adjustedColumns), useFastIcons: useFastIcons, }, onRenderDetailsHeader)), React.createElement("div", { onKeyDown: onContentKeyDown, role: "presentation", className: classNames.contentWrapper }, !disableSelectionZone ? (React.createElement(Selection_1.SelectionZone, tslib_1.__assign({ ref: selectionZoneRef, selection: selection, selectionPreservedOnEmptyClick: selectionPreservedOnEmptyClick, selectionMode: selectionMode, isSelectedOnFocus: isSelectedOnFocus, selectionClearedOnEscapePress: isSelectedOnFocus, toggleWithoutModifierPressed: !isSelectedOnFocus, onItemInvoked: onItemInvoked, onItemContextMenu: onItemContextMenu, enterModalOnTouch: enterModalSelectionOnTouch }, (selectionZoneProps || {})), list)) : (list)), onRenderDetailsFooter(tslib_1.__assign({}, detailsFooterProps))))); }; var DetailsListBase = /** @class */ (function (_super) { tslib_1.__extends(DetailsListBase, _super); function DetailsListBase(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); _this._header = React.createRef(); _this._groupedList = React.createRef(); _this._list = React.createRef(); _this._focusZone = React.createRef(); _this._selectionZone = React.createRef(); _this._onRenderRow = function (props, defaultRender) { return React.createElement(DetailsRow_1.DetailsRow, tslib_1.__assign({}, props)); }; _this._getDerivedStateFromProps = function (nextProps, previousState) { var _a = _this.props, checkboxVisibility = _a.checkboxVisibility, items = _a.items, setKey = _a.setKey, _b = _a.selectionMode, selectionMode = _b === void 0 ? _this._selection.mode : _b, columns = _a.columns, viewport = _a.viewport, compact = _a.compact, dragDropEvents = _a.dragDropEvents; var _c = (_this.props.groupProps || {}).isAllGroupsCollapsed, isAllGroupsCollapsed = _c === void 0 ? undefined : _c; var newViewportWidth = (nextProps.viewport && nextProps.viewport.width) || 0; var oldViewportWidth = (viewport && viewport.width) || 0; var shouldResetSelection = nextProps.setKey !== setKey || nextProps.setKey === undefined; var shouldForceUpdates = false; if (nextProps.layoutMode !== _this.props.layoutMode) { shouldForceUpdates = true; } var nextState = previousState; if (shouldResetSelection) { _this._initialFocusedIndex = nextProps.initialFocusedIndex; // reset focusedItemIndex when setKey changes nextState = tslib_1.__assign(tslib_1.__assign({}, nextState), { focusedItemIndex: _this._initialFocusedIndex !== undefined ? _this._initialFocusedIndex : -1 }); } if (!_this.props.disableSelectionZone && nextProps.items !== items) { _this._selection.setItems(nextProps.items, shouldResetSelection); } if (nextProps.checkboxVisibility !== checkboxVisibility || nextProps.columns !== columns || newViewportWidth !== oldViewportWidth || nextProps.compact !== compact) { shouldForceUpdates = true; } nextState = tslib_1.__assign(tslib_1.__assign({}, nextState), _this._adjustColumns(nextProps, nextState, true)); if (nextProps.selectionMode !== selectionMode) { shouldForceUpdates = true; } if (isAllGroupsCollapsed === undefined && nextProps.groupProps && nextProps.groupProps.isAllGroupsCollapsed !== undefined) { nextState = tslib_1.__assign(tslib_1.__assign({}, nextState), { isCollapsed: nextProps.groupProps.isAllGroupsCollapsed, isSomeGroupExpanded: !nextProps.groupProps.isAllGroupsCollapsed }); } if (nextProps.dragDropEvents !== dragDropEvents) { _this._dragDropHelper && _this._dragDropHelper.dispose(); _this._dragDropHelper = nextProps.dragDropEvents ? new DragDrop_1.DragDropHelper({ selection: _this._selection, minimumPixelsForDrag: nextProps.minimumPixelsForDrag, }) : undefined; shouldForceUpdates = true; } if (shouldForceUpdates) { nextState = tslib_1.__assign(tslib_1.__assign({}, nextState), { version: {} }); } return nextState; }; _this._onGroupExpandStateChanged = function (isSomeGroupExpanded) { _this.setState({ isSomeGroupExpanded: isSomeGroupExpanded }); }; _this._onColumnIsSizingChanged = function (column, isSizing) { _this.setState({ isSizing: isSizing }); }; _this._onRowDidMount = function (row) { var _a = row.props, item = _a.item, itemIndex = _a.itemIndex; var itemKey = _this._getItemKey(item, itemIndex); _this._activeRows[itemKey] = row; // this is used for column auto resize _this._setFocusToRowIfPending(row); var onRowDidMount = _this.props.onRowDidMount; if (onRowDidMount) { onRowDidMount(item, itemIndex); } }; _this._onRowWillUnmount = function (row) { var onRowWillUnmount = _this.props.onRowWillUnmount; var _a = row.props, item = _a.item, itemIndex = _a.itemIndex; var itemKey = _this._getItemKey(item, itemIndex); delete _this._activeRows[itemKey]; if (onRowWillUnmount) { onRowWillUnmount(item, itemIndex); } }; _this._onToggleCollapse = function (collapsed) { _this.setState({ isCollapsed: collapsed, }); if (_this._groupedList.current) { _this._groupedList.current.toggleCollapseAll(collapsed); } }; _this._onColumnResized = function (resizingColumn, newWidth, resizingColumnIndex) { var newCalculatedWidth = Math.max(resizingColumn.minWidth || MIN_COLUMN_WIDTH, newWidth); if (_this.props.onColumnResize) { _this.props.onColumnResize(resizingColumn, newCalculatedWidth, resizingColumnIndex); } _this._rememberCalculatedWidth(resizingColumn, newCalculatedWidth); _this.setState(tslib_1.__assign(tslib_1.__assign({}, _this._adjustColumns(_this.props, _this.state, true, resizingColumnIndex)), { version: {} })); }; /** * Callback function when double clicked on the details header column resizer * which will measure the column cells of all the active rows and resize the * column to the max cell width. * * @param column - double clicked column definition * @param columnIndex - double clicked column index * TODO: min width 100 should be changed to const value and should be consistent with the * value used on _onSizerMove method in DetailsHeader */ _this._onColumnAutoResized = function (column, columnIndex) { var max = 0; var count = 0; var totalCount = Object.keys(_this._activeRows).length; for (var key in _this._activeRows) { if (_this._activeRows.hasOwnProperty(key)) { var currentRow = _this._activeRows[key]; currentRow.measureCell(columnIndex, function (width) { max = Math.max(max, width); count++; if (count === totalCount) { _this._onColumnResized(column, max, columnIndex); } }); } } }; /** * Call back function when an element in FocusZone becomes active. It will translate it into item * and call onActiveItemChanged callback if specified. * * @param row - element that became active in Focus Zone * @param focus - event from Focus Zone */ _this._onActiveRowChanged = function (el, ev) { var _a = _this.props, items = _a.items, onActiveItemChanged = _a.onActiveItemChanged; if (!el) { return; } // Check and assign index only if the event was raised from any DetailsRow element if (el.getAttribute('data-item-index')) { var index = Number(el.getAttribute('data-item-index')); if (index >= 0) { if (onActiveItemChanged) { onActiveItemChanged(items[index], index, ev); } _this.setState({ focusedItemIndex: index, }); } } }; _this._onBlur = function (event) { _this.setState({ focusedItemIndex: -1, }); }; (0, Utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); _this._activeRows = {}; _this._columnOverrides = {}; _this.state = { focusedItemIndex: -1, lastWidth: 0, adjustedColumns: _this._getAdjustedColumns(props, undefined), isSizing: false, isCollapsed: props.groupProps && props.groupProps.isAllGroupsCollapsed, isSomeGroupExpanded: props.groupProps && !props.groupProps.isAllGroupsCollapsed, version: {}, getDerivedStateFromProps: _this._getDerivedStateFromProps, }; (0, Utilities_1.warnMutuallyExclusive)(COMPONENT_NAME, props, { selection: 'getKey', }); _this._selection = props.selection || new Selection_1.Selection({ onSelectionChanged: undefined, getKey: props.getKey, selectionMode: props.selectionMode, }); if (!_this.props.disableSelectionZone) { _this._selection.setItems(props.items, false); } _this._dragDropHelper = props.dragDropEvents ? new DragDrop_1.DragDropHelper({ selection: _this._selection, minimumPixelsForDrag: props.minimumPixelsForDrag, }) : undefined; _this._initialFocusedIndex = props.initialFocusedIndex; return _this; } DetailsListBase.getDerivedStateFromProps = function (nextProps, previousState) { return previousState.getDerivedStateFromProps(nextProps, previousState); }; DetailsListBase.prototype.scrollToIndex = function (index, measureItem, scrollToMode) { this._list.current && this._list.current.scrollToIndex(index, measureItem, scrollToMode); this._groupedList.current && this._groupedList.current.scrollToIndex(index, measureItem, scrollToMode); }; DetailsListBase.prototype.focusIndex = function (index, forceIntoFirstElement, measureItem, scrollToMode) { if (forceIntoFirstElement === void 0) { forceIntoFirstElement = false; } var item = this.props.items[index]; if (item) { this.scrollToIndex(index, measureItem, scrollToMode); var itemKey = this._getItemKey(item, index); var row = this._activeRows[itemKey]; if (row) { this._setFocusToRow(row, forceIntoFirstElement); } } }; DetailsListBase.prototype.getStartItemIndexInView = function () { if (this._list && this._list.current) { return this._list.current.getStartItemIndexInView(); } else if (this._groupedList && this._groupedList.current) { return this._groupedList.current.getStartItemIndexInView(); } return 0; }; DetailsListBase.prototype.updateColumn = function (column, options) { var _a, _b; var NO_COLUMNS = []; var _c = this.props, _d = _c.columns, columns = _d === void 0 ? NO_COLUMNS : _d, selectionMode = _c.selectionMode, checkboxVisibility = _c.checkboxVisibility, columnReorderOptions = _c.columnReorderOptions; var width = options.width, newColumnIndex = options.newColumnIndex; var index = columns.findIndex(function (col) { return col.key === column.key; }); if (width) { this._onColumnResized(column, width, index); } if (newColumnIndex !== undefined && columnReorderOptions) { var isCheckboxColumnHidden = selectionMode === Selection_1.SelectionMode.none || checkboxVisibility === DetailsList_types_1.CheckboxVisibility.hidden; var showCheckbox = checkboxVisibility !== DetailsList_types_1.CheckboxVisibility.hidden; var columnIndex = (showCheckbox ? 2 : 1) + index; var draggedIndex = isCheckboxColumnHidden ? columnIndex - 1 : columnIndex - 2; var targetIndex = isCheckboxColumnHidden ? newColumnIndex - 1 : newColumnIndex - 2; var frozenColumnCountFromStart = (_a = columnReorderOptions.frozenColumnCountFromStart) !== null && _a !== void 0 ? _a : 0; var frozenColumnCountFromEnd = (_b = columnReorderOptions.frozenColumnCountFromEnd) !== null && _b !== void 0 ? _b : 0; var isValidTargetIndex = targetIndex >= frozenColumnCountFromStart && targetIndex < columns.length - frozenColumnCountFromEnd; if (isValidTargetIndex) { if (columnReorderOptions.onColumnDrop) { var dragDropDetails = { draggedIndex: draggedIndex, targetIndex: targetIndex, }; columnReorderOptions.onColumnDrop(dragDropDetails); /* eslint-disable deprecation/deprecation */ } else if (columnReorderOptions.handleColumnReorder) { columnReorderOptions.handleColumnReorder(draggedIndex, targetIndex); /* eslint-enable deprecation/deprecation */ } } } }; DetailsListBase.prototype.componentWillUnmount = function () { if (this._dragDropHelper) { // TODO If the DragDropHelper was passed via props, this will dispose it, which is incorrect behavior. this._dragDropHelper.dispose(); } this._async.dispose(); }; DetailsListBase.prototype.componentDidUpdate = function (prevProps, prevState) { this._notifyColumnsResized(); if (this._initialFocusedIndex !== undefined) { var item = this.props.items[this._initialFocusedIndex]; if (item) { var itemKey = this._getItemKey(item, this._initialFocusedIndex); var row = this._activeRows[itemKey]; if (row) { this._setFocusToRowIfPending(row); } } } if (this.props.items !== prevProps.items && this.props.items.length > 0 && this.state.focusedItemIndex !== -1 && !(0, Utilities_1.elementContains)(this._root.current, document.activeElement, false)) { // Item set has changed and previously-focused item is gone. // Set focus to item at index of previously-focused item if it is in range, // else set focus to the last item. var index = this.state.focusedItemIndex < this.props.items.length ? this.state.focusedItemIndex : this.props.items.length - 1; var item = this.props.items[index]; var itemKey = this._getItemKey(item, this.state.focusedItemIndex); var row = this._activeRows[itemKey]; if (row) { this._setFocusToRow(row); } else { this._initialFocusedIndex = index; } } if (this.props.onDidUpdate) { this.props.onDidUpdate(this); } }; DetailsListBase.prototype.render = function () { return (React.createElement(DetailsListInner, tslib_1.__assign({}, this.props, this.state, { selection: this._selection, dragDropHelper: this._dragDropHelper, rootRef: this._root, listRef: this._list, groupedListRef: this._groupedList, focusZoneRef: this._focusZone, headerRef: this._header, selectionZoneRef: this._selectionZone, onGroupExpandStateChanged: this._onGroupExpandStateChanged, onColumnIsSizingChanged: this._onColumnIsSizingChanged, onRowDidMount: this._onRowDidMount, onRowWillUnmount: this._onRowWillUnmount, onColumnResized: this._onColumnResized, onColumnAutoResized: this._onColumnAutoResized, onToggleCollapse: this._onToggleCollapse, onActiveRowChanged: this._onActiveRowChanged, onBlur: this._onBlur, onRenderDefaultRow: this._onRenderRow }))); }; DetailsListBase.prototype.forceUpdate = function () { _super.prototype.forceUpdate.call(this); this._forceListUpdates(); }; DetailsListBase.prototype._getGroupNestingDepth = function () { var groups = this.props.groups; var level = 0; var groupsInLevel = groups; while (groupsInLevel && groupsInLevel.length > 0) { level++; groupsInLevel = groupsInLevel[0].children; } return level; }; DetailsListBase.prototype._setFocusToRowIfPending = function (row) { var itemIndex = row.props.itemIndex; if (this._initialFocusedIndex !== undefined && itemIndex === this._initialFocusedIndex) { this._setFocusToRow(row); delete this._initialFocusedIndex; } }; DetailsListBase.prototype._setFocusToRow = function (row, forceIntoFirstElement) { if (forceIntoFirstElement === void 0) { forceIntoFirstElement = false; } if (this._selectionZone.current) { this._selectionZone.current.ignoreNextFocus(); } this._async.setTimeout(function () { row.focus(forceIntoFirstElement); }, 0); }; DetailsListBase.prototype._forceListUpdates = function () { if (this._groupedList.current) { this._groupedList.current.forceUpdate(); } if (this._list.current) { this._list.current.forceUpdate(); } }; DetailsListBase.prototype._notifyColumnsResized = function () { this.state.adjustedColumns.forEach(function (column) { if (column.onColumnResize) { column.onColumnResize(column.currentWidth); } }); }; DetailsListBase.prototype._adjustColumns = function (newProps, previousState, forceUpdate, resizingColumnIndex) { var adjustedColumns = this._getAdjustedColumns(newProps, previousState, forceUpdate, resizingColumnIndex); var viewport = this.props.viewport; var viewportWidth = viewport && viewport.width ? viewport.width : 0; return tslib_1.__assign(tslib_1.__assign({}, previousState), { adjustedColumns: adjustedColumns, lastWidth: viewportWidth }); }; /** Returns adjusted columns, given the viewport size and layout mode. */ DetailsListBase.prototype._getAdjustedColumns = function (newProps, previousState, forceUpdate, resizingColumnIndex) { var _this = this; var newItems = newProps.items, layoutMode = newProps.layoutMode, selectionMode = newProps.selectionMode, viewport = newProps.viewport; var viewportWidth = viewport && viewport.width ? viewport.width : 0; var newColumns = newProps.columns; var columns = this.props ? this.props.columns : []; var lastWidth = previousState ? previousState.lastWidth : -1; var lastSelectionMode = previousState ? previousState.lastSelectionMode : undefined; if (!forceUpdate && lastWidth === viewportWidth && lastSelectionMode === selectionMode && (!columns || newColumns === columns)) { return newColumns || []; } newColumns = newColumns || buildColumns(newItems, true); var adjustedColumns; if (layoutMode === DetailsList_types_1.DetailsListLayoutMode.fixedColumns) { adjustedColumns = this._getFixedColumns(newColumns, viewportWidth, newProps); // Preserve adjusted column calculated widths. adjustedColumns.forEach(function (column) { _this._rememberCalculatedWidth(column, column.calculatedWidth); }); } else { adjustedColumns = this._getJustifiedColumns(newColumns, viewportWidth, newProps); adjustedColumns.forEach(function (column) { _this._getColumnOverride(column.key).currentWidth = column.calculatedWidth; }); } return adjustedColumns; }; /** Builds a set of columns based on the given columns mixed with the current overrides. */ DetailsListBase.prototype._getFixedColumns = function (newColumns, viewportWidth, props) { var _this = this; var _a = this.props, _b = _a.selectionMode, selectionMode = _b === void 0 ? this._selection.mode : _b, checkboxVisibility = _a.checkboxVisibility, flexMargin = _a.flexMargin, skipViewportMeasures = _a.skipViewportMeasures; var remainingWidth = viewportWidth - (flexMargin || 0); var sumProportionalWidth = 0; newColumns.forEach(function (col) { if (skipViewportMeasures || !col.flexGrow) { remainingWidth -= col.maxWidth || col.minWidth || MIN_COLUMN_WIDTH; } else { remainingWidth -= col.minWidth || MIN_COLUMN_WIDTH; sumProportionalWidth += col.flexGrow; } remainingWidth -= getPaddedWidth(col, props, true); }); var rowCheckWidth = selectionMode !== Selection_1.SelectionMode.none && checkboxVisibility !== DetailsList_types_1.CheckboxVisibility.hidden ? DetailsRowCheck_styles_1.CHECK_CELL_WIDTH : 0; var groupExpandWidth = this._getGroupNestingDepth() * GroupSpacer_1.SPACER_WIDTH; remainingWidth -= rowCheckWidth + groupExpandWidth; var widthFraction = remainingWidth / sumProportionalWidth; // Shrinks proportional columns to their max width and adds the remaining width to distribute to other columns. if (!skipViewportMeasures) { newColumns.forEach(function (column) { var newColumn = tslib_1.__assign(tslib_1.__assign({}, column), _this._columnOverrides[column.key]); if (newColumn.flexGrow && newColumn.maxWidth) { var fullWidth = newColumn.flexGrow * widthFraction + newColumn.minWidth; var shrinkWidth = fullWidth - newColumn.maxWidth; if (shrinkWidth > 0) { remainingWidth += shrinkWidth; sumProportionalWidth -= (shrinkWidth / (fullWidth - newColumn.minWidth)) * newColumn.flexGrow; } } }); } widthFraction = remainingWidth > 0 ? remainingWidth / sumProportionalWidth : 0; return newColumns.map(function (column) { var newColumn = tslib_1.__assign(tslib_1.__assign({}, column), _this._columnOverrides[column.key]); // Delay computation until viewport width is available. if (!skipViewportMeasures && newColumn.flexGrow && remainingWidth <= 0) { return newColumn; } if (!newColumn.calculatedWidth) { if (!skipViewportMeasures && newColumn.flexGrow) { // Assigns the proportion of the remaining extra width after all columns have met minimum widths. newColumn.calculatedWidth = newColumn.minWidth + newColumn.flexGrow * widthFraction; newColumn.calculatedWidth = Math.min(newColumn.calculatedWidth, newColumn.maxWidth || Number.MAX_VALUE); } else { newColumn.calculatedWidth = newColumn.maxWidth || newColumn.minWidth || MIN_COLUMN_WIDTH; } } return newColumn; }); }; /** Builds a set of columns to fix within the viewport width. */ DetailsListBase.prototype._getJustifiedColumns = function (newColumns, viewportWidth, props) { var _this = this; var _a = props.selectionMode, selectionMode = _a === void 0 ? this._selection.mode : _a, checkboxVisibility = props.checkboxVisibility, skipViewportMeasures = props.skipViewportMeasures; var rowCheckWidth = selectionMode !== Selection_1.SelectionMode.none && checkboxVisibility !== DetailsList_types_1.CheckboxVisibility.hidden ? DetailsRowCheck_styles_1.CHECK_CELL_WIDTH : 0; var groupExpandWidth = this._getGroupNestingDepth() * GroupSpacer_1.SPACER_WIDTH; var totalWidth = 0; // offset because we have one less inner padding. var minimumWidth = 0; var availableWidth = viewportWidth - (rowCheckWidth + groupExpandWidth); var adjustedColumns = newColumns.map(function (column, i) { var baseColumn = tslib_1.__assign(tslib_1.__assign({}, column), { calculatedWidth: column.minWidth || MIN_COLUMN_WIDTH }); var newColumn = tslib_1.__assign(tslib_1.__assign({}, baseColumn), _this._columnOverrides[column.key]); // eslint-disable-next-line deprecation/deprecation if (!(baseColumn.isCollapsible || baseColumn.isCollapsable)) { minimumWidth += getPaddedWidth(baseColumn, props); } totalWidth += getPaddedWidth(newColumn, props); return newColumn; }); if (skipViewportMeasures) { return adjustedColumns; } var lastIndex = adjustedColumns.length - 1; // Shrink or remove collapsable columns. while (lastIndex >= 0 && totalWidth > availableWidth) { var column = adjustedColumns[lastIndex]; var minWidth = column.minWidth || MIN_COLUMN_WIDTH; var overflowWidth = totalWidth - availableWidth; // eslint-disable-next-line deprecation/deprecation if (column.calculatedWidth - minWidth >= overflowWidth || !(column.isCollapsible || column.isCollapsable)) { var originalWidth = column.calculatedWidth; if (minimumWidth < availableWidth) { // Only adjust in cases where all the columns fit within the viewport column.calculatedWidth = Math.max(column.calculatedWidth - overflowWidth, minWidth); } totalWidth -= originalWidth - column.calculatedWidth; } else { totalWidth -= getPaddedWidth(column, props); adjustedColumns.splice(lastIndex, 1); } lastIndex--; } // Then expand columns starting at the beginning, until we've filled the width. for (var i = 0; i < adjustedColumns.length && totalWidth < availableWidth; i++) { var column = adjustedColumns[i]; var isLast = i === adjustedColumns.length - 1; var overrides = this._columnOverrides[column.key]; if (overrides && overrides.calculatedWidth && !isLast) { continue; } var spaceLeft = availableWidth - totalWidth; var increment = void 0; if (isLast) { increment = spaceLeft; } else { var maxWidth = column.maxWidth; var minWidth = column.minWidth || maxWidth || MIN_COLUMN_WIDTH; increment = maxWidth ? Math.min(spaceLeft, maxWidth - minWidth) : spaceLeft; } column.calculatedWidth = column.calculatedWidth + increment; totalWidth += increment; } return adjustedColumns; }; DetailsListBase.prototype._rememberCalculatedWidth = function (column, newCalculatedWidth) { var overrides = this._getColumnOverride(column.key); overrides.calculatedWidth = newCalculatedWidth; overrides.currentWidth = newCalculatedWidth; }; DetailsListBase.prototype._getColumnOverride = function (key) { return (this._columnOverrides[key] = this._columnOverrides[key] || {}); }; DetailsListBase.prototype._getItemKey = function (item, itemIndex) { var getKey = this.props.getKey; var itemKey = undefined; if (item) { itemKey = item.key; } if (getKey) { itemKey = getKey(item, itemIndex); } if (!itemKey) { itemKey = itemIndex; } return itemKey; }; DetailsListBase.defaultProps = { layoutMode: DetailsList_types_1.DetailsListLayoutMode.justified, selectionMode: Selection_1.SelectionMode.multiple, constrainMode: DetailsList_types_1.ConstrainMode.horizontalConstrained, checkboxVisibility: DetailsList_types_1.CheckboxVisibility.onHover, isHeaderVisible: true, compact: false, useFastIcons: true, }; DetailsListBase = tslib_1.__decorate([ withViewport_1.withViewport ], DetailsListBase); return DetailsListBase; }(React.Component)); exports.DetailsListBase = DetailsListBase; function buildColumns(items, canResizeColumns, onColumnClick, sortedColumnKey, isSortedDescending, groupedColumnKey, isMultiline, columnActionsMode) { var columns = []; if (items && items.length) { var firstItem = items[0]; for (var propName in firstItem) { if (firstItem.hasOwnProperty(propName)) { columns.push({ key: propName, name: propName, fieldName: propName, minWidth: MIN_COLUMN_WIDTH, maxWidth: 300, isCollapsible: !!columns.length, isMultiline: isMultiline === undefined ? false : isMultiline, isSorted: sortedColumnKey === propName, isSortedDescending: !!isSortedDescending, isRowHeader: false, columnActionsMode: columnActionsMode !== null && columnActionsMode !== void 0 ? columnActionsMode : DetailsList_types_1.ColumnActionsMode.clickable, isResizable: canResizeColumns, onColumnClick: onColumnClick, isGrouped: groupedColumnKey === propName, }); } } } return columns; } exports.buildColumns = buildColumns; function getPaddedWidth(column, props, paddingOnly) { var _a = props.cellStyleProps, cellStyleProps = _a === void 0 ? DetailsRow_styles_1.DEFAULT_CELL_STYLE_PROPS : _a; return ((paddingOnly ? 0 : column.calculatedWidth) + cellStyleProps.cellLeftPadding + cellStyleProps.cellRightPadding + (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0)); } function getGroupNestingDepth(groups) { var level = 0; var groupsInLevel = groups; while (groupsInLevel && groupsInLevel.length > 0) { level++; groupsInLevel = groupsInLevel[0].children; } return level; } function useGroupedDetailsListIndexMap(groups) { return React.useMemo(function () { var indexMap = {}; if (groups) { var rowCount = 1; var numGroupHeaders = 1; for (var _i = 0, groups_1 = groups; _i < groups_1.length; _i++) { var group = groups_1[_i]; var key = group.key; indexMap[key] = { numOfGroupHeadersBeforeItem: numGroupHeaders, totalRowCount: rowCount }; numGroupHeaders++; rowCount += group.count + 1; } } return indexMap; }, [groups]); } //# sourceMappingURL=DetailsList.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DetailsList = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DetailsList_base_1 = __webpack_require__(/*! ./DetailsList.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.base.js"); var DetailsList_styles_1 = __webpack_require__(/*! ./DetailsList.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.styles.js"); exports.DetailsList = (0, Utilities_1.styled)(DetailsList_base_1.DetailsListBase, DetailsList_styles_1.getDetailsListStyles, undefined, { scope: 'DetailsList', }); //# sourceMappingURL=DetailsList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.styles.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDetailsListStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { root: 'ms-DetailsList', compact: 'ms-DetailsList--Compact', contentWrapper: 'ms-DetailsList-contentWrapper', headerWrapper: 'ms-DetailsList-headerWrapper', isFixed: 'is-fixed', isHorizontalConstrained: 'is-horizontalConstrained', listCell: 'ms-List-cell', }; var getDetailsListStyles = function (props) { var _a, _b; var theme = props.theme, className = props.className, isHorizontalConstrained = props.isHorizontalConstrained, compact = props.compact, isFixed = props.isFixed; var semanticColors = theme.semanticColors; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, theme.fonts.small, { position: 'relative', color: semanticColors.listText, selectors: (_a = {}, _a["& .".concat(classNames.listCell)] = { minHeight: 38, wordBreak: 'break-word', }, _a), }, isFixed && classNames.isFixed, compact && [ classNames.compact, { selectors: (_b = {}, _b[".".concat(classNames.listCell)] = { minHeight: 32, }, _b), }, ], isHorizontalConstrained && [ classNames.isHorizontalConstrained, { overflowX: 'auto', overflowY: 'visible', WebkitOverflowScrolling: 'touch', }, ], className, ], focusZone: [ { display: 'inline-block', minWidth: '100%', minHeight: 1, }, ], headerWrapper: classNames.headerWrapper, contentWrapper: classNames.contentWrapper, }; }; exports.getDetailsListStyles = getDetailsListStyles; //# sourceMappingURL=DetailsList.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.types.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.CheckboxVisibility = exports.DetailsListLayoutMode = exports.ColumnDragEndLocation = exports.ConstrainMode = exports.ColumnActionsMode = void 0; /** * Enum to describe how a particular column header behaves. * This is used to to specify the property `IColumn.columnActionsMode`. * If `IColumn.columnActionsMode` is undefined, it's equivalent to `ColumnActionsMode.clickable`. * {@docCategory DetailsList} */ var ColumnActionsMode; (function (ColumnActionsMode) { /** Renders the column header as disabled. */ ColumnActionsMode[ColumnActionsMode["disabled"] = 0] = "disabled"; /** Renders the column header as clickable. Default value. */ ColumnActionsMode[ColumnActionsMode["clickable"] = 1] = "clickable"; /** Renders the column header as clickable and displays the dropdown chevron. */ ColumnActionsMode[ColumnActionsMode["hasDropdown"] = 2] = "hasDropdown"; })(ColumnActionsMode = exports.ColumnActionsMode || (exports.ColumnActionsMode = {})); /** * {@docCategory DetailsList} */ var ConstrainMode; (function (ConstrainMode) { /** Lets the content grow which allows the page to manage scrolling. */ ConstrainMode[ConstrainMode["unconstrained"] = 0] = "unconstrained"; /** Constrains the list to the given layout space. */ ConstrainMode[ConstrainMode["horizontalConstrained"] = 1] = "horizontalConstrained"; })(ConstrainMode = exports.ConstrainMode || (exports.ConstrainMode = {})); /** * Enum to describe where the column has been dropped, after starting the drag * {@docCategory DetailsList} */ var ColumnDragEndLocation; (function (ColumnDragEndLocation) { /** Drag ended outside of current list */ ColumnDragEndLocation[ColumnDragEndLocation["outside"] = 0] = "outside"; /** Drag ended within current list */ ColumnDragEndLocation[ColumnDragEndLocation["surface"] = 1] = "surface"; /** Drag ended on header */ ColumnDragEndLocation[ColumnDragEndLocation["header"] = 2] = "header"; })(ColumnDragEndLocation = exports.ColumnDragEndLocation || (exports.ColumnDragEndLocation = {})); /** * {@docCategory DetailsList} */ var DetailsListLayoutMode; (function (DetailsListLayoutMode) { /** * Lets the user resize columns and makes not attempt to fit them. */ DetailsListLayoutMode[DetailsListLayoutMode["fixedColumns"] = 0] = "fixedColumns"; /** * Manages which columns are visible, tries to size them according to their min/max rules and drops * off columns that can't fit and have isCollapsible set. */ DetailsListLayoutMode[DetailsListLayoutMode["justified"] = 1] = "justified"; })(DetailsListLayoutMode = exports.DetailsListLayoutMode || (exports.DetailsListLayoutMode = {})); /** * {@docCategory DetailsList} */ var CheckboxVisibility; (function (CheckboxVisibility) { /** Visible on hover. */ CheckboxVisibility[CheckboxVisibility["onHover"] = 0] = "onHover"; /** Visible always. */ CheckboxVisibility[CheckboxVisibility["always"] = 1] = "always"; /** Hide checkboxes. */ CheckboxVisibility[CheckboxVisibility["hidden"] = 2] = "hidden"; })(CheckboxVisibility = exports.CheckboxVisibility || (exports.CheckboxVisibility = {})); //# sourceMappingURL=DetailsList.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.base.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.base.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DetailsRowBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DetailsList_types_1 = __webpack_require__(/*! ./DetailsList.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.types.js"); var DetailsRowCheck_1 = __webpack_require__(/*! ./DetailsRowCheck */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.js"); var GroupSpacer_1 = __webpack_require__(/*! ../GroupedList/GroupSpacer */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.js"); var DetailsRowFields_1 = __webpack_require__(/*! ./DetailsRowFields */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowFields.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var Selection_1 = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib-commonjs/Selection.js"); var Utilities_2 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Utilities_3 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_2.classNamesFunction)(); var DEFAULT_DROPPING_CSS_CLASS = 'is-dropping'; var NO_COLUMNS = []; var DetailsRowBase = /** @class */ (function (_super) { tslib_1.__extends(DetailsRowBase, _super); function DetailsRowBase(props) { var _this = _super.call(this, props) || this; _this._root = React.createRef(); _this._cellMeasurer = React.createRef(); _this._focusZone = React.createRef(); _this._onSelectionChanged = function () { var selectionState = getSelectionState(_this.props); if (!(0, Utilities_1.shallowCompare)(selectionState, _this.state.selectionState)) { _this.setState({ selectionState: selectionState }); } }; /** * update isDropping state based on the input value, which is used to change style during drag and drop * * when change to true, that means drag enter. we will add default dropping class name * or the custom dropping class name (return result from onDragEnter) to the root elemet. * * when change to false, that means drag leave. we will remove the dropping class name from root element. * * @param newValue - New isDropping state value * @param event - The event trigger dropping state change which can be dragenter, dragleave etc */ _this._updateDroppingState = function (newValue, event) { var isDropping = _this.state.isDropping; var _a = _this.props, dragDropEvents = _a.dragDropEvents, item = _a.item; if (!newValue) { if (dragDropEvents.onDragLeave) { dragDropEvents.onDragLeave(item, event); } } else if (dragDropEvents.onDragEnter) { _this._droppingClassNames = dragDropEvents.onDragEnter(item, event); } if (isDropping !== newValue) { _this.setState({ isDropping: newValue }); } }; (0, Utilities_1.initializeComponentRef)(_this); _this._events = new Utilities_1.EventGroup(_this); _this.state = { selectionState: getSelectionState(props), columnMeasureInfo: undefined, isDropping: false, }; _this._droppingClassNames = ''; return _this; } DetailsRowBase.getDerivedStateFromProps = function (nextProps, previousState) { return tslib_1.__assign(tslib_1.__assign({}, previousState), { selectionState: getSelectionState(nextProps) }); }; DetailsRowBase.prototype.componentDidMount = function () { var _a = this.props, dragDropHelper = _a.dragDropHelper, selection = _a.selection, item = _a.item, onDidMount = _a.onDidMount; if (dragDropHelper && this._root.current) { this._dragDropSubscription = dragDropHelper.subscribe(this._root.current, this._events, this._getRowDragDropOptions()); } if (selection) { this._events.on(selection, Selection_1.SELECTION_CHANGE, this._onSelectionChanged); } if (onDidMount && item) { // If the item appears later, we should wait for it before calling this method. this._onDidMountCalled = true; onDidMount(this); } }; DetailsRowBase.prototype.componentDidUpdate = function (previousProps) { var state = this.state; var _a = this.props, item = _a.item, onDidMount = _a.onDidMount; var columnMeasureInfo = state.columnMeasureInfo; if (this.props.itemIndex !== previousProps.itemIndex || this.props.item !== previousProps.item || this.props.dragDropHelper !== previousProps.dragDropHelper) { if (this._dragDropSubscription) { this._dragDropSubscription.dispose(); delete this._dragDropSubscription; } if (this.props.dragDropHelper && this._root.current) { this._dragDropSubscription = this.props.dragDropHelper.subscribe(this._root.current, this._events, this._getRowDragDropOptions()); } } if (columnMeasureInfo && columnMeasureInfo.index >= 0 && this._cellMeasurer.current) { var newWidth = this._cellMeasurer.current.getBoundingClientRect().width; columnMeasureInfo.onMeasureDone(newWidth); this.setState({ columnMeasureInfo: undefined, }); } if (item && onDidMount && !this._onDidMountCalled) { this._onDidMountCalled = true; onDidMount(this); } }; DetailsRowBase.prototype.componentWillUnmount = function () { var _a = this.props, item = _a.item, onWillUnmount = _a.onWillUnmount; // Only call the onWillUnmount callback if we have an item. if (onWillUnmount && item) { onWillUnmount(this); } if (this._dragDropSubscription) { this._dragDropSubscription.dispose(); delete this._dragDropSubscription; } this._events.dispose(); }; DetailsRowBase.prototype.shouldComponentUpdate = function (nextProps, nextState) { if (this.props.useReducedRowRenderer) { var newSelectionState = getSelectionState(nextProps); if (this.state.selectionState.isSelected !== newSelectionState.isSelected) { return true; } return !(0, Utilities_1.shallowCompare)(this.props, nextProps); } else { return true; } }; DetailsRowBase.prototype.render = function () { var _a; var _b = this.props, className = _b.className, _c = _b.columns, columns = _c === void 0 ? NO_COLUMNS : _c, dragDropEvents = _b.dragDropEvents, item = _b.item, itemIndex = _b.itemIndex, id = _b.id, _d = _b.flatIndexOffset, flatIndexOffset = _d === void 0 ? 2 : _d, _e = _b.onRenderCheck, onRenderCheck = _e === void 0 ? this._onRenderCheck : _e, onRenderDetailsCheckbox = _b.onRenderDetailsCheckbox, onRenderItemColumn = _b.onRenderItemColumn, onRenderField = _b.onRenderField, getCellValueKey = _b.getCellValueKey, selectionMode = _b.selectionMode, checkboxVisibility = _b.checkboxVisibility, getRowAriaLabel = _b.getRowAriaLabel, getRowAriaDescription = _b.getRowAriaDescription, getRowAriaDescribedBy = _b.getRowAriaDescribedBy, isGridRow = _b.isGridRow, checkButtonAriaLabel = _b.checkButtonAriaLabel, checkboxCellClassName = _b.checkboxCellClassName, /** Alias rowFieldsAs as RowFields and default to DetailsRowFields if rowFieldsAs does not exist */ rowFieldsAs = _b.rowFieldsAs, selection = _b.selection, indentWidth = _b.indentWidth, enableUpdateAnimations = _b.enableUpdateAnimations, compact = _b.compact, theme = _b.theme, styles = _b.styles, cellsByColumn = _b.cellsByColumn, groupNestingDepth = _b.groupNestingDepth, _f = _b.useFastIcons, useFastIcons = _f === void 0 ? true : _f, cellStyleProps = _b.cellStyleProps, group = _b.group, focusZoneProps = _b.focusZoneProps, _g = _b.disabled, disabled = _g === void 0 ? false : _g; var _h = this.state, columnMeasureInfo = _h.columnMeasureInfo, isDropping = _h.isDropping; var _j = this.state.selectionState, _k = _j.isSelected, isSelected = _k === void 0 ? false : _k, _l = _j.isSelectionModal, isSelectionModal = _l === void 0 ? false : _l; var isDraggable = dragDropEvents ? !!(dragDropEvents.canDrag && dragDropEvents.canDrag(item)) : undefined; var droppingClassName = isDropping ? this._droppingClassNames || DEFAULT_DROPPING_CSS_CLASS : ''; var ariaLabel = getRowAriaLabel ? getRowAriaLabel(item) : undefined; var ariaRowDescription = getRowAriaDescription ? getRowAriaDescription(item) : undefined; var ariaDescribedBy = getRowAriaDescribedBy ? getRowAriaDescribedBy(item) : undefined; var canSelect = !!selection && selection.canSelectItem(item, itemIndex) && !disabled; var isContentUnselectable = selectionMode === Selection_1.SelectionMode.multiple; var showCheckbox = selectionMode !== Selection_1.SelectionMode.none && checkboxVisibility !== DetailsList_types_1.CheckboxVisibility.hidden; var ariaSelected = selectionMode === Selection_1.SelectionMode.none ? undefined : isSelected; var ariaPositionInSet = group ? itemIndex - group.startIndex + 1 : undefined; var ariaSetSize = group ? group.count : undefined; var focusZoneDirection = focusZoneProps ? focusZoneProps.direction : FocusZone_1.FocusZoneDirection.horizontal; this._classNames = tslib_1.__assign(tslib_1.__assign({}, this._classNames), getClassNames(styles, { theme: theme, isSelected: isSelected, canSelect: !isContentUnselectable, anySelected: isSelectionModal, checkboxCellClassName: checkboxCellClassName, droppingClassName: droppingClassName, className: className, compact: compact, enableUpdateAnimations: enableUpdateAnimations, cellStyleProps: cellStyleProps, disabled: disabled, })); var rowClassNames = { isMultiline: this._classNames.isMultiline, isRowHeader: this._classNames.isRowHeader, cell: this._classNames.cell, cellAnimation: this._classNames.cellAnimation, cellPadded: this._classNames.cellPadded, cellUnpadded: this._classNames.cellUnpadded, fields: this._classNames.fields, }; // Only re-assign rowClassNames when classNames have changed. // Otherwise, they will cause DetailsRowFields to unnecessarily // re-render, see https://github.com/microsoft/fluentui/pull/8799. // Refactor DetailsRowFields to generate own styles to remove need for this. if (!(0, Utilities_1.shallowCompare)(this._rowClassNames || {}, rowClassNames)) { this._rowClassNames = rowClassNames; } var RowFields = rowFieldsAs ? (0, Utilities_1.composeComponentAs)(rowFieldsAs, DetailsRowFields_1.DetailsRowFields) : DetailsRowFields_1.DetailsRowFields; var rowFields = (React.createElement(RowFields, { rowClassNames: this._rowClassNames, rowHeaderId: "".concat(id, "-header"), cellsByColumn: cellsByColumn, columns: columns, item: item, itemIndex: itemIndex, isSelected: isSelected, columnStartIndex: (showCheckbox ? 1 : 0) + (groupNestingDepth ? 1 : 0), onRenderItemColumn: onRenderItemColumn, onRenderField: onRenderField, getCellValueKey: getCellValueKey, enableUpdateAnimations: enableUpdateAnimations, cellStyleProps: cellStyleProps })); var defaultRole = 'row'; var role = this.props.role ? this.props.role : defaultRole; this._ariaRowDescriptionId = (0, Utilities_3.getId)('DetailsRow-description'); // When the user does not specify any column is a row-header in the columns props, // The aria-labelledby of the checkbox does not specify {id}-header. var hasRowHeader = columns.some(function (column) { return !!column.isRowHeader; }); var ariaLabelledby = "".concat(id, "-checkbox") + (hasRowHeader ? " ".concat(id, "-header") : ''); // additional props for rows within a GroupedList // these are needed for treegrid row semantics, but not grid row semantics var groupedListRowProps = isGridRow ? {} : { 'aria-level': (groupNestingDepth && groupNestingDepth + 1) || undefined, 'aria-posinset': ariaPositionInSet, 'aria-setsize': ariaSetSize, }; return (React.createElement(FocusZone_1.FocusZone, tslib_1.__assign({ "data-is-focusable": true }, (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties), (typeof isDraggable === 'boolean' ? { 'data-is-draggable': isDraggable, draggable: isDraggable, } : {}), focusZoneProps, groupedListRowProps, { direction: focusZoneDirection, elementRef: this._root, componentRef: this._focusZone, role: role, "aria-label": ariaLabel, "aria-disabled": disabled || undefined, "aria-describedby": ariaRowDescription ? this._ariaRowDescriptionId : ariaDescribedBy, className: this._classNames.root, "data-selection-index": itemIndex, "data-selection-touch-invoke": true, "data-selection-disabled": (_a = this.props['data-selection-disabled']) !== null && _a !== void 0 ? _a : (disabled || undefined), "data-item-index": itemIndex, "aria-rowindex": ariaPositionInSet === undefined ? itemIndex + flatIndexOffset : undefined, "data-automationid": "DetailsRow", "aria-selected": ariaSelected, allowFocusRoot: true }), ariaRowDescription ? (React.createElement("span", { key: "description", role: "presentation", hidden: true, id: this._ariaRowDescriptionId }, ariaRowDescription)) : null, showCheckbox && (React.createElement("div", { role: "gridcell", "data-selection-toggle": true, className: this._classNames.checkCell }, onRenderCheck({ id: id ? "".concat(id, "-checkbox") : undefined, selected: isSelected, selectionMode: selectionMode, anySelected: isSelectionModal, 'aria-label': checkButtonAriaLabel, 'aria-labelledby': id ? ariaLabelledby : undefined, canSelect: canSelect, compact: compact, className: this._classNames.check, theme: theme, isVisible: checkboxVisibility === DetailsList_types_1.CheckboxVisibility.always, onRenderDetailsCheckbox: onRenderDetailsCheckbox, useFastIcons: useFastIcons, }))), React.createElement(GroupSpacer_1.GroupSpacer, { indentWidth: indentWidth, role: "gridcell", count: groupNestingDepth === 0 ? -1 : groupNestingDepth }), item && rowFields, columnMeasureInfo && (React.createElement("span", { role: "presentation", className: (0, Utilities_1.css)(this._classNames.cellMeasurer, this._classNames.cell), ref: this._cellMeasurer }, React.createElement(RowFields, { rowClassNames: this._rowClassNames, rowHeaderId: "".concat(id, "-header"), columns: [columnMeasureInfo.column], item: item, itemIndex: itemIndex, columnStartIndex: (showCheckbox ? 1 : 0) + (groupNestingDepth ? 1 : 0) + columns.length, onRenderItemColumn: onRenderItemColumn, getCellValueKey: getCellValueKey }))))); }; /** * measure cell at index. and call the call back with the measured cell width when finish measure * * @param index - The cell index * @param onMeasureDone - The call back function when finish measure */ DetailsRowBase.prototype.measureCell = function (index, onMeasureDone) { var _a = this.props.columns, columns = _a === void 0 ? NO_COLUMNS : _a; var column = tslib_1.__assign({}, columns[index]); column.minWidth = 0; column.maxWidth = 999999; delete column.calculatedWidth; this.setState({ columnMeasureInfo: { index: index, column: column, onMeasureDone: onMeasureDone, }, }); }; DetailsRowBase.prototype.focus = function (forceIntoFirstElement) { var _a; if (forceIntoFirstElement === void 0) { forceIntoFirstElement = false; } return !!((_a = this._focusZone.current) === null || _a === void 0 ? void 0 : _a.focus(forceIntoFirstElement)); }; DetailsRowBase.prototype._onRenderCheck = function (props) { return React.createElement(DetailsRowCheck_1.DetailsRowCheck, tslib_1.__assign({}, props)); }; DetailsRowBase.prototype._getRowDragDropOptions = function () { var _a = this.props, item = _a.item, itemIndex = _a.itemIndex, dragDropEvents = _a.dragDropEvents, eventsToRegister = _a.eventsToRegister; var options = { eventMap: eventsToRegister, selectionIndex: itemIndex, context: { data: item, index: itemIndex }, canDrag: dragDropEvents.canDrag, canDrop: dragDropEvents.canDrop, onDragStart: dragDropEvents.onDragStart, updateDropState: this._updateDroppingState, onDrop: dragDropEvents.onDrop, onDragEnd: dragDropEvents.onDragEnd, onDragOver: dragDropEvents.onDragOver, }; return options; }; return DetailsRowBase; }(React.Component)); exports.DetailsRowBase = DetailsRowBase; function getSelectionState(props) { var _a; var itemIndex = props.itemIndex, selection = props.selection; return { isSelected: !!(selection === null || selection === void 0 ? void 0 : selection.isIndexSelected(itemIndex)), isSelectionModal: !!((_a = selection === null || selection === void 0 ? void 0 : selection.isModal) === null || _a === void 0 ? void 0 : _a.call(selection)), }; } //# sourceMappingURL=DetailsRow.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DetailsRow = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DetailsRow_base_1 = __webpack_require__(/*! ./DetailsRow.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.base.js"); var DetailsRow_styles_1 = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js"); exports.DetailsRow = (0, Utilities_1.styled)(DetailsRow_base_1.DetailsRowBase, DetailsRow_styles_1.getDetailsRowStyles, undefined, { scope: 'DetailsRow', }); //# sourceMappingURL=DetailsRow.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDetailsRowStyles = exports.DEFAULT_ROW_HEIGHTS = exports.DEFAULT_CELL_STYLE_PROPS = exports.DetailsRowGlobalClassNames = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Link_styles_1 = __webpack_require__(/*! ../../components/Link/Link.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Link/Link.styles.js"); exports.DetailsRowGlobalClassNames = { root: 'ms-DetailsRow', // TODO: in Fabric 7.0 lowercase the 'Compact' for consistency across other components. compact: 'ms-DetailsList--Compact', cell: 'ms-DetailsRow-cell', cellAnimation: 'ms-DetailsRow-cellAnimation', cellCheck: 'ms-DetailsRow-cellCheck', check: 'ms-DetailsRow-check', cellMeasurer: 'ms-DetailsRow-cellMeasurer', listCellFirstChild: 'ms-List-cell:first-child', isContentUnselectable: 'is-contentUnselectable', isSelected: 'is-selected', isCheckVisible: 'is-check-visible', isRowHeader: 'is-row-header', fields: 'ms-DetailsRow-fields', }; var IsFocusableSelector = "[data-is-focusable='true']"; exports.DEFAULT_CELL_STYLE_PROPS = { cellLeftPadding: 12, cellRightPadding: 8, cellExtraRightPadding: 24, }; // Source of default row heights to share. exports.DEFAULT_ROW_HEIGHTS = { rowHeight: 42, compactRowHeight: 32, }; // Constant values var values = tslib_1.__assign(tslib_1.__assign({}, exports.DEFAULT_ROW_HEIGHTS), { rowVerticalPadding: 11, compactRowVerticalPadding: 6 }); var getDetailsRowStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; var theme = props.theme, isSelected = props.isSelected, canSelect = props.canSelect, droppingClassName = props.droppingClassName, isCheckVisible = props.isCheckVisible, checkboxCellClassName = props.checkboxCellClassName, compact = props.compact, className = props.className, _q = props.cellStyleProps, cellStyleProps = _q === void 0 ? exports.DEFAULT_CELL_STYLE_PROPS : _q, enableUpdateAnimations = props.enableUpdateAnimations, disabled = props.disabled; var palette = theme.palette, fonts = theme.fonts; var neutralPrimary = palette.neutralPrimary, white = palette.white, neutralSecondary = palette.neutralSecondary, neutralLighter = palette.neutralLighter, neutralLight = palette.neutralLight, neutralDark = palette.neutralDark, neutralQuaternaryAlt = palette.neutralQuaternaryAlt; var _r = theme.semanticColors, focusBorder = _r.focusBorder, focusedLinkColor = _r.linkHovered; var classNames = (0, Styling_1.getGlobalClassNames)(exports.DetailsRowGlobalClassNames, theme); var colors = { // Default defaultHeaderText: neutralPrimary, defaultMetaText: neutralSecondary, defaultBackground: white, // Default Hover defaultHoverHeaderText: neutralDark, defaultHoverMetaText: neutralPrimary, defaultHoverBackground: neutralLighter, // Selected selectedHeaderText: neutralDark, selectedMetaText: neutralPrimary, selectedBackground: neutralLight, // Selected Hover selectedHoverHeaderText: neutralDark, selectedHoverMetaText: neutralPrimary, selectedHoverBackground: neutralQuaternaryAlt, // Focus focusHeaderText: neutralDark, focusMetaText: neutralPrimary, focusBackground: neutralLight, focusHoverBackground: neutralQuaternaryAlt, }; var rowHighContrastFocus = { top: 2, right: 2, bottom: 2, left: 2, }; // Selected row styles var selectedStyles = [ (0, Styling_1.getFocusStyle)(theme, { inset: -1, borderColor: focusBorder, outlineColor: white, highContrastStyle: rowHighContrastFocus, pointerEvents: 'none', }), classNames.isSelected, { color: colors.selectedMetaText, background: colors.selectedBackground, borderBottom: "1px solid ".concat(white), selectors: (_a = { '&:before': { position: 'absolute', display: 'block', top: -1, height: 1, bottom: 0, left: 0, right: 0, content: '', borderTop: "1px solid ".concat(white), } }, _a[".".concat(classNames.cell, " > .").concat(Link_styles_1.GlobalClassNames.root)] = { color: focusedLinkColor, selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _b), }, // Selected State hover _a['&:hover'] = { background: colors.selectedHoverBackground, color: colors.selectedHoverMetaText, selectors: (_c = {}, // Selected State hover meta cell _c[Styling_1.HighContrastSelector] = { background: 'Highlight', selectors: (_d = {}, _d[".".concat(classNames.cell)] = { color: 'HighlightText', }, _d[".".concat(classNames.cell, " > .").concat(Link_styles_1.GlobalClassNames.root)] = { forcedColorAdjust: 'none', color: 'HighlightText', }, _d), }, // Selected State hover Header cell _c[".".concat(classNames.isRowHeader)] = { color: colors.selectedHoverHeaderText, selectors: (_e = {}, _e[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _e), }, _c), }, // Focus state _a['&:focus'] = { background: colors.focusBackground, selectors: (_f = {}, // Selected State hover meta cell _f[".".concat(classNames.cell)] = { color: colors.focusMetaText, selectors: (_g = {}, _g[Styling_1.HighContrastSelector] = { color: 'HighlightText', selectors: { '> a': { color: 'HighlightText', }, }, }, _g), }, // Row header cell _f[".".concat(classNames.isRowHeader)] = { color: colors.focusHeaderText, selectors: (_h = {}, _h[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _h), }, // Ensure high-contrast mode overrides default focus background _f[Styling_1.HighContrastSelector] = { background: 'Highlight', }, _f), }, _a[Styling_1.HighContrastSelector] = tslib_1.__assign(tslib_1.__assign({ background: 'Highlight', color: 'HighlightText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), { selectors: { a: { color: 'HighlightText', }, } }), // Focus and hover state _a['&:focus:hover'] = { background: colors.focusHoverBackground, }, _a), }, ]; var cannotSelectStyles = [ classNames.isContentUnselectable, { userSelect: 'none', cursor: 'default', }, ]; var rootCompactStyles = { minHeight: values.compactRowHeight, border: 0, }; var cellCompactStyles = { minHeight: values.compactRowHeight, paddingTop: values.compactRowVerticalPadding, paddingBottom: values.compactRowVerticalPadding, paddingLeft: "".concat(cellStyleProps.cellLeftPadding, "px"), }; var defaultCellStyles = [ (0, Styling_1.getFocusStyle)(theme, { inset: -1 }), classNames.cell, { display: 'inline-block', position: 'relative', boxSizing: 'border-box', minHeight: values.rowHeight, verticalAlign: 'top', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis', paddingTop: values.rowVerticalPadding, paddingBottom: values.rowVerticalPadding, paddingLeft: "".concat(cellStyleProps.cellLeftPadding, "px"), selectors: (_j = { '& > button': { maxWidth: '100%', } }, _j[IsFocusableSelector] = (0, Styling_1.getFocusStyle)(theme, { inset: -1, borderColor: neutralSecondary, outlineColor: white }), _j), }, isSelected && { selectors: (_k = {}, _k[Styling_1.HighContrastSelector] = tslib_1.__assign({ background: 'Highlight', color: 'HighlightText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _k), }, compact && cellCompactStyles, disabled && { opacity: 0.5 }, ]; return { root: [ classNames.root, Styling_1.AnimationClassNames.fadeIn400, droppingClassName, theme.fonts.small, isCheckVisible && classNames.isCheckVisible, (0, Styling_1.getFocusStyle)(theme, { borderColor: focusBorder, outlineColor: white }), { borderBottom: "1px solid ".concat(neutralLighter), background: colors.defaultBackground, color: colors.defaultMetaText, // This ensures that the row always tries to consume is minimum width and does not compress. display: 'inline-flex', minWidth: '100%', minHeight: values.rowHeight, whiteSpace: 'nowrap', padding: 0, boxSizing: 'border-box', verticalAlign: 'top', textAlign: 'left', selectors: (_l = {}, _l[".".concat(classNames.listCellFirstChild, " &:before")] = { display: 'none', }, _l['&:hover'] = { background: colors.defaultHoverBackground, color: colors.defaultHoverMetaText, selectors: (_m = {}, _m[".".concat(classNames.isRowHeader)] = { color: colors.defaultHoverHeaderText, }, _m[".".concat(classNames.cell, " > .").concat(Link_styles_1.GlobalClassNames.root)] = { color: focusedLinkColor, }, _m), }, _l["&:hover .".concat(classNames.check)] = { opacity: 1, }, _l[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus .").concat(classNames.check)] = { opacity: 1, }, _l['.ms-GroupSpacer'] = { flexShrink: 0, flexGrow: 0, }, _l), }, isSelected && selectedStyles, !canSelect && cannotSelectStyles, compact && rootCompactStyles, className, ], cellUnpadded: { paddingRight: "".concat(cellStyleProps.cellRightPadding, "px"), }, cellPadded: { paddingRight: "".concat(cellStyleProps.cellExtraRightPadding + cellStyleProps.cellRightPadding, "px"), selectors: (_o = {}, _o["&.".concat(classNames.cellCheck)] = { paddingRight: 0, }, _o), }, cell: defaultCellStyles, cellAnimation: enableUpdateAnimations && Styling_1.AnimationStyles.slideLeftIn40, cellMeasurer: [ classNames.cellMeasurer, { overflow: 'visible', whiteSpace: 'nowrap', }, ], checkCell: [ defaultCellStyles, classNames.cellCheck, checkboxCellClassName, { padding: 0, // Ensure that the check cell covers the top border of the cell. // This ensures the click target does not leave a spot which would // cause other items to be deselected. paddingTop: 1, marginTop: -1, flexShrink: 0, }, ], fields: [ classNames.fields, { display: 'flex', alignItems: 'stretch', }, ], isRowHeader: [ classNames.isRowHeader, { color: colors.defaultHeaderText, fontSize: fonts.medium.fontSize, }, isSelected && { color: colors.selectedHeaderText, fontWeight: Styling_1.FontWeights.semibold, selectors: (_p = {}, _p[Styling_1.HighContrastSelector] = { color: 'HighlightText', }, _p), }, ], isMultiline: [ defaultCellStyles, { whiteSpace: 'normal', wordBreak: 'break-word', textOverflow: 'clip', }, ], check: [classNames.check], }; }; exports.getDetailsRowStyles = getDetailsRowStyles; //# sourceMappingURL=DetailsRow.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.types.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.types.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DetailsRow.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DetailsRowCheck = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Check_1 = __webpack_require__(/*! ../../Check */ "./node_modules/@fluentui/react/lib-commonjs/Check.js"); var DetailsRowCheck_styles_1 = __webpack_require__(/*! ./DetailsRowCheck.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.styles.js"); var Selection_1 = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib-commonjs/Selection.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var DetailsRowCheckBase = function (props) { var _a = props.isVisible, isVisible = _a === void 0 ? false : _a, _b = props.canSelect, canSelect = _b === void 0 ? false : _b, _c = props.anySelected, anySelected = _c === void 0 ? false : _c, _d = props.selected, selected = _d === void 0 ? false : _d, selectionMode = props.selectionMode, _e = props.isHeader, isHeader = _e === void 0 ? false : _e, className = props.className, checkClassName = props.checkClassName, styles = props.styles, theme = props.theme, compact = props.compact, onRenderDetailsCheckbox = props.onRenderDetailsCheckbox, _f = props.useFastIcons, useFastIcons = _f === void 0 ? true : _f, // must be removed from buttonProps buttonProps = tslib_1.__rest(props, ["isVisible", "canSelect", "anySelected", "selected", "selectionMode", "isHeader", "className", "checkClassName", "styles", "theme", "compact", "onRenderDetailsCheckbox", "useFastIcons"]); var defaultCheckboxRender = useFastIcons ? _fastDefaultCheckboxRender : _defaultCheckboxRender; var onRenderCheckbox = onRenderDetailsCheckbox ? (0, Utilities_1.composeRenderFunction)(onRenderDetailsCheckbox, defaultCheckboxRender) : defaultCheckboxRender; var classNames = getClassNames(styles, { theme: theme, canSelect: canSelect, selected: selected, anySelected: anySelected, className: className, isHeader: isHeader, isVisible: isVisible, compact: compact, }); var detailsCheckboxProps = { checked: selected, theme: theme, }; var divProps = (0, Utilities_1.getNativeElementProps)('div', buttonProps, ['aria-label', 'aria-labelledby', 'aria-describedby']); var checkRole = selectionMode === Selection_1.SelectionMode.single ? 'radio' : 'checkbox'; return canSelect ? (React.createElement("div", tslib_1.__assign({}, buttonProps, { role: checkRole, // eslint-disable-next-line deprecation/deprecation className: (0, Utilities_1.css)(classNames.root, classNames.check), "aria-checked": selected, "data-selection-toggle": true, "data-automationid": "DetailsRowCheck", tabIndex: -1 }), onRenderCheckbox(detailsCheckboxProps))) : ( // eslint-disable-next-line deprecation/deprecation React.createElement("div", tslib_1.__assign({}, divProps, { className: (0, Utilities_1.css)(classNames.root, classNames.check) }))); }; var FastCheck = React.memo(function (props) { return React.createElement(Check_1.Check, { theme: props.theme, checked: props.checked, className: props.className, useFastIcons: true }); }); function _defaultCheckboxRender(checkboxProps) { return React.createElement(Check_1.Check, { checked: checkboxProps.checked }); } function _fastDefaultCheckboxRender(checkboxProps) { return React.createElement(FastCheck, { theme: checkboxProps.theme, checked: checkboxProps.checked }); } exports.DetailsRowCheck = (0, Utilities_1.styled)(DetailsRowCheckBase, DetailsRowCheck_styles_1.getDetailsRowCheckStyles, undefined, { scope: 'DetailsRowCheck' }, true); //# sourceMappingURL=DetailsRowCheck.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.styles.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.styles.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDetailsRowCheckStyles = exports.CHECK_CELL_WIDTH = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var DetailsRow_styles_1 = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js"); var DetailsHeader_styles_1 = __webpack_require__(/*! ./DetailsHeader.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.styles.js"); var Check_styles_1 = __webpack_require__(/*! ../../components/Check/Check.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Check/Check.styles.js"); var GlobalClassNames = { root: 'ms-DetailsRow-check', isDisabled: 'ms-DetailsRow-check--isDisabled', isHeader: 'ms-DetailsRow-check--isHeader', }; exports.CHECK_CELL_WIDTH = 48; var getDetailsRowCheckStyles = function (props) { var theme = props.theme, className = props.className, isHeader = props.isHeader, selected = props.selected, anySelected = props.anySelected, canSelect = props.canSelect, compact = props.compact, isVisible = props.isVisible; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var rowHeight = DetailsRow_styles_1.DEFAULT_ROW_HEIGHTS.rowHeight, compactRowHeight = DetailsRow_styles_1.DEFAULT_ROW_HEIGHTS.compactRowHeight; var height = isHeader ? DetailsHeader_styles_1.HEADER_HEIGHT : compact ? compactRowHeight : rowHeight; var isCheckVisible = isVisible || selected || anySelected; return { root: [classNames.root, className], check: [ !canSelect && classNames.isDisabled, isHeader && classNames.isHeader, (0, Styling_1.getFocusStyle)(theme), theme.fonts.small, Check_styles_1.CheckGlobalClassNames.checkHost, { display: 'flex', alignItems: 'center', justifyContent: 'center', cursor: 'default', boxSizing: 'border-box', verticalAlign: 'top', background: 'none', backgroundColor: 'transparent', border: 'none', opacity: isCheckVisible ? 1 : 0, height: height, width: exports.CHECK_CELL_WIDTH, padding: 0, margin: 0, }, ], isDisabled: [], }; }; exports.getDetailsRowCheckStyles = getDetailsRowCheckStyles; //# sourceMappingURL=DetailsRowCheck.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.types.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.types.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DetailsRowCheck.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowFields.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowFields.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DetailsRowFields = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DetailsRow_styles_1 = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js"); var getCellText = function (item, column) { var value = item && column && column.fieldName ? item[column.fieldName] : ''; if (value === null || value === undefined) { value = ''; } if (typeof value === 'boolean') { return value.toString(); } return value; }; /** * Component for rendering a row's cells in a `DetailsList`. * * {@docCategory DetailsList} */ var DetailsRowFields = function (props) { var columns = props.columns, rowClassNames = props.rowClassNames, _a = props.cellStyleProps, cellStyleProps = _a === void 0 ? DetailsRow_styles_1.DEFAULT_CELL_STYLE_PROPS : _a, item = props.item, itemIndex = props.itemIndex, isSelected = props.isSelected, onRenderItemColumn = props.onRenderItemColumn, getCellValueKey = props.getCellValueKey, propsOnRenderField = props.onRenderField, cellsByColumn = props.cellsByColumn, enableUpdateAnimations = props.enableUpdateAnimations, rowHeaderId = props.rowHeaderId; var cellValueKeysRef = React.useRef(); var cellValueKeys = cellValueKeysRef.current || (cellValueKeysRef.current = {}); var defaultOnRenderField = React.useCallback(function (fieldProps) { var column = fieldProps.column, cellValueKey = fieldProps.cellValueKey, className = fieldProps.className, onRender = fieldProps.onRender, fieldItem = fieldProps.item, fieldItemIndex = fieldProps.itemIndex; var width = typeof column.calculatedWidth === 'undefined' ? 'auto' : column.calculatedWidth + cellStyleProps.cellLeftPadding + cellStyleProps.cellRightPadding + (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0); var key = "".concat(column.key).concat(cellValueKey !== undefined ? "-".concat(cellValueKey) : ''); return (React.createElement("div", { key: key, id: column.isRowHeader ? rowHeaderId : undefined, role: column.isRowHeader ? 'rowheader' : 'gridcell', className: (0, Utilities_1.css)(column.className, column.isMultiline && rowClassNames.isMultiline, column.isRowHeader && rowClassNames.isRowHeader, rowClassNames.cell, column.isPadded ? rowClassNames.cellPadded : rowClassNames.cellUnpadded, className), style: { width: width }, "data-automationid": "DetailsRowCell", "data-automation-key": column.key }, onRender(fieldItem, fieldItemIndex, column))); }, [rowClassNames, cellStyleProps, rowHeaderId]); return (React.createElement("div", { className: rowClassNames.fields, "data-automationid": "DetailsRowFields", role: "presentation" }, columns.map(function (column) { var _a = column.getValueKey, getValueKey = _a === void 0 ? getCellValueKey : _a; var onRender = (cellsByColumn && column.key in cellsByColumn && (function () { return cellsByColumn[column.key]; })) || column.onRender || onRenderItemColumn || defaultOnRender; var onRenderField = defaultOnRenderField; if (column.onRenderField) { onRenderField = (0, Utilities_1.composeRenderFunction)(column.onRenderField, onRenderField); } if (propsOnRenderField) { onRenderField = (0, Utilities_1.composeRenderFunction)(propsOnRenderField, onRenderField); } var previousValueKey = cellValueKeys[column.key]; var cellValueKey = enableUpdateAnimations && getValueKey ? getValueKey(item, itemIndex, column) : undefined; var showAnimation = false; if (cellValueKey !== undefined && previousValueKey !== undefined && cellValueKey !== previousValueKey) { showAnimation = true; } cellValueKeys[column.key] = cellValueKey; return onRenderField({ item: item, itemIndex: itemIndex, isSelected: isSelected, column: column, cellValueKey: cellValueKey, className: showAnimation ? rowClassNames.cellAnimation : undefined, onRender: onRender, }); }))); }; exports.DetailsRowFields = DetailsRowFields; function defaultOnRender(item, index, column) { if (!item || !column) { return null; } return getCellText(item, column); } //# sourceMappingURL=DetailsRowFields.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowFields.types.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowFields.types.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DetailsRowFields.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.base.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.base.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmeredDetailsListBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Selection_1 = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib-commonjs/Selection.js"); var DetailsList_1 = __webpack_require__(/*! ./DetailsList */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.js"); var Shimmer_1 = __webpack_require__(/*! ../../Shimmer */ "./node_modules/@fluentui/react/lib-commonjs/Shimmer.js"); var DetailsList_types_1 = __webpack_require__(/*! ./DetailsList.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.types.js"); var DetailsRow_styles_1 = __webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var SHIMMER_INITIAL_ITEMS = 10; var DEFAULT_SHIMMER_HEIGHT = 7; var SHIMMER_LINE_VS_CELL_WIDTH_RATIO = 0.95; var ShimmeredDetailsListBase = /** @class */ (function (_super) { tslib_1.__extends(ShimmeredDetailsListBase, _super); function ShimmeredDetailsListBase(props) { var _this = _super.call(this, props) || this; _this._onRenderShimmerPlaceholder = function (index, rowProps) { var onRenderCustomPlaceholder = _this.props.onRenderCustomPlaceholder; var placeholderElements = onRenderCustomPlaceholder ? onRenderCustomPlaceholder(rowProps, index, _this._renderDefaultShimmerPlaceholder) : _this._renderDefaultShimmerPlaceholder(rowProps); return React.createElement(Shimmer_1.Shimmer, { customElementsGroup: placeholderElements }); }; _this._renderDefaultShimmerPlaceholder = function (rowProps) { var columns = rowProps.columns, compact = rowProps.compact, selectionMode = rowProps.selectionMode, checkboxVisibility = rowProps.checkboxVisibility, _a = rowProps.cellStyleProps, cellStyleProps = _a === void 0 ? DetailsRow_styles_1.DEFAULT_CELL_STYLE_PROPS : _a; var rowHeight = DetailsRow_styles_1.DEFAULT_ROW_HEIGHTS.rowHeight, compactRowHeight = DetailsRow_styles_1.DEFAULT_ROW_HEIGHTS.compactRowHeight; // 1px to take into account the border-bottom of DetailsRow. var gapHeight = compact ? compactRowHeight : rowHeight + 1; var shimmerElementsRow = []; var showCheckbox = selectionMode !== Selection_1.SelectionMode.none && checkboxVisibility !== DetailsList_types_1.CheckboxVisibility.hidden; if (showCheckbox) { shimmerElementsRow.push(React.createElement(Shimmer_1.ShimmerElementsGroup, { key: 'checkboxGap', shimmerElements: [{ type: Shimmer_1.ShimmerElementType.gap, width: '40px', height: gapHeight }] })); } columns.forEach(function (column, columnIdx) { var shimmerElements = []; var groupWidth = cellStyleProps.cellLeftPadding + cellStyleProps.cellRightPadding + column.calculatedWidth + (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0); shimmerElements.push({ type: Shimmer_1.ShimmerElementType.gap, width: cellStyleProps.cellLeftPadding, height: gapHeight, }); if (column.isIconOnly) { shimmerElements.push({ type: Shimmer_1.ShimmerElementType.line, width: column.calculatedWidth, height: column.calculatedWidth, }); shimmerElements.push({ type: Shimmer_1.ShimmerElementType.gap, width: cellStyleProps.cellRightPadding, height: gapHeight, }); } else { shimmerElements.push({ type: Shimmer_1.ShimmerElementType.line, width: column.calculatedWidth * SHIMMER_LINE_VS_CELL_WIDTH_RATIO, height: DEFAULT_SHIMMER_HEIGHT, }); shimmerElements.push({ type: Shimmer_1.ShimmerElementType.gap, width: cellStyleProps.cellRightPadding + (column.calculatedWidth - column.calculatedWidth * SHIMMER_LINE_VS_CELL_WIDTH_RATIO) + (column.isPadded ? cellStyleProps.cellExtraRightPadding : 0), height: gapHeight, }); } shimmerElementsRow.push(React.createElement(Shimmer_1.ShimmerElementsGroup, { key: columnIdx, width: "".concat(groupWidth, "px"), shimmerElements: shimmerElements })); }); // When resizing the window from narrow to wider, we need to cover the exposed Shimmer wave // until the column resizing logic is done. shimmerElementsRow.push(React.createElement(Shimmer_1.ShimmerElementsGroup, { key: 'endGap', width: '100%', shimmerElements: [{ type: Shimmer_1.ShimmerElementType.gap, width: '100%', height: gapHeight }] })); return React.createElement("div", { style: { display: 'flex' } }, shimmerElementsRow); }; _this._shimmerItems = props.shimmerLines ? new Array(props.shimmerLines) : new Array(SHIMMER_INITIAL_ITEMS); return _this; } ShimmeredDetailsListBase.prototype.render = function () { var _a = this.props, detailsListStyles = _a.detailsListStyles, enableShimmer = _a.enableShimmer, items = _a.items, listProps = _a.listProps, onRenderCustomPlaceholder = _a.onRenderCustomPlaceholder, removeFadingOverlay = _a.removeFadingOverlay, shimmerLines = _a.shimmerLines, styles = _a.styles, theme = _a.theme, ariaLabelForGrid = _a.ariaLabelForGrid, ariaLabelForShimmer = _a.ariaLabelForShimmer, restProps = tslib_1.__rest(_a, ["detailsListStyles", "enableShimmer", "items", "listProps", "onRenderCustomPlaceholder", "removeFadingOverlay", "shimmerLines", "styles", "theme", "ariaLabelForGrid", "ariaLabelForShimmer"]); var listClassName = listProps && listProps.className; this._classNames = getClassNames(styles, { theme: theme, }); var newListProps = tslib_1.__assign(tslib_1.__assign({}, listProps), { // Adds to the optional listProp className a fading out overlay className only when `enableShimmer` toggled on // and the overlay is not disabled by `removeFadingOverlay` prop. className: enableShimmer && !removeFadingOverlay ? (0, Utilities_1.css)(this._classNames.root, listClassName) : listClassName }); return (React.createElement(DetailsList_1.DetailsList, tslib_1.__assign({}, restProps, { styles: detailsListStyles, items: enableShimmer ? this._shimmerItems : items, isPlaceholderData: enableShimmer, ariaLabelForGrid: (enableShimmer && ariaLabelForShimmer) || ariaLabelForGrid, onRenderMissingItem: this._onRenderShimmerPlaceholder, listProps: newListProps }))); }; return ShimmeredDetailsListBase; }(React.Component)); exports.ShimmeredDetailsListBase = ShimmeredDetailsListBase; //# sourceMappingURL=ShimmeredDetailsList.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ShimmeredDetailsList = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var ShimmeredDetailsList_base_1 = __webpack_require__(/*! ./ShimmeredDetailsList.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.base.js"); var ShimmeredDetailsList_styles_1 = __webpack_require__(/*! ./ShimmeredDetailsList.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.styles.js"); exports.ShimmeredDetailsList = (0, Utilities_1.styled)(ShimmeredDetailsList_base_1.ShimmeredDetailsListBase, ShimmeredDetailsList_styles_1.getShimmeredDetailsListStyles, undefined, { scope: 'ShimmeredDetailsList' }); //# sourceMappingURL=ShimmeredDetailsList.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.styles.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.styles.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getShimmeredDetailsListStyles = void 0; var getShimmeredDetailsListStyles = function (props) { var theme = props.theme; var palette = theme.palette; return { root: { position: 'relative', selectors: { ':after': { content: '""', position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, // eslint-disable-next-line @fluentui/max-len backgroundImage: "linear-gradient(to bottom, transparent 30%, ".concat(palette.whiteTranslucent40, " 65%,").concat(palette.white, " 100%)"), }, }, }, }; }; exports.getShimmeredDetailsListStyles = getShimmeredDetailsListStyles; //# sourceMappingURL=ShimmeredDetailsList.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.types.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/ShimmeredDetailsList.types.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=ShimmeredDetailsList.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/index.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/index.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib-commonjs/Selection.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ../GroupedList/GroupedList.types */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupedList.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsHeader */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsHeader.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsHeader.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.styles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsHeader.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsHeader.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsList */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsList.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsList.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.styles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsList.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsList.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsRow */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsRow.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsRow.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsRow.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsRowCheck */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsRowCheck.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.styles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsRowCheck.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsRowFields */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowFields.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsRowFields.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowFields.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsFooter.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsFooter.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsColumn */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsColumn.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsColumn.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.styles.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DetailsColumn.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsColumn.types.js"), exports); // ShimmeredDetailsList is not exported here as it is exported from ../ShimmeredDetailsList.ts //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.base.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.base.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DialogBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DialogContent_types_1 = __webpack_require__(/*! ./DialogContent.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.types.js"); var Modal_1 = __webpack_require__(/*! ../../Modal */ "./node_modules/@fluentui/react/lib-commonjs/Modal.js"); var ResponsiveMode_1 = __webpack_require__(/*! ../../ResponsiveMode */ "./node_modules/@fluentui/react/lib-commonjs/ResponsiveMode.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var DialogContent_1 = __webpack_require__(/*! ./DialogContent */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.js"); var DefaultModalProps = { isDarkOverlay: false, isBlocking: false, className: '', containerClassName: '', topOffsetFixed: false, enableAriaHiddenSiblings: true, }; var DefaultDialogContentProps = { type: DialogContent_types_1.DialogType.normal, className: '', topButtonsProps: [], }; // eslint-disable-next-line deprecation/deprecation var DialogBase = /** @class */ (function (_super) { tslib_1.__extends(DialogBase, _super); function DialogBase(props) { var _this = _super.call(this, props) || this; _this._getSubTextId = function () { // eslint-disable-next-line deprecation/deprecation var _a = _this.props, ariaDescribedById = _a.ariaDescribedById, modalProps = _a.modalProps, dialogContentProps = _a.dialogContentProps, subText = _a.subText; var id = (modalProps && modalProps.subtitleAriaId) || ariaDescribedById; if (!id) { id = ((dialogContentProps && dialogContentProps.subText) || subText) && _this._defaultSubTextId; } return id; }; _this._getTitleTextId = function () { // eslint-disable-next-line deprecation/deprecation var _a = _this.props, ariaLabelledById = _a.ariaLabelledById, modalProps = _a.modalProps, dialogContentProps = _a.dialogContentProps, title = _a.title; var id = (modalProps && modalProps.titleAriaId) || ariaLabelledById; if (!id) { id = ((dialogContentProps && dialogContentProps.title) || title) && _this._defaultTitleTextId; } return id; }; _this._id = (0, Utilities_1.getId)('Dialog'); _this._defaultTitleTextId = _this._id + '-title'; _this._defaultSubTextId = _this._id + '-subText'; if (true) { (0, Utilities_1.warnDeprecations)('Dialog', props, { isOpen: 'hidden', type: 'dialogContentProps.type', subText: 'dialogContentProps.subText', contentClassName: 'dialogContentProps.className', topButtonsProps: 'dialogContentProps.topButtonsProps', className: 'modalProps.className', isDarkOverlay: 'modalProps.isDarkOverlay', isBlocking: 'modalProps.isBlocking', containerClassName: 'modalProps.containerClassName', onDismissed: 'modalProps.onDismissed', onLayerDidMount: 'modalProps.layerProps.onLayerDidMount', ariaDescribedById: 'modalProps.subtitleAriaId', ariaLabelledById: 'modalProps.titleAriaId', }); } return _this; } DialogBase.prototype.render = function () { var _a, _b, _c; var props = this.props; var /* eslint-disable deprecation/deprecation */ className = props.className, containerClassName = props.containerClassName, contentClassName = props.contentClassName, elementToFocusOnDismiss = props.elementToFocusOnDismiss, firstFocusableSelector = props.firstFocusableSelector, forceFocusInsideTrap = props.forceFocusInsideTrap, styles = props.styles, hidden = props.hidden, _d = props.disableRestoreFocus, disableRestoreFocus = _d === void 0 ? props.ignoreExternalFocusing : _d, isBlocking = props.isBlocking, isClickableOutsideFocusTrap = props.isClickableOutsideFocusTrap, isDarkOverlay = props.isDarkOverlay, _e = props.isOpen, isOpen = _e === void 0 ? !hidden : _e, onDismiss = props.onDismiss, onDismissed = props.onDismissed, onLayerDidMount = props.onLayerDidMount, responsiveMode = props.responsiveMode, subText = props.subText, theme = props.theme, title = props.title, topButtonsProps = props.topButtonsProps, type = props.type, /* eslint-enable deprecation/deprecation */ minWidth = props.minWidth, maxWidth = props.maxWidth, modalProps = props.modalProps; var mergedLayerProps = tslib_1.__assign({ onLayerDidMount: onLayerDidMount }, modalProps === null || modalProps === void 0 ? void 0 : modalProps.layerProps); var dialogDraggableClassName; var dragOptions; // If dragOptions are provided, but no drag handle is specified, we supply a drag handle, // and inform dialog contents to add class to draggable class to the header if ((modalProps === null || modalProps === void 0 ? void 0 : modalProps.dragOptions) && !((_a = modalProps.dragOptions) === null || _a === void 0 ? void 0 : _a.dragHandleSelector)) { // spread options to avoid mutating props dragOptions = tslib_1.__assign({}, modalProps.dragOptions); dialogDraggableClassName = 'ms-Dialog-draggable-header'; dragOptions.dragHandleSelector = ".".concat(dialogDraggableClassName); } var mergedModalProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({}, DefaultModalProps), { elementToFocusOnDismiss: elementToFocusOnDismiss, firstFocusableSelector: firstFocusableSelector, forceFocusInsideTrap: forceFocusInsideTrap, disableRestoreFocus: disableRestoreFocus, isClickableOutsideFocusTrap: isClickableOutsideFocusTrap, responsiveMode: responsiveMode, className: className, containerClassName: containerClassName, isBlocking: isBlocking, isDarkOverlay: isDarkOverlay, onDismissed: onDismissed }), modalProps), { dragOptions: dragOptions, layerProps: mergedLayerProps, isOpen: isOpen }); var dialogContentProps = tslib_1.__assign(tslib_1.__assign(tslib_1.__assign({ className: contentClassName, subText: subText, title: title, topButtonsProps: topButtonsProps, type: type }, DefaultDialogContentProps), props.dialogContentProps), { draggableHeaderClassName: dialogDraggableClassName, titleProps: tslib_1.__assign({ // eslint-disable-next-line deprecation/deprecation id: ((_b = props.dialogContentProps) === null || _b === void 0 ? void 0 : _b.titleId) || this._defaultTitleTextId }, (_c = props.dialogContentProps) === null || _c === void 0 ? void 0 : _c.titleProps) }); var classNames = getClassNames(styles, { theme: theme, className: mergedModalProps.className, containerClassName: mergedModalProps.containerClassName, hidden: hidden, dialogDefaultMinWidth: minWidth, dialogDefaultMaxWidth: maxWidth, }); return (React.createElement(Modal_1.Modal, tslib_1.__assign({}, mergedModalProps, { className: classNames.root, containerClassName: classNames.main, onDismiss: onDismiss || mergedModalProps.onDismiss, subtitleAriaId: this._getSubTextId(), titleAriaId: this._getTitleTextId() }), React.createElement(DialogContent_1.DialogContent, tslib_1.__assign({ subTextId: this._defaultSubTextId, showCloseButton: mergedModalProps.isBlocking, onDismiss: onDismiss }, dialogContentProps), props.children))); }; DialogBase.defaultProps = { hidden: true, }; DialogBase = tslib_1.__decorate([ ResponsiveMode_1.withResponsiveMode ], DialogBase); return DialogBase; }(React.Component)); exports.DialogBase = DialogBase; //# sourceMappingURL=Dialog.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Dialog = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Dialog_base_1 = __webpack_require__(/*! ./Dialog.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.base.js"); var Dialog_styles_1 = __webpack_require__(/*! ./Dialog.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.styles.js"); exports.Dialog = (0, Utilities_1.styled)(Dialog_base_1.DialogBase, Dialog_styles_1.getStyles, undefined, { scope: 'Dialog' }); exports.Dialog.displayName = 'Dialog'; //# sourceMappingURL=Dialog.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.styles.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.styles.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { root: 'ms-Dialog', }; var getStyles = function (props) { var _a; var className = props.className, containerClassName = props.containerClassName, // eslint-disable-line deprecation/deprecation _b = props.dialogDefaultMinWidth, // eslint-disable-line deprecation/deprecation dialogDefaultMinWidth = _b === void 0 ? '288px' : _b, _c = props.dialogDefaultMaxWidth, dialogDefaultMaxWidth = _c === void 0 ? '340px' : _c, hidden = props.hidden, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [classNames.root, theme.fonts.medium, className], main: [ { width: dialogDefaultMinWidth, outline: '3px solid transparent', selectors: (_a = {}, _a["@media (min-width: ".concat(Styling_1.ScreenWidthMinMedium, "px)")] = { width: 'auto', maxWidth: dialogDefaultMaxWidth, minWidth: dialogDefaultMinWidth, }, _a), }, !hidden && { display: 'flex' }, containerClassName, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Dialog.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.types.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.types.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Dialog.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.base.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.base.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DialogContentBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DialogContent_types_1 = __webpack_require__(/*! ./DialogContent.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.types.js"); var Button_1 = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var DialogFooter_1 = __webpack_require__(/*! ./DialogFooter */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.js"); var ResponsiveMode_1 = __webpack_require__(/*! ../../ResponsiveMode */ "./node_modules/@fluentui/react/lib-commonjs/ResponsiveMode.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var DialogFooterType = (React.createElement(DialogFooter_1.DialogFooter, null)).type; var COMPONENT_NAME = 'DialogContent'; // eslint-disable-next-line deprecation/deprecation var DialogContentBase = /** @class */ (function (_super) { tslib_1.__extends(DialogContentBase, _super); function DialogContentBase(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); (0, Utilities_1.warnDeprecations)(COMPONENT_NAME, props, { titleId: 'titleProps.id', }); return _this; } DialogContentBase.prototype.render = function () { var _a = this.props, showCloseButton = _a.showCloseButton, className = _a.className, closeButtonAriaLabel = _a.closeButtonAriaLabel, onDismiss = _a.onDismiss, subTextId = _a.subTextId, subText = _a.subText, _b = _a.titleProps, titleProps = _b === void 0 ? {} : _b, // eslint-disable-next-line deprecation/deprecation titleId = _a.titleId, title = _a.title, type = _a.type, styles = _a.styles, theme = _a.theme, draggableHeaderClassName = _a.draggableHeaderClassName; var classNames = getClassNames(styles, { theme: theme, className: className, isLargeHeader: type === DialogContent_types_1.DialogType.largeHeader, isClose: type === DialogContent_types_1.DialogType.close, draggableHeaderClassName: draggableHeaderClassName, }); var groupings = this._groupChildren(); var subTextContent; if (subText) { subTextContent = (React.createElement("p", { className: classNames.subText, id: subTextId }, subText)); } return (React.createElement("div", { className: classNames.content }, React.createElement("div", { className: classNames.header }, React.createElement("div", tslib_1.__assign({ id: titleId, role: "heading", "aria-level": 1 }, titleProps, { className: (0, Utilities_1.css)(classNames.title, titleProps.className) }), title), React.createElement("div", { className: classNames.topButton }, this.props.topButtonsProps.map(function (props, index) { return (React.createElement(Button_1.IconButton, tslib_1.__assign({ key: props.uniqueId || index }, props))); }), (type === DialogContent_types_1.DialogType.close || (showCloseButton && type !== DialogContent_types_1.DialogType.largeHeader)) && (React.createElement(Button_1.IconButton, { className: classNames.button, iconProps: { iconName: 'Cancel' }, ariaLabel: closeButtonAriaLabel, onClick: onDismiss })))), React.createElement("div", { className: classNames.inner }, React.createElement("div", { className: classNames.innerContent }, subTextContent, groupings.contents), groupings.footers))); }; // @TODO - typing the footers as an array of DialogFooter is difficult because // casing "child as DialogFooter" causes a problem because // "Neither type 'ReactElement' nor type 'DialogFooter' is assignable to the other." DialogContentBase.prototype._groupChildren = function () { var groupings = { footers: [], contents: [], }; React.Children.map(this.props.children, function (child) { if (typeof child === 'object' && child !== null && child.type === DialogFooterType) { groupings.footers.push(child); } else { groupings.contents.push(child); } }); return groupings; }; DialogContentBase.defaultProps = { showCloseButton: false, className: '', topButtonsProps: [], closeButtonAriaLabel: 'Close', }; DialogContentBase = tslib_1.__decorate([ ResponsiveMode_1.withResponsiveMode ], DialogContentBase); return DialogContentBase; }(React.Component)); exports.DialogContentBase = DialogContentBase; //# sourceMappingURL=DialogContent.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DialogContent = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DialogContent_base_1 = __webpack_require__(/*! ./DialogContent.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.base.js"); var DialogContent_styles_1 = __webpack_require__(/*! ./DialogContent.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.styles.js"); exports.DialogContent = (0, Utilities_1.styled)(DialogContent_base_1.DialogContentBase, DialogContent_styles_1.getStyles, undefined, { scope: 'DialogContent' }); exports.DialogContent.displayName = 'DialogContent'; //# sourceMappingURL=DialogContent.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.styles.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.styles.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { contentLgHeader: 'ms-Dialog-lgHeader', close: 'ms-Dialog--close', subText: 'ms-Dialog-subText', header: 'ms-Dialog-header', headerLg: 'ms-Dialog--lgHeader', button: 'ms-Dialog-button ms-Dialog-button--close', inner: 'ms-Dialog-inner', content: 'ms-Dialog-content', title: 'ms-Dialog-title', }; var getStyles = function (props) { var _a, _b, _c; var className = props.className, theme = props.theme, isLargeHeader = props.isLargeHeader, isClose = props.isClose, hidden = props.hidden, isMultiline = props.isMultiline, draggableHeaderClassName = props.draggableHeaderClassName; var palette = theme.palette, fonts = theme.fonts, effects = theme.effects, semanticColors = theme.semanticColors; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { content: [ isLargeHeader && [ classNames.contentLgHeader, { borderTop: "4px solid ".concat(palette.themePrimary), }, ], isClose && classNames.close, { flexGrow: 1, overflowY: 'hidden', // required for allowScrollOnElement }, className, ], subText: [ classNames.subText, fonts.medium, { margin: '0 0 24px 0', color: semanticColors.bodySubtext, lineHeight: '1.5', wordWrap: 'break-word', fontWeight: Styling_1.FontWeights.regular, }, ], header: [ classNames.header, { position: 'relative', width: '100%', boxSizing: 'border-box', }, isClose && classNames.close, draggableHeaderClassName && [ draggableHeaderClassName, { cursor: 'move', }, ], ], button: [ classNames.button, hidden && { selectors: { '.ms-Icon.ms-Icon--Cancel': { color: semanticColors.buttonText, fontSize: Styling_1.IconFontSizes.medium, }, }, }, ], inner: [ classNames.inner, { padding: '0 24px 24px', selectors: (_a = {}, _a["@media (min-width: ".concat(Styling_1.ScreenWidthMinSmall, "px) and (max-width: ").concat(Styling_1.ScreenWidthMaxSmall, "px)")] = { padding: '0 16px 16px', }, _a), }, ], innerContent: [ classNames.content, { position: 'relative', width: '100%', }, ], title: [ classNames.title, fonts.xLarge, { color: semanticColors.bodyText, margin: '0', minHeight: fonts.xLarge.fontSize, padding: '16px 46px 20px 24px', lineHeight: 'normal', selectors: (_b = {}, _b["@media (min-width: ".concat(Styling_1.ScreenWidthMinSmall, "px) and (max-width: ").concat(Styling_1.ScreenWidthMaxSmall, "px)")] = { padding: '16px 46px 16px 16px', }, _b), }, isLargeHeader && { color: semanticColors.menuHeader, }, isMultiline && { fontSize: fonts.xxLarge.fontSize }, ], topButton: [ { display: 'flex', flexDirection: 'row', flexWrap: 'nowrap', position: 'absolute', top: '0', right: '0', padding: '15px 15px 0 0', selectors: (_c = { '> *': { flex: '0 0 auto', }, '.ms-Dialog-button': { color: semanticColors.buttonText, }, '.ms-Dialog-button:hover': { color: semanticColors.buttonTextHovered, borderRadius: effects.roundedCorner2, } }, _c["@media (min-width: ".concat(Styling_1.ScreenWidthMinSmall, "px) and (max-width: ").concat(Styling_1.ScreenWidthMaxSmall, "px)")] = { padding: '15px 8px 0 0', }, _c), }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=DialogContent.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.types.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.types.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DialogType = void 0; /** * {@docCategory Dialog} */ var DialogType; (function (DialogType) { /** Standard dialog */ DialogType[DialogType["normal"] = 0] = "normal"; /** Dialog with large header banner */ DialogType[DialogType["largeHeader"] = 1] = "largeHeader"; /** Dialog with an 'x' close button in the upper-right corner */ DialogType[DialogType["close"] = 2] = "close"; })(DialogType = exports.DialogType || (exports.DialogType = {})); //# sourceMappingURL=DialogContent.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.base.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.base.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DialogFooterBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var DialogFooterBase = /** @class */ (function (_super) { tslib_1.__extends(DialogFooterBase, _super); function DialogFooterBase(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); return _this; } DialogFooterBase.prototype.render = function () { var _a = this.props, className = _a.className, styles = _a.styles, theme = _a.theme; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return (React.createElement("div", { className: this._classNames.actions }, React.createElement("div", { className: this._classNames.actionsRight }, this._renderChildrenAsActions()))); }; DialogFooterBase.prototype._renderChildrenAsActions = function () { var _this = this; return React.Children.map(this.props.children, function (child) { return child ? React.createElement("span", { className: _this._classNames.action }, child) : null; }); }; return DialogFooterBase; }(React.Component)); exports.DialogFooterBase = DialogFooterBase; //# sourceMappingURL=DialogFooter.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DialogFooter = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DialogFooter_base_1 = __webpack_require__(/*! ./DialogFooter.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.base.js"); var DialogFooter_styles_1 = __webpack_require__(/*! ./DialogFooter.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.styles.js"); exports.DialogFooter = (0, Utilities_1.styled)(DialogFooter_base_1.DialogFooterBase, DialogFooter_styles_1.getStyles, undefined, { scope: 'DialogFooter' }); exports.DialogFooter.displayName = 'DialogFooter'; //# sourceMappingURL=DialogFooter.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.styles.js": /*!********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.styles.js ***! \********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { actions: 'ms-Dialog-actions', action: 'ms-Dialog-action', actionsRight: 'ms-Dialog-actionsRight', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { actions: [ classNames.actions, { position: 'relative', width: '100%', minHeight: '24px', lineHeight: '24px', margin: '16px 0 0', fontSize: '0', selectors: { '.ms-Button': { lineHeight: 'normal', verticalAlign: 'middle', }, }, }, className, ], action: [ classNames.action, { margin: '0 4px', }, ], actionsRight: [ classNames.actionsRight, { alignItems: 'center', display: 'flex', fontSize: '0', justifyContent: 'flex-end', marginRight: '-4px', }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=DialogFooter.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.types.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.types.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DialogFooter.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dialog/index.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Dialog */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Dialog.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DialogContent */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DialogContent.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DialogFooter */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DialogFooter.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Dialog.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/Dialog.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DialogContent.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogContent.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DialogFooter.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Dialog/DialogFooter.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.base.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.VerticalDividerBase = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); exports.VerticalDividerBase = React.forwardRef(function (props, ref) { // eslint-disable-next-line deprecation/deprecation var styles = props.styles, theme = props.theme, deprecatedGetClassNames = props.getClassNames, className = props.className; var classNames = getClassNames(styles, { theme: theme, getClassNames: deprecatedGetClassNames, className: className }); return (React.createElement("span", { className: classNames.wrapper, ref: ref }, React.createElement("span", { className: classNames.divider }))); }); exports.VerticalDividerBase.displayName = 'VerticalDividerBase'; //# sourceMappingURL=VerticalDivider.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.classNames.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.classNames.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getDividerClassNames = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); /** * @deprecated use getStyles exported from VerticalDivider.styles.ts */ exports.getDividerClassNames = (0, Utilities_1.memoizeFunction)( // eslint-disable-next-line deprecation/deprecation function (theme) { return (0, Styling_1.mergeStyleSets)({ wrapper: { display: 'inline-flex', height: '100%', alignItems: 'center', }, divider: { width: 1, height: '100%', backgroundColor: theme.palette.neutralTertiaryAlt, }, }); }); //# sourceMappingURL=VerticalDivider.classNames.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.VerticalDivider = void 0; var VerticalDivider_styles_1 = __webpack_require__(/*! ./VerticalDivider.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.styles.js"); var VerticalDivider_base_1 = __webpack_require__(/*! ./VerticalDivider.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.base.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.VerticalDivider = (0, Utilities_1.styled)(VerticalDivider_base_1.VerticalDividerBase, VerticalDivider_styles_1.getStyles, undefined, { scope: 'VerticalDivider', }); //# sourceMappingURL=VerticalDivider.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.styles.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var getStyles = function (props) { // eslint-disable-next-line deprecation/deprecation var theme = props.theme, getClassNames = props.getClassNames, className = props.className; if (!theme) { throw new Error('Theme is undefined or null.'); } if (getClassNames) { var names = getClassNames(theme); return { wrapper: [names.wrapper], divider: [names.divider], }; } return { wrapper: [ { display: 'inline-flex', height: '100%', alignItems: 'center', }, className, ], divider: [ { width: 1, height: '100%', backgroundColor: theme.palette.neutralTertiaryAlt, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=VerticalDivider.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.types.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.types.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=VerticalDivider.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/index.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Divider/index.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./VerticalDivider */ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./VerticalDivider.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Divider/VerticalDivider.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.base.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.base.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardBase = exports.DocumentCardContext = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCard_types_1 = __webpack_require__(/*! ./DocumentCard.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.types.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var COMPONENT_NAME = 'DocumentCard'; exports.DocumentCardContext = React.createContext({}); /** * {@docCategory DocumentCard} */ var DocumentCardBase = /** @class */ (function (_super) { tslib_1.__extends(DocumentCardBase, _super); function DocumentCardBase(props) { var _this = _super.call(this, props) || this; _this._rootElement = React.createRef(); _this._onClick = function (ev) { _this._onAction(ev); }; _this._onKeyDown = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which === Utilities_1.KeyCodes.enter || ev.which === Utilities_1.KeyCodes.space) { _this._onAction(ev); } }; _this._onAction = function (ev) { var _a = _this.props, onClick = _a.onClick, onClickHref = _a.onClickHref, onClickTarget = _a.onClickTarget; if (onClick) { onClick(ev); } else if (!onClick && onClickHref) { // If no onClick Function was provided and we do have an onClickHref, redirect to the onClickHref if (onClickTarget) { window.open(onClickHref, onClickTarget, 'noreferrer noopener nofollow'); } else { window.location.href = onClickHref; } ev.preventDefault(); ev.stopPropagation(); } }; (0, Utilities_1.initializeComponentRef)(_this); (0, Utilities_1.warnDeprecations)(COMPONENT_NAME, props, { accentColor: undefined, }); return _this; } DocumentCardBase.prototype.render = function () { // eslint-disable-next-line deprecation/deprecation var _a = this.props, onClick = _a.onClick, onClickHref = _a.onClickHref, children = _a.children, type = _a.type, accentColor = _a.accentColor, styles = _a.styles, theme = _a.theme, className = _a.className; var nativeProps = (0, Utilities_1.getNativeProps)(this.props, Utilities_1.divProperties, [ 'className', 'onClick', 'type', 'role', ]); var actionable = onClick || onClickHref ? true : false; this._classNames = getClassNames(styles, { theme: theme, className: className, actionable: actionable, compact: type === DocumentCard_types_1.DocumentCardType.compact ? true : false, }); // Override the border color if an accent color was provided (compact card only) var style; if (type === DocumentCard_types_1.DocumentCardType.compact && accentColor) { style = { borderBottomColor: accentColor, }; } // if this element is actionable it should have an aria role var role = this.props.role || (actionable ? (onClick ? 'button' : 'link') : undefined); var tabIndex = actionable ? 0 : undefined; var documentCardContextValue = { role: role, tabIndex: tabIndex }; return (React.createElement("div", tslib_1.__assign({ ref: this._rootElement, role: 'group', className: this._classNames.root, onKeyDown: actionable ? this._onKeyDown : undefined, onClick: actionable ? this._onClick : undefined, style: style }, nativeProps), React.createElement(exports.DocumentCardContext.Provider, { value: documentCardContextValue }, children))); }; DocumentCardBase.prototype.focus = function () { if (this._rootElement.current) { this._rootElement.current.focus(); } }; DocumentCardBase.defaultProps = { type: DocumentCard_types_1.DocumentCardType.normal, }; return DocumentCardBase; }(React.Component)); exports.DocumentCardBase = DocumentCardBase; //# sourceMappingURL=DocumentCard.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.js": /*!*******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.js ***! \*******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCard = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCard_base_1 = __webpack_require__(/*! ./DocumentCard.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.base.js"); var DocumentCard_styles_1 = __webpack_require__(/*! ./DocumentCard.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.styles.js"); exports.DocumentCard = (0, Utilities_1.styled)(DocumentCard_base_1.DocumentCardBase, DocumentCard_styles_1.getStyles, undefined, { scope: 'DocumentCard' }); //# sourceMappingURL=DocumentCard.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.styles.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.styles.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCardPreview_styles_1 = __webpack_require__(/*! ./DocumentCardPreview.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.styles.js"); var DocumentCardActivity_styles_1 = __webpack_require__(/*! ./DocumentCardActivity.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.styles.js"); var DocumentCardTitle_styles_1 = __webpack_require__(/*! ./DocumentCardTitle.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.styles.js"); var DocumentCardLocation_styles_1 = __webpack_require__(/*! ./DocumentCardLocation.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.styles.js"); var GlobalClassNames = { root: 'ms-DocumentCard', rootActionable: 'ms-DocumentCard--actionable', rootCompact: 'ms-DocumentCard--compact', }; var getStyles = function (props) { var _a, _b; var className = props.className, theme = props.theme, actionable = props.actionable, compact = props.compact; var palette = theme.palette, fonts = theme.fonts, effects = theme.effects; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, { WebkitFontSmoothing: 'antialiased', backgroundColor: palette.white, border: "1px solid ".concat(palette.neutralLight), maxWidth: '320px', minWidth: '206px', userSelect: 'none', position: 'relative', selectors: (_a = { ':focus': { outline: '0px solid', } }, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus")] = (0, Styling_1.getInputFocusStyle)(palette.neutralSecondary, effects.roundedCorner2), _a[".".concat(DocumentCardLocation_styles_1.DocumentCardLocationGlobalClassNames.root, " + .").concat(DocumentCardTitle_styles_1.DocumentCardTitleGlobalClassNames.root)] = { paddingTop: '4px', }, _a), }, actionable && [ classNames.rootActionable, { selectors: { ':hover': { cursor: 'pointer', borderColor: palette.neutralTertiaryAlt, }, ':hover:after': { content: '" "', position: 'absolute', top: 0, right: 0, bottom: 0, left: 0, border: "1px solid ".concat(palette.neutralTertiaryAlt), pointerEvents: 'none', }, }, }, ], compact && [ classNames.rootCompact, { display: 'flex', maxWidth: '480px', height: '108px', selectors: (_b = {}, _b[".".concat(DocumentCardPreview_styles_1.DocumentCardPreviewGlobalClassNames.root)] = { borderRight: "1px solid ".concat(palette.neutralLight), borderBottom: 0, maxHeight: '106px', maxWidth: '144px', }, _b[".".concat(DocumentCardPreview_styles_1.DocumentCardPreviewGlobalClassNames.icon)] = { maxHeight: '32px', maxWidth: '32px', }, _b[".".concat(DocumentCardActivity_styles_1.DocumentCardActivityGlobalClassNames.root)] = { paddingBottom: '12px', }, _b[".".concat(DocumentCardTitle_styles_1.DocumentCardTitleGlobalClassNames.root)] = { paddingBottom: '12px 16px 8px 16px', fontSize: fonts.mediumPlus.fontSize, lineHeight: '16px', }, _b), }, ], className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=DocumentCard.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.types.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.types.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardType = void 0; /** * {@docCategory DocumentCard} */ var DocumentCardType; (function (DocumentCardType) { /** * Standard DocumentCard. */ DocumentCardType[DocumentCardType["normal"] = 0] = "normal"; /** * Compact layout. Displays the preview beside the details, rather than above. */ DocumentCardType[DocumentCardType["compact"] = 1] = "compact"; })(DocumentCardType = exports.DocumentCardType || (exports.DocumentCardType = {})); //# sourceMappingURL=DocumentCard.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.base.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.base.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardActionsBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Button_1 = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory DocumentCard} */ var DocumentCardActionsBase = /** @class */ (function (_super) { tslib_1.__extends(DocumentCardActionsBase, _super); function DocumentCardActionsBase(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); return _this; } DocumentCardActionsBase.prototype.render = function () { var _this = this; var _a = this.props, actions = _a.actions, views = _a.views, styles = _a.styles, theme = _a.theme, className = _a.className; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return (React.createElement("div", { className: this._classNames.root }, actions && actions.map(function (action, index) { return (React.createElement("div", { className: _this._classNames.action, key: index }, React.createElement(Button_1.IconButton, tslib_1.__assign({}, action)))); }), views > 0 && (React.createElement("div", { className: this._classNames.views }, React.createElement(Icon_1.Icon, { iconName: "View", className: this._classNames.viewsIcon }), views)))); }; return DocumentCardActionsBase; }(React.Component)); exports.DocumentCardActionsBase = DocumentCardActionsBase; //# sourceMappingURL=DocumentCardActions.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardActions = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCardActions_base_1 = __webpack_require__(/*! ./DocumentCardActions.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.base.js"); var DocumentCardActions_styles_1 = __webpack_require__(/*! ./DocumentCardActions.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.styles.js"); exports.DocumentCardActions = (0, Utilities_1.styled)(DocumentCardActions_base_1.DocumentCardActionsBase, DocumentCardActions_styles_1.getStyles, undefined, { scope: 'DocumentCardActions' }); //# sourceMappingURL=DocumentCardActions.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.styles.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.styles.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var ACTION_SIZE = 34; var HORIZONTAL_PADDING = 12; var VERTICAL_PADDING = 4; var GlobalClassNames = { root: 'ms-DocumentCardActions', action: 'ms-DocumentCardActions-action', views: 'ms-DocumentCardActions-views', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var palette = theme.palette, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, { height: "".concat(ACTION_SIZE, "px"), padding: "".concat(VERTICAL_PADDING, "px ").concat(HORIZONTAL_PADDING, "px"), position: 'relative', }, className, ], action: [ classNames.action, { float: 'left', marginRight: '4px', color: palette.neutralSecondary, cursor: 'pointer', selectors: { '.ms-Button': { fontSize: fonts.mediumPlus.fontSize, height: ACTION_SIZE, width: ACTION_SIZE, }, '.ms-Button:hover .ms-Button-icon': { color: theme.semanticColors.buttonText, cursor: 'pointer', }, }, }, ], views: [ classNames.views, { textAlign: 'right', lineHeight: ACTION_SIZE, }, ], viewsIcon: { marginRight: '8px', fontSize: fonts.medium.fontSize, verticalAlign: 'top', }, }; }; exports.getStyles = getStyles; //# sourceMappingURL=DocumentCardActions.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.types.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.types.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DocumentCardActions.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.base.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.base.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardActivityBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Persona_1 = __webpack_require__(/*! ../../Persona */ "./node_modules/@fluentui/react/lib-commonjs/Persona.js"); var PersonaCoin_1 = __webpack_require__(/*! ../../PersonaCoin */ "./node_modules/@fluentui/react/lib-commonjs/PersonaCoin.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory DocumentCard} */ var DocumentCardActivityBase = /** @class */ (function (_super) { tslib_1.__extends(DocumentCardActivityBase, _super); function DocumentCardActivityBase(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); return _this; } DocumentCardActivityBase.prototype.render = function () { var _a = this.props, activity = _a.activity, people = _a.people, styles = _a.styles, theme = _a.theme, className = _a.className; this._classNames = getClassNames(styles, { theme: theme, className: className, multiplePeople: people.length > 1, }); if (!people || people.length === 0) { return null; } return (React.createElement("div", { className: this._classNames.root }, this._renderAvatars(people), React.createElement("div", { className: this._classNames.details }, React.createElement("span", { className: this._classNames.name }, this._getNameString(people)), React.createElement("span", { className: this._classNames.activity }, activity)))); }; DocumentCardActivityBase.prototype._renderAvatars = function (people) { return (React.createElement("div", { className: this._classNames.avatars }, people.length > 1 ? this._renderAvatar(people[1]) : null, this._renderAvatar(people[0]))); }; DocumentCardActivityBase.prototype._renderAvatar = function (person) { return (React.createElement("div", { className: this._classNames.avatar }, React.createElement(PersonaCoin_1.PersonaCoin, { imageInitials: person.initials, text: person.name, imageUrl: person.profileImageSrc, initialsColor: person.initialsColor, allowPhoneInitials: person.allowPhoneInitials, role: "presentation", size: Persona_1.PersonaSize.size32 }))); }; DocumentCardActivityBase.prototype._getNameString = function (people) { var nameString = people[0].name; if (people.length >= 2) { nameString += ' +' + (people.length - 1); } return nameString; }; return DocumentCardActivityBase; }(React.Component)); exports.DocumentCardActivityBase = DocumentCardActivityBase; //# sourceMappingURL=DocumentCardActivity.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardActivity = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCardActivity_base_1 = __webpack_require__(/*! ./DocumentCardActivity.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.base.js"); var DocumentCardActivity_styles_1 = __webpack_require__(/*! ./DocumentCardActivity.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.styles.js"); exports.DocumentCardActivity = (0, Utilities_1.styled)(DocumentCardActivity_base_1.DocumentCardActivityBase, DocumentCardActivity_styles_1.getStyles, undefined, { scope: 'DocumentCardActivity' }); //# sourceMappingURL=DocumentCardActivity.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.styles.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.styles.js ***! \**********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.DocumentCardActivityGlobalClassNames = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var VERTICAL_PADDING = 8; var HORIZONTAL_PADDING = 16; var IMAGE_SIZE = 32; var PERSONA_TEXT_GUTTER = 8; exports.DocumentCardActivityGlobalClassNames = { root: 'ms-DocumentCardActivity', multiplePeople: 'ms-DocumentCardActivity--multiplePeople', details: 'ms-DocumentCardActivity-details', name: 'ms-DocumentCardActivity-name', activity: 'ms-DocumentCardActivity-activity', avatars: 'ms-DocumentCardActivity-avatars', avatar: 'ms-DocumentCardActivity-avatar', }; var getStyles = function (props) { var theme = props.theme, className = props.className, multiplePeople = props.multiplePeople; var palette = theme.palette, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(exports.DocumentCardActivityGlobalClassNames, theme); return { root: [ classNames.root, multiplePeople && classNames.multiplePeople, { padding: "".concat(VERTICAL_PADDING, "px ").concat(HORIZONTAL_PADDING, "px"), position: 'relative', }, className, ], avatars: [ classNames.avatars, { marginLeft: '-2px', height: '32px', }, ], avatar: [ classNames.avatar, { display: 'inline-block', verticalAlign: 'top', position: 'relative', textAlign: 'center', width: IMAGE_SIZE, height: IMAGE_SIZE, selectors: { '&:after': { content: '" "', position: 'absolute', left: '-1px', top: '-1px', right: '-1px', bottom: '-1px', border: "2px solid ".concat(palette.white), borderRadius: '50%', }, ':nth-of-type(2)': multiplePeople && { marginLeft: '-16px', }, }, }, ], details: [ classNames.details, { left: multiplePeople ? "".concat(HORIZONTAL_PADDING + IMAGE_SIZE * 1.5 + PERSONA_TEXT_GUTTER, "px") : "".concat(HORIZONTAL_PADDING + IMAGE_SIZE + PERSONA_TEXT_GUTTER, "px"), height: IMAGE_SIZE, position: 'absolute', top: VERTICAL_PADDING, width: "calc(100% - ".concat(HORIZONTAL_PADDING + IMAGE_SIZE + PERSONA_TEXT_GUTTER + HORIZONTAL_PADDING, "px)"), }, ], name: [ classNames.name, { display: 'block', fontSize: fonts.small.fontSize, lineHeight: '15px', height: '15px', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', color: palette.neutralPrimary, fontWeight: Styling_1.FontWeights.semibold, }, ], activity: [ classNames.activity, { display: 'block', fontSize: fonts.small.fontSize, lineHeight: '15px', height: '15px', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', color: palette.neutralSecondary, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=DocumentCardActivity.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.types.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.types.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DocumentCardActivity.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.base.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.base.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardDetailsBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory DocumentCard} */ var DocumentCardDetailsBase = /** @class */ (function (_super) { tslib_1.__extends(DocumentCardDetailsBase, _super); function DocumentCardDetailsBase(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); return _this; } DocumentCardDetailsBase.prototype.render = function () { var _a = this.props, children = _a.children, styles = _a.styles, theme = _a.theme, className = _a.className; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return React.createElement("div", { className: this._classNames.root }, children); }; return DocumentCardDetailsBase; }(React.Component)); exports.DocumentCardDetailsBase = DocumentCardDetailsBase; //# sourceMappingURL=DocumentCardDetails.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardDetails = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCardDetails_base_1 = __webpack_require__(/*! ./DocumentCardDetails.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.base.js"); var DocumentCardDetails_styles_1 = __webpack_require__(/*! ./DocumentCardDetails.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.styles.js"); exports.DocumentCardDetails = (0, Utilities_1.styled)(DocumentCardDetails_base_1.DocumentCardDetailsBase, DocumentCardDetails_styles_1.getStyles, undefined, { scope: 'DocumentCardDetails' }); //# sourceMappingURL=DocumentCardDetails.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.styles.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.styles.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { root: 'ms-DocumentCardDetails', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, { display: 'flex', flexDirection: 'column', flex: 1, justifyContent: 'space-between', overflow: 'hidden', }, className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=DocumentCardDetails.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.types.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.types.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DocumentCardDetails.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.base.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.base.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardImageBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Image_1 = __webpack_require__(/*! ../../Image */ "./node_modules/@fluentui/react/lib-commonjs/Image.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory DocumentCard} */ var DocumentCardImageBase = /** @class */ (function (_super) { tslib_1.__extends(DocumentCardImageBase, _super); function DocumentCardImageBase(props) { var _this = _super.call(this, props) || this; _this._onImageLoad = function () { _this.setState({ imageHasLoaded: true }); }; (0, Utilities_1.initializeComponentRef)(_this); _this.state = { imageHasLoaded: false }; return _this; } DocumentCardImageBase.prototype.render = function () { var _a = this.props, styles = _a.styles, width = _a.width, height = _a.height, imageFit = _a.imageFit, imageSrc = _a.imageSrc; this._classNames = getClassNames(styles, this.props); return (React.createElement("div", { className: this._classNames.root }, imageSrc && (React.createElement(Image_1.Image, { width: width, height: height, imageFit: imageFit, src: imageSrc, role: "presentation", alt: "", onLoad: this._onImageLoad })), this.state.imageHasLoaded ? this._renderCornerIcon() : this._renderCenterIcon())); }; DocumentCardImageBase.prototype._renderCenterIcon = function () { var iconProps = this.props.iconProps; return (React.createElement("div", { className: this._classNames.centeredIconWrapper }, React.createElement(Icon_1.Icon, tslib_1.__assign({ className: this._classNames.centeredIcon }, iconProps)))); }; DocumentCardImageBase.prototype._renderCornerIcon = function () { var iconProps = this.props.iconProps; return React.createElement(Icon_1.Icon, tslib_1.__assign({ className: this._classNames.cornerIcon }, iconProps)); }; return DocumentCardImageBase; }(React.Component)); exports.DocumentCardImageBase = DocumentCardImageBase; //# sourceMappingURL=DocumentCardImage.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardImage = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCardImage_base_1 = __webpack_require__(/*! ./DocumentCardImage.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.base.js"); var DocumentCardImage_styles_1 = __webpack_require__(/*! ./DocumentCardImage.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.styles.js"); exports.DocumentCardImage = (0, Utilities_1.styled)(DocumentCardImage_base_1.DocumentCardImageBase, DocumentCardImage_styles_1.getStyles, undefined, { scope: 'DocumentCardImage' }); //# sourceMappingURL=DocumentCardImage.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.styles.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.styles.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var centeredIconSize = '42px'; var cornerIconSize = '32px'; var getStyles = function (props) { var theme = props.theme, className = props.className, height = props.height, width = props.width; var palette = theme.palette; return { root: [ { borderBottom: "1px solid ".concat(palette.neutralLight), position: 'relative', backgroundColor: palette.neutralLighterAlt, overflow: "hidden", height: height && "".concat(height, "px"), width: width && "".concat(width, "px"), }, className, ], centeredIcon: [ { height: centeredIconSize, width: centeredIconSize, fontSize: centeredIconSize, }, ], centeredIconWrapper: [ { display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%', width: '100%', position: 'absolute', top: 0, left: 0, }, ], cornerIcon: [ { left: '10px', bottom: '10px', height: cornerIconSize, width: cornerIconSize, fontSize: cornerIconSize, position: 'absolute', overflow: 'visible', }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=DocumentCardImage.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.types.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.types.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DocumentCardImage.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.base.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.base.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardLocationBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory DocumentCard} */ var DocumentCardLocationBase = /** @class */ (function (_super) { tslib_1.__extends(DocumentCardLocationBase, _super); function DocumentCardLocationBase(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); return _this; } DocumentCardLocationBase.prototype.render = function () { var _a = this.props, location = _a.location, locationHref = _a.locationHref, ariaLabel = _a.ariaLabel, onClick = _a.onClick, styles = _a.styles, theme = _a.theme, className = _a.className; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return (React.createElement("a", { className: this._classNames.root, href: locationHref, onClick: onClick, "aria-label": ariaLabel }, location)); }; return DocumentCardLocationBase; }(React.Component)); exports.DocumentCardLocationBase = DocumentCardLocationBase; //# sourceMappingURL=DocumentCardLocation.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardLocation = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCardLocation_base_1 = __webpack_require__(/*! ./DocumentCardLocation.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.base.js"); var DocumentCardLocation_styles_1 = __webpack_require__(/*! ./DocumentCardLocation.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.styles.js"); exports.DocumentCardLocation = (0, Utilities_1.styled)(DocumentCardLocation_base_1.DocumentCardLocationBase, DocumentCardLocation_styles_1.getStyles, undefined, { scope: 'DocumentCardLocation' }); //# sourceMappingURL=DocumentCardLocation.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.styles.js": /*!**********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.styles.js ***! \**********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.DocumentCardLocationGlobalClassNames = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); exports.DocumentCardLocationGlobalClassNames = { root: 'ms-DocumentCardLocation', }; var getStyles = function (props) { var theme = props.theme, className = props.className; var palette = theme.palette, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(exports.DocumentCardLocationGlobalClassNames, theme); return { root: [ classNames.root, fonts.small, { color: palette.themePrimary, display: 'block', fontWeight: Styling_1.FontWeights.semibold, overflow: 'hidden', padding: '8px 16px', position: 'relative', textDecoration: 'none', textOverflow: 'ellipsis', whiteSpace: 'nowrap', selectors: { ':hover': { color: palette.themePrimary, cursor: 'pointer', }, }, }, className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=DocumentCardLocation.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.types.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.types.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DocumentCardLocation.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.base.js": /*!****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.base.js ***! \****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardLogoBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory DocumentCard} */ var DocumentCardLogoBase = /** @class */ (function (_super) { tslib_1.__extends(DocumentCardLogoBase, _super); function DocumentCardLogoBase(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); return _this; } DocumentCardLogoBase.prototype.render = function () { var _a = this.props, logoIcon = _a.logoIcon, styles = _a.styles, theme = _a.theme, className = _a.className; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return (React.createElement("div", { className: this._classNames.root }, React.createElement(Icon_1.Icon, { iconName: logoIcon }))); }; return DocumentCardLogoBase; }(React.Component)); exports.DocumentCardLogoBase = DocumentCardLogoBase; //# sourceMappingURL=DocumentCardLogo.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.js": /*!***********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.js ***! \***********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardLogo = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCardLogo_base_1 = __webpack_require__(/*! ./DocumentCardLogo.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.base.js"); var DocumentCardLogo_styles_1 = __webpack_require__(/*! ./DocumentCardLogo.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.styles.js"); exports.DocumentCardLogo = (0, Utilities_1.styled)(DocumentCardLogo_base_1.DocumentCardLogoBase, DocumentCardLogo_styles_1.getStyles, undefined, { scope: 'DocumentCardLogo' }); //# sourceMappingURL=DocumentCardLogo.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.styles.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.styles.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { root: 'ms-DocumentCardLogo', }; var getStyles = function (props) { var theme = props.theme, className = props.className; var palette = theme.palette, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, { // eslint-disable-next-line deprecation/deprecation fontSize: fonts.xxLargePlus.fontSize, color: palette.themePrimary, display: 'block', padding: '16px 16px 0 16px', }, className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=DocumentCardLogo.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.types.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.types.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DocumentCardLogo.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.base.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.base.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardPreviewBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Image_1 = __webpack_require__(/*! ../../Image */ "./node_modules/@fluentui/react/lib-commonjs/Image.js"); var Link_1 = __webpack_require__(/*! ../../Link */ "./node_modules/@fluentui/react/lib-commonjs/Link.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DEFAULT_DISPLAY_COUNT = 3; var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory DocumentCard} */ var DocumentCardPreviewBase = /** @class */ (function (_super) { tslib_1.__extends(DocumentCardPreviewBase, _super); function DocumentCardPreviewBase(props) { var _this = _super.call(this, props) || this; _this._renderPreviewList = function (previewImages) { var _a = _this.props, getOverflowDocumentCountText = _a.getOverflowDocumentCountText, _b = _a.maxDisplayCount, maxDisplayCount = _b === void 0 ? DEFAULT_DISPLAY_COUNT : _b; // Determine how many documents we won't be showing var overflowDocumentCount = previewImages.length - maxDisplayCount; // Determine the overflow text that will be rendered after the preview list. var overflowText = overflowDocumentCount ? getOverflowDocumentCountText ? getOverflowDocumentCountText(overflowDocumentCount) : '+' + overflowDocumentCount : null; // Create list items for the documents to be shown var fileListItems = previewImages.slice(0, maxDisplayCount).map(function (file, fileIndex) { return (React.createElement("li", { key: fileIndex }, React.createElement(Image_1.Image, { className: _this._classNames.fileListIcon, src: file.iconSrc, role: "presentation", alt: "", width: "16px", height: "16px" }), React.createElement(Link_1.Link, tslib_1.__assign({ className: _this._classNames.fileListLink, // eslint-disable-next-line deprecation/deprecation href: file.url }, file.linkProps), file.name))); }); return (React.createElement("div", null, React.createElement("ul", { className: _this._classNames.fileList }, fileListItems), overflowText && React.createElement("span", { className: _this._classNames.fileListOverflowText }, overflowText))); }; (0, Utilities_1.initializeComponentRef)(_this); return _this; } DocumentCardPreviewBase.prototype.render = function () { var _a = this.props, previewImages = _a.previewImages, styles = _a.styles, theme = _a.theme, className = _a.className; var style; var preview; var isFileList = previewImages.length > 1; this._classNames = getClassNames(styles, { theme: theme, className: className, isFileList: isFileList, }); if (previewImages.length > 1) { // Render a list of files preview = this._renderPreviewList(previewImages); } else if (previewImages.length === 1) { // Render a single preview preview = this._renderPreviewImage(previewImages[0]); // Override the border color if an accent color was provided /* eslint-disable deprecation/deprecation */ if (previewImages[0].accentColor) { style = { borderBottomColor: previewImages[0].accentColor, }; } /* eslint-enable deprecation/deprecation */ } return (React.createElement("div", { className: this._classNames.root, style: style }, preview)); }; DocumentCardPreviewBase.prototype._renderPreviewImage = function (previewImage) { var width = previewImage.width, height = previewImage.height, imageFit = previewImage.imageFit, previewIconProps = previewImage.previewIconProps, previewIconContainerClass = previewImage.previewIconContainerClass; if (previewIconProps) { return (React.createElement("div", { className: (0, Utilities_1.css)(this._classNames.previewIcon, previewIconContainerClass), style: { width: width, height: height } }, React.createElement(Icon_1.Icon, tslib_1.__assign({}, previewIconProps)))); } var image = (React.createElement(Image_1.Image, { width: width, height: height, imageFit: imageFit, src: previewImage.previewImageSrc, role: "presentation", alt: "" })); var icon; if (previewImage.iconSrc) { icon = React.createElement(Image_1.Image, { className: this._classNames.icon, src: previewImage.iconSrc, role: "presentation", alt: "" }); } return (React.createElement("div", null, image, icon)); }; return DocumentCardPreviewBase; }(React.Component)); exports.DocumentCardPreviewBase = DocumentCardPreviewBase; //# sourceMappingURL=DocumentCardPreview.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.js": /*!**************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.js ***! \**************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardPreview = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCardPreview_base_1 = __webpack_require__(/*! ./DocumentCardPreview.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.base.js"); var DocumentCardPreview_styles_1 = __webpack_require__(/*! ./DocumentCardPreview.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.styles.js"); exports.DocumentCardPreview = (0, Utilities_1.styled)(DocumentCardPreview_base_1.DocumentCardPreviewBase, DocumentCardPreview_styles_1.getStyles, undefined, { scope: 'DocumentCardPreview' }); //# sourceMappingURL=DocumentCardPreview.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.styles.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.styles.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.DocumentCardPreviewGlobalClassNames = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.DocumentCardPreviewGlobalClassNames = { root: 'ms-DocumentCardPreview', icon: 'ms-DocumentCardPreview-icon', iconContainer: 'ms-DocumentCardPreview-iconContainer', }; var getStyles = function (props) { var _a, _b; var theme = props.theme, className = props.className, isFileList = props.isFileList; var palette = theme.palette, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(exports.DocumentCardPreviewGlobalClassNames, theme); return { root: [ classNames.root, fonts.small, { backgroundColor: isFileList ? palette.white : palette.neutralLighterAlt, borderBottom: "1px solid ".concat(palette.neutralLight), overflow: "hidden", position: 'relative', }, className, ], previewIcon: [ classNames.iconContainer, { display: 'flex', alignItems: 'center', justifyContent: 'center', height: '100%', }, ], icon: [ classNames.icon, { left: '10px', bottom: '10px', position: 'absolute', }, ], fileList: { padding: '16px 16px 0 16px', listStyleType: 'none', margin: 0, selectors: { li: { height: '16px', lineHeight: '16px', display: 'flex', flexWrap: 'nowrap', alignItems: 'center', marginBottom: '8px', overflow: 'hidden', }, }, }, fileListIcon: { display: 'inline-block', flexShrink: 0, marginRight: '8px', }, fileListLink: [ (0, Styling_1.getFocusStyle)(theme, { highContrastStyle: { border: '1px solid WindowText', outline: 'none', }, }), { boxSizing: 'border-box', color: palette.neutralDark, flexGrow: 1, overflow: 'hidden', display: 'inline-block', textDecoration: 'none', textOverflow: 'ellipsis', whiteSpace: 'nowrap', selectors: (_a = { ':hover': { color: palette.themePrimary, } }, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus")] = { selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { outline: 'none', }, _b), }, _a), }, ], fileListOverflowText: { padding: '0px 16px 8px 16px', display: 'block', }, }; }; exports.getStyles = getStyles; //# sourceMappingURL=DocumentCardPreview.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.types.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.types.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DocumentCardPreview.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.base.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.base.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardStatusBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * {@docCategory DocumentCard} */ var DocumentCardStatusBase = /** @class */ (function (_super) { tslib_1.__extends(DocumentCardStatusBase, _super); function DocumentCardStatusBase(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); return _this; } DocumentCardStatusBase.prototype.render = function () { var _a = this.props, statusIcon = _a.statusIcon, status = _a.status, styles = _a.styles, theme = _a.theme, className = _a.className; var iconProps = { iconName: statusIcon, styles: { root: { padding: '8px' }, }, }; this._classNames = getClassNames(styles, { theme: theme, className: className, }); return (React.createElement("div", { className: this._classNames.root }, statusIcon && React.createElement(Icon_1.Icon, tslib_1.__assign({}, iconProps)), status)); }; return DocumentCardStatusBase; }(React.Component)); exports.DocumentCardStatusBase = DocumentCardStatusBase; //# sourceMappingURL=DocumentCardStatus.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.js": /*!*************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.js ***! \*************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardStatus = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCardStatus_base_1 = __webpack_require__(/*! ./DocumentCardStatus.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.base.js"); var DocumentCardStatus_styles_1 = __webpack_require__(/*! ./DocumentCardStatus.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.styles.js"); exports.DocumentCardStatus = (0, Utilities_1.styled)(DocumentCardStatus_base_1.DocumentCardStatusBase, DocumentCardStatus_styles_1.getStyles, undefined, { scope: 'DocumentCardStatus' }); //# sourceMappingURL=DocumentCardStatus.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.styles.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.styles.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { root: 'ms-DocumentCardStatus', }; var getStyles = function (props) { var className = props.className, theme = props.theme; var palette = theme.palette, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, fonts.medium, { margin: '8px 16px', color: palette.neutralPrimary, backgroundColor: palette.neutralLighter, height: '32px', }, className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=DocumentCardStatus.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.types.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.types.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DocumentCardStatus.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.base.js": /*!*****************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.base.js ***! \*****************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardTitleBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var DocumentCard_base_1 = __webpack_require__(/*! ./DocumentCard.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.base.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var TRUNCATION_VERTICAL_OVERFLOW_THRESHOLD = 5; /** * {@docCategory DocumentCard} */ var DocumentCardTitleBase = /** @class */ (function (_super) { tslib_1.__extends(DocumentCardTitleBase, _super); function DocumentCardTitleBase(props) { var _this = _super.call(this, props) || this; _this._titleElement = React.createRef(); // Truncate logic here way can't handle the case that chars with different widths are mixed very well. // Let _shrinkTitle take care of that. _this._truncateTitle = function () { if (!_this._needMeasurement) { return; } _this._async.requestAnimationFrame(_this._truncateWhenInAnimation); }; _this._truncateWhenInAnimation = function () { var originalTitle = _this.props.title; var element = _this._titleElement.current; if (element) { var style = getComputedStyle(element); if (style.width && style.lineHeight && style.height) { var clientWidth = element.clientWidth, scrollWidth = element.scrollWidth; _this._clientWidth = clientWidth; var lines = Math.floor((parseInt(style.height, 10) + TRUNCATION_VERTICAL_OVERFLOW_THRESHOLD) / parseInt(style.lineHeight, 10)); element.style.whiteSpace = ''; // Use overflow to predict truncated length. // Take an example.The text is: A text with A very long text that need to be truncated.ppt // if container is like // |A text with A very| long text that need to be truncated.ppt // The scroll width is 58, (take two | out of length) // The client width is 18 // the overflow rate is scrollWidth/clientWidth which should be close to length(overflowText)/length(visualText) // And the length of remaining text should be truncated is (original Length)/(58/18) -3 = 15. // So that the logic can predict truncated text well. // first piece will be `A text `, * second piece will be `ated.ppt` // |A text ...ated.ppt| var overFlowRate = scrollWidth / (parseInt(style.width, 10) * lines); if (overFlowRate > 1) { var truncatedLength = originalTitle.length / overFlowRate - 3; /** Saved for separator */ return _this.setState({ truncatedTitleFirstPiece: originalTitle.slice(0, truncatedLength / 2), truncatedTitleSecondPiece: originalTitle.slice(originalTitle.length - truncatedLength / 2), }); } } } }; _this._shrinkTitle = function () { var _a = _this.state, truncatedTitleFirstPiece = _a.truncatedTitleFirstPiece, truncatedTitleSecondPiece = _a.truncatedTitleSecondPiece; if (truncatedTitleFirstPiece && truncatedTitleSecondPiece) { var titleElement = _this._titleElement.current; if (!titleElement) { return; } if (titleElement.scrollHeight > titleElement.clientHeight + TRUNCATION_VERTICAL_OVERFLOW_THRESHOLD || titleElement.scrollWidth > titleElement.clientWidth) { _this.setState({ truncatedTitleFirstPiece: truncatedTitleFirstPiece.slice(0, truncatedTitleFirstPiece.length - 1), truncatedTitleSecondPiece: truncatedTitleSecondPiece.slice(1), }); } } }; (0, utilities_1.initializeComponentRef)(_this); _this._async = new Utilities_1.Async(_this); _this._events = new Utilities_1.EventGroup(_this); _this._clientWidth = undefined; _this.state = { truncatedTitleFirstPiece: undefined, truncatedTitleSecondPiece: undefined, }; return _this; } DocumentCardTitleBase.prototype.componentDidUpdate = function (prevProps) { var _this = this; if (this.props.title !== prevProps.title) { this.setState({ truncatedTitleFirstPiece: undefined, truncatedTitleSecondPiece: undefined, }); } if (prevProps.shouldTruncate !== this.props.shouldTruncate) { if (this.props.shouldTruncate) { this._truncateTitle(); this._async.requestAnimationFrame(this._shrinkTitle); this._events.on(window, 'resize', this._updateTruncation); } else { this._events.off(window, 'resize', this._updateTruncation); } } else if (this._needMeasurement) { this._async.requestAnimationFrame(function () { _this._truncateWhenInAnimation(); _this._shrinkTitle(); }); } }; DocumentCardTitleBase.prototype.componentDidMount = function () { if (this.props.shouldTruncate) { this._truncateTitle(); this._events.on(window, 'resize', this._updateTruncation); } }; DocumentCardTitleBase.prototype.componentWillUnmount = function () { this._events.dispose(); this._async.dispose(); }; DocumentCardTitleBase.prototype.render = function () { var _this = this; var _a = this.props, title = _a.title, shouldTruncate = _a.shouldTruncate, showAsSecondaryTitle = _a.showAsSecondaryTitle, styles = _a.styles, theme = _a.theme, className = _a.className; var _b = this.state, truncatedTitleFirstPiece = _b.truncatedTitleFirstPiece, truncatedTitleSecondPiece = _b.truncatedTitleSecondPiece; this._classNames = getClassNames(styles, { theme: theme, className: className, showAsSecondaryTitle: showAsSecondaryTitle, }); if (shouldTruncate && truncatedTitleFirstPiece && truncatedTitleSecondPiece) { return (React.createElement(DocumentCard_base_1.DocumentCardContext.Consumer, null, function (_a) { var role = _a.role, tabIndex = _a.tabIndex; return (React.createElement("div", { className: _this._classNames.root, ref: _this._titleElement, title: title, tabIndex: tabIndex, role: role }, truncatedTitleFirstPiece, "\u2026", truncatedTitleSecondPiece)); })); } else { return (React.createElement(DocumentCard_base_1.DocumentCardContext.Consumer, null, function (_a) { var role = _a.role, tabIndex = _a.tabIndex; return (React.createElement("div", { className: _this._classNames.root, ref: _this._titleElement, title: title, tabIndex: tabIndex, role: role, style: _this._needMeasurement ? { whiteSpace: 'nowrap' } : undefined }, title)); })); } }; Object.defineProperty(DocumentCardTitleBase.prototype, "_needMeasurement", { /** * In measuring, it will render a same style text with whiteSpace: 'nowrap', to get overflow rate. * So that the logic can predict truncated text well. */ get: function () { return !!this.props.shouldTruncate && this._clientWidth === undefined; }, enumerable: false, configurable: true }); DocumentCardTitleBase.prototype._updateTruncation = function () { var _this = this; if (this._timerId) { return; } this._timerId = this._async.setTimeout(function () { delete _this._timerId; _this._clientWidth = undefined; _this.setState({ truncatedTitleFirstPiece: undefined, truncatedTitleSecondPiece: undefined, }); }, 250); }; return DocumentCardTitleBase; }(React.Component)); exports.DocumentCardTitleBase = DocumentCardTitleBase; //# sourceMappingURL=DocumentCardTitle.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DocumentCardTitle = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DocumentCardTitle_base_1 = __webpack_require__(/*! ./DocumentCardTitle.base */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.base.js"); var DocumentCardTitle_styles_1 = __webpack_require__(/*! ./DocumentCardTitle.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.styles.js"); exports.DocumentCardTitle = (0, Utilities_1.styled)(DocumentCardTitle_base_1.DocumentCardTitleBase, DocumentCardTitle_styles_1.getStyles, undefined, { scope: 'DocumentCardTitle' }); //# sourceMappingURL=DocumentCardTitle.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.styles.js": /*!*******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.styles.js ***! \*******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = exports.DocumentCardTitleGlobalClassNames = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); exports.DocumentCardTitleGlobalClassNames = { root: 'ms-DocumentCardTitle', }; var getStyles = function (props) { var _a; var theme = props.theme, className = props.className, showAsSecondaryTitle = props.showAsSecondaryTitle; var palette = theme.palette, fonts = theme.fonts, effects = theme.effects; var classNames = (0, Styling_1.getGlobalClassNames)(exports.DocumentCardTitleGlobalClassNames, theme); return { root: [ classNames.root, showAsSecondaryTitle ? fonts.medium : fonts.large, { padding: '8px 16px', display: 'block', overflow: 'hidden', position: 'relative', wordWrap: 'break-word', height: showAsSecondaryTitle ? '45px' : '38px', lineHeight: showAsSecondaryTitle ? '18px' : '21px', color: showAsSecondaryTitle ? palette.neutralSecondary : palette.neutralPrimary, selectors: (_a = { ':focus': { outline: '0px solid', } }, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus")] = (0, Styling_1.getInputFocusStyle)(palette.neutralSecondary, effects.roundedCorner2), _a), }, className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=DocumentCardTitle.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.types.js": /*!******************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.types.js ***! \******************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=DocumentCardTitle.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/index.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/index.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCard */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCard.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCard.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardActions */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardActions.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActions.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardActivity */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardActivity.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardActivity.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardDetails */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardDetails.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardDetails.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardLocation */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardLocation.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLocation.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardPreview */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardPreview.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardPreview.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardImage */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardImage.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardImage.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardTitle */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardTitle.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardTitle.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardLogo */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardLogo.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardLogo.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardStatus */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./DocumentCardStatus.types */ "./node_modules/@fluentui/react/lib-commonjs/components/DocumentCard/DocumentCardStatus.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.base.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.base.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DropdownBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Callout_1 = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib-commonjs/Callout.js"); var Button_1 = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var Dropdown_types_1 = __webpack_require__(/*! ./Dropdown.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.types.js"); var DropdownSizePosCache_1 = __webpack_require__(/*! ./utilities/DropdownSizePosCache */ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/utilities/DropdownSizePosCache.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Label_1 = __webpack_require__(/*! ../../Label */ "./node_modules/@fluentui/react/lib-commonjs/Label.js"); var Panel_1 = __webpack_require__(/*! ../../Panel */ "./node_modules/@fluentui/react/lib-commonjs/Panel.js"); var ResponsiveMode_1 = __webpack_require__(/*! ../../ResponsiveMode */ "./node_modules/@fluentui/react/lib-commonjs/ResponsiveMode.js"); var SelectableOption_1 = __webpack_require__(/*! ../../SelectableOption */ "./node_modules/@fluentui/react/lib-commonjs/SelectableOption.js"); // import and use V7 Checkbox to ensure no breaking changes. var Checkbox_1 = __webpack_require__(/*! ../../Checkbox */ "./node_modules/@fluentui/react/lib-commonjs/Checkbox.js"); var utilities_1 = __webpack_require__(/*! @fluentui/utilities */ "./node_modules/@fluentui/utilities/lib-commonjs/index.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var COMPONENT_NAME = 'Dropdown'; var getClassNames = (0, Utilities_1.classNamesFunction)(); var DEFAULT_PROPS = { options: [], }; function useSelectedItemsState(_a) { var defaultSelectedKeys = _a.defaultSelectedKeys, selectedKeys = _a.selectedKeys, defaultSelectedKey = _a.defaultSelectedKey, selectedKey = _a.selectedKey, options = _a.options, multiSelect = _a.multiSelect; var oldOptions = (0, react_hooks_1.usePrevious)(options); var _b = React.useState([]), selectedIndices = _b[0], setSelectedIndices = _b[1]; // In controlled component usage where selectedKey is provided, update the selectedIndex // state if the key or options change. var selectedKeyPropToUse; // this does a shallow compare (assumes options are pure), for the purposes of determining whether // defaultSelectedKey/defaultSelectedKeys are respected. var didOptionsChange = options !== oldOptions; if (multiSelect) { if (didOptionsChange && defaultSelectedKeys !== undefined) { selectedKeyPropToUse = defaultSelectedKeys; } else { selectedKeyPropToUse = selectedKeys; } } else { if (didOptionsChange && defaultSelectedKey !== undefined) { selectedKeyPropToUse = defaultSelectedKey; } else { selectedKeyPropToUse = selectedKey; } } var oldSelectedKeyProp = (0, react_hooks_1.usePrevious)(selectedKeyPropToUse); React.useEffect(function () { /** Get all selected indexes for multi-select mode */ var getSelectedIndexes = function () { if (selectedKeyPropToUse === undefined) { if (multiSelect) { return getAllSelectedIndices(); } var selectedIndex = getSelectedIndex(null); return selectedIndex !== -1 ? [selectedIndex] : []; } else if (!Array.isArray(selectedKeyPropToUse)) { var selectedIndex = getSelectedIndex(selectedKeyPropToUse); return selectedIndex !== -1 ? [selectedIndex] : []; } var returnValue = []; for (var _i = 0, selectedKeyPropToUse_1 = selectedKeyPropToUse; _i < selectedKeyPropToUse_1.length; _i++) { var key = selectedKeyPropToUse_1[_i]; var selectedIndex = getSelectedIndex(key); selectedIndex !== -1 && returnValue.push(selectedIndex); } return returnValue; }; var getAllSelectedIndices = function () { return options .map(function (option, index) { return (option.selected ? index : -1); }) .filter(function (index) { return index !== -1; }); }; var getSelectedIndex = function (searchKey) { return (0, Utilities_1.findIndex)(options, function (option) { // eslint-disable-next-line eqeqeq if (searchKey != null) { return option.key === searchKey; } else { // eslint-disable-next-line deprecation/deprecation return !!option.selected || !!option.isSelected; } }); }; if ((selectedKeyPropToUse !== undefined || !oldOptions) && (selectedKeyPropToUse !== oldSelectedKeyProp || didOptionsChange)) { setSelectedIndices(getSelectedIndexes()); } }, [didOptionsChange, multiSelect, oldOptions, oldSelectedKeyProp, options, selectedKeyPropToUse]); return [selectedIndices, setSelectedIndices]; } exports.DropdownBase = React.forwardRef(function (propsWithoutDefaults, forwardedRef) { var props = (0, utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); var rootRef = React.useRef(null); var mergedRootRef = (0, react_hooks_1.useMergedRefs)(forwardedRef, rootRef); var responsiveMode = (0, ResponsiveMode_1.useResponsiveMode)(rootRef, props.responsiveMode); var _a = useSelectedItemsState(props), selectedIndices = _a[0], setSelectedIndices = _a[1]; return (React.createElement(DropdownInternal, tslib_1.__assign({}, props, { responsiveMode: responsiveMode, hoisted: { rootRef: mergedRootRef, selectedIndices: selectedIndices, setSelectedIndices: setSelectedIndices } }))); }); exports.DropdownBase.displayName = 'DropdownBase'; var DropdownInternal = /** @class */ (function (_super) { tslib_1.__extends(DropdownInternal, _super); function DropdownInternal(props) { var _this = _super.call(this, props) || this; _this._host = React.createRef(); _this._focusZone = React.createRef(); _this._dropDown = React.createRef(); _this._scrollIdleDelay = 250 /* ms */; _this._sizePosCache = new DropdownSizePosCache_1.DropdownSizePosCache(); _this._requestAnimationFrame = (0, Utilities_1.safeRequestAnimationFrame)(_this); /** * Close menu callout if it is open */ _this.dismissMenu = function () { var isOpen = _this.state.isOpen; isOpen && _this.setState({ isOpen: false }); }; _this._onChange = function (event, options, index, checked, multiSelect) { // eslint-disable-next-line deprecation/deprecation var _a = _this.props, onChange = _a.onChange, onChanged = _a.onChanged; if (onChange || onChanged) { // for single-select, option passed in will always be selected. // for multi-select, flip the checked value var changedOpt = multiSelect ? tslib_1.__assign(tslib_1.__assign({}, options[index]), { selected: !checked }) : options[index]; onChange && onChange(tslib_1.__assign(tslib_1.__assign({}, event), { target: _this._dropDown.current }), changedOpt, index); onChanged && onChanged(changedOpt, index); } }; /** Get either props.placeholder (new name) or props.placeHolder (old name) */ _this._getPlaceholder = function () { // eslint-disable-next-line deprecation/deprecation return _this.props.placeholder || _this.props.placeHolder; }; /** Get text in dropdown input as a string */ _this._getTitle = function (items, _unused) { var _a = _this.props.multiSelectDelimiter, multiSelectDelimiter = _a === void 0 ? ', ' : _a; return items.map(function (i) { return i.text; }).join(multiSelectDelimiter); }; /** Render text in dropdown input */ _this._onRenderTitle = function (items) { return React.createElement(React.Fragment, null, _this._getTitle(items)); }; /** Render placeholder text in dropdown input */ _this._onRenderPlaceholder = function (props) { if (!_this._getPlaceholder()) { return null; } return React.createElement(React.Fragment, null, _this._getPlaceholder()); }; /** Render Callout or Panel container and pass in list */ _this._onRenderContainer = function (props) { var calloutProps = props.calloutProps, panelProps = props.panelProps; var _a = _this.props, responsiveMode = _a.responsiveMode, dropdownWidth = _a.dropdownWidth; var isSmall = responsiveMode <= ResponsiveMode_1.ResponsiveMode.medium; var focusTrapZoneProps = { firstFocusableTarget: "#".concat(_this._listId, "1") }; var panelStyles = _this._classNames.subComponentStyles ? _this._classNames.subComponentStyles.panel : undefined; var calloutWidth = undefined; var calloutMinWidth = undefined; if (dropdownWidth === 'auto') { calloutMinWidth = _this._dropDown.current ? _this._dropDown.current.clientWidth : 0; } else { calloutWidth = dropdownWidth || (_this._dropDown.current ? _this._dropDown.current.clientWidth : 0); } return isSmall ? (React.createElement(Panel_1.Panel, tslib_1.__assign({ closeButtonAriaLabel: "Close", focusTrapZoneProps: focusTrapZoneProps, hasCloseButton: true, isOpen: true, isLightDismiss: true, onDismiss: _this._onDismiss, styles: panelStyles }, panelProps), _this._renderFocusableList(props))) : (React.createElement(Callout_1.Callout, tslib_1.__assign({ isBeakVisible: false, gapSpace: 0, doNotLayer: false, directionalHintFixed: false, directionalHint: Callout_1.DirectionalHint.bottomLeftEdge, calloutWidth: calloutWidth, calloutMinWidth: calloutMinWidth }, calloutProps, { className: _this._classNames.callout, target: _this._dropDown.current, onDismiss: _this._onDismiss, onScroll: _this._onScroll, onPositioned: _this._onPositioned }), _this._renderFocusableList(props))); }; /** Render Caret Down Icon */ _this._onRenderCaretDown = function (props) { return React.createElement(Icon_1.Icon, { className: _this._classNames.caretDown, iconName: "ChevronDown", "aria-hidden": true }); }; /** Render List of items */ _this._onRenderList = function (props) { var _a = props.onRenderItem, onRenderItem = _a === void 0 ? _this._onRenderItem : _a; var queue = { items: [] }; var renderedList = []; var emptyQueue = function () { var newGroup = queue.id ? [ React.createElement("div", { role: "group", key: queue.id, "aria-labelledby": queue.id }, queue.items), ] : queue.items; renderedList = tslib_1.__spreadArray(tslib_1.__spreadArray([], renderedList, true), newGroup, true); // Flush items and id queue = { items: [] }; }; var placeRenderedOptionIntoQueue = function (item, index) { /* Case Header empty queue if it's not already empty ensure unique ID for header and set queue ID push header into queue Case Divider push divider into queue if not first item empty queue if not already empty Default push item into queue */ switch (item.itemType) { case SelectableOption_1.SelectableOptionMenuItemType.Header: queue.items.length > 0 && emptyQueue(); var id = _this._id + item.key; queue.items.push(onRenderItem(tslib_1.__assign(tslib_1.__assign({ id: id }, item), { index: index }), _this._onRenderItem)); queue.id = id; break; case SelectableOption_1.SelectableOptionMenuItemType.Divider: index > 0 && queue.items.push(onRenderItem(tslib_1.__assign(tslib_1.__assign({}, item), { index: index }), _this._onRenderItem)); queue.items.length > 0 && emptyQueue(); break; default: queue.items.push(onRenderItem(tslib_1.__assign(tslib_1.__assign({}, item), { index: index }), _this._onRenderItem)); } }; // Place options into the queue. Queue will be emptied anytime a Header or Divider is encountered props.options.forEach(function (item, index) { placeRenderedOptionIntoQueue(item, index); }); // Push remaining items into all renderedList queue.items.length > 0 && emptyQueue(); return React.createElement(React.Fragment, null, renderedList); }; _this._onRenderItem = function (item) { switch (item.itemType) { case SelectableOption_1.SelectableOptionMenuItemType.Divider: return _this._renderSeparator(item); case SelectableOption_1.SelectableOptionMenuItemType.Header: return _this._renderHeader(item); default: return _this._renderOption(item); } }; _this._renderOption = function (item) { var _a; var _b = _this.props, _c = _b.onRenderOption, onRenderOption = _c === void 0 ? _this._onRenderOption : _c, _d = _b.hoisted.selectedIndices, selectedIndices = _d === void 0 ? [] : _d; var isItemSelected = item.index !== undefined && selectedIndices ? selectedIndices.indexOf(item.index) > -1 : false; // select the right className based on the combination of selected/disabled var itemClassName = item.hidden // predicate: item hidden ? _this._classNames.dropdownItemHidden : isItemSelected && item.disabled === true // predicate: both selected and disabled ? _this._classNames.dropdownItemSelectedAndDisabled : isItemSelected // predicate: selected only ? _this._classNames.dropdownItemSelected : item.disabled === true // predicate: disabled only ? _this._classNames.dropdownItemDisabled : _this._classNames.dropdownItem; var title = item.title; // define the id and label id (for multiselect checkboxes) var id = _this._listId + item.index; var labelId = (_a = item.id) !== null && _a !== void 0 ? _a : id + '-label'; var multiSelectItemStyles = _this._classNames.subComponentStyles ? _this._classNames.subComponentStyles.multiSelectItem : undefined; return !_this.props.multiSelect ? (React.createElement(Button_1.CommandButton, { id: id, key: item.key, "data-index": item.index, "data-is-focusable": !item.disabled, disabled: item.disabled, className: itemClassName, onClick: _this._onItemClick(item), // eslint-disable-next-line react/jsx-no-bind onMouseEnter: _this._onItemMouseEnter.bind(_this, item), // eslint-disable-next-line react/jsx-no-bind onMouseLeave: _this._onMouseItemLeave.bind(_this, item), // eslint-disable-next-line react/jsx-no-bind onMouseMove: _this._onItemMouseMove.bind(_this, item), role: "option", "aria-selected": isItemSelected ? 'true' : 'false', ariaLabel: item.ariaLabel, title: title, "aria-posinset": _this._sizePosCache.positionInSet(item.index), "aria-setsize": _this._sizePosCache.optionSetSize }, onRenderOption(item, _this._onRenderOption))) : (React.createElement(Checkbox_1.Checkbox, { id: id, key: item.key, disabled: item.disabled, onChange: _this._onItemClick(item), inputProps: tslib_1.__assign({ 'aria-selected': isItemSelected, onMouseEnter: _this._onItemMouseEnter.bind(_this, item), onMouseLeave: _this._onMouseItemLeave.bind(_this, item), onMouseMove: _this._onItemMouseMove.bind(_this, item), role: 'option' }, { 'data-index': item.index, 'data-is-focusable': !(item.disabled || item.hidden), }), label: item.text, title: title, // eslint-disable-next-line react/jsx-no-bind onRenderLabel: _this._onRenderItemLabel.bind(_this, tslib_1.__assign(tslib_1.__assign({}, item), { id: labelId })), className: (0, Utilities_1.css)(itemClassName, 'is-multi-select'), checked: isItemSelected, styles: multiSelectItemStyles, ariaPositionInSet: !item.hidden ? _this._sizePosCache.positionInSet(item.index) : undefined, ariaSetSize: !item.hidden ? _this._sizePosCache.optionSetSize : undefined, ariaLabel: item.ariaLabel, ariaLabelledBy: item.ariaLabel ? undefined : labelId })); }; /** Render content of item (i.e. text/icon inside of button) */ _this._onRenderOption = function (item) { return React.createElement("span", { className: _this._classNames.dropdownOptionText }, item.text); }; /* * Render content of a multiselect item label. * Text within the label is aria-hidden, to prevent duplicate input/label exposure */ _this._onRenderMultiselectOption = function (item) { return (React.createElement("span", { id: item.id, "aria-hidden": "true", className: _this._classNames.dropdownOptionText }, item.text)); }; /** Render custom label for multiselect checkbox items */ _this._onRenderItemLabel = function (item) { var _a = _this.props.onRenderOption, onRenderOption = _a === void 0 ? _this._onRenderMultiselectOption : _a; return onRenderOption(item, _this._onRenderMultiselectOption); }; _this._onPositioned = function (positions) { if (_this._focusZone.current) { // Focusing an element can trigger a reflow. Making this wait until there is an animation // frame can improve perf significantly. _this._requestAnimationFrame(function () { var selectedIndices = _this.props.hoisted.selectedIndices; if (_this._focusZone.current) { if (!_this._hasBeenPositioned && selectedIndices && selectedIndices[0] && !_this.props.options[selectedIndices[0]].disabled) { var element = (0, Utilities_1.getDocument)().getElementById("".concat(_this._id, "-list").concat(selectedIndices[0])); if (element) { _this._focusZone.current.focusElement(element); } _this._hasBeenPositioned = true; } else { _this._focusZone.current.focus(); } } }); } if (!_this.state.calloutRenderEdge || _this.state.calloutRenderEdge !== positions.targetEdge) { _this.setState({ calloutRenderEdge: positions.targetEdge, }); } }; _this._onItemClick = function (item) { return function (event) { if (!item.disabled) { _this.setSelectedIndex(event, item.index); if (!_this.props.multiSelect) { // only close the callout when it's in single-select mode _this.setState({ isOpen: false, }); } } }; }; /** * Scroll handler for the callout to make sure the mouse events * for updating focus are not interacting during scroll */ _this._onScroll = function () { if (!_this._isScrollIdle && _this._scrollIdleTimeoutId !== undefined) { clearTimeout(_this._scrollIdleTimeoutId); _this._scrollIdleTimeoutId = undefined; } else { _this._isScrollIdle = false; } _this._scrollIdleTimeoutId = window.setTimeout(function () { _this._isScrollIdle = true; }, _this._scrollIdleDelay); }; _this._onMouseItemLeave = function (item, ev) { if (_this._shouldIgnoreMouseEvent()) { return; } /** * IE11 focus() method forces parents to scroll to top of element. * Edge and IE expose a setActive() function for focusable divs that * sets the page focus but does not scroll the parent element. */ if (_this._host.current) { if (_this._host.current.setActive) { try { _this._host.current.setActive(); } catch (e) { /* no-op */ } } else { _this._host.current.focus(); } } }; _this._onDismiss = function () { _this.setState({ isOpen: false }); }; _this._onDropdownBlur = function (ev) { // If Dropdown disabled do not proceed with this logic. var disabled = _this._isDisabled(); if (disabled) { return; } if (_this.state.isOpen) { // Do not call onBlur or update focus state when the callout is opened return; } _this.setState({ hasFocus: false }); if (_this.props.onBlur) { _this.props.onBlur(ev); } }; _this._onDropdownKeyDown = function (ev) { // If Dropdown disabled do not process any keyboard events. var disabled = _this._isDisabled(); if (disabled) { return; } // Take note if we are processing an alt (option) or meta (command) keydown. // See comment in _shouldHandleKeyUp for reasoning. _this._lastKeyDownWasAltOrMeta = _this._isAltOrMeta(ev); if (_this.props.onKeyDown) { _this.props.onKeyDown(ev); if (ev.defaultPrevented) { return; } } var newIndex; var selectedIndex = _this.props.hoisted.selectedIndices.length ? _this.props.hoisted.selectedIndices[0] : -1; var containsExpandCollapseModifier = ev.altKey || ev.metaKey; var isOpen = _this.state.isOpen; // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.enter: _this.setState({ isOpen: !isOpen, }); break; case Utilities_1.KeyCodes.escape: if (!isOpen) { return; } _this.setState({ isOpen: false, }); break; case Utilities_1.KeyCodes.up: if (containsExpandCollapseModifier) { if (isOpen) { _this.setState({ isOpen: false }); break; } return; } if (_this.props.multiSelect) { _this.setState({ isOpen: true }); } else if (!_this._isDisabled()) { newIndex = _this._moveIndex(ev, -1, selectedIndex - 1, selectedIndex); } break; case Utilities_1.KeyCodes.down: if (containsExpandCollapseModifier) { ev.stopPropagation(); ev.preventDefault(); } if ((containsExpandCollapseModifier && !isOpen) || _this.props.multiSelect) { _this.setState({ isOpen: true }); } else if (!_this._isDisabled()) { newIndex = _this._moveIndex(ev, 1, selectedIndex + 1, selectedIndex); } break; case Utilities_1.KeyCodes.home: if (!_this.props.multiSelect) { newIndex = _this._moveIndex(ev, 1, 0, selectedIndex); } break; case Utilities_1.KeyCodes.end: if (!_this.props.multiSelect) { newIndex = _this._moveIndex(ev, -1, _this.props.options.length - 1, selectedIndex); } break; case Utilities_1.KeyCodes.space: // event handled in _onDropdownKeyUp break; default: return; } if (newIndex !== selectedIndex) { ev.stopPropagation(); ev.preventDefault(); } }; _this._onDropdownKeyUp = function (ev) { // If Dropdown disabled do not process any keyboard events. var disabled = _this._isDisabled(); if (disabled) { return; } var shouldHandleKey = _this._shouldHandleKeyUp(ev); var isOpen = _this.state.isOpen; if (_this.props.onKeyUp) { _this.props.onKeyUp(ev); if (ev.defaultPrevented) { return; } } // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.space: _this.setState({ isOpen: !isOpen, }); break; default: if (shouldHandleKey && isOpen) { _this.setState({ isOpen: false }); } return; } ev.stopPropagation(); ev.preventDefault(); }; _this._onZoneKeyDown = function (ev) { var _a, _b; var elementToFocus; // Take note if we are processing an alt (option) or meta (command) keydown. // See comment in _shouldHandleKeyUp for reasoning. _this._lastKeyDownWasAltOrMeta = _this._isAltOrMeta(ev); var containsExpandCollapseModifier = ev.altKey || ev.metaKey; // eslint-disable-next-line deprecation/deprecation switch (ev.which) { case Utilities_1.KeyCodes.up: if (containsExpandCollapseModifier) { _this.setState({ isOpen: false }); } else { if (_this._host.current) { elementToFocus = (0, Utilities_1.getLastFocusable)(_this._host.current, _this._host.current.lastChild, true); } } break; // All directional keystrokes should be canceled when the zone is rendered. // This avoids the body scroll from reacting and thus dismissing the dropdown. case Utilities_1.KeyCodes.home: case Utilities_1.KeyCodes.end: case Utilities_1.KeyCodes.pageUp: case Utilities_1.KeyCodes.pageDown: break; case Utilities_1.KeyCodes.down: if (!containsExpandCollapseModifier && _this._host.current) { elementToFocus = (0, Utilities_1.getFirstFocusable)(_this._host.current, _this._host.current.firstChild, true); } break; case Utilities_1.KeyCodes.escape: _this.setState({ isOpen: false }); break; case Utilities_1.KeyCodes.tab: _this.setState({ isOpen: false }); var document_1 = (0, Utilities_1.getDocument)(); if (document_1) { if (ev.shiftKey) { (_a = (0, utilities_1.getPreviousElement)(document_1.body, _this._dropDown.current, false, false, true, true)) === null || _a === void 0 ? void 0 : _a.focus(); } else { (_b = (0, utilities_1.getNextElement)(document_1.body, _this._dropDown.current, false, false, true, true)) === null || _b === void 0 ? void 0 : _b.focus(); } } break; default: return; } if (elementToFocus) { elementToFocus.focus(); } ev.stopPropagation(); ev.preventDefault(); }; _this._onZoneKeyUp = function (ev) { var shouldHandleKey = _this._shouldHandleKeyUp(ev); if (shouldHandleKey && _this.state.isOpen) { _this.setState({ isOpen: false }); ev.preventDefault(); } }; _this._onDropdownClick = function (ev) { if (_this.props.onClick) { _this.props.onClick(ev); if (ev.defaultPrevented) { return; } } var isOpen = _this.state.isOpen; var disabled = _this._isDisabled(); if (!disabled && !_this._shouldOpenOnFocus()) { _this.setState({ isOpen: !isOpen, }); } _this._isFocusedByClick = false; // reset }; _this._onDropdownMouseDown = function () { _this._isFocusedByClick = true; }; _this._onFocus = function (ev) { var disabled = _this._isDisabled(); if (!disabled) { if (_this.props.onFocus) { _this.props.onFocus(ev); } var state = { hasFocus: true }; if (_this._shouldOpenOnFocus()) { state.isOpen = true; } _this.setState(state); } }; /** * Because the isDisabled prop is deprecated, we have had to repeat this logic all over the place. * This helper method avoids all the repetition. */ _this._isDisabled = function () { var disabled = _this.props.disabled; // eslint-disable-next-line deprecation/deprecation var isDisabled = _this.props.isDisabled; // Remove this deprecation workaround at 1.0.0 if (disabled === undefined) { disabled = isDisabled; } return disabled; }; _this._onRenderLabel = function (props) { var label = props.label, required = props.required, disabled = props.disabled; var labelStyles = _this._classNames.subComponentStyles ? _this._classNames.subComponentStyles.label : undefined; return label ? (React.createElement(Label_1.Label, { className: _this._classNames.label, id: _this._labelId, required: required, styles: labelStyles, disabled: disabled }, label)) : null; }; (0, Utilities_1.initializeComponentRef)(_this); var multiSelect = props.multiSelect, selectedKey = props.selectedKey, selectedKeys = props.selectedKeys, defaultSelectedKey = props.defaultSelectedKey, defaultSelectedKeys = props.defaultSelectedKeys, options = props.options; if (true) { (0, Utilities_1.warnDeprecations)(COMPONENT_NAME, props, { isDisabled: 'disabled', onChanged: 'onChange', placeHolder: 'placeholder', onRenderPlaceHolder: 'onRenderPlaceholder', }); (0, Utilities_1.warnMutuallyExclusive)(COMPONENT_NAME, props, { defaultSelectedKey: 'selectedKey', defaultSelectedKeys: 'selectedKeys', selectedKeys: 'selectedKey', }); if (multiSelect) { var warnMultiSelect = function (prop) { return (0, Utilities_1.warn)("Dropdown property '".concat(prop, "' cannot be used when 'multiSelect' is true. Use '").concat(prop, "s' instead.")); }; if (selectedKey !== undefined) { warnMultiSelect('selectedKey'); } if (defaultSelectedKey !== undefined) { warnMultiSelect('defaultSelectedKey'); } } else { var warnNotMultiSelect = function (prop) { return (0, Utilities_1.warn)("Dropdown property '".concat(prop, "s' cannot be used when 'multiSelect' is false/unset. Use '").concat(prop, "' instead.")); }; if (selectedKeys !== undefined) { warnNotMultiSelect('selectedKey'); } if (defaultSelectedKeys !== undefined) { warnNotMultiSelect('defaultSelectedKey'); } } } _this._id = props.id || (0, Utilities_1.getId)('Dropdown'); _this._labelId = _this._id + '-label'; _this._listId = _this._id + '-list'; _this._optionId = _this._id + '-option'; _this._isScrollIdle = true; _this._hasBeenPositioned = false; _this._sizePosCache.updateOptions(options); _this.state = { isOpen: false, hasFocus: false, calloutRenderEdge: undefined, }; return _this; } Object.defineProperty(DropdownInternal.prototype, "selectedOptions", { /** * All selected options */ get: function () { var _a = this.props, options = _a.options, selectedIndices = _a.hoisted.selectedIndices; return (0, SelectableOption_1.getAllSelectedOptions)(options, selectedIndices); }, enumerable: false, configurable: true }); DropdownInternal.prototype.componentWillUnmount = function () { clearTimeout(this._scrollIdleTimeoutId); }; DropdownInternal.prototype.componentDidUpdate = function (prevProps, prevState) { if (prevState.isOpen === true && this.state.isOpen === false) { this._gotMouseMove = false; this._hasBeenPositioned = false; if (this.props.onDismiss) { this.props.onDismiss(); } } }; DropdownInternal.prototype.render = function () { var id = this._id; var props = this.props; var className = props.className, label = props.label, options = props.options, ariaLabel = props.ariaLabel, required = props.required, errorMessage = props.errorMessage, propStyles = props.styles, theme = props.theme, panelProps = props.panelProps, calloutProps = props.calloutProps, _a = props.onRenderTitle, onRenderTitle = _a === void 0 ? this._getTitle : _a, _b = props.onRenderContainer, onRenderContainer = _b === void 0 ? this._onRenderContainer : _b, _c = props.onRenderCaretDown, onRenderCaretDown = _c === void 0 ? this._onRenderCaretDown : _c, _d = props.onRenderLabel, onRenderLabel = _d === void 0 ? this._onRenderLabel : _d, _e = props.onRenderItem, onRenderItem = _e === void 0 ? this._onRenderItem : _e, selectedIndices = props.hoisted.selectedIndices; var _f = this.state, isOpen = _f.isOpen, calloutRenderEdge = _f.calloutRenderEdge, hasFocus = _f.hasFocus; // eslint-disable-next-line deprecation/deprecation var onRenderPlaceholder = props.onRenderPlaceholder || props.onRenderPlaceHolder || this._getPlaceholder; // If our cached options are out of date update our cache if (options !== this._sizePosCache.cachedOptions) { this._sizePosCache.updateOptions(options); } var selectedOptions = (0, SelectableOption_1.getAllSelectedOptions)(options, selectedIndices); var divProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties); var disabled = this._isDisabled(); var errorMessageId = id + '-errorMessage'; this._classNames = getClassNames(propStyles, { theme: theme, className: className, hasError: !!(errorMessage && errorMessage.length > 0), hasLabel: !!label, isOpen: isOpen, required: required, disabled: disabled, isRenderingPlaceholder: !selectedOptions.length, panelClassName: panelProps ? panelProps.className : undefined, calloutClassName: calloutProps ? calloutProps.className : undefined, calloutRenderEdge: calloutRenderEdge, }); var hasErrorMessage = !!errorMessage && errorMessage.length > 0; return (React.createElement("div", { className: this._classNames.root, ref: this.props.hoisted.rootRef, "aria-owns": isOpen ? this._listId : undefined }, onRenderLabel(this.props, this._onRenderLabel), React.createElement("div", tslib_1.__assign({ "data-is-focusable": !disabled, "data-ktp-target": true, ref: this._dropDown, id: id, tabIndex: disabled ? -1 : 0, role: "combobox", "aria-haspopup": "listbox", "aria-expanded": isOpen ? 'true' : 'false', "aria-label": ariaLabel, "aria-labelledby": label && !ariaLabel ? (0, Utilities_1.mergeAriaAttributeValues)(this._labelId, this._optionId) : undefined, "aria-describedby": hasErrorMessage ? this._id + '-errorMessage' : undefined, "aria-required": required, "aria-disabled": disabled, "aria-controls": isOpen ? this._listId : undefined }, divProps, { className: this._classNames.dropdown, onBlur: this._onDropdownBlur, onKeyDown: this._onDropdownKeyDown, onKeyUp: this._onDropdownKeyUp, onClick: this._onDropdownClick, onMouseDown: this._onDropdownMouseDown, onFocus: this._onFocus }), React.createElement("span", { id: this._optionId, className: this._classNames.title, "aria-live": hasFocus ? 'polite' : undefined, "aria-atomic": hasFocus ? true : undefined, "aria-invalid": hasErrorMessage }, // If option is selected render title, otherwise render the placeholder text selectedOptions.length ? onRenderTitle(selectedOptions, this._onRenderTitle) : onRenderPlaceholder(props, this._onRenderPlaceholder)), React.createElement("span", { className: this._classNames.caretDownWrapper }, onRenderCaretDown(props, this._onRenderCaretDown))), isOpen && onRenderContainer(tslib_1.__assign(tslib_1.__assign({}, props), { onDismiss: this._onDismiss, onRenderItem: onRenderItem }), this._onRenderContainer), hasErrorMessage && (React.createElement("div", { role: "alert", id: errorMessageId, className: this._classNames.errorMessage }, errorMessage)))); }; DropdownInternal.prototype.focus = function (shouldOpenOnFocus) { if (this._dropDown.current) { this._dropDown.current.focus(); if (shouldOpenOnFocus) { this.setState({ isOpen: true, }); } } }; DropdownInternal.prototype.setSelectedIndex = function (event, index) { var _a = this.props, options = _a.options, selectedKey = _a.selectedKey, selectedKeys = _a.selectedKeys, multiSelect = _a.multiSelect, notifyOnReselect = _a.notifyOnReselect, _b = _a.hoisted.selectedIndices, selectedIndices = _b === void 0 ? [] : _b; var checked = selectedIndices ? selectedIndices.indexOf(index) > -1 : false; var newIndexes = []; index = Math.max(0, Math.min(options.length - 1, index)); // If this is a controlled component then no state change should take place. if (selectedKey !== undefined || selectedKeys !== undefined) { this._onChange(event, options, index, checked, multiSelect); return; } if (!multiSelect && !notifyOnReselect && index === selectedIndices[0]) { return; } else if (multiSelect) { newIndexes = selectedIndices ? this._copyArray(selectedIndices) : []; if (checked) { var position = newIndexes.indexOf(index); if (position > -1) { // unchecked the current one newIndexes.splice(position, 1); } } else { // add the new selected index into the existing one newIndexes.push(index); } } else { // Set the selected option if this is an uncontrolled component newIndexes = [index]; } event.persist(); // Call onChange after state is updated this.props.hoisted.setSelectedIndices(newIndexes); this._onChange(event, options, index, checked, multiSelect); }; DropdownInternal.prototype._copyArray = function (array) { var newArray = []; for (var _i = 0, array_1 = array; _i < array_1.length; _i++) { var element = array_1[_i]; newArray.push(element); } return newArray; }; /** * Finds the next valid Dropdown option and sets the selected index to it. * @param stepValue - Value of how many items the function should traverse. Should be -1 or 1. * @param index - Index of where the search should start * @param selectedIndex - The selectedIndex Dropdown's state * @returns The next valid dropdown option's index */ DropdownInternal.prototype._moveIndex = function (event, stepValue, index, selectedIndex) { var options = this.props.options; // Return selectedIndex if nothing has changed or options is empty if (selectedIndex === index || options.length === 0) { return selectedIndex; } // If the user is pressing the up or down key we want to make // sure that the dropdown cycles through the options without // causing the screen to scroll. In _onDropdownKeyDown // at the very end is a check to see if newIndex !== selectedIndex. // If the index is less than 0 and we set it back to 0, then // newIndex will equal selectedIndex and not stop the action // of the key press happening and vice versa for indexes greater // than or equal to the options length. if (index >= options.length) { index = 0; } else if (index < 0) { index = options.length - 1; } var stepCounter = 0; // If current index is a header or divider, or disabled, increment by step while (options[index].itemType === Dropdown_types_1.DropdownMenuItemType.Header || options[index].itemType === Dropdown_types_1.DropdownMenuItemType.Divider || options[index].disabled) { // If stepCounter exceeds length of options, then return selectedIndex (-1) if (stepCounter >= options.length) { return selectedIndex; } // If index + stepValue is out of bounds, wrap around if (index + stepValue < 0) { index = options.length; } else if (index + stepValue >= options.length) { index = -1; } index = index + stepValue; stepCounter++; } this.setSelectedIndex(event, index); return index; }; /** Wrap item list in a FocusZone */ DropdownInternal.prototype._renderFocusableList = function (props) { var _a = props.onRenderList, onRenderList = _a === void 0 ? this._onRenderList : _a, label = props.label, ariaLabel = props.ariaLabel, multiSelect = props.multiSelect; return (React.createElement("div", { className: this._classNames.dropdownItemsWrapper, onKeyDown: this._onZoneKeyDown, onKeyUp: this._onZoneKeyUp, ref: this._host, tabIndex: 0 }, React.createElement(FocusZone_1.FocusZone, { ref: this._focusZone, direction: FocusZone_1.FocusZoneDirection.vertical, id: this._listId, className: this._classNames.dropdownItems, role: "listbox", "aria-label": ariaLabel, "aria-labelledby": label && !ariaLabel ? this._labelId : undefined, "aria-multiselectable": multiSelect }, onRenderList(props, this._onRenderList)))); }; DropdownInternal.prototype._renderSeparator = function (item) { var index = item.index, key = item.key; var separatorClassName = item.hidden ? this._classNames.dropdownDividerHidden : this._classNames.dropdownDivider; if (index > 0) { return React.createElement("div", { role: "presentation", key: key, className: separatorClassName }); } return null; }; DropdownInternal.prototype._renderHeader = function (item) { var _a = this.props.onRenderOption, onRenderOption = _a === void 0 ? this._onRenderOption : _a; var key = item.key, id = item.id; var headerClassName = item.hidden ? this._classNames.dropdownItemHeaderHidden : this._classNames.dropdownItemHeader; return (React.createElement("div", { id: id, key: key, className: headerClassName }, onRenderOption(item, this._onRenderOption))); }; DropdownInternal.prototype._onItemMouseEnter = function (item, ev) { if (this._shouldIgnoreMouseEvent()) { return; } var targetElement = ev.currentTarget; targetElement.focus(); }; DropdownInternal.prototype._onItemMouseMove = function (item, ev) { var targetElement = ev.currentTarget; this._gotMouseMove = true; if (!this._isScrollIdle || document.activeElement === targetElement) { return; } targetElement.focus(); }; DropdownInternal.prototype._shouldIgnoreMouseEvent = function () { return !this._isScrollIdle || !this._gotMouseMove; }; /** * Returns true if the key for the event is alt (Mac option) or meta (Mac command). */ DropdownInternal.prototype._isAltOrMeta = function (ev) { // eslint-disable-next-line deprecation/deprecation return ev.which === Utilities_1.KeyCodes.alt || ev.key === 'Meta'; }; /** * We close the menu on key up only if ALL of the following are true: * - Most recent key down was alt or meta (command) * - The alt/meta key down was NOT followed by some other key (such as down/up arrow to * expand/collapse the menu) * - We're not on a Mac (or iOS) * * This is because on Windows, pressing alt moves focus to the application menu bar or similar, * closing any open context menus. There is not a similar behavior on Macs. */ DropdownInternal.prototype._shouldHandleKeyUp = function (ev) { var keyPressIsAltOrMetaAlone = this._lastKeyDownWasAltOrMeta && this._isAltOrMeta(ev); this._lastKeyDownWasAltOrMeta = false; return !!keyPressIsAltOrMetaAlone && !((0, Utilities_1.isMac)() || (0, Utilities_1.isIOS)()); }; /** * Returns true if dropdown should set to open on focus. * Otherwise, isOpen state should be toggled on click */ DropdownInternal.prototype._shouldOpenOnFocus = function () { var hasFocus = this.state.hasFocus; var openOnKeyboardFocus = this.props.openOnKeyboardFocus; return !this._isFocusedByClick && openOnKeyboardFocus === true && !hasFocus; }; DropdownInternal.defaultProps = { options: [], }; return DropdownInternal; }(React.Component)); //# sourceMappingURL=Dropdown.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Dropdown = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Dropdown_base_1 = __webpack_require__(/*! ./Dropdown.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.base.js"); var Dropdown_styles_1 = __webpack_require__(/*! ./Dropdown.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.styles.js"); exports.Dropdown = (0, Utilities_1.styled)(Dropdown_base_1.DropdownBase, Dropdown_styles_1.getStyles, undefined, { scope: 'Dropdown', }); exports.Dropdown.displayName = 'Dropdown'; //# sourceMappingURL=Dropdown.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.styles.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.styles.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; var _a, _b, _c, _d; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Positioning_1 = __webpack_require__(/*! ../../Positioning */ "./node_modules/@fluentui/react/lib-commonjs/Positioning.js"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { root: 'ms-Dropdown-container', label: 'ms-Dropdown-label', dropdown: 'ms-Dropdown', title: 'ms-Dropdown-title', caretDownWrapper: 'ms-Dropdown-caretDownWrapper', caretDown: 'ms-Dropdown-caretDown', callout: 'ms-Dropdown-callout', panel: 'ms-Dropdown-panel', dropdownItems: 'ms-Dropdown-items', dropdownItem: 'ms-Dropdown-item', dropdownDivider: 'ms-Dropdown-divider', dropdownOptionText: 'ms-Dropdown-optionText', dropdownItemHeader: 'ms-Dropdown-header', titleIsPlaceHolder: 'ms-Dropdown-titleIsPlaceHolder', titleHasError: 'ms-Dropdown-title--hasError', }; var DROPDOWN_HEIGHT = 32; var DROPDOWN_ITEM_HEIGHT = 36; var highContrastAdjustMixin = (_a = {}, _a["".concat(Styling_1.HighContrastSelector, ", ").concat(Styling_1.HighContrastSelectorWhite.replace('@media ', ''))] = tslib_1.__assign({}, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a); var highContrastItemAndTitleStateMixin = { selectors: tslib_1.__assign((_b = {}, _b[Styling_1.HighContrastSelector] = { backgroundColor: 'Highlight', borderColor: 'Highlight', color: 'HighlightText', }, _b['.ms-Checkbox-checkbox'] = (_c = {}, _c[Styling_1.HighContrastSelector] = { borderColor: 'HighlightText', }, _c), _b), highContrastAdjustMixin), }; var highContrastBorderState = { selectors: (_d = {}, _d[Styling_1.HighContrastSelector] = { borderColor: 'Highlight', }, _d), }; var MinimumScreenSelector = (0, Styling_1.getScreenSelector)(0, Styling_1.ScreenWidthMinMedium); var getStyles = function (props) { var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m; var theme = props.theme, hasError = props.hasError, hasLabel = props.hasLabel, className = props.className, isOpen = props.isOpen, disabled = props.disabled, required = props.required, isRenderingPlaceholder = props.isRenderingPlaceholder, panelClassName = props.panelClassName, calloutClassName = props.calloutClassName, calloutRenderEdge = props.calloutRenderEdge; if (!theme) { throw new Error('theme is undefined or null in base Dropdown getStyles function.'); } var globalClassnames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var palette = theme.palette, semanticColors = theme.semanticColors, effects = theme.effects, fonts = theme.fonts; var rootHoverFocusActiveSelectorNeutralDarkMixin = { color: semanticColors.menuItemTextHovered, }; var rootHoverFocusActiveSelectorNeutralPrimaryMixin = { color: semanticColors.menuItemText, }; var borderColorError = { borderColor: semanticColors.errorText, }; var dropdownItemStyle = [ globalClassnames.dropdownItem, { backgroundColor: 'transparent', boxSizing: 'border-box', cursor: 'pointer', display: 'flex', alignItems: 'center', padding: '0 8px', width: '100%', minHeight: DROPDOWN_ITEM_HEIGHT, lineHeight: 20, height: 0, position: 'relative', border: '1px solid transparent', borderRadius: 0, wordWrap: 'break-word', overflowWrap: 'break-word', textAlign: 'left', '.ms-Button-flexContainer': { width: '100%', }, }, ]; var dropdownHeaderStyle = [ globalClassnames.dropdownItemHeader, tslib_1.__assign(tslib_1.__assign({}, fonts.medium), { fontWeight: Styling_1.FontWeights.semibold, color: semanticColors.menuHeader, background: 'none', backgroundColor: 'transparent', border: 'none', height: DROPDOWN_ITEM_HEIGHT, lineHeight: DROPDOWN_ITEM_HEIGHT, cursor: 'default', padding: '0 8px', userSelect: 'none', textAlign: 'left', selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'GrayText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _a) }), ]; var selectedItemBackgroundColor = semanticColors.menuItemBackgroundPressed; var itemSelectors = function (isSelected) { var _a, _b; if (isSelected === void 0) { isSelected = false; } return { selectors: (_a = { '&:hover': [ { color: semanticColors.menuItemTextHovered, backgroundColor: !isSelected ? semanticColors.menuItemBackgroundHovered : selectedItemBackgroundColor, }, highContrastItemAndTitleStateMixin, ], '&.is-multi-select:hover': [ { backgroundColor: !isSelected ? 'transparent' : selectedItemBackgroundColor }, highContrastItemAndTitleStateMixin, ], '&:active:hover': [ { color: semanticColors.menuItemTextHovered, backgroundColor: !isSelected ? semanticColors.menuItemBackgroundPressed : semanticColors.menuItemBackgroundHovered, }, highContrastItemAndTitleStateMixin, ] }, _a[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus:after")] = (_b = { left: 0, top: 0, bottom: 0, right: 0 }, _b[Styling_1.HighContrastSelector] = { inset: '2px', }, _b), _a[Styling_1.HighContrastSelector] = { border: 'none', }, _a), }; }; var dropdownItemSelected = tslib_1.__spreadArray(tslib_1.__spreadArray([], dropdownItemStyle, true), [ { backgroundColor: selectedItemBackgroundColor, color: semanticColors.menuItemTextHovered, }, itemSelectors(true), highContrastItemAndTitleStateMixin, ], false); var dropdownItemDisabled = tslib_1.__spreadArray(tslib_1.__spreadArray([], dropdownItemStyle, true), [ { color: semanticColors.disabledText, cursor: 'default', selectors: (_b = {}, _b[Styling_1.HighContrastSelector] = { color: 'GrayText', border: 'none', }, _b), }, ], false); var titleOpenBorderRadius = calloutRenderEdge === Positioning_1.RectangleEdge.bottom ? "".concat(effects.roundedCorner2, " ").concat(effects.roundedCorner2, " 0 0") : "0 0 ".concat(effects.roundedCorner2, " ").concat(effects.roundedCorner2); var calloutOpenBorderRadius = calloutRenderEdge === Positioning_1.RectangleEdge.bottom ? "0 0 ".concat(effects.roundedCorner2, " ").concat(effects.roundedCorner2) : "".concat(effects.roundedCorner2, " ").concat(effects.roundedCorner2, " 0 0"); return { root: [globalClassnames.root, className], label: globalClassnames.label, dropdown: [ globalClassnames.dropdown, Styling_1.normalize, fonts.medium, { color: semanticColors.menuItemText, borderColor: semanticColors.focusBorder, position: 'relative', outline: 0, userSelect: 'none', selectors: (_c = {}, _c['&:hover .' + globalClassnames.title] = [ !disabled && rootHoverFocusActiveSelectorNeutralDarkMixin, { borderColor: isOpen ? palette.neutralSecondary : palette.neutralPrimary }, highContrastBorderState, ], _c['&:focus .' + globalClassnames.title] = [ !disabled && rootHoverFocusActiveSelectorNeutralDarkMixin, { selectors: (_d = {}, _d[Styling_1.HighContrastSelector] = { color: 'Highlight' }, _d) }, ], _c['&:focus:after'] = [ { pointerEvents: 'none', content: "''", position: 'absolute', boxSizing: 'border-box', top: '0px', left: '0px', width: '100%', height: '100%', // see https://github.com/microsoft/fluentui/pull/9182 for semantic color disc border: !disabled ? "2px solid ".concat(palette.themePrimary) : 'none', borderRadius: '2px', selectors: (_e = {}, _e[Styling_1.HighContrastSelector] = { color: 'Highlight', }, _e), }, ], _c['&:active .' + globalClassnames.title] = [ !disabled && rootHoverFocusActiveSelectorNeutralDarkMixin, { borderColor: palette.themePrimary }, highContrastBorderState, ], _c['&:hover .' + globalClassnames.caretDown] = !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, _c['&:focus .' + globalClassnames.caretDown] = [ !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, { selectors: (_f = {}, _f[Styling_1.HighContrastSelector] = { color: 'Highlight' }, _f) }, ], _c['&:active .' + globalClassnames.caretDown] = !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, _c['&:hover .' + globalClassnames.titleIsPlaceHolder] = !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, _c['&:focus .' + globalClassnames.titleIsPlaceHolder] = !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, _c['&:active .' + globalClassnames.titleIsPlaceHolder] = !disabled && rootHoverFocusActiveSelectorNeutralPrimaryMixin, _c['&:hover .' + globalClassnames.titleHasError] = borderColorError, _c['&:active .' + globalClassnames.titleHasError] = borderColorError, _c), }, isOpen && 'is-open', disabled && 'is-disabled', required && 'is-required', required && !hasLabel && { selectors: (_g = { ':before': { content: "'*'", color: semanticColors.errorText, position: 'absolute', top: -5, right: -10, } }, _g[Styling_1.HighContrastSelector] = { selectors: { ':after': { right: -14, // moving the * 4 pixel to right to alleviate border clipping in HC mode. }, }, }, _g), }, ], title: [ globalClassnames.title, Styling_1.normalize, { backgroundColor: semanticColors.inputBackground, borderWidth: 1, borderStyle: 'solid', borderColor: semanticColors.inputBorder, borderRadius: isOpen ? titleOpenBorderRadius : effects.roundedCorner2, cursor: 'pointer', display: 'block', height: DROPDOWN_HEIGHT, lineHeight: DROPDOWN_HEIGHT - 2, padding: "0 28px 0 8px", position: 'relative', overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis', }, isRenderingPlaceholder && [globalClassnames.titleIsPlaceHolder, { color: semanticColors.inputPlaceholderText }], hasError && [globalClassnames.titleHasError, borderColorError], disabled && { backgroundColor: semanticColors.disabledBackground, border: 'none', color: semanticColors.disabledText, cursor: 'default', selectors: (_h = {}, _h[Styling_1.HighContrastSelector] = tslib_1.__assign({ border: '1px solid GrayText', color: 'GrayText', backgroundColor: 'Window' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _h), }, ], caretDownWrapper: [ globalClassnames.caretDownWrapper, { height: DROPDOWN_HEIGHT, lineHeight: DROPDOWN_HEIGHT - 2, paddingTop: 1, position: 'absolute', right: 8, top: 0, }, !disabled && { cursor: 'pointer', }, ], caretDown: [ globalClassnames.caretDown, { color: palette.neutralSecondary, fontSize: fonts.small.fontSize, pointerEvents: 'none' }, disabled && { color: semanticColors.disabledText, selectors: (_j = {}, _j[Styling_1.HighContrastSelector] = tslib_1.__assign({ color: 'GrayText' }, (0, Styling_1.getHighContrastNoAdjustStyle)()), _j), }, ], errorMessage: tslib_1.__assign(tslib_1.__assign({ color: semanticColors.errorText }, theme.fonts.small), { paddingTop: 5 }), callout: [ globalClassnames.callout, { boxShadow: effects.elevation8, borderRadius: calloutOpenBorderRadius, selectors: (_k = {}, _k['.ms-Callout-main'] = { borderRadius: calloutOpenBorderRadius }, _k), }, calloutClassName, ], dropdownItemsWrapper: { selectors: { '&:focus': { outline: 0 } } }, dropdownItems: [globalClassnames.dropdownItems, { display: 'block' }], dropdownItem: tslib_1.__spreadArray(tslib_1.__spreadArray([], dropdownItemStyle, true), [itemSelectors()], false), dropdownItemSelected: dropdownItemSelected, dropdownItemDisabled: dropdownItemDisabled, dropdownItemSelectedAndDisabled: [dropdownItemSelected, dropdownItemDisabled, { backgroundColor: 'transparent' }], dropdownItemHidden: tslib_1.__spreadArray(tslib_1.__spreadArray([], dropdownItemStyle, true), [{ display: 'none' }], false), dropdownDivider: [globalClassnames.dropdownDivider, { height: 1, backgroundColor: semanticColors.bodyDivider }], dropdownDividerHidden: [globalClassnames.dropdownDivider, { display: 'none' }], dropdownOptionText: [ globalClassnames.dropdownOptionText, { overflow: 'hidden', whiteSpace: 'nowrap', textOverflow: 'ellipsis', minWidth: 0, maxWidth: '100%', wordWrap: 'break-word', overflowWrap: 'break-word', margin: '1px', }, ], dropdownItemHeader: dropdownHeaderStyle, dropdownItemHeaderHidden: tslib_1.__spreadArray(tslib_1.__spreadArray([], dropdownHeaderStyle, true), [{ display: 'none' }], false), subComponentStyles: { label: { root: { display: 'inline-block' } }, multiSelectItem: { root: { padding: 0, }, label: { alignSelf: 'stretch', padding: '0 8px', width: '100%', }, input: { selectors: (_l = {}, _l[".".concat(Utilities_1.IsFocusVisibleClassName, " &:focus + label::before")] = { outlineOffset: '0px', }, _l), }, }, panel: { root: [panelClassName], main: { selectors: (_m = {}, // In case of extra small screen sizes _m[MinimumScreenSelector] = { // panelWidth xs width: 272, }, _m), }, contentInner: { padding: '0 0 20px' }, }, }, }; }; exports.getStyles = getStyles; //# sourceMappingURL=Dropdown.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.types.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.types.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DropdownMenuItemType = void 0; var SelectableOption_1 = __webpack_require__(/*! ../../SelectableOption */ "./node_modules/@fluentui/react/lib-commonjs/SelectableOption.js"); Object.defineProperty(exports, "DropdownMenuItemType", ({ enumerable: true, get: function () { return SelectableOption_1.SelectableOptionMenuItemType; } })); //# sourceMappingURL=Dropdown.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/index.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Dropdown */ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Dropdown.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Dropdown.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/utilities/DropdownSizePosCache.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/utilities/DropdownSizePosCache.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.DropdownSizePosCache = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Dropdown_types_1 = __webpack_require__(/*! ../Dropdown.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Dropdown/Dropdown.types.js"); /** * A utility class to cache size and position in cache. * * Dropdown options has non-selectable display types. It is therefore not cheap to determine * the total number of actual selectable options as well as the position an option is in the * list of options - O(n) cost for each lookup. * * Given that we potentially have to make this determination on every single render pass, this * cache should provide a little bit of relief. */ var DropdownSizePosCache = /** @class */ (function () { function DropdownSizePosCache() { this._size = 0; } /** * Invalidates the cache and recalculate the size of selectable options. */ DropdownSizePosCache.prototype.updateOptions = function (options) { var displayOnlyOptionsCache = []; var notSelectableOptionsCache = []; var size = 0; for (var i = 0; i < options.length; i++) { var _a = options[i], itemType = _a.itemType, hidden = _a.hidden; if (itemType === Dropdown_types_1.DropdownMenuItemType.Divider || itemType === Dropdown_types_1.DropdownMenuItemType.Header) { displayOnlyOptionsCache.push(i); notSelectableOptionsCache.push(i); } else if (hidden) { notSelectableOptionsCache.push(i); } else { size++; } } this._size = size; this._displayOnlyOptionsCache = displayOnlyOptionsCache; this._notSelectableOptionsCache = notSelectableOptionsCache; this._cachedOptions = tslib_1.__spreadArray([], options, true); }; Object.defineProperty(DropdownSizePosCache.prototype, "optionSetSize", { /** * The size of all the selectable options. */ get: function () { return this._size; }, enumerable: false, configurable: true }); Object.defineProperty(DropdownSizePosCache.prototype, "cachedOptions", { /** * The chached options array. */ get: function () { return this._cachedOptions; }, enumerable: false, configurable: true }); /** * Returns the position of this option element relative to the full set of selectable option elements. * Note: the first selectable element is position 1 in the set. * @param index The raw index of the option element. */ DropdownSizePosCache.prototype.positionInSet = function (index) { if (index === undefined) { return undefined; } // we could possibly memoize this too but this should be good enough, most of the time (the expectation is that // when you have a lot of options, the selectable options will heavily dominate over the non-selectable options. var offset = 0; while (index > this._notSelectableOptionsCache[offset]) { offset++; } if (this._displayOnlyOptionsCache[offset] === index) { throw new Error("Unexpected: Option at index ".concat(index, " is not a selectable element.")); } if (this._notSelectableOptionsCache[offset] === index) { return undefined; } return index - offset + 1; }; return DropdownSizePosCache; }()); exports.DropdownSizePosCache = DropdownSizePosCache; //# sourceMappingURL=DropdownSizePosCache.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/BaseExtendedPicker.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/BaseExtendedPicker.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BaseExtendedPicker = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Autofill_1 = __webpack_require__(/*! ../../Autofill */ "./node_modules/@fluentui/react/lib-commonjs/Autofill.js"); var stylesImport = __webpack_require__(/*! ./BaseExtendedPicker.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/BaseExtendedPicker.scss.js"); var FocusZone_1 = __webpack_require__(/*! ../../FocusZone */ "./node_modules/@fluentui/react/lib-commonjs/FocusZone.js"); var Selection_1 = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib-commonjs/Selection.js"); var styles = stylesImport; var BaseExtendedPicker = /** @class */ (function (_super) { tslib_1.__extends(BaseExtendedPicker, _super); function BaseExtendedPicker(basePickerProps) { var _this = _super.call(this, basePickerProps) || this; _this.floatingPicker = React.createRef(); _this.selectedItemsList = React.createRef(); _this.root = React.createRef(); _this.input = React.createRef(); _this.onSelectionChange = function () { _this.forceUpdate(); }; _this.onInputChange = function (value, composing) { // We don't want to update the picker's suggestions when the input is still being composed if (!composing) { _this.setState({ queryString: value }); if (_this.floatingPicker.current) { _this.floatingPicker.current.onQueryStringChanged(value); } } }; _this.onInputFocus = function (ev) { if (_this.selectedItemsList.current) { _this.selectedItemsList.current.unselectAll(); } if (_this.props.inputProps && _this.props.inputProps.onFocus) { _this.props.inputProps.onFocus(ev); } }; _this.onInputClick = function (ev) { if (_this.selectedItemsList.current) { _this.selectedItemsList.current.unselectAll(); } if (_this.floatingPicker.current && _this.inputElement) { // Update the value if the input value is empty or is different than the current inputText from the floatingPicker var shoudUpdateValue = _this.inputElement.value === '' || _this.inputElement.value !== _this.floatingPicker.current.inputText; _this.floatingPicker.current.showPicker(shoudUpdateValue); } }; // This is protected because we may expect the backspace key to work differently in a different kind of picker. // This lets the subclass override it and provide it's own onBackspace. For an example see the BasePickerListBelow _this.onBackspace = function (ev) { // eslint-disable-next-line deprecation/deprecation if (ev.which !== Utilities_1.KeyCodes.backspace) { return; } if (_this.selectedItemsList.current && _this.items.length) { if (_this.input.current && !_this.input.current.isValueSelected && _this.input.current.inputElement === ev.currentTarget.ownerDocument.activeElement && _this.input.current.cursorLocation === 0) { if (_this.floatingPicker.current) { _this.floatingPicker.current.hidePicker(); } ev.preventDefault(); _this.selectedItemsList.current.removeItemAt(_this.items.length - 1); _this._onSelectedItemsChanged(); } else if (_this.selectedItemsList.current.hasSelectedItems()) { if (_this.floatingPicker.current) { _this.floatingPicker.current.hidePicker(); } ev.preventDefault(); _this.selectedItemsList.current.removeSelectedItems(); _this._onSelectedItemsChanged(); } } }; _this.onCopy = function (ev) { if (_this.selectedItemsList.current) { // Pass it down into the selected items list _this.selectedItemsList.current.onCopy(ev); } }; _this.onPaste = function (ev) { if (_this.props.onPaste) { var inputText = ev.clipboardData.getData('Text'); ev.preventDefault(); _this.props.onPaste(inputText); } }; _this._onSuggestionSelected = function (item) { var currentRenderedQueryString = _this.props.currentRenderedQueryString; var queryString = _this.state.queryString; if (currentRenderedQueryString === undefined || currentRenderedQueryString === queryString) { var processedItem = _this.props.onItemSelected ? _this.props.onItemSelected(item) : item; if (processedItem === null) { return; } var processedItemObject = processedItem; var processedItemPromiseLike = processedItem; var newItem_1; if (processedItemPromiseLike && processedItemPromiseLike.then) { processedItemPromiseLike.then(function (resolvedProcessedItem) { newItem_1 = resolvedProcessedItem; _this._addProcessedItem(newItem_1); }); } else { newItem_1 = processedItemObject; _this._addProcessedItem(newItem_1); } } }; _this._onSelectedItemsChanged = function () { _this.focus(); }; /** * The floating picker is the source of truth for if the menu has been opened or not. * * Because this isn't tracked inside the state of this component, we need to * force an update here to keep the rendered output that depends on the picker being open * in sync with the state * * Called when the suggestions is shown or closed */ _this._onSuggestionsShownOrHidden = function () { _this.forceUpdate(); }; (0, Utilities_1.initializeComponentRef)(_this); _this.selection = new Selection_1.Selection({ onSelectionChanged: function () { return _this.onSelectionChange(); } }); _this.state = { queryString: '', }; return _this; } Object.defineProperty(BaseExtendedPicker.prototype, "items", { get: function () { var _a, _b, _c, _d; return (_d = (_c = (_a = this.props.selectedItems) !== null && _a !== void 0 ? _a : (_b = this.selectedItemsList.current) === null || _b === void 0 ? void 0 : _b.items) !== null && _c !== void 0 ? _c : this.props.defaultSelectedItems) !== null && _d !== void 0 ? _d : null; }, enumerable: false, configurable: true }); BaseExtendedPicker.prototype.componentDidMount = function () { this.forceUpdate(); }; BaseExtendedPicker.prototype.focus = function () { if (this.input.current) { this.input.current.focus(); } }; BaseExtendedPicker.prototype.clearInput = function () { if (this.input.current) { this.input.current.clear(); } }; Object.defineProperty(BaseExtendedPicker.prototype, "inputElement", { get: function () { return this.input.current && this.input.current.inputElement; }, enumerable: false, configurable: true }); Object.defineProperty(BaseExtendedPicker.prototype, "highlightedItems", { get: function () { return this.selectedItemsList.current ? this.selectedItemsList.current.highlightedItems() : []; }, enumerable: false, configurable: true }); BaseExtendedPicker.prototype.render = function () { var _a = this.props, className = _a.className, inputProps = _a.inputProps, disabled = _a.disabled, focusZoneProps = _a.focusZoneProps; var activeDescendant = this.floatingPicker.current && this.floatingPicker.current.currentSelectedSuggestionIndex !== -1 ? 'sug-' + this.floatingPicker.current.currentSelectedSuggestionIndex : undefined; var isExpanded = this.floatingPicker.current ? this.floatingPicker.current.isSuggestionsShown : false; return (React.createElement("div", { ref: this.root, className: (0, Utilities_1.css)('ms-BasePicker ms-BaseExtendedPicker', className ? className : ''), onKeyDown: this.onBackspace, onCopy: this.onCopy }, React.createElement(FocusZone_1.FocusZone, tslib_1.__assign({ direction: FocusZone_1.FocusZoneDirection.bidirectional }, focusZoneProps), React.createElement(Selection_1.SelectionZone, { selection: this.selection, selectionMode: Selection_1.SelectionMode.multiple }, React.createElement("div", { className: (0, Utilities_1.css)('ms-BasePicker-text', styles.pickerText), role: 'list' }, this.props.headerComponent, this.renderSelectedItemsList(), this.canAddItems() && (React.createElement(Autofill_1.Autofill, tslib_1.__assign({}, inputProps, { className: (0, Utilities_1.css)('ms-BasePicker-input', styles.pickerInput), ref: this.input, onFocus: this.onInputFocus, onClick: this.onInputClick, onInputValueChange: this.onInputChange, "aria-activedescendant": activeDescendant, "aria-owns": isExpanded ? 'suggestion-list' : undefined, "aria-expanded": isExpanded, "aria-haspopup": "true", role: "combobox", disabled: disabled, onPaste: this.onPaste })))))), this.renderFloatingPicker())); }; Object.defineProperty(BaseExtendedPicker.prototype, "floatingPickerProps", { get: function () { return this.props.floatingPickerProps; }, enumerable: false, configurable: true }); Object.defineProperty(BaseExtendedPicker.prototype, "selectedItemsListProps", { get: function () { return this.props.selectedItemsListProps; }, enumerable: false, configurable: true }); BaseExtendedPicker.prototype.canAddItems = function () { var itemLimit = this.props.itemLimit; return itemLimit === undefined || this.items.length < itemLimit; }; BaseExtendedPicker.prototype.renderFloatingPicker = function () { var FloatingPicker = this.props.onRenderFloatingPicker; return (React.createElement(FloatingPicker, tslib_1.__assign({ componentRef: this.floatingPicker, onChange: this._onSuggestionSelected, onSuggestionsHidden: this._onSuggestionsShownOrHidden, onSuggestionsShown: this._onSuggestionsShownOrHidden, inputElement: this.input.current ? this.input.current.inputElement : undefined, selectedItems: this.items, suggestionItems: this.props.suggestionItems ? this.props.suggestionItems : undefined }, this.floatingPickerProps))); }; BaseExtendedPicker.prototype.renderSelectedItemsList = function () { var SelectedItems = this.props.onRenderSelectedItems; return (React.createElement(SelectedItems, tslib_1.__assign({ componentRef: this.selectedItemsList, selection: this.selection, selectedItems: this.props.selectedItems ? this.props.selectedItems : undefined, onItemsDeleted: this.props.selectedItems ? this.props.onItemsRemoved : undefined }, this.selectedItemsListProps))); }; BaseExtendedPicker.prototype._addProcessedItem = function (newItem) { // If this is a controlled component, call the on item selected callback // Otherwise add it to the selectedItemsList if (this.props.onItemAdded) { this.props.onItemAdded(newItem); } if (this.selectedItemsList.current) { this.selectedItemsList.current.addItems([newItem]); } if (this.input.current) { this.input.current.clear(); } if (this.floatingPicker.current) { this.floatingPicker.current.hidePicker(); } this.focus(); }; return BaseExtendedPicker; }(React.Component)); exports.BaseExtendedPicker = BaseExtendedPicker; //# sourceMappingURL=BaseExtendedPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/BaseExtendedPicker.scss.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/BaseExtendedPicker.scss.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.pickerInput = exports.pickerText = void 0; /* eslint-disable */ var load_themed_styles_1 = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); (0, load_themed_styles_1.loadStyles)([{ "rawString": ".pickerText_9f838726{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid " }, { "theme": "neutralTertiary", "defaultValue": "#a19f9d" }, { "rawString": ";min-width:180px;padding:1px;min-height:32px}.pickerText_9f838726:hover{border-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": "}.pickerInput_9f838726{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;margin:1px}.pickerInput_9f838726::-ms-clear{display:none}" }]); exports.pickerText = "pickerText_9f838726"; exports.pickerInput = "pickerInput_9f838726"; //# sourceMappingURL=BaseExtendedPicker.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/BaseExtendedPicker.types.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/BaseExtendedPicker.types.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=BaseExtendedPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.js": /*!******************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.js ***! \******************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.ExtendedPeoplePicker = exports.BaseExtendedPeoplePicker = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); __webpack_require__(/*! ./ExtendedPeoplePicker.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.scss.js"); var BaseExtendedPicker_1 = __webpack_require__(/*! ../BaseExtendedPicker */ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/BaseExtendedPicker.js"); /** * {@docCategory ExtendedPeoplePicker} */ var BaseExtendedPeoplePicker = /** @class */ (function (_super) { tslib_1.__extends(BaseExtendedPeoplePicker, _super); function BaseExtendedPeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } return BaseExtendedPeoplePicker; }(BaseExtendedPicker_1.BaseExtendedPicker)); exports.BaseExtendedPeoplePicker = BaseExtendedPeoplePicker; /** * {@docCategory ExtendedPeoplePicker} */ var ExtendedPeoplePicker = /** @class */ (function (_super) { tslib_1.__extends(ExtendedPeoplePicker, _super); function ExtendedPeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } return ExtendedPeoplePicker; }(BaseExtendedPeoplePicker)); exports.ExtendedPeoplePicker = ExtendedPeoplePicker; //# sourceMappingURL=ExtendedPeoplePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.scss.js": /*!***********************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.scss.js ***! \***********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.peoplePickerPersonaContent = exports.peoplePicker = exports.peoplePickerPersona = exports.resultItem = exports.resultContent = void 0; /* eslint-disable */ var load_themed_styles_1 = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); (0, load_themed_styles_1.loadStyles)([{ "rawString": ".resultContent_4cc31f3f{display:table-row}.resultContent_4cc31f3f .resultItem_4cc31f3f{display:table-cell;vertical-align:bottom}.peoplePickerPersona_4cc31f3f{width:180px}.peoplePickerPersona_4cc31f3f .ms-Persona-details{width:100%}.peoplePicker_4cc31f3f .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_4cc31f3f{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}" }]); exports.resultContent = "resultContent_4cc31f3f"; exports.resultItem = "resultItem_4cc31f3f"; exports.peoplePickerPersona = "peoplePickerPersona_4cc31f3f"; exports.peoplePicker = "peoplePicker_4cc31f3f"; exports.peoplePickerPersonaContent = "peoplePickerPersonaContent_4cc31f3f"; //# sourceMappingURL=ExtendedPeoplePicker.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/index.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/index.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./BaseExtendedPicker */ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/BaseExtendedPicker.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./BaseExtendedPicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/BaseExtendedPicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PeoplePicker/ExtendedPeoplePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/ExtendedPicker/PeoplePicker/ExtendedPeoplePicker.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.base.js": /*!************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.base.js ***! \************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FabricBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var getFabricTheme = (0, Utilities_1.memoizeFunction)(function (theme, isRTL) { return (0, Styling_1.createTheme)(tslib_1.__assign(tslib_1.__assign({}, theme), { rtl: isRTL })); }); var getDir = function (_a) { var theme = _a.theme, dir = _a.dir; var contextDir = (0, Utilities_1.getRTL)(theme) ? 'rtl' : 'ltr'; var pageDir = (0, Utilities_1.getRTL)() ? 'rtl' : 'ltr'; var componentDir = dir ? dir : contextDir; return { // If Fabric dir !== contextDir // Or If contextDir !== pageDir // Then we need to set dir of the Fabric root rootDir: componentDir !== contextDir || componentDir !== pageDir ? componentDir : dir, // If dir !== contextDir || pageDir // then set contextual theme around content needsTheme: componentDir !== contextDir, }; }; exports.FabricBase = React.forwardRef(function (props, ref) { var className = props.className, theme = props.theme, applyTheme = props.applyTheme, applyThemeToBody = props.applyThemeToBody, styles = props.styles; var classNames = getClassNames(styles, { theme: theme, applyTheme: applyTheme, className: className, }); var rootElement = React.useRef(null); useApplyThemeToBody(applyThemeToBody, classNames, rootElement); return React.createElement(React.Fragment, null, useRenderedContent(props, classNames, rootElement, ref)); }); exports.FabricBase.displayName = 'FabricBase'; function useRenderedContent(props, _a, rootElement, ref) { var root = _a.root; var _b = props.as, Root = _b === void 0 ? 'div' : _b, dir = props.dir, theme = props.theme; var divProps = (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties, ['dir']); var _c = getDir(props), rootDir = _c.rootDir, needsTheme = _c.needsTheme; var renderedContent = (React.createElement(Utilities_1.FocusRectsProvider, { providerRef: rootElement }, React.createElement(Root, tslib_1.__assign({ dir: rootDir }, divProps, { className: root, ref: (0, react_hooks_1.useMergedRefs)(rootElement, ref) })))); // Create the contextual theme if component direction does not match parent direction. if (needsTheme) { // Disabling ThemeProvider here because theme doesn't need to be re-provided by ThemeProvider if dir has changed. renderedContent = ( // eslint-disable-next-line deprecation/deprecation React.createElement(Utilities_1.Customizer, { settings: { theme: getFabricTheme(theme, dir === 'rtl') } }, renderedContent)); } return renderedContent; } function useApplyThemeToBody(applyThemeToBody, _a, rootElement) { var bodyThemed = _a.bodyThemed; React.useEffect(function () { if (applyThemeToBody) { var currentDoc_1 = (0, Utilities_1.getDocument)(rootElement.current); if (currentDoc_1) { currentDoc_1.body.classList.add(bodyThemed); return function () { currentDoc_1.body.classList.remove(bodyThemed); }; } } }, [bodyThemed, applyThemeToBody, rootElement]); return rootElement; } //# sourceMappingURL=Fabric.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.js": /*!*******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.js ***! \*******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Fabric = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Fabric_base_1 = __webpack_require__(/*! ./Fabric.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.base.js"); var Fabric_styles_1 = __webpack_require__(/*! ./Fabric.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.styles.js"); /** * @deprecated This component is deprecated as of `@fluentui/react` version 8. Use `ThemeProvider` instead. */ exports.Fabric = (0, Utilities_1.styled)(Fabric_base_1.FabricBase, Fabric_styles_1.getStyles, undefined, { scope: 'Fabric', }); //# sourceMappingURL=Fabric.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.styles.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.styles.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var inheritFont = { fontFamily: 'inherit' }; var GlobalClassNames = { root: 'ms-Fabric', bodyThemed: 'ms-Fabric-bodyThemed', }; var getStyles = function (props) { var applyTheme = props.applyTheme, className = props.className, preventBlanketFontInheritance = props.preventBlanketFontInheritance, theme = props.theme; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ classNames.root, theme.fonts.medium, { color: theme.palette.neutralPrimary, }, !preventBlanketFontInheritance && { '& button': inheritFont, '& input': inheritFont, '& textarea': inheritFont, }, // apply theme to only if applyTheme is true applyTheme && { color: theme.semanticColors.bodyText, backgroundColor: theme.semanticColors.bodyBackground, }, className, ], bodyThemed: [ { backgroundColor: theme.semanticColors.bodyBackground, }, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=Fabric.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.types.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.types.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Fabric.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Fabric/index.js": /*!******************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Fabric/index.js ***! \******************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Fabric */ "./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Fabric.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Fabric.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Fabric/Fabric.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.base.js": /*!****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.base.js ***! \****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FacepileBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Facepile_types_1 = __webpack_require__(/*! ./Facepile.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.types.js"); var FacepileButton_1 = __webpack_require__(/*! ./FacepileButton */ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/FacepileButton.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var Persona_1 = __webpack_require__(/*! ../../Persona */ "./node_modules/@fluentui/react/lib-commonjs/Persona.js"); var PersonaCoin_1 = __webpack_require__(/*! ../../PersonaCoin */ "./node_modules/@fluentui/react/lib-commonjs/PersonaCoin.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); /** * FacePile with no default styles. * [Use the `styles` API to add your own styles.](https://github.com/microsoft/fluentui/wiki/Component-Styling) */ var FacepileBase = /** @class */ (function (_super) { tslib_1.__extends(FacepileBase, _super); function FacepileBase(props) { var _this = _super.call(this, props) || this; _this._classNames = getClassNames(_this.props.styles, { theme: _this.props.theme, className: _this.props.className, }); _this._getPersonaControl = function (persona) { var _a = _this.props, getPersonaProps = _a.getPersonaProps, personaSize = _a.personaSize; var personaStyles = { details: { flex: '1 0 auto', }, }; return (React.createElement(Persona_1.Persona, tslib_1.__assign({ imageInitials: persona.imageInitials, imageUrl: persona.imageUrl, initialsColor: persona.initialsColor, allowPhoneInitials: persona.allowPhoneInitials, text: persona.personaName, size: personaSize }, (getPersonaProps ? getPersonaProps(persona) : null), { styles: personaStyles }))); }; _this._getPersonaCoinControl = function (persona) { var _a = _this.props, getPersonaProps = _a.getPersonaProps, personaSize = _a.personaSize; return (React.createElement(PersonaCoin_1.PersonaCoin, tslib_1.__assign({ imageInitials: persona.imageInitials, imageUrl: persona.imageUrl, initialsColor: persona.initialsColor, allowPhoneInitials: persona.allowPhoneInitials, text: persona.personaName, size: personaSize }, (getPersonaProps ? getPersonaProps(persona) : null)))); }; (0, Utilities_1.initializeComponentRef)(_this); _this._ariaDescriptionId = (0, Utilities_1.getId)(); return _this; } FacepileBase.prototype.render = function () { var overflowButtonProps = this.props.overflowButtonProps; var _a = this.props, chevronButtonProps = _a.chevronButtonProps, // eslint-disable-line deprecation/deprecation maxDisplayablePersonas = _a.maxDisplayablePersonas, personas = _a.personas, overflowPersonas = _a.overflowPersonas, showAddButton = _a.showAddButton, ariaLabel = _a.ariaLabel, _b = _a.showTooltip, showTooltip = _b === void 0 ? true : _b; var _classNames = this._classNames; // Add a check to make sure maxDisplayalePersonas is defined to cover the edge case of it being 0. var numPersonasToShow = typeof maxDisplayablePersonas === 'number' ? Math.min(personas.length, maxDisplayablePersonas) : personas.length; // Added for deprecating chevronButtonProps. Can remove after v1.0 if (chevronButtonProps && !overflowButtonProps) { overflowButtonProps = chevronButtonProps; } var hasOverflowPersonas = overflowPersonas && overflowPersonas.length > 0; var personasPrimary = hasOverflowPersonas ? personas : personas.slice(0, numPersonasToShow); var personasOverflow = (hasOverflowPersonas ? overflowPersonas : personas.slice(numPersonasToShow)) || []; return (React.createElement("div", { className: _classNames.root }, this.onRenderAriaDescription(), React.createElement("div", { className: _classNames.itemContainer }, showAddButton ? this._getAddNewElement() : null, React.createElement("ul", { className: _classNames.members, "aria-label": ariaLabel }, this._onRenderVisiblePersonas(personasPrimary, personasOverflow.length === 0 && personas.length === 1, showTooltip)), overflowButtonProps ? this._getOverflowElement(personasOverflow) : null))); }; FacepileBase.prototype.onRenderAriaDescription = function () { var ariaDescription = this.props.ariaDescription; var _classNames = this._classNames; // If ariaDescription is given, descriptionId will be assigned to ariaDescriptionSpan, // otherwise it will be assigned to descriptionSpan. return (ariaDescription && (React.createElement("span", { className: _classNames.screenReaderOnly, id: this._ariaDescriptionId }, ariaDescription))); }; FacepileBase.prototype._onRenderVisiblePersonas = function (personas, singlePersona, showTooltip) { var _this = this; var _a = this.props, _b = _a.onRenderPersona, onRenderPersona = _b === void 0 ? this._getPersonaControl : _b, _c = _a.onRenderPersonaCoin, onRenderPersonaCoin = _c === void 0 ? this._getPersonaCoinControl : _c, onRenderPersonaWrapper = _a.onRenderPersonaWrapper; return personas.map(function (persona, index) { var personaControl = singlePersona ? onRenderPersona(persona, _this._getPersonaControl) : onRenderPersonaCoin(persona, _this._getPersonaCoinControl); var defaultPersonaRender = persona.onClick ? function () { return _this._getElementWithOnClickEvent(personaControl, persona, showTooltip, index); } : function () { return _this._getElementWithoutOnClickEvent(personaControl, persona, showTooltip, index); }; return (React.createElement("li", { key: "".concat(singlePersona ? 'persona' : 'personaCoin', "-").concat(index), className: _this._classNames.member }, onRenderPersonaWrapper ? onRenderPersonaWrapper(persona, defaultPersonaRender) : defaultPersonaRender())); }); }; FacepileBase.prototype._getElementWithOnClickEvent = function (personaControl, persona, showTooltip, index) { var keytipProps = persona.keytipProps; return (React.createElement(FacepileButton_1.FacepileButton, tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(persona, Utilities_1.buttonProperties), this._getElementProps(persona, showTooltip, index), { keytipProps: keytipProps, // eslint-disable-next-line react/jsx-no-bind onClick: this._onPersonaClick.bind(this, persona) }), personaControl)); }; FacepileBase.prototype._getElementWithoutOnClickEvent = function (personaControl, persona, showTooltip, index) { return (React.createElement("div", tslib_1.__assign({}, (0, Utilities_1.getNativeProps)(persona, Utilities_1.buttonProperties), this._getElementProps(persona, showTooltip, index)), personaControl)); }; FacepileBase.prototype._getElementProps = function (persona, showTooltip, index) { var _classNames = this._classNames; return { key: (persona.imageUrl ? 'i' : '') + index, 'data-is-focusable': true, className: _classNames.itemButton, title: showTooltip ? persona.personaName : undefined, onMouseMove: this._onPersonaMouseMove.bind(this, persona), onMouseOut: this._onPersonaMouseOut.bind(this, persona), }; }; FacepileBase.prototype._getOverflowElement = function (personasOverflow) { switch (this.props.overflowButtonType) { case Facepile_types_1.OverflowButtonType.descriptive: return this._getDescriptiveOverflowElement(personasOverflow); case Facepile_types_1.OverflowButtonType.downArrow: return this._getIconElement('ChevronDown'); case Facepile_types_1.OverflowButtonType.more: return this._getIconElement('More'); default: return null; } }; FacepileBase.prototype._getDescriptiveOverflowElement = function (personasOverflow) { var personaSize = this.props.personaSize; if (!personasOverflow || personasOverflow.length < 1) { return null; } var personaNames = personasOverflow.map(function (p) { return p.personaName; }).join(', '); var overflowButtonProps = tslib_1.__assign({ title: personaNames }, this.props.overflowButtonProps); var numPersonasNotPictured = Math.max(personasOverflow.length, 0); var _classNames = this._classNames; return (React.createElement(FacepileButton_1.FacepileButton, tslib_1.__assign({}, overflowButtonProps, { ariaDescription: overflowButtonProps.title, className: _classNames.descriptiveOverflowButton }), React.createElement(PersonaCoin_1.PersonaCoin, { size: personaSize, onRenderInitials: this._renderInitialsNotPictured(numPersonasNotPictured), initialsColor: PersonaCoin_1.PersonaInitialsColor.transparent }))); }; FacepileBase.prototype._getIconElement = function (icon) { var _a = this.props, overflowButtonProps = _a.overflowButtonProps, personaSize = _a.personaSize; var overflowInitialsIcon = true; var _classNames = this._classNames; return (React.createElement(FacepileButton_1.FacepileButton, tslib_1.__assign({}, overflowButtonProps, { className: _classNames.overflowButton }), React.createElement(PersonaCoin_1.PersonaCoin, { size: personaSize, onRenderInitials: this._renderInitials(icon, overflowInitialsIcon), initialsColor: PersonaCoin_1.PersonaInitialsColor.transparent }))); }; FacepileBase.prototype._getAddNewElement = function () { var _a = this.props, addButtonProps = _a.addButtonProps, personaSize = _a.personaSize; var _classNames = this._classNames; return (React.createElement(FacepileButton_1.FacepileButton, tslib_1.__assign({}, addButtonProps, { className: _classNames.addButton }), React.createElement(PersonaCoin_1.PersonaCoin, { size: personaSize, onRenderInitials: this._renderInitials('AddFriend') }))); }; FacepileBase.prototype._onPersonaClick = function (persona, ev) { persona.onClick(ev, persona); ev.preventDefault(); ev.stopPropagation(); }; FacepileBase.prototype._onPersonaMouseMove = function (persona, ev) { if (persona.onMouseMove) { persona.onMouseMove(ev, persona); } }; FacepileBase.prototype._onPersonaMouseOut = function (persona, ev) { if (persona.onMouseOut) { persona.onMouseOut(ev, persona); } }; FacepileBase.prototype._renderInitials = function (iconName, overflowButton) { var _classNames = this._classNames; return function () { return React.createElement(Icon_1.Icon, { iconName: iconName, className: overflowButton ? _classNames.overflowInitialsIcon : '' }); }; }; FacepileBase.prototype._renderInitialsNotPictured = function (numPersonasNotPictured) { var _classNames = this._classNames; return function () { return (React.createElement("span", { className: _classNames.overflowInitialsIcon }, numPersonasNotPictured < 100 ? '+' + numPersonasNotPictured : '99+')); }; }; FacepileBase.defaultProps = { maxDisplayablePersonas: 5, personas: [], overflowPersonas: [], personaSize: PersonaCoin_1.PersonaSize.size32, }; return FacepileBase; }(React.Component)); exports.FacepileBase = FacepileBase; //# sourceMappingURL=Facepile.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.js": /*!***********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.js ***! \***********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Facepile = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Facepile_base_1 = __webpack_require__(/*! ./Facepile.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.base.js"); var Facepile_styles_1 = __webpack_require__(/*! ./Facepile.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.styles.js"); /** * The Facepile shows a list of faces or initials in a horizontal lockup. Each circle represents a person. */ exports.Facepile = (0, Utilities_1.styled)(Facepile_base_1.FacepileBase, Facepile_styles_1.styles, undefined, { scope: 'Facepile', }); //# sourceMappingURL=Facepile.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.styles.js": /*!******************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.styles.js ***! \******************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.styles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { root: 'ms-Facepile', addButton: 'ms-Facepile-addButton ms-Facepile-itemButton', descriptiveOverflowButton: 'ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton', itemButton: 'ms-Facepile-itemButton ms-Facepile-person', itemContainer: 'ms-Facepile-itemContainer', members: 'ms-Facepile-members', member: 'ms-Facepile-member', overflowButton: 'ms-Facepile-overflowButton ms-Facepile-itemButton', }; var styles = function (props) { var _a; var className = props.className, theme = props.theme, _b = props.spacingAroundItemButton, spacingAroundItemButton = _b === void 0 ? 2 : _b; var palette = theme.palette, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var ItemButtonStyles = { textAlign: 'center', padding: 0, borderRadius: '50%', verticalAlign: 'top', display: 'inline', backgroundColor: 'transparent', border: 'none', selectors: { '&::-moz-focus-inner': { padding: 0, border: 0, }, }, }; return { root: [ classNames.root, theme.fonts.medium, { width: 'auto', }, className, ], addButton: [ classNames.addButton, (0, Styling_1.getFocusStyle)(theme, { inset: -1 }), ItemButtonStyles, { fontSize: fonts.medium.fontSize, color: palette.white, backgroundColor: palette.themePrimary, marginRight: spacingAroundItemButton * 2 + 'px', selectors: { '&:hover': { backgroundColor: palette.themeDark, }, '&:focus': { backgroundColor: palette.themeDark, }, '&:active': { backgroundColor: palette.themeDarker, }, '&:disabled': { backgroundColor: palette.neutralTertiaryAlt, }, }, }, ], descriptiveOverflowButton: [ classNames.descriptiveOverflowButton, (0, Styling_1.getFocusStyle)(theme, { inset: -1 }), ItemButtonStyles, { fontSize: fonts.small.fontSize, color: palette.neutralSecondary, backgroundColor: palette.neutralLighter, marginLeft: "".concat(spacingAroundItemButton * 2, "px"), }, ], itemButton: [classNames.itemButton, ItemButtonStyles], itemContainer: [ classNames.itemContainer, { display: 'flex', }, ], members: [ classNames.members, { display: 'flex', overflow: 'hidden', listStyleType: 'none', padding: 0, margin: "-".concat(spacingAroundItemButton, "px"), }, ], member: [ classNames.member, { display: 'inline-flex', flex: '0 0 auto', margin: "".concat(spacingAroundItemButton, "px"), }, ], overflowButton: [ classNames.overflowButton, (0, Styling_1.getFocusStyle)(theme, { inset: -1 }), ItemButtonStyles, { fontSize: fonts.medium.fontSize, color: palette.neutralSecondary, backgroundColor: palette.neutralLighter, marginLeft: "".concat(spacingAroundItemButton * 2, "px"), }, ], overflowInitialsIcon: [ { color: palette.neutralPrimary, selectors: (_a = {}, _a[Styling_1.HighContrastSelector] = { color: 'WindowText', }, _a), }, ], screenReaderOnly: Styling_1.hiddenContentStyle, }; }; exports.styles = styles; //# sourceMappingURL=Facepile.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.types.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.types.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.OverflowButtonType = void 0; /** * {@docCategory Facepile} */ var OverflowButtonType; (function (OverflowButtonType) { /** No overflow */ OverflowButtonType[OverflowButtonType["none"] = 0] = "none"; /** +1 overflow icon */ OverflowButtonType[OverflowButtonType["descriptive"] = 1] = "descriptive"; /** More overflow icon */ OverflowButtonType[OverflowButtonType["more"] = 2] = "more"; /** Chevron overflow icon */ OverflowButtonType[OverflowButtonType["downArrow"] = 3] = "downArrow"; })(OverflowButtonType = exports.OverflowButtonType || (exports.OverflowButtonType = {})); //# sourceMappingURL=Facepile.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/FacepileButton.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Facepile/FacepileButton.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FacepileButton = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Button_1 = __webpack_require__(/*! ../../Button */ "./node_modules/@fluentui/react/lib-commonjs/Button.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var FacepileButton_styles_1 = __webpack_require__(/*! ./FacepileButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/FacepileButton.styles.js"); var FacepileButton = /** @class */ (function (_super) { tslib_1.__extends(FacepileButton, _super); function FacepileButton() { return _super !== null && _super.apply(this, arguments) || this; } FacepileButton.prototype.render = function () { var _a = this.props, className = _a.className, styles = _a.styles, rest = tslib_1.__rest(_a, ["className", "styles"]); var customStyles = (0, FacepileButton_styles_1.getStyles)(this.props.theme, className, styles); return (React.createElement(Button_1.BaseButton, tslib_1.__assign({}, rest, { variantClassName: "ms-Button--facepile", styles: customStyles, onRenderDescription: Utilities_1.nullRender }))); }; FacepileButton = tslib_1.__decorate([ (0, Utilities_1.customizable)('FacepileButton', ['theme', 'styles'], true) ], FacepileButton); return FacepileButton; }(React.Component)); exports.FacepileButton = FacepileButton; //# sourceMappingURL=FacepileButton.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/FacepileButton.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Facepile/FacepileButton.styles.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var BaseButton_styles_1 = __webpack_require__(/*! ../Button/BaseButton.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/Button/BaseButton.styles.js"); exports.getStyles = (0, Utilities_1.memoizeFunction)(function (theme, className, customStyles) { var baseButtonStyles = (0, BaseButton_styles_1.getStyles)(theme); var customButtonStyles = (0, Styling_1.concatStyleSets)(baseButtonStyles, customStyles); return tslib_1.__assign(tslib_1.__assign({}, customButtonStyles), { root: [baseButtonStyles.root, className, theme.fonts.medium, customStyles && customStyles.root] }); }); //# sourceMappingURL=FacepileButton.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/index.js": /*!********************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/Facepile/index.js ***! \********************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./Facepile.types */ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Facepile.base */ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.base.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Facepile */ "./node_modules/@fluentui/react/lib-commonjs/components/Facepile/Facepile.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/BaseFloatingPicker.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/BaseFloatingPicker.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.BaseFloatingPicker = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var stylesImport = __webpack_require__(/*! ./BaseFloatingPicker.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/BaseFloatingPicker.scss.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DirectionalHint_1 = __webpack_require__(/*! ../../common/DirectionalHint */ "./node_modules/@fluentui/react/lib-commonjs/common/DirectionalHint.js"); var Callout_1 = __webpack_require__(/*! ../../Callout */ "./node_modules/@fluentui/react/lib-commonjs/Callout.js"); var SuggestionsControl_1 = __webpack_require__(/*! ./Suggestions/SuggestionsControl */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsControl.js"); var styles = stylesImport; var BaseFloatingPicker = /** @class */ (function (_super) { tslib_1.__extends(BaseFloatingPicker, _super); function BaseFloatingPicker(basePickerProps) { var _this = _super.call(this, basePickerProps) || this; _this.root = React.createRef(); _this.suggestionsControl = React.createRef(); _this.SuggestionsControlOfProperType = SuggestionsControl_1.SuggestionsControl; _this.isComponentMounted = false; _this.onQueryStringChanged = function (queryString) { if (queryString !== _this.state.queryString) { _this.setState({ queryString: queryString, }); if (_this.props.onInputChanged) { _this.props.onInputChanged(queryString); } _this.updateValue(queryString); } }; _this.hidePicker = function () { var wasShownBeforeUpdate = _this.isSuggestionsShown; _this.setState({ suggestionsVisible: false, }); if (_this.props.onSuggestionsHidden && wasShownBeforeUpdate) { _this.props.onSuggestionsHidden(); } }; _this.showPicker = function (updateValue) { if (updateValue === void 0) { updateValue = false; } var wasShownBeforeUpdate = _this.isSuggestionsShown; _this.setState({ suggestionsVisible: true, }); // Update the suggestions if updateValue == true var value = _this.props.inputElement ? _this.props.inputElement.value : ''; if (updateValue) { _this.updateValue(value); } if (_this.props.onSuggestionsShown && !wasShownBeforeUpdate) { _this.props.onSuggestionsShown(); } }; _this.completeSuggestion = function () { if (_this.suggestionsControl.current && _this.suggestionsControl.current.hasSuggestionSelected()) { _this.onChange(_this.suggestionsControl.current.currentSuggestion.item); } }; _this.onSuggestionClick = function (ev, item, index) { _this.onChange(item); _this._updateSuggestionsVisible(false /*shouldShow*/); }; _this.onSuggestionRemove = function (ev, item, index) { if (_this.props.onRemoveSuggestion) { _this.props.onRemoveSuggestion(item); } if (_this.suggestionsControl.current) { _this.suggestionsControl.current.removeSuggestion(index); } }; _this.onKeyDown = function (ev) { if (!_this.state.suggestionsVisible || (_this.props.inputElement && !_this.props.inputElement.contains(ev.target))) { return; } // eslint-disable-next-line deprecation/deprecation var keyCode = ev.which; switch (keyCode) { case Utilities_1.KeyCodes.escape: _this.hidePicker(); ev.preventDefault(); ev.stopPropagation(); break; case Utilities_1.KeyCodes.tab: case Utilities_1.KeyCodes.enter: if (!ev.shiftKey && !ev.ctrlKey && _this.suggestionsControl.current && _this.suggestionsControl.current.handleKeyDown(keyCode)) { ev.preventDefault(); ev.stopPropagation(); } else { _this._onValidateInput(); } break; case Utilities_1.KeyCodes.del: if (_this.props.onRemoveSuggestion && _this.suggestionsControl.current && _this.suggestionsControl.current.hasSuggestionSelected() && _this.suggestionsControl.current.currentSuggestion && ev.shiftKey) { _this.props.onRemoveSuggestion(_this.suggestionsControl.current.currentSuggestion.item); _this.suggestionsControl.current.removeSuggestion(); _this.forceUpdate(); ev.stopPropagation(); } break; case Utilities_1.KeyCodes.up: if (_this.suggestionsControl.current && _this.suggestionsControl.current.handleKeyDown(keyCode)) { ev.preventDefault(); ev.stopPropagation(); _this._updateActiveDescendant(); } break; case Utilities_1.KeyCodes.down: if (_this.suggestionsControl.current && _this.suggestionsControl.current.handleKeyDown(keyCode)) { ev.preventDefault(); ev.stopPropagation(); _this._updateActiveDescendant(); } break; } }; _this._onValidateInput = function () { if (_this.state.queryString && _this.props.onValidateInput && _this.props.createGenericItem) { var itemToConvert = _this.props.createGenericItem(_this.state.queryString, _this.props.onValidateInput(_this.state.queryString)); var convertedItems = _this.suggestionStore.convertSuggestionsToSuggestionItems([itemToConvert]); _this.onChange(convertedItems[0].item); } }; _this._async = new Utilities_1.Async(_this); (0, Utilities_1.initializeComponentRef)(_this); _this.suggestionStore = basePickerProps.suggestionsStore; _this.state = { queryString: '', didBind: false, }; return _this; } Object.defineProperty(BaseFloatingPicker.prototype, "inputText", { get: function () { return this.state.queryString; }, enumerable: false, configurable: true }); Object.defineProperty(BaseFloatingPicker.prototype, "suggestions", { get: function () { return this.suggestionStore.suggestions; }, enumerable: false, configurable: true }); BaseFloatingPicker.prototype.forceResolveSuggestion = function () { if (this.suggestionsControl.current && this.suggestionsControl.current.hasSuggestionSelected()) { this.completeSuggestion(); } else { this._onValidateInput(); } }; Object.defineProperty(BaseFloatingPicker.prototype, "currentSelectedSuggestionIndex", { get: function () { return this.suggestionsControl.current ? this.suggestionsControl.current.currentSuggestionIndex : -1; }, enumerable: false, configurable: true }); Object.defineProperty(BaseFloatingPicker.prototype, "isSuggestionsShown", { get: function () { return this.state.suggestionsVisible === undefined ? false : this.state.suggestionsVisible; }, enumerable: false, configurable: true }); BaseFloatingPicker.prototype.componentDidMount = function () { this._bindToInputElement(); this.isComponentMounted = true; this._onResolveSuggestions = this._async.debounce(this._onResolveSuggestions, this.props.resolveDelay); }; BaseFloatingPicker.prototype.componentDidUpdate = function () { this._bindToInputElement(); }; BaseFloatingPicker.prototype.componentWillUnmount = function () { this._unbindFromInputElement(); this.isComponentMounted = false; }; BaseFloatingPicker.prototype.updateSuggestions = function (suggestions, forceUpdate) { if (forceUpdate === void 0) { forceUpdate = false; } this.suggestionStore.updateSuggestions(suggestions); if (forceUpdate) { this.forceUpdate(); } }; BaseFloatingPicker.prototype.render = function () { var className = this.props.className; return (React.createElement("div", { ref: this.root, className: (0, Utilities_1.css)('ms-BasePicker ms-BaseFloatingPicker', className ? className : '') }, this.renderSuggestions())); }; BaseFloatingPicker.prototype.renderSuggestions = function () { var TypedSuggestionsControl = this.SuggestionsControlOfProperType; if (this.props.suggestionItems) { this.suggestionStore.updateSuggestions(this.props.suggestionItems); } return this.state.suggestionsVisible ? (React.createElement(Callout_1.Callout, tslib_1.__assign({ className: styles.callout, isBeakVisible: false, gapSpace: 5, target: this.props.inputElement, onDismiss: this.hidePicker, directionalHint: DirectionalHint_1.DirectionalHint.bottomLeftEdge, directionalHintForRTL: DirectionalHint_1.DirectionalHint.bottomRightEdge, calloutWidth: this.props.calloutWidth ? this.props.calloutWidth : 0 }, this.props.pickerCalloutProps), React.createElement(TypedSuggestionsControl, tslib_1.__assign({ onRenderSuggestion: this.props.onRenderSuggestionsItem, onSuggestionClick: this.onSuggestionClick, onSuggestionRemove: this.onSuggestionRemove, suggestions: this.suggestionStore.getSuggestions(), componentRef: this.suggestionsControl, completeSuggestion: this.completeSuggestion, shouldLoopSelection: false }, this.props.pickerSuggestionsProps)))) : null; }; BaseFloatingPicker.prototype.onSelectionChange = function () { this.forceUpdate(); }; BaseFloatingPicker.prototype.updateValue = function (updatedValue) { if (updatedValue === '') { this.updateSuggestionWithZeroState(); } else { this._onResolveSuggestions(updatedValue); } }; BaseFloatingPicker.prototype.updateSuggestionWithZeroState = function () { if (this.props.onZeroQuerySuggestion) { var onEmptyInputFocus = this.props.onZeroQuerySuggestion; var suggestions = onEmptyInputFocus(this.props.selectedItems); this.updateSuggestionsList(suggestions); } else { this.hidePicker(); } }; BaseFloatingPicker.prototype.updateSuggestionsList = function (suggestions) { var _this = this; // Check to see if the returned value is an array, if it is then just pass it into the next function. // If the returned value is not an array then check to see if it's a promise or PromiseLike. // If it is then resolve it asynchronously. if (Array.isArray(suggestions)) { this.updateSuggestions(suggestions, true /*forceUpdate*/); } else if (suggestions && suggestions.then) { // Ensure that the promise will only use the callback if it was the most recent one. this.currentPromise = suggestions; suggestions.then(function (newSuggestions) { // Only update if the next promise has not yet resolved and // the floating picker is still mounted. if (suggestions === _this.currentPromise && _this.isComponentMounted) { _this.updateSuggestions(newSuggestions, true /*forceUpdate*/); } }); } }; BaseFloatingPicker.prototype.onChange = function (item) { if (this.props.onChange) { this.props.onChange(item); } }; BaseFloatingPicker.prototype._updateActiveDescendant = function () { if (this.props.inputElement && this.suggestionsControl.current && this.suggestionsControl.current.selectedElement) { var selectedElId = this.suggestionsControl.current.selectedElement.getAttribute('id'); if (selectedElId) { this.props.inputElement.setAttribute('aria-activedescendant', selectedElId); } } }; BaseFloatingPicker.prototype._onResolveSuggestions = function (updatedValue) { var suggestions = this.props.onResolveSuggestions(updatedValue, this.props.selectedItems); this._updateSuggestionsVisible(true /*shouldShow*/); if (suggestions !== null) { this.updateSuggestionsList(suggestions); } }; BaseFloatingPicker.prototype._updateSuggestionsVisible = function (shouldShow) { if (shouldShow) { this.showPicker(); } else { this.hidePicker(); } }; BaseFloatingPicker.prototype._bindToInputElement = function () { if (this.props.inputElement && !this.state.didBind) { this.props.inputElement.addEventListener('keydown', this.onKeyDown); this.setState({ didBind: true }); } }; BaseFloatingPicker.prototype._unbindFromInputElement = function () { if (this.props.inputElement && this.state.didBind) { this.props.inputElement.removeEventListener('keydown', this.onKeyDown); this.setState({ didBind: false }); } }; return BaseFloatingPicker; }(React.Component)); exports.BaseFloatingPicker = BaseFloatingPicker; //# sourceMappingURL=BaseFloatingPicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/BaseFloatingPicker.scss.js": /*!********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/BaseFloatingPicker.scss.js ***! \********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.callout = void 0; /* eslint-disable */ var load_themed_styles_1 = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); (0, load_themed_styles_1.loadStyles)([{ "rawString": ".callout_ad5629e1 .ms-Suggestions-itemButton{padding:0;border:none}.callout_ad5629e1 .ms-Suggestions{min-width:300px}" }]); exports.callout = "callout_ad5629e1"; //# sourceMappingURL=BaseFloatingPicker.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/BaseFloatingPicker.types.js": /*!*********************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/BaseFloatingPicker.types.js ***! \*********************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=BaseFloatingPicker.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/PeoplePicker/FloatingPeoplePicker.js": /*!******************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/PeoplePicker/FloatingPeoplePicker.js ***! \******************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createItem = exports.FloatingPeoplePicker = exports.BaseFloatingPeoplePicker = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var BaseFloatingPicker_1 = __webpack_require__(/*! ../BaseFloatingPicker */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/BaseFloatingPicker.js"); var SuggestionItemDefault_1 = __webpack_require__(/*! ./PeoplePickerItems/SuggestionItemDefault */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/PeoplePicker/PeoplePickerItems/SuggestionItemDefault.js"); __webpack_require__(/*! ./PeoplePicker.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/PeoplePicker/PeoplePicker.scss.js"); /** * {@docCategory FloatingPeoplePicker} */ var BaseFloatingPeoplePicker = /** @class */ (function (_super) { tslib_1.__extends(BaseFloatingPeoplePicker, _super); function BaseFloatingPeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } return BaseFloatingPeoplePicker; }(BaseFloatingPicker_1.BaseFloatingPicker)); exports.BaseFloatingPeoplePicker = BaseFloatingPeoplePicker; var FloatingPeoplePicker = /** @class */ (function (_super) { tslib_1.__extends(FloatingPeoplePicker, _super); function FloatingPeoplePicker() { return _super !== null && _super.apply(this, arguments) || this; } FloatingPeoplePicker.defaultProps = { onRenderSuggestionsItem: function (props, itemProps) { return (0, SuggestionItemDefault_1.SuggestionItemNormal)(tslib_1.__assign({}, props), tslib_1.__assign({}, itemProps)); }, createGenericItem: createItem, }; return FloatingPeoplePicker; }(BaseFloatingPeoplePicker)); exports.FloatingPeoplePicker = FloatingPeoplePicker; function createItem(name, isValid) { var personaToConvert = { key: name, primaryText: name, imageInitials: '!', isValid: isValid, }; if (!isValid) { personaToConvert.imageInitials = (0, Utilities_1.getInitials)(name, (0, Utilities_1.getRTL)()); } return personaToConvert; } exports.createItem = createItem; //# sourceMappingURL=FloatingPeoplePicker.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/PeoplePicker/PeoplePicker.scss.js": /*!***************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/PeoplePicker/PeoplePicker.scss.js ***! \***************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.peoplePickerPersonaContent = exports.peoplePicker = exports.peoplePickerPersona = exports.resultItem = exports.resultContent = void 0; /* eslint-disable */ var load_themed_styles_1 = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); (0, load_themed_styles_1.loadStyles)([{ "rawString": ".resultContent_f73be5be{display:table-row}.resultContent_f73be5be .resultItem_f73be5be{display:table-cell;vertical-align:bottom}.peoplePickerPersona_f73be5be{width:180px}.peoplePickerPersona_f73be5be .ms-Persona-details{width:100%}.peoplePicker_f73be5be .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_f73be5be{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7px 12px}" }]); exports.resultContent = "resultContent_f73be5be"; exports.resultItem = "resultItem_f73be5be"; exports.peoplePickerPersona = "peoplePickerPersona_f73be5be"; exports.peoplePicker = "peoplePicker_f73be5be"; exports.peoplePickerPersonaContent = "peoplePickerPersonaContent_f73be5be"; //# sourceMappingURL=PeoplePicker.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/PeoplePicker/PeoplePickerItems/SuggestionItemDefault.js": /*!*************************************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/PeoplePicker/PeoplePickerItems/SuggestionItemDefault.js ***! \*************************************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuggestionItemNormal = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Persona_1 = __webpack_require__(/*! ../../../../Persona */ "./node_modules/@fluentui/react/lib-commonjs/Persona.js"); var stylesImport = __webpack_require__(/*! ../PeoplePicker.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/PeoplePicker/PeoplePicker.scss.js"); var SuggestionItemNormal = function (personaProps, suggestionItemProps) { return (React.createElement("div", { className: (0, Utilities_1.css)('ms-PeoplePicker-personaContent', stylesImport.peoplePickerPersonaContent) }, React.createElement(Persona_1.Persona, tslib_1.__assign({ presence: personaProps.presence !== undefined ? personaProps.presence : Persona_1.PersonaPresence.none, size: Persona_1.PersonaSize.size40, className: (0, Utilities_1.css)('ms-PeoplePicker-Persona', stylesImport.peoplePickerPersona), showSecondaryText: true }, personaProps)))); }; exports.SuggestionItemNormal = SuggestionItemNormal; //# sourceMappingURL=SuggestionItemDefault.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/Suggestions.types.js": /*!**************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/Suggestions.types.js ***! \**************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=Suggestions.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsControl.js": /*!***************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsControl.js ***! \***************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuggestionsControl = exports.SuggestionsHeaderFooterItem = exports.SuggestionItemType = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var SuggestionsCore_1 = __webpack_require__(/*! ./SuggestionsCore */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsCore.js"); var stylesImport = __webpack_require__(/*! ./SuggestionsControl.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsControl.scss.js"); var Styling_1 = __webpack_require__(/*! ../../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var styles = stylesImport; var SuggestionItemType; (function (SuggestionItemType) { SuggestionItemType[SuggestionItemType["header"] = 0] = "header"; SuggestionItemType[SuggestionItemType["suggestion"] = 1] = "suggestion"; SuggestionItemType[SuggestionItemType["footer"] = 2] = "footer"; })(SuggestionItemType = exports.SuggestionItemType || (exports.SuggestionItemType = {})); var SuggestionsHeaderFooterItem = /** @class */ (function (_super) { tslib_1.__extends(SuggestionsHeaderFooterItem, _super); function SuggestionsHeaderFooterItem(props) { var _this = _super.call(this, props) || this; (0, Utilities_1.initializeComponentRef)(_this); return _this; } SuggestionsHeaderFooterItem.prototype.render = function () { var _a; var _b = this.props, renderItem = _b.renderItem, onExecute = _b.onExecute, isSelected = _b.isSelected, id = _b.id, className = _b.className; return onExecute ? (React.createElement("div", { id: id, onClick: onExecute, className: (0, Utilities_1.css)('ms-Suggestions-sectionButton', className, styles.actionButton, (_a = {}, _a['is-selected ' + styles.buttonSelected] = isSelected, _a)) }, renderItem())) : (React.createElement("div", { id: id, className: (0, Utilities_1.css)('ms-Suggestions-section', className, styles.suggestionsTitle) }, renderItem())); }; return SuggestionsHeaderFooterItem; }(React.Component)); exports.SuggestionsHeaderFooterItem = SuggestionsHeaderFooterItem; /** * Class when used with SuggestionsStore, renders a suggestions control with customizable headers and footers */ var SuggestionsControl = /** @class */ (function (_super) { tslib_1.__extends(SuggestionsControl, _super); function SuggestionsControl(suggestionsProps) { var _this = _super.call(this, suggestionsProps) || this; _this._selectedElement = React.createRef(); _this._suggestions = React.createRef(); _this.SuggestionsOfProperType = SuggestionsCore_1.SuggestionsCore; (0, Utilities_1.initializeComponentRef)(_this); _this.state = { selectedHeaderIndex: -1, selectedFooterIndex: -1, suggestions: suggestionsProps.suggestions, }; return _this; } SuggestionsControl.prototype.componentDidMount = function () { this.resetSelectedItem(); }; SuggestionsControl.prototype.componentDidUpdate = function (oldProps) { var _this = this; this.scrollSelected(); if (oldProps.suggestions && oldProps.suggestions !== this.props.suggestions) { this.setState({ suggestions: this.props.suggestions }, function () { _this.resetSelectedItem(); }); } }; SuggestionsControl.prototype.componentWillUnmount = function () { var _a; (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.deselectAllSuggestions(); }; SuggestionsControl.prototype.render = function () { var _a = this.props, className = _a.className, headerItemsProps = _a.headerItemsProps, footerItemsProps = _a.footerItemsProps, suggestionsAvailableAlertText = _a.suggestionsAvailableAlertText; var screenReaderTextStyles = (0, Styling_1.mergeStyles)(Styling_1.hiddenContentStyle); var shouldAlertSuggestionsAvailableText = this.state.suggestions && this.state.suggestions.length > 0 && suggestionsAvailableAlertText; return (React.createElement("div", { className: (0, Utilities_1.css)('ms-Suggestions', className ? className : '', styles.root) }, headerItemsProps && this.renderHeaderItems(), this._renderSuggestions(), footerItemsProps && this.renderFooterItems(), shouldAlertSuggestionsAvailableText ? (React.createElement("span", { role: "alert", "aria-live": "polite", className: screenReaderTextStyles }, suggestionsAvailableAlertText)) : null)); }; Object.defineProperty(SuggestionsControl.prototype, "currentSuggestion", { get: function () { var _a; return ((_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.getCurrentItem()) || undefined; }, enumerable: false, configurable: true }); Object.defineProperty(SuggestionsControl.prototype, "currentSuggestionIndex", { get: function () { return this._suggestions.current ? this._suggestions.current.currentIndex : -1; }, enumerable: false, configurable: true }); Object.defineProperty(SuggestionsControl.prototype, "selectedElement", { get: function () { var _a; return this._selectedElement.current ? this._selectedElement.current : (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.selectedElement; }, enumerable: false, configurable: true }); SuggestionsControl.prototype.hasSuggestionSelected = function () { var _a; return ((_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.hasSuggestionSelected()) || false; }; SuggestionsControl.prototype.hasSelection = function () { var _a = this.state, selectedHeaderIndex = _a.selectedHeaderIndex, selectedFooterIndex = _a.selectedFooterIndex; return selectedHeaderIndex !== -1 || this.hasSuggestionSelected() || selectedFooterIndex !== -1; }; SuggestionsControl.prototype.executeSelectedAction = function () { var _a; var _b = this.props, headerItemsProps = _b.headerItemsProps, footerItemsProps = _b.footerItemsProps; var _c = this.state, selectedHeaderIndex = _c.selectedHeaderIndex, selectedFooterIndex = _c.selectedFooterIndex; if (headerItemsProps && selectedHeaderIndex !== -1 && selectedHeaderIndex < headerItemsProps.length) { var selectedHeaderItem = headerItemsProps[selectedHeaderIndex]; if (selectedHeaderItem.onExecute) { selectedHeaderItem.onExecute(); } } else if ((_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.hasSuggestionSelected()) { this.props.completeSuggestion(); } else if (footerItemsProps && selectedFooterIndex !== -1 && selectedFooterIndex < footerItemsProps.length) { var selectedFooterItem = footerItemsProps[selectedFooterIndex]; if (selectedFooterItem.onExecute) { selectedFooterItem.onExecute(); } } }; SuggestionsControl.prototype.removeSuggestion = function (index) { var _a, _b; (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.removeSuggestion(index ? index : (_b = this._suggestions.current) === null || _b === void 0 ? void 0 : _b.currentIndex); }; /** * Handles the key down, returns true, if the event was handled, false otherwise * @param keyCode - The keyCode to handle */ SuggestionsControl.prototype.handleKeyDown = function (keyCode) { var _a, _b, _c, _d; var _e = this.state, selectedHeaderIndex = _e.selectedHeaderIndex, selectedFooterIndex = _e.selectedFooterIndex; var isKeyDownHandled = false; if (keyCode === Utilities_1.KeyCodes.down) { if (selectedHeaderIndex === -1 && !((_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.hasSuggestionSelected()) && selectedFooterIndex === -1) { this.selectFirstItem(); } else if (selectedHeaderIndex !== -1) { this.selectNextItem(SuggestionItemType.header); isKeyDownHandled = true; } else if ((_b = this._suggestions.current) === null || _b === void 0 ? void 0 : _b.hasSuggestionSelected()) { this.selectNextItem(SuggestionItemType.suggestion); isKeyDownHandled = true; } else if (selectedFooterIndex !== -1) { this.selectNextItem(SuggestionItemType.footer); isKeyDownHandled = true; } } else if (keyCode === Utilities_1.KeyCodes.up) { if (selectedHeaderIndex === -1 && !((_c = this._suggestions.current) === null || _c === void 0 ? void 0 : _c.hasSuggestionSelected()) && selectedFooterIndex === -1) { this.selectLastItem(); } else if (selectedHeaderIndex !== -1) { this.selectPreviousItem(SuggestionItemType.header); isKeyDownHandled = true; } else if ((_d = this._suggestions.current) === null || _d === void 0 ? void 0 : _d.hasSuggestionSelected()) { this.selectPreviousItem(SuggestionItemType.suggestion); isKeyDownHandled = true; } else if (selectedFooterIndex !== -1) { this.selectPreviousItem(SuggestionItemType.footer); isKeyDownHandled = true; } } else if (keyCode === Utilities_1.KeyCodes.enter || keyCode === Utilities_1.KeyCodes.tab) { if (this.hasSelection()) { this.executeSelectedAction(); isKeyDownHandled = true; } } return isKeyDownHandled; }; // TODO get the element to scroll into view properly regardless of direction. SuggestionsControl.prototype.scrollSelected = function () { if (this._selectedElement.current) { this._selectedElement.current.scrollIntoView(false); } }; SuggestionsControl.prototype.renderHeaderItems = function () { var _this = this; var _a = this.props, headerItemsProps = _a.headerItemsProps, suggestionsHeaderContainerAriaLabel = _a.suggestionsHeaderContainerAriaLabel; var selectedHeaderIndex = this.state.selectedHeaderIndex; return headerItemsProps ? (React.createElement("div", { className: (0, Utilities_1.css)('ms-Suggestions-headerContainer', styles.suggestionsContainer), id: "suggestionHeader-list", role: "list", "aria-label": suggestionsHeaderContainerAriaLabel }, headerItemsProps.map(function (headerItemProps, index) { var isSelected = selectedHeaderIndex !== -1 && selectedHeaderIndex === index; return headerItemProps.shouldShow() ? (React.createElement("div", { ref: isSelected ? _this._selectedElement : undefined, id: 'sug-header' + index, key: 'sug-header' + index, role: "listitem", "aria-label": headerItemProps.ariaLabel }, React.createElement(SuggestionsHeaderFooterItem, { id: 'sug-header-item' + index, isSelected: isSelected, renderItem: headerItemProps.renderItem, onExecute: headerItemProps.onExecute, className: headerItemProps.className }))) : null; }))) : null; }; SuggestionsControl.prototype.renderFooterItems = function () { var _this = this; var _a = this.props, footerItemsProps = _a.footerItemsProps, suggestionsFooterContainerAriaLabel = _a.suggestionsFooterContainerAriaLabel; var selectedFooterIndex = this.state.selectedFooterIndex; return footerItemsProps ? (React.createElement("div", { className: (0, Utilities_1.css)('ms-Suggestions-footerContainer', styles.suggestionsContainer), id: "suggestionFooter-list", role: "list", "aria-label": suggestionsFooterContainerAriaLabel }, footerItemsProps.map(function (footerItemProps, index) { var isSelected = selectedFooterIndex !== -1 && selectedFooterIndex === index; return footerItemProps.shouldShow() ? (React.createElement("div", { ref: isSelected ? _this._selectedElement : undefined, id: 'sug-footer' + index, key: 'sug-footer' + index, role: "listitem", "aria-label": footerItemProps.ariaLabel }, React.createElement(SuggestionsHeaderFooterItem, { id: 'sug-footer-item' + index, isSelected: isSelected, renderItem: footerItemProps.renderItem, onExecute: footerItemProps.onExecute, className: footerItemProps.className }))) : null; }))) : null; }; SuggestionsControl.prototype._renderSuggestions = function () { var TypedSuggestions = this.SuggestionsOfProperType; return React.createElement(TypedSuggestions, tslib_1.__assign({ ref: this._suggestions }, this.props, { suggestions: this.state.suggestions })); }; /** * Selects the next selectable item */ SuggestionsControl.prototype.selectNextItem = function (itemType, originalItemType) { // If the recursive calling has not found a selectable item in the other suggestion item type groups // And the method is being called again with the original item type, // Select the first selectable item of this suggestion item type group (could be the currently selected item) if (itemType === originalItemType) { this._selectNextItemOfItemType(itemType); return; } var startedItemType = originalItemType !== undefined ? originalItemType : itemType; // Try to set the selection to the next selectable item, of the same suggestion item type group // If this is the original item type, use the current index var selectionChanged = this._selectNextItemOfItemType(itemType, startedItemType === itemType ? this._getCurrentIndexForType(itemType) : undefined); // If the selection did not change, try to select from the next suggestion type group if (!selectionChanged) { this.selectNextItem(this._getNextItemSectionType(itemType), startedItemType); } }; /** * Selects the previous selectable item */ SuggestionsControl.prototype.selectPreviousItem = function (itemType, originalItemType) { // If the recursive calling has not found a selectable item in the other suggestion item type groups // And the method is being called again with the original item type, // Select the last selectable item of this suggestion item type group (could be the currently selected item) if (itemType === originalItemType) { this._selectPreviousItemOfItemType(itemType); return; } var startedItemType = originalItemType !== undefined ? originalItemType : itemType; // Try to set the selection to the previous selectable item, of the same suggestion item type group var selectionChanged = this._selectPreviousItemOfItemType(itemType, startedItemType === itemType ? this._getCurrentIndexForType(itemType) : undefined); // If the selection did not change, try to select from the previous suggestion type group if (!selectionChanged) { this.selectPreviousItem(this._getPreviousItemSectionType(itemType), startedItemType); } }; /** * Resets the selected state and selects the first selectable item */ SuggestionsControl.prototype.resetSelectedItem = function () { var _a; this.setState({ selectedHeaderIndex: -1, selectedFooterIndex: -1 }); (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.deselectAllSuggestions(); // Select the first item if the shouldSelectFirstItem prop is not set or it is set and it returns true if (this.props.shouldSelectFirstItem === undefined || this.props.shouldSelectFirstItem()) { this.selectFirstItem(); } }; /** * Selects the first item */ SuggestionsControl.prototype.selectFirstItem = function () { if (this._selectNextItemOfItemType(SuggestionItemType.header)) { return; } if (this._selectNextItemOfItemType(SuggestionItemType.suggestion)) { return; } this._selectNextItemOfItemType(SuggestionItemType.footer); }; /** * Selects the last item */ SuggestionsControl.prototype.selectLastItem = function () { if (this._selectPreviousItemOfItemType(SuggestionItemType.footer)) { return; } if (this._selectPreviousItemOfItemType(SuggestionItemType.suggestion)) { return; } this._selectPreviousItemOfItemType(SuggestionItemType.header); }; /** * Selects the next item in the suggestion item type group, given the current index * If none is able to be selected, returns false, otherwise returns true * @param itemType - The suggestion item type * @param currentIndex - The current index, default is -1 */ SuggestionsControl.prototype._selectNextItemOfItemType = function (itemType, currentIndex) { var _a, _b; if (currentIndex === void 0) { currentIndex = -1; } if (itemType === SuggestionItemType.suggestion) { if (this.state.suggestions.length > currentIndex + 1) { (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.setSelectedSuggestion(currentIndex + 1); this.setState({ selectedHeaderIndex: -1, selectedFooterIndex: -1 }); return true; } } else { var isHeader = itemType === SuggestionItemType.header; var itemProps = isHeader ? this.props.headerItemsProps : this.props.footerItemsProps; if (itemProps && itemProps.length > currentIndex + 1) { for (var i = currentIndex + 1; i < itemProps.length; i++) { var item = itemProps[i]; if (item.onExecute && item.shouldShow()) { this.setState({ selectedHeaderIndex: isHeader ? i : -1 }); this.setState({ selectedFooterIndex: isHeader ? -1 : i }); (_b = this._suggestions.current) === null || _b === void 0 ? void 0 : _b.deselectAllSuggestions(); return true; } } } } return false; }; /** * Selects the previous item in the suggestion item type group, given the current index * If none is able to be selected, returns false, otherwise returns true * @param itemType - The suggestion item type * @param currentIndex - The current index. If none is provided, the default is the items length of specified type */ SuggestionsControl.prototype._selectPreviousItemOfItemType = function (itemType, currentIndex) { var _a, _b; if (itemType === SuggestionItemType.suggestion) { var index = currentIndex !== undefined ? currentIndex : this.state.suggestions.length; if (index > 0) { (_a = this._suggestions.current) === null || _a === void 0 ? void 0 : _a.setSelectedSuggestion(index - 1); this.setState({ selectedHeaderIndex: -1, selectedFooterIndex: -1 }); return true; } } else { var isHeader = itemType === SuggestionItemType.header; var itemProps = isHeader ? this.props.headerItemsProps : this.props.footerItemsProps; if (itemProps) { var index = currentIndex !== undefined ? currentIndex : itemProps.length; if (index > 0) { for (var i = index - 1; i >= 0; i--) { var item = itemProps[i]; if (item.onExecute && item.shouldShow()) { this.setState({ selectedHeaderIndex: isHeader ? i : -1 }); this.setState({ selectedFooterIndex: isHeader ? -1 : i }); (_b = this._suggestions.current) === null || _b === void 0 ? void 0 : _b.deselectAllSuggestions(); return true; } } } } } return false; }; SuggestionsControl.prototype._getCurrentIndexForType = function (itemType) { switch (itemType) { case SuggestionItemType.header: return this.state.selectedHeaderIndex; case SuggestionItemType.suggestion: return this._suggestions.current.currentIndex; case SuggestionItemType.footer: return this.state.selectedFooterIndex; } }; SuggestionsControl.prototype._getNextItemSectionType = function (itemType) { switch (itemType) { case SuggestionItemType.header: return SuggestionItemType.suggestion; case SuggestionItemType.suggestion: return SuggestionItemType.footer; case SuggestionItemType.footer: return SuggestionItemType.header; } }; SuggestionsControl.prototype._getPreviousItemSectionType = function (itemType) { switch (itemType) { case SuggestionItemType.header: return SuggestionItemType.footer; case SuggestionItemType.suggestion: return SuggestionItemType.header; case SuggestionItemType.footer: return SuggestionItemType.suggestion; } }; return SuggestionsControl; }(React.Component)); exports.SuggestionsControl = SuggestionsControl; //# sourceMappingURL=SuggestionsControl.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsControl.scss.js": /*!********************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsControl.scss.js ***! \********************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.screenReaderOnly = exports.itemButton = exports.suggestionsSpinner = exports.suggestionsTitle = exports.buttonSelected = exports.actionButton = exports.root = void 0; /* eslint-disable */ var load_themed_styles_1 = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); (0, load_themed_styles_1.loadStyles)([{ "rawString": ".root_ade399af{min-width:260px}.actionButton_ade399af{background:0 0;background-color:transparent;border:0;cursor:pointer;margin:0;padding:0;position:relative;width:100%;font-size:12px}html[dir=ltr] .actionButton_ade399af{text-align:left}html[dir=rtl] .actionButton_ade399af{text-align:right}.actionButton_ade399af:hover{background-color:" }, { "theme": "neutralLighter", "defaultValue": "#f3f2f1" }, { "rawString": ";cursor:pointer}.actionButton_ade399af:active,.actionButton_ade399af:focus{background-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": "}.actionButton_ade399af .ms-Button-icon{font-size:16px;width:25px}.actionButton_ade399af .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_ade399af .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_ade399af{background-color:" }, { "theme": "themeLighter", "defaultValue": "#deecf9" }, { "rawString": "}.buttonSelected_ade399af:hover{background-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": ";cursor:pointer}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af:hover{background-color:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af{background-color:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsTitle_ade399af{font-size:12px}.suggestionsSpinner_ade399af{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_ade399af{padding-left:14px}html[dir=rtl] .suggestionsSpinner_ade399af{padding-right:14px}html[dir=ltr] .suggestionsSpinner_ade399af{text-align:left}html[dir=rtl] .suggestionsSpinner_ade399af{text-align:right}.suggestionsSpinner_ade399af .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_ade399af .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_ade399af .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_ade399af{height:100%;width:100%;padding:7px 12px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_ade399af{color:WindowText}}.screenReaderOnly_ade399af{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}" }]); exports.root = "root_ade399af"; exports.actionButton = "actionButton_ade399af"; exports.buttonSelected = "buttonSelected_ade399af"; exports.suggestionsTitle = "suggestionsTitle_ade399af"; exports.suggestionsSpinner = "suggestionsSpinner_ade399af"; exports.itemButton = "itemButton_ade399af"; exports.screenReaderOnly = "screenReaderOnly_ade399af"; //# sourceMappingURL=SuggestionsControl.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsCore.js": /*!************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsCore.js ***! \************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuggestionsCore = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Pickers_1 = __webpack_require__(/*! ../../../Pickers */ "./node_modules/@fluentui/react/lib-commonjs/Pickers.js"); var stylesImport = __webpack_require__(/*! ./SuggestionsCore.scss */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsCore.scss.js"); var styles = stylesImport; /** * Class when used with SuggestionsStore, renders a basic suggestions control */ var SuggestionsCore = /** @class */ (function (_super) { tslib_1.__extends(SuggestionsCore, _super); function SuggestionsCore(suggestionsProps) { var _this = _super.call(this, suggestionsProps) || this; _this._selectedElement = React.createRef(); _this.SuggestionsItemOfProperType = Pickers_1.SuggestionsItem; _this._onClickTypedSuggestionsItem = function (item, index) { return function (ev) { _this.props.onSuggestionClick(ev, item, index); }; }; _this._onRemoveTypedSuggestionsItem = function (item, index) { return function (ev) { var onSuggestionRemove = _this.props.onSuggestionRemove; onSuggestionRemove(ev, item, index); ev.stopPropagation(); }; }; (0, Utilities_1.initializeComponentRef)(_this); _this.currentIndex = -1; return _this; } /** * Increments the selected suggestion index */ SuggestionsCore.prototype.nextSuggestion = function () { var suggestions = this.props.suggestions; if (suggestions && suggestions.length > 0) { if (this.currentIndex === -1) { this.setSelectedSuggestion(0); return true; } else if (this.currentIndex < suggestions.length - 1) { this.setSelectedSuggestion(this.currentIndex + 1); return true; } else if (this.props.shouldLoopSelection && this.currentIndex === suggestions.length - 1) { this.setSelectedSuggestion(0); return true; } } return false; }; /** * Decrements the selected suggestion index */ SuggestionsCore.prototype.previousSuggestion = function () { var suggestions = this.props.suggestions; if (suggestions && suggestions.length > 0) { if (this.currentIndex === -1) { this.setSelectedSuggestion(suggestions.length - 1); return true; } else if (this.currentIndex > 0) { this.setSelectedSuggestion(this.currentIndex - 1); return true; } else if (this.props.shouldLoopSelection && this.currentIndex === 0) { this.setSelectedSuggestion(suggestions.length - 1); return true; } } return false; }; Object.defineProperty(SuggestionsCore.prototype, "selectedElement", { get: function () { return this._selectedElement.current || undefined; }, enumerable: false, configurable: true }); SuggestionsCore.prototype.getCurrentItem = function () { return this.props.suggestions[this.currentIndex]; }; SuggestionsCore.prototype.getSuggestionAtIndex = function (index) { return this.props.suggestions[index]; }; SuggestionsCore.prototype.hasSuggestionSelected = function () { return this.currentIndex !== -1 && this.currentIndex < this.props.suggestions.length; }; SuggestionsCore.prototype.removeSuggestion = function (index) { this.props.suggestions.splice(index, 1); }; SuggestionsCore.prototype.deselectAllSuggestions = function () { if (this.currentIndex > -1 && this.props.suggestions[this.currentIndex]) { this.props.suggestions[this.currentIndex].selected = false; this.currentIndex = -1; this.forceUpdate(); } }; SuggestionsCore.prototype.setSelectedSuggestion = function (index) { var suggestions = this.props.suggestions; if (index > suggestions.length - 1 || index < 0) { this.currentIndex = 0; this.currentSuggestion.selected = false; this.currentSuggestion = suggestions[0]; this.currentSuggestion.selected = true; } else { if (this.currentIndex > -1 && suggestions[this.currentIndex]) { suggestions[this.currentIndex].selected = false; } suggestions[index].selected = true; this.currentIndex = index; this.currentSuggestion = suggestions[index]; } this.forceUpdate(); }; SuggestionsCore.prototype.componentDidUpdate = function () { this.scrollSelected(); }; SuggestionsCore.prototype.render = function () { var _this = this; var _a = this.props, onRenderSuggestion = _a.onRenderSuggestion, suggestionsItemClassName = _a.suggestionsItemClassName, resultsMaximumNumber = _a.resultsMaximumNumber, showRemoveButtons = _a.showRemoveButtons, suggestionsContainerAriaLabel = _a.suggestionsContainerAriaLabel; var TypedSuggestionsItem = this.SuggestionsItemOfProperType; var suggestions = this.props.suggestions; if (resultsMaximumNumber) { suggestions = suggestions.slice(0, resultsMaximumNumber); } return (React.createElement("div", { className: (0, Utilities_1.css)('ms-Suggestions-container', styles.suggestionsContainer), id: "suggestion-list", role: "listbox", "aria-label": suggestionsContainerAriaLabel }, suggestions.map(function (suggestion, index) { return (React.createElement("div", { ref: suggestion.selected || index === _this.currentIndex ? _this._selectedElement : undefined, key: suggestion.item.key ? suggestion.item.key : index, id: 'sug-' + index }, React.createElement(TypedSuggestionsItem, { id: 'sug-item' + index, suggestionModel: suggestion, RenderSuggestion: onRenderSuggestion, onClick: _this._onClickTypedSuggestionsItem(suggestion.item, index), className: suggestionsItemClassName, showRemoveButton: showRemoveButtons, onRemoveItem: _this._onRemoveTypedSuggestionsItem(suggestion.item, index), isSelectedOverride: index === _this.currentIndex }))); }))); }; // TODO get the element to scroll into view properly regardless of direction. SuggestionsCore.prototype.scrollSelected = function () { var _a; if (((_a = this._selectedElement.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView) !== undefined) { this._selectedElement.current.scrollIntoView(false); } }; return SuggestionsCore; }(React.Component)); exports.SuggestionsCore = SuggestionsCore; //# sourceMappingURL=SuggestionsCore.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsCore.scss.js": /*!*****************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsCore.scss.js ***! \*****************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.suggestionsContainer = void 0; /* eslint-disable */ var load_themed_styles_1 = __webpack_require__(/*! @microsoft/load-themed-styles */ "./node_modules/@microsoft/load-themed-styles/lib-es6/index.js"); (0, load_themed_styles_1.loadStyles)([{ "rawString": ".suggestionsContainer_44c59fda{overflow-y:auto;overflow-x:hidden;max-height:300px}.suggestionsContainer_44c59fda .ms-Suggestion-item:hover{background-color:" }, { "theme": "neutralLighter", "defaultValue": "#f3f2f1" }, { "rawString": ";cursor:pointer}.suggestionsContainer_44c59fda .is-suggested{background-color:" }, { "theme": "themeLighter", "defaultValue": "#deecf9" }, { "rawString": "}.suggestionsContainer_44c59fda .is-suggested:hover{background-color:" }, { "theme": "themeLight", "defaultValue": "#c7e0f4" }, { "rawString": ";cursor:pointer}" }]); exports.suggestionsContainer = "suggestionsContainer_44c59fda"; //# sourceMappingURL=SuggestionsCore.scss.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsStore.js": /*!*************************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsStore.js ***! \*************************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.SuggestionsStore = void 0; var SuggestionsStore = /** @class */ (function () { function SuggestionsStore(options) { var _this = this; this._isSuggestionModel = function (value) { return value.item !== undefined; }; this._ensureSuggestionModel = function (suggestion) { if (_this._isSuggestionModel(suggestion)) { return suggestion; } else { return { item: suggestion, selected: false, ariaLabel: _this.getAriaLabel !== undefined ? _this.getAriaLabel(suggestion) : suggestion.name || suggestion.text || // eslint-disable-next-line deprecation/deprecation suggestion.primaryText, }; } }; this.suggestions = []; this.getAriaLabel = options && options.getAriaLabel; } SuggestionsStore.prototype.updateSuggestions = function (newSuggestions) { if (newSuggestions && newSuggestions.length > 0) { this.suggestions = this.convertSuggestionsToSuggestionItems(newSuggestions); } else { this.suggestions = []; } }; SuggestionsStore.prototype.getSuggestions = function () { return this.suggestions; }; SuggestionsStore.prototype.getSuggestionAtIndex = function (index) { return this.suggestions[index]; }; SuggestionsStore.prototype.removeSuggestion = function (index) { this.suggestions.splice(index, 1); }; SuggestionsStore.prototype.convertSuggestionsToSuggestionItems = function (suggestions) { return Array.isArray(suggestions) ? suggestions.map(this._ensureSuggestionModel) : []; }; return SuggestionsStore; }()); exports.SuggestionsStore = SuggestionsStore; //# sourceMappingURL=SuggestionsStore.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/index.js": /*!**************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/index.js ***! \**************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./BaseFloatingPicker */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/BaseFloatingPicker.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./BaseFloatingPicker.types */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/BaseFloatingPicker.types.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./PeoplePicker/FloatingPeoplePicker */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/PeoplePicker/FloatingPeoplePicker.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/SuggestionsStore */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsStore.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/SuggestionsControl */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsControl.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/SuggestionsCore */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/SuggestionsCore.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./Suggestions/Suggestions.types */ "./node_modules/@fluentui/react/lib-commonjs/components/FloatingPicker/Suggestions/Suggestions.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FocusTrapZone/FocusTrapZone.js": /*!*********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FocusTrapZone/FocusTrapZone.js ***! \*********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.FocusTrapZone = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var react_hooks_1 = __webpack_require__(/*! @fluentui/react-hooks */ "./node_modules/@fluentui/react-hooks/lib-commonjs/index.js"); var WindowProvider_1 = __webpack_require__(/*! ../../WindowProvider */ "./node_modules/@fluentui/react/lib-commonjs/WindowProvider.js"); var COMPONENT_NAME = 'FocusTrapZone'; var DEFAULT_PROPS = { disabled: false, disableFirstFocus: false, forceFocusInsideTrap: true, isClickableOutsideFocusTrap: false, }; var useComponentRef = function (componentRef, previouslyFocusedElement, focusFTZ) { React.useImperativeHandle(componentRef, function () { return ({ get previouslyFocusedElement() { return previouslyFocusedElement; }, focus: focusFTZ, }); }, [focusFTZ, previouslyFocusedElement]); }; exports.FocusTrapZone = React.forwardRef(function (propsWithoutDefaults, ref) { var _a; var root = React.useRef(null); var firstBumper = React.useRef(null); var lastBumper = React.useRef(null); var mergedRootRef = (0, react_hooks_1.useMergedRefs)(root, ref); var doc = (0, WindowProvider_1.useDocument)(); var isFirstRender = (_a = (0, react_hooks_1.usePrevious)(false)) !== null && _a !== void 0 ? _a : true; var props = (0, Utilities_1.getPropsWithDefaults)(DEFAULT_PROPS, propsWithoutDefaults); var internalState = (0, react_hooks_1.useConst)({ hasFocus: false, focusStackId: (0, react_hooks_1.useId)('ftz-', props.id), }); var children = props.children, componentRef = props.componentRef, disabled = props.disabled, disableFirstFocus = props.disableFirstFocus, forceFocusInsideTrap = props.forceFocusInsideTrap, focusPreviouslyFocusedInnerElement = props.focusPreviouslyFocusedInnerElement, // eslint-disable-next-line deprecation/deprecation firstFocusableSelector = props.firstFocusableSelector, firstFocusableTarget = props.firstFocusableTarget, // eslint-disable-next-line deprecation/deprecation _b = props.disableRestoreFocus, // eslint-disable-next-line deprecation/deprecation disableRestoreFocus = _b === void 0 ? props.ignoreExternalFocusing : _b, isClickableOutsideFocusTrap = props.isClickableOutsideFocusTrap, enableAriaHiddenSiblings = props.enableAriaHiddenSiblings; var bumperProps = { 'aria-hidden': true, style: { pointerEvents: 'none', position: 'fixed', // 'fixed' prevents browsers from scrolling to bumpers when viewport does not contain them }, tabIndex: disabled ? -1 : 0, 'data-is-visible': true, 'data-is-focus-trap-zone-bumper': true, }; var focusElementAsync = React.useCallback(function (element) { if (element !== firstBumper.current && element !== lastBumper.current) { (0, Utilities_1.focusAsync)(element); } }, []); /** * Callback to force focus into FTZ (named to avoid overlap with global focus() callback). * useEventCallback always returns the same callback reference but updates the implementation * every render to avoid stale captured values. */ var focusFTZ = (0, react_hooks_1.useEventCallback)(function () { if (!root.current) { return; // not done mounting } var previouslyFocusedElementInTrapZone = internalState.previouslyFocusedElementInTrapZone; if (focusPreviouslyFocusedInnerElement && previouslyFocusedElementInTrapZone && (0, Utilities_1.elementContains)(root.current, previouslyFocusedElementInTrapZone)) { // focus on the last item that had focus in the zone before we left the zone focusElementAsync(previouslyFocusedElementInTrapZone); return; } var firstFocusableChild = null; if (typeof firstFocusableTarget === 'string') { firstFocusableChild = root.current.querySelector(firstFocusableTarget); } else if (firstFocusableTarget) { firstFocusableChild = firstFocusableTarget(root.current); } else if (firstFocusableSelector) { var focusSelector = typeof firstFocusableSelector === 'string' ? firstFocusableSelector : firstFocusableSelector(); firstFocusableChild = root.current.querySelector('.' + focusSelector); } // Fall back to first element if query selector did not match any elements. if (!firstFocusableChild) { firstFocusableChild = (0, Utilities_1.getNextElement)(root.current, root.current.firstChild, false, false, false, true); } if (firstFocusableChild) { focusElementAsync(firstFocusableChild); } }); /** Used in root div focus/blur handlers */ var focusBumper = function (isFirstBumper) { if (disabled || !root.current) { return; } var nextFocusable = isFirstBumper === internalState.hasFocus ? (0, Utilities_1.getLastTabbable)(root.current, lastBumper.current, true, false) : (0, Utilities_1.getFirstTabbable)(root.current, firstBumper.current, true, false); if (nextFocusable) { if (nextFocusable === firstBumper.current || nextFocusable === lastBumper.current) { // This can happen when FTZ contains no tabbable elements. // focusFTZ() will take care of finding a focusable element in FTZ. focusFTZ(); } else { nextFocusable.focus(); } } }; /** Root div blur handler (doesn't need useCallback since it's for a native element) */ var onRootBlurCapture = function (ev) { var _a; (_a = props.onBlurCapture) === null || _a === void 0 ? void 0 : _a.call(props, ev); var relatedTarget = ev.relatedTarget; if (ev.relatedTarget === null) { // In IE11, due to lack of support, event.relatedTarget is always // null making every onBlur call to be "outside" of the root // even when it's not. Using document.activeElement is another way // for us to be able to get what the relatedTarget without relying // on the event relatedTarget = doc.activeElement; } if (!(0, Utilities_1.elementContains)(root.current, relatedTarget)) { internalState.hasFocus = false; } }; /** Root div focus handler (doesn't need useCallback since it's for a native element) */ var onRootFocusCapture = function (ev) { var _a; (_a = props.onFocusCapture) === null || _a === void 0 ? void 0 : _a.call(props, ev); if (ev.target === firstBumper.current) { focusBumper(true); } else if (ev.target === lastBumper.current) { focusBumper(false); } internalState.hasFocus = true; if (ev.target !== ev.currentTarget && !(ev.target === firstBumper.current || ev.target === lastBumper.current)) { // every time focus changes within the trap zone, remember the focused element so that // it can be restored if focus leaves the pane and returns via keystroke (i.e. via a call to this.focus(true)) internalState.previouslyFocusedElementInTrapZone = ev.target; } }; /** Called to restore focus on unmount or props change. (useEventCallback ensures latest prop values are used.) */ var returnFocusToInitiator = (0, react_hooks_1.useEventCallback)(function (elementToFocusOnDismiss) { exports.FocusTrapZone.focusStack = exports.FocusTrapZone.focusStack.filter(function (value) { return internalState.focusStackId !== value; }); if (!doc) { return; } var activeElement = doc.activeElement; if (!disableRestoreFocus && typeof (elementToFocusOnDismiss === null || elementToFocusOnDismiss === void 0 ? void 0 : elementToFocusOnDismiss.focus) === 'function' && // only restore focus if the current focused element is within the FTZ, or if nothing is focused ((0, Utilities_1.elementContains)(root.current, activeElement) || activeElement === doc.body)) { focusElementAsync(elementToFocusOnDismiss); } }); /** Called in window event handlers. (useEventCallback ensures latest prop values are used.) */ var forceFocusOrClickInTrap = (0, react_hooks_1.useEventCallback)(function (ev) { // be sure to use the latest values here if (disabled) { return; } if (internalState.focusStackId === exports.FocusTrapZone.focusStack.slice(-1)[0]) { var targetElement = ev.target; if (targetElement && !(0, Utilities_1.elementContains)(root.current, targetElement)) { if (doc && doc.activeElement === doc.body) { setTimeout(function () { if (doc && doc.activeElement === doc.body) { focusFTZ(); internalState.hasFocus = true; // set focus here since we stop event propagation } }, 0); } else { focusFTZ(); internalState.hasFocus = true; // set focus here since we stop event propagation } ev.preventDefault(); ev.stopPropagation(); } } }); // Update window event handlers when relevant props change React.useEffect(function () { var disposables = []; if (forceFocusInsideTrap) { disposables.push((0, Utilities_1.on)(window, 'focus', forceFocusOrClickInTrap, true)); } if (!isClickableOutsideFocusTrap) { disposables.push((0, Utilities_1.on)(window, 'click', forceFocusOrClickInTrap, true)); } return function () { disposables.forEach(function (dispose) { return dispose(); }); }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run when these two props change }, [forceFocusInsideTrap, isClickableOutsideFocusTrap]); // On prop change or first render, focus the FTZ and update focusStack if appropriate React.useEffect(function () { // Do nothing if disabled, or if it's a re-render and forceFocusInsideTrap is false // (to match existing behavior, the FTZ handles first focus even if forceFocusInsideTrap // is false, though it's debatable whether it should do this) if (disabled || (!isFirstRender && !forceFocusInsideTrap) || !root.current) { return; } // Transition from forceFocusInsideTrap / FTZ disabled to enabled (or initial mount) exports.FocusTrapZone.focusStack.push(internalState.focusStackId); var elementToFocusOnDismiss = props.elementToFocusOnDismiss || doc.activeElement; if (!disableFirstFocus && !(0, Utilities_1.elementContains)(root.current, elementToFocusOnDismiss)) { focusFTZ(); } // To match existing behavior, always return focus on cleanup (even if we didn't handle // initial focus), but it's debatable whether that's correct return function () { return returnFocusToInitiator(elementToFocusOnDismiss); }; // eslint-disable-next-line react-hooks/exhaustive-deps -- should only run when these two props change }, [forceFocusInsideTrap, disabled]); // Handle modalization separately from first focus React.useEffect(function () { if (!disabled && enableAriaHiddenSiblings) { var unmodalize = (0, Utilities_1.modalize)(root.current); return unmodalize; } }, [disabled, enableAriaHiddenSiblings, root]); // Cleanup lifecyle method for internalState. (0, react_hooks_1.useUnmount)(function () { // Dispose of element references so the DOM Nodes can be garbage-collected delete internalState.previouslyFocusedElementInTrapZone; }); useComponentRef(componentRef, internalState.previouslyFocusedElementInTrapZone, focusFTZ); return (React.createElement("div", tslib_1.__assign({ "aria-labelledby": props.ariaLabelledBy }, (0, Utilities_1.getNativeProps)(props, Utilities_1.divProperties), { ref: mergedRootRef, onFocusCapture: onRootFocusCapture, onBlurCapture: onRootBlurCapture }), React.createElement("div", tslib_1.__assign({}, bumperProps, { ref: firstBumper })), children, React.createElement("div", tslib_1.__assign({}, bumperProps, { ref: lastBumper })))); }); exports.FocusTrapZone.displayName = COMPONENT_NAME; exports.FocusTrapZone.focusStack = []; //# sourceMappingURL=FocusTrapZone.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FocusTrapZone/FocusTrapZone.types.js": /*!***************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FocusTrapZone/FocusTrapZone.types.js ***! \***************************************************************************************************/ /***/ (function(__unused_webpack_module, exports) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); //# sourceMappingURL=FocusTrapZone.types.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/FocusTrapZone/index.js": /*!*************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/FocusTrapZone/index.js ***! \*************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); tslib_1.__exportStar(__webpack_require__(/*! ./FocusTrapZone */ "./node_modules/@fluentui/react/lib-commonjs/components/FocusTrapZone/FocusTrapZone.js"), exports); tslib_1.__exportStar(__webpack_require__(/*! ./FocusTrapZone.types */ "./node_modules/@fluentui/react/lib-commonjs/components/FocusTrapZone/FocusTrapZone.types.js"), exports); //# sourceMappingURL=index.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupFooter.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupFooter.base.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupFooterBase = void 0; var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var GroupSpacer_1 = __webpack_require__(/*! ./GroupSpacer */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var GroupFooterBase = function (props) { var group = props.group, groupLevel = props.groupLevel, footerText = props.footerText, indentWidth = props.indentWidth, styles = props.styles, theme = props.theme; var classNames = getClassNames(styles, { theme: theme }); if (group && footerText) { return (React.createElement("div", { className: classNames.root }, React.createElement(GroupSpacer_1.GroupSpacer, { indentWidth: indentWidth, count: groupLevel }), footerText)); } return null; }; exports.GroupFooterBase = GroupFooterBase; //# sourceMappingURL=GroupFooter.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupFooter.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupFooter.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupFooter = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var GroupFooter_styles_1 = __webpack_require__(/*! ./GroupFooter.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupFooter.styles.js"); var GroupFooter_base_1 = __webpack_require__(/*! ./GroupFooter.base */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupFooter.base.js"); exports.GroupFooter = (0, Utilities_1.styled)(GroupFooter_base_1.GroupFooterBase, GroupFooter_styles_1.getStyles, undefined, { scope: 'GroupFooter', }); //# sourceMappingURL=GroupFooter.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupFooter.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupFooter.styles.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var GlobalClassNames = { root: 'ms-groupFooter', }; var getStyles = function (props) { var theme = props.theme, className = props.className; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); return { root: [ theme.fonts.medium, classNames.root, { position: 'relative', padding: '5px 38px', }, className, ], }; }; exports.getStyles = getStyles; //# sourceMappingURL=GroupFooter.styles.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupHeader.base.js": /*!**********************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupHeader.base.js ***! \**********************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupHeaderBase = void 0; var tslib_1 = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.mjs"); var React = __webpack_require__(/*! react */ "./node_modules/react/index.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var Selection_1 = __webpack_require__(/*! ../../Selection */ "./node_modules/@fluentui/react/lib-commonjs/Selection.js"); var Check_1 = __webpack_require__(/*! ../../Check */ "./node_modules/@fluentui/react/lib-commonjs/Check.js"); var Icon_1 = __webpack_require__(/*! ../../Icon */ "./node_modules/@fluentui/react/lib-commonjs/Icon.js"); var GroupSpacer_1 = __webpack_require__(/*! ./GroupSpacer */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.js"); var Spinner_1 = __webpack_require__(/*! ../../Spinner */ "./node_modules/@fluentui/react/lib-commonjs/Spinner.js"); var DetailsRowCheck_styles_1 = __webpack_require__(/*! ../DetailsList/DetailsRowCheck.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.styles.js"); var getClassNames = (0, Utilities_1.classNamesFunction)(); var GroupHeaderBase = /** @class */ (function (_super) { tslib_1.__extends(GroupHeaderBase, _super); function GroupHeaderBase(props) { var _this = _super.call(this, props) || this; _this._toggleCollapse = function () { var _a = _this.props, group = _a.group, onToggleCollapse = _a.onToggleCollapse, isGroupLoading = _a.isGroupLoading; var isCollapsed = _this.state.isCollapsed; var newCollapsed = !isCollapsed; var newLoadingVisible = !newCollapsed && isGroupLoading && isGroupLoading(group); _this.setState({ isCollapsed: newCollapsed, isLoadingVisible: newLoadingVisible, }); if (onToggleCollapse) { onToggleCollapse(group); } }; _this._onKeyUp = function (ev) { var _a = _this.props, group = _a.group, onGroupHeaderKeyUp = _a.onGroupHeaderKeyUp; if (onGroupHeaderKeyUp) { onGroupHeaderKeyUp(ev, group); } if (!ev.defaultPrevented) { // eslint-disable-next-line deprecation/deprecation var shouldOpen = _this.state.isCollapsed && ev.which === (0, Utilities_1.getRTLSafeKeyCode)(Utilities_1.KeyCodes.right, _this.props.theme); // eslint-disable-next-line deprecation/deprecation var shouldClose = !_this.state.isCollapsed && ev.which === (0, Utilities_1.getRTLSafeKeyCode)(Utilities_1.KeyCodes.left, _this.props.theme); if (shouldClose || shouldOpen) { _this._toggleCollapse(); ev.stopPropagation(); ev.preventDefault(); } } }; _this._onToggleClick = function (ev) { _this._toggleCollapse(); ev.stopPropagation(); ev.preventDefault(); }; _this._onHeaderClick = function () { var _a = _this.props, group = _a.group, onGroupHeaderClick = _a.onGroupHeaderClick; if (onGroupHeaderClick) { onGroupHeaderClick(group); } }; _this._onRenderTitle = function (props) { var group = props.group; if (!group) { return null; } var onRenderName = props.onRenderName ? (0, Utilities_1.composeRenderFunction)(props.onRenderName, _this._onRenderName) : _this._onRenderName; return (React.createElement("div", { className: _this._classNames.title, id: _this._id, onClick: _this._onHeaderClick, role: "gridcell", "aria-colspan": _this.props.ariaColSpan, "data-selection-invoke": true }, onRenderName(props))); }; _this._onRenderName = function (props) { var group = props.group; if (!group) { return null; } return (React.createElement(React.Fragment, null, React.createElement("span", null, group.name), React.createElement("span", { className: _this._classNames.headerCount }, "(", group.count, group.hasMoreData && '+', ")"))); }; _this._id = (0, Utilities_1.getId)('GroupHeader'); _this.state = { isCollapsed: (_this.props.group && _this.props.group.isCollapsed), isLoadingVisible: false, }; return _this; } GroupHeaderBase.getDerivedStateFromProps = function (nextProps, previousState) { if (nextProps.group) { var newCollapsed = nextProps.group.isCollapsed; var isGroupLoading = nextProps.isGroupLoading; var newLoadingVisible = !newCollapsed && isGroupLoading && isGroupLoading(nextProps.group); return tslib_1.__assign(tslib_1.__assign({}, previousState), { isCollapsed: newCollapsed || false, isLoadingVisible: newLoadingVisible || false }); } return previousState; }; GroupHeaderBase.prototype.render = function () { var _a = this.props, group = _a.group, _b = _a.groupLevel, groupLevel = _b === void 0 ? 0 : _b, viewport = _a.viewport, selectionMode = _a.selectionMode, loadingText = _a.loadingText, // eslint-disable-next-line deprecation/deprecation _c = _a.isSelected, // eslint-disable-next-line deprecation/deprecation isSelected = _c === void 0 ? false : _c, _d = _a.selected, selected = _d === void 0 ? false : _d, indentWidth = _a.indentWidth, onRenderGroupHeaderCheckbox = _a.onRenderGroupHeaderCheckbox, _e = _a.isCollapsedGroupSelectVisible, isCollapsedGroupSelectVisible = _e === void 0 ? true : _e, expandButtonProps = _a.expandButtonProps, expandButtonIcon = _a.expandButtonIcon, selectAllButtonProps = _a.selectAllButtonProps, theme = _a.theme, styles = _a.styles, className = _a.className, compact = _a.compact, ariaLevel = _a.ariaLevel, ariaPosInSet = _a.ariaPosInSet, ariaSetSize = _a.ariaSetSize, ariaRowIndex = _a.ariaRowIndex, useFastIcons = _a.useFastIcons; var onRenderTitle = this.props.onRenderTitle ? (0, Utilities_1.composeRenderFunction)(this.props.onRenderTitle, this._onRenderTitle) : this._onRenderTitle; var defaultCheckboxRender = useFastIcons ? this._fastDefaultCheckboxRender : this._defaultCheckboxRender; var onRenderCheckbox = onRenderGroupHeaderCheckbox ? (0, Utilities_1.composeRenderFunction)(onRenderGroupHeaderCheckbox, defaultCheckboxRender) : defaultCheckboxRender; var _f = this.state, isCollapsed = _f.isCollapsed, isLoadingVisible = _f.isLoadingVisible; var canSelectGroup = selectionMode === Selection_1.SelectionMode.multiple; var isSelectionCheckVisible = canSelectGroup && (isCollapsedGroupSelectVisible || !(group && group.isCollapsed)); var currentlySelected = selected || isSelected; var isRTL = (0, Utilities_1.getRTL)(theme); this._classNames = getClassNames(styles, { theme: theme, className: className, selected: currentlySelected, isCollapsed: isCollapsed, compact: compact, }); if (!group) { return null; } return (React.createElement("div", { className: this._classNames.root, style: viewport ? { minWidth: viewport.width } : {}, role: "row", "aria-level": ariaLevel, "aria-setsize": ariaSetSize, "aria-posinset": ariaPosInSet, "aria-rowindex": ariaRowIndex, "data-is-focusable": true, onKeyUp: this._onKeyUp, "aria-label": group.ariaLabel, "aria-labelledby": group.ariaLabel ? undefined : this._id, "aria-expanded": !this.state.isCollapsed, "aria-selected": canSelectGroup ? currentlySelected : undefined, "data-selection-index": group.startIndex, "data-selection-span": group.count }, React.createElement("div", { className: this._classNames.groupHeaderContainer, role: "presentation" }, isSelectionCheckVisible ? (React.createElement("div", { role: "gridcell" }, React.createElement("button", tslib_1.__assign({ "data-is-focusable": false, type: "button", className: this._classNames.check, role: "checkbox", id: "".concat(this._id, "-check"), "aria-checked": currentlySelected, "aria-labelledby": "".concat(this._id, "-check ").concat(this._id), "data-selection-toggle": true }, selectAllButtonProps), onRenderCheckbox({ checked: currentlySelected, theme: theme }, onRenderCheckbox)))) : ( // To make the group header align properly with the column headers, this spacer // needs to be the same width as the check cell in the column header. selectionMode !== Selection_1.SelectionMode.none && React.createElement(GroupSpacer_1.GroupSpacer, { indentWidth: DetailsRowCheck_styles_1.CHECK_CELL_WIDTH, count: 1 })), React.createElement(GroupSpacer_1.GroupSpacer, { indentWidth: indentWidth, count: groupLevel }), React.createElement("div", { className: this._classNames.dropIcon, role: "presentation" }, React.createElement(Icon_1.Icon, { iconName: "Tag" })), React.createElement("div", { role: "gridcell" }, React.createElement("button", tslib_1.__assign({ "data-is-focusable": false, "data-selection-disabled": true, type: "button", className: this._classNames.expand, onClick: this._onToggleClick, "aria-expanded": !this.state.isCollapsed }, expandButtonProps), React.createElement(Icon_1.Icon, { className: this._classNames.expandIsCollapsed, iconName: expandButtonIcon || (isRTL ? 'ChevronLeftMed' : 'ChevronRightMed') }))), onRenderTitle(this.props), isLoadingVisible && React.createElement(Spinner_1.Spinner, { label: loadingText })))); }; GroupHeaderBase.prototype._defaultCheckboxRender = function (checkboxProps) { return React.createElement(Check_1.Check, { checked: checkboxProps.checked }); }; GroupHeaderBase.prototype._fastDefaultCheckboxRender = function (checkboxProps) { return React.createElement(FastCheck, { theme: checkboxProps.theme, checked: checkboxProps.checked }); }; GroupHeaderBase.defaultProps = { expandButtonProps: { 'aria-label': 'expand collapse group' }, }; return GroupHeaderBase; }(React.Component)); exports.GroupHeaderBase = GroupHeaderBase; var FastCheck = React.memo(function (props) { return React.createElement(Check_1.Check, { theme: props.theme, checked: props.checked, className: props.className, useFastIcons: true }); }); //# sourceMappingURL=GroupHeader.base.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupHeader.js": /*!*****************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupHeader.js ***! \*****************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.GroupHeader = void 0; var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var GroupHeader_styles_1 = __webpack_require__(/*! ./GroupHeader.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupHeader.styles.js"); var GroupHeader_base_1 = __webpack_require__(/*! ./GroupHeader.base */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupHeader.base.js"); exports.GroupHeader = (0, Utilities_1.styled)(GroupHeader_base_1.GroupHeaderBase, GroupHeader_styles_1.getStyles, undefined, { scope: 'GroupHeader', }); //# sourceMappingURL=GroupHeader.js.map /***/ }), /***/ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupHeader.styles.js": /*!************************************************************************************************!*\ !*** ./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupHeader.styles.js ***! \************************************************************************************************/ /***/ (function(__unused_webpack_module, exports, __webpack_require__) { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getStyles = void 0; var Styling_1 = __webpack_require__(/*! ../../Styling */ "./node_modules/@fluentui/react/lib-commonjs/Styling.js"); var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "./node_modules/@fluentui/react/lib-commonjs/Utilities.js"); var DetailsRow_styles_1 = __webpack_require__(/*! ../DetailsList/DetailsRow.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRow.styles.js"); var DetailsRowCheck_styles_1 = __webpack_require__(/*! ../DetailsList/DetailsRowCheck.styles */ "./node_modules/@fluentui/react/lib-commonjs/components/DetailsList/DetailsRowCheck.styles.js"); // For every group level there is a GroupSpacer added. Importing this const to have the source value in one place. var GroupSpacer_1 = __webpack_require__(/*! ./GroupSpacer */ "./node_modules/@fluentui/react/lib-commonjs/components/GroupedList/GroupSpacer.js"); var GlobalClassNames = { root: 'ms-GroupHeader', compact: 'ms-GroupHeader--compact', check: 'ms-GroupHeader-check', dropIcon: 'ms-GroupHeader-dropIcon', expand: 'ms-GroupHeader-expand', isCollapsed: 'is-collapsed', title: 'ms-GroupHeader-title', isSelected: 'is-selected', iconTag: 'ms-Icon--Tag', group: 'ms-GroupedList-group', isDropping: 'is-dropping', }; var beziers = { easeOutCirc: 'cubic-bezier(0.075, 0.820, 0.165, 1.000)', easeOutSine: 'cubic-bezier(0.390, 0.575, 0.565, 1.000)', easeInBack: 'cubic-bezier(0.600, -0.280, 0.735, 0.045)', }; var DEFAULT_GROUP_HEADER_HEIGHT = 48; var COMPACT_GROUP_HEADER_HEIGHT = 40; var getStyles = function (props) { var _a, _b, _c, _d, _e; var theme = props.theme, className = props.className, selected = props.selected, isCollapsed = props.isCollapsed, compact = props.compact; // padding from the source to align GroupHeader title with DetailsRow's first cell. var cellLeftPadding = DetailsRow_styles_1.DEFAULT_CELL_STYLE_PROPS.cellLeftPadding; var finalRowHeight = compact ? COMPACT_GROUP_HEADER_HEIGHT : DEFAULT_GROUP_HEADER_HEIGHT; var semanticColors = theme.semanticColors, palette = theme.palette, fonts = theme.fonts; var classNames = (0, Styling_1.getGlobalClassNames)(GlobalClassNames, theme); var checkExpandResetStyles = [ (0, Styling_1.getFocusStyle)(theme), { cursor: 'default', background: 'none', backgroundColor: 'transparent', border: 'none', padding: 0, // cancel default